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

  • A Plague For All Seasons

    Vainly valuing endless inefficacious toil seeds seemingly insatiable ennui Lifetimes of vague frustrations passed down from generation to generation…

  • Robert Frost Style

    Some say the world will end in a left-wing socialist distopia Some say in a right-wing-fueled fascist distopia From the amounts I've seen in an array…

  • Footprints

    I dreamed I was walking along the beach, and across the sky flashed scenes from my life. For each scene I noticed various footprints in the sand.…

  • 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.