Generate Certificate Signing Request (CSR) in Linux

openssl req -new -newkey rsa:2048 -nodes -keyout domain.key -out domain.csr

Replace domain with your domain. domain.csr is what is used by your certificate authority to generate your certificate. domain.key will be used by your web server in conjunction with your certificate.

· 2020/01/13 19:22 · 2020/02/05 15:47

Monitor or watch an rsync process

strace -e open $(ps -o lwp= -LC rsync | sed 's/^/-p/')

or to see what files the process has opened.

lsof -ad3-999 -c rsync?

· 2019/11/29 08:00 · 2020/02/05 15:47

Expand Logical volume in Linux LVM

LVM makes it easy to resize volumes in Linux. This can be done without unmounting drives or requiring a restart.

First determine the free space of the group volume.


Determine the path to the logical volume.


Expand the logical volume into the group volume. You can specify a size (M for Megabytes, G for Gigabytes, T for Terabytes) …

lvextend -L+19G /dev/ubuntu-vg/ubuntu-lv

or you can expand the logical volume into the remaining free space.

lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv

You will get a success message similar to the screenshot below after the task is completed.

Resize the partition to use the newly expanded logical volume

resize2fs /dev/ubuntu-vg/ubuntu-lv

· 2019/09/18 18:09 · 2020/02/05 15:43

Useful Tools

· 2019/08/30 02:17 · 2020/02/05 15:47

<< Newer entries | Older entries >>

  • start.txt
  • Last modified: 2020/02/15 04:53
  • (external edit)