On Mon, Jul 21, 2008 at 11:01 PM, Ross Boylan <ross@biostat.ucsf.edu> wrote: > If I have a Volume Group with partitions from 2 different physical disks > on it, and I confine my logical volumes to particular physical disks, > will I be able to recover the logical volumes on disk 1 if disk 2 fails? If you ensure that a LV doesn't span PVs then a failure of one PV would leave the remaining LV intact. You would need to be very careful to ensure that a LV doesn't span multiple PVs thou. You can recover the LV on the working disk by activating the VG in partial mode (its usually the -P option. iirc "vgchange -ay -P"), or even remove the missing PV (vgchange --removemissing, or something like that). If you activate the VG in partial mode then any read requests to missing extents will return zeros (or errors?). The man pages describe this further. Note that an inconsistent VG will not be activated automatically, you will need to manually activate it with -P. If your disks are likely to fail and you are concered about this then you are probably better off keeping separate VGs. If you need LVs larger than what a single disk can provide and therefore need to span disks then obviously they need to be in the same VG. If the root filesystem is on a LV (which is the default for Fedora/RHEL) I wouldn't recommend having two PVs in its VG. This is simply because if one PV dies then your VG will be inconsistent (missing a PV) and your system won't boot correctly (because the VG won't be activated at boot time). Its not a good idea to add SAN and local storage to the same VG for this reason. > I have several disks, but they are all different sizes and so don't seem > like good candidates for a scheme with redundancy (e.g., RAID 5). > Because of my concern that combining disks into the same volume group > would mean a failure of 1 would effectively wipe them all out, I have so > far used separate VG's for each disk. However, this is awkward. You could add them all into one VG if you wish, but this would be even more awkward - you would need to ensure that each LV resides on a single PV. > So, my general question is what the best approach would be in this > situation, multiple disks of much different sizes. The existing disks > all have separate VG's on them. The biggest disk is empty so far. Do you need a single large filesystem that spans disks? Do you have a proper disaster recovery plan (eg, backups)? --Dave _______________________________________________ linux-lvm mailing list linux-lvm@redhat.com https://www.redhat.com/mailman/listinfo/linux-lvm read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/