On 3/11/2011 18:51, Jon Peatfield wrote:
> I've not checked if it is still the case in EL6 but the default
> installer for EL4/5 strongly encourages people to always use the same
> 'VG' name when setting up LVM.
>
> IMHO this is a pain because if people follow that pattern then if/when a
> disk is moved to another machine (e.g. temporarily for diagnostics) the
> VG names on the disks clash.
>
> While there are ways round that problem it (seems to me) best to avoid
> it by allocating unique names for the VGs (we base them on the hostname
> and purpose e.g. system VG in 'fox' might be FoxSys0 - the mixed case is
> on purpose so they can't clash with other dev entries...)
>
> Also the LV names that the installer suggests are just plain stupid. I
> much prefer to name them after the purpose - they don't need to be
> unique so I usually use the name of the mountpoint (or root for / and
> swap for swap).
Thankfully, when I last checked, anaconda added the system's hostname to
the recommended VG name, making the default much more sane.
gholms@luna ~ % mount | grep ext
/dev/mapper/vg_luna-lv_root on / type ext4 (rw)
/dev/sda1 on /boot type ext4 (rw)
/dev/mapper/vg_luna-lv_home on /home type ext4 (rw)
--
Garrett Holmstrom