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

  • Re-Create Expired SMT Certificate

    Create server certificate 1.Select the newly created CA in the YaST2 CA management module. 2.Press "Enter CA". 3.Enter the CA password. 4.Select the…

  • Query a List of Hostnames to Create /etc/hosts File

    for x in `cat hostnames`; do echo $(nslookup $x | grep -e Address | sed -n 2p | sed -r 's/.{9}//') $x ; done >> hostfile Or, add SHORTNAME…

  • Sanitize EMCgrabs

    Script which is meant to run from a directory containing compressed/encapsulated EMCgrabs either from ESX or linux hosts. # Removes hostnames…

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