I have 5 disks in my current server which are just mounted separately in fstab.
ubuntu server install is on sda, ext4
And then I have four xfs drives that are used as NFS and samba storage on my network;
sdb mounted on /mnt/afs
sdc mounted on /mnt/bfs
sdd mounted on /mnt/cfs
sde mounted on /mnt/dfs
A single partition on each, I have enough space to copy all data onto 3 drives giving me a completely spare drive if necessary.
What I would like to do is convert sdb - sde to LVM and bring them all into one logical drive. Primarily to make file sharing easier.
So I'm thinking I need to run the following, to bring each drive under LVM control, -Zn will preserve all my existing data;
pvcreate --metadatacopies 0 -Zn /dev/sdb1
pvcreate --metadatacopies 0 -Zn /dev/sdc1
pvcreate --metadatacopies 0 -Zn /dev/sdd1
pvcreate --metadatacopies 0 -Zn /dev/sde1
Create a new volume group using the newly created pvs
Create the logical volume;
vgcreate vg0 /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1/
I would then mount sdb1 in fstab
lvcreate -Zn vg0 /dev/sdb1
Do I need to change my physical extents?
I would also prefer not to strip my data, is it necessary for me to force this option?
To add a new drive in the future;
Have I understood google correctly? This is something I don't want to use trial and error on.
vgextend vg0 /dec/sdf