Manual LVM2 config
I've got two Ubuntu 9.04 LTSP servers, lts1 and lts2, which have been setup differently by different people. Each server has 4+ scsi disks that I'd like to setup with LVM and SW_Raid-1 (for mirroring) on disks 0-3 on each.
Is "dd if=/dev/sda of=/dev/sdd" a sufficient copy?
The LVM install on lts2 had created:
I'd like to end up with the same for lts1:
"dd" makes a sector-to-sector copy, but you should not have any of these partitions mounted.
You maybe you should go from a livecd.
Also, do not use them after together at the same time, as they will have the same filesystem uids, and this _can_ lead to problems (not sure about this, but I would avoid).
The dev/mapper links are automatically created, but not by vgscan --mknodes, but by the udev daemon, during the boot process.
(To be more explicit by vgchange -a y). You do not need to care about. You should not create static nodes for them either, as the device minor ids can change if you add/remove volumes, and you will have a mess.
For creating the logical volumes, you should go through pvcreate/vgcreate/lvcreate commands.
See the manual of them to understand them clearly, I do not want to mislead you.
Btw. I would suggest to setup a RAID10 array with the 4 disks, it purforms _much_ better.
|All times are GMT -5. The time now is 12:24 PM.|