Re: lvm lvrename on Fedora Core 4



On Mon, 2006-01-09 at 08:08 +0000, Paul Howarth wrote:
> On Sun, 2006-01-08 at 21:08 -0500, Robert L Cochran wrote:
> > On my shiny new FC4 system, mount reports this device to be mounted on
> > root "/":
> >
> > /dev/mapper/VolGroup00-LogVol00
> >
> > And I assume that this is most of my hard drive except for /boot (which
> > is /dev/sda1) and swap. Would renaming this with 'lvm lvrename' offer me
> > any benefit? For example rename it to
> >
> > /dev/mapper/VolGroup05-LogVol10
>
> I'd have thought "vgrename" would be sufficient - there shouldn't be any
> need to rename the LVs once the VG is renamed.
>
> If you do do this, check that /etc/fstab contains LABEL= lines to
> identify mount points rather than hardcoded device names
> like /dev/mapper/VolGroup00-LogVol00 or /dev/VolGroup00/LogVol00; if it
> doesn, you'll need to edit those too.
>
If it *does* contain the LABEL= lines and the second VG also contains
LVs with the same label this still will be a problem.

To avoid conflict of labels he also will need to change any LABEL= lines
in fstab to reflect the device name instead.

On mine, the lvm devices have the device names in fstab and do not use
the LABEL= syntax.

> > My previous FC4 system has an LVM spanning 2 physical disks and it is
> > going to be truly inconvenient to mount these disks on my current system
> > and get at the contents of the data on them. I've forgotten to back up
> > several important files to a DVD before doing a hardware upgrade that
> > includes using only one Great Big Hard Drive, and I'm feeling the pain.
> >
> > So would renaming my current LVM make it easier to get my old drives
> > (which are currently sitting around unused) mounted and accessible?
>
> Yes, I would think so.
>
> Paul.
>

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Re: use of label in fstab
    ... label ublinux edited fstab to contain: ... I made another partition /dev/sda5 and used e2label to label it dyndata, ... On bootup now, the first partition mounts correctly, but the second gives ... ~# mount -L dyndata /dyntest ...
    (Ubuntu)
  • Re: Re: Re: How can you get a Seagate USB 160 GB drive to mount?
    ... With a FAT filing system, the easiest way is to use Windows to do it. ... To do the same (rename a FAT filing system volume label) on Linux, ... then you use the mlabel command to change that ...
    (Fedora)
  • Problems mounting by label
    ... Using the latter defeats the purpose however, since I want eventually to mount things to a different mount point depending on their label. ... The data for partition 1 is: ... I also used glabel to try to get a label on it, but couldn't see how I could use the glabel information for mounting. ...
    (freebsd-questions)
  • Re: Issues after forklifting Public Store
    ... All that does is rename the databases; doesn't let them mount. ... > If you try to mount the public store in Exchange System Manager do you get ... > Chad A. Gross - SBS MVP ...
    (microsoft.public.windows.server.sbs)
  • Re: [opensuse] Volume Mount Sequence - RESOLVED
    ... external drives mount to the same mount point every time? ... Try Yast, System, Partitioner, and give them a label, and mount them by ... external drives), then let hal remount. ...
    (SuSE)