ehowton (ehowton) wrote,

Volume Management

lsscsi <-- to get list of devices

[0:0:0:0] disk ATA VBOX HARDDISK 1.0 /dev/sda
[0:0:1:0] disk ATA VBOX HARDDISK 1.0 /dev/sdb
[1:0:0:0] disk ATA VBOX HARDDISK 1.0 /dev/sdc
[1:0:1:0] disk ATA VBOX HARDDISK 1.0 /dev/sdd

fdisk -l /dev/sdc <-- verify size of your new device

Disk /dev/sdc: 36 GiB, 38654705664 bytes, 75497472 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

vgcreate [vgname] /dev/sdc <-- which vg you want to add the new disk

lvcreate -L [total combined size]G --name [lvname] [vgname]

mkfs -t btrfs /dev/vgname/lvname <-- For new volume


vgextend (vgname) /dev/sdc1

lvextend --size (size)G /dev/path/(vgname)/(lvname)


lvextend --extents +100%FREE /dev/path/(vgname)/(lvname)

resize2fs /dev/path/(vgname)/(lvname)


xfs_growfs /mount_point as the case may be.
Tags: linux

  • Create Veritas Volumes

    scripts]$ cat vxcreate1 x=0 while [ $x = 0 ] do clear echo "Initialize all Veritas disks press 1" echo "Create a vg and extend disks into it press…

  • Indy

  • Serial Console Pinout

    The pinout which worked for me to create a serial console connection between my laptop utilizing a Sabrent USB-to-serial db9 adapter ( $9 on…

  • Post a new comment


    default userpic

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.