lvm

Check the physical volumes

pvs
  PV         VG        Fmt  Attr PSize  PFree
  /dev/sda3  ubuntu-vg lvm2 a--  <2.73t    0  

Check the volume groups

vgs
  VG        #PV #LV #SN Attr   VSize  VFree
  ubuntu-vg   1   2   0 wz--n- <2.73t    0

Check the logical volumes

lvs
  LV        VG        Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  plot01    ubuntu-vg -wi-ao----   2.53t                                                    
  ubuntu-lv ubuntu-vg -wi-ao---- 200.00g   

Display volume group details

vgdisplay
  --- Volume group ---
  VG Name               ubuntu-vg
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  3
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               <2.73 TiB
  PE Size               4.00 MiB
  Total PE              715140
  Alloc PE / Size       715140 / <2.73 TiB
  Free  PE / Size       0 / 0   
  VG UUID               rY8uzZ-2Xrc-TdNR-lOWt-Fr4O-uAKY-H0UsRs

Create the additional logical volume

lvcreate -l 663940 -n plot01 ubuntu-vg

Create filesystem

mkfs.ext4 /dev/ubuntu-vg/plot01

Get the new UUID

blkid
/dev/mapper/ubuntu--vg-plot01: UUID="3107980c-8ee0-4f63-adeb-2d0f50fe2f5c" TYPE="ext4"

Add it to fstab

vim /etc/fstab
UUID=3107980c-8ee0-4f63-adeb-2d0f50fe2f5c /home/chia/chia/chia-blockchain/plot01 ext4  errors=remount-ro        0       1

Revision #3
Created Thu, May 20, 2021 3:58 AM by Bodo
Updated Thu, May 20, 2021 4:09 AM by Bodo