Home Linux Community Forums Hardware Storage Adding new disk to LVM + crypt

Adding new disk to LVM + crypt

Link to this post 21 Apr 11


I have currently disk setup like this:


sda2 was encrypted prior to lvm.
I need to increase lvm-root size with new disk, but I'm unsure how to do that properly. Suppose my new disk is sdb, I guess it's just something like

fdisk sdb, add new partition of type 8e
mkfs.ext3 sdb1
pvcreate sdb1
vgextend lvmgroup sdb1
lvextend -L 100%FREE lvm-root

Is this correct? And what about encryption, do I just encrypt sdb1 before doing the above, like I did with sda?
I'm just looking forward to do this without any dataloss from lvm-root.

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Linux Training / Board

/** BC-056 Ameex changes to add tracking code - 2016-01-22 **/ ?>