2020-01-31

ehowton: (BSD)
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

OR

vgextend (vgname) /dev/sdc1

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

OR

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

reszie2fs /dev/path/(vgname)/(lvname)

OR

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

July 2025

S M T W T F S
   12345
6789101112
13141516171819
20212223242526
2728293031  

Page Summary

Most Popular Tags

Expand Cut Tags

No cut tags