lvm lvrename on Fedora Core 4

Robert L Cochran cochranb at speakeasy.net
Mon Jan 9 23:50:05 UTC 2006


Adam Gibson wrote:

> Robert L Cochran wrote:
>
>> On my shiny new FC4 system, mount reports this device to be mounted 
>> on root "/":
>>
>> /dev/mapper/VolGroup00-LogVol00
>
>
> Too late for this information to help you and you seem to already 
> realize this but hopefully it will help someone in the future.
>
> The installer probably should mention that you should try to rename 
> the volume group to something uniq during installation to reduce the 
> chances of volume group name conflicts in the future.  I forgot about 
> this myself and had to rename one of them when I needed to access the 
> old system.  Only the volume group needs to be renamed(logical volume 
> names will not conflict).
>
> I make sure to name my volume groups with the system name of the 
> machine and then a unique number afterwards that I increment for any 
> new volume groups that I ever create.  I also name the logical volumes 
> with where I plan to mount them.  It makes recovery so much easier 
> when you try and access the volume group under another installation.
>
> Example:
>
> My system name is pulsar.  I have 2 drives.  One is an older drive 
> that has an old volume group called pulsar00.  The second drive is 
> from a newer install of Fedora that has a volume group of pulsar01.
>
> List of my partitions:
> /dev/mapper/pulsar01-root   mounted as /
> /dev/hda1                   mounted as /boot
> /dev/mapper/pulsar01-home   mounted as /home
> /dev/mapper/pulsar01-tmp    mounted as /tmp
> /dev/mapper/pulsar01-var    mounted as /var
> /dev/mapper/pulsar01-swap   mounted as swap
> /dev/mapper/pulsar00-home   mounted as /oldhome
>
> If I ever put one of those drives in a new Linux system I will know 
> immediately what system I installed them on and where the partitions 
> were mounted.
>
Thanks a lot, I'm learning a great deal about lvm now. I'll be sure to 
do this with future installs.

Bob Cochran




More information about the fedora-list mailing list