Hi, I want to rename some volume groups and logical volumes. I was not surprised when it would not let me rename active volumes. So I booted up the system using the CentOS 5.5 LiveCD, but the LiveCD makes the logical volumes browsable using Nautilus, so they are still active and I can't rename them. Tried: /usr/sbin/lvchange -a n VolGroup00/LogVol00 but it still says: LV VolGroup00/LogVol00 in use: not deactivating Did some googling and found out that other folks have had problems with mkinitrd, but I haven't gotten that far yet. Made a wild guess and killed my nautilus process, a lot of stuff disappeared from the desktop, then reappeared along with a new nautilus process. Still googling, but haven't found anything useful so far. Any idea? -- Drew Einhorn "You can see a lot by just looking." -- Yogi Berra -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20100911/5235c721/attachment-0001.html>
On 09/11/10 12:45 PM, drew einhorn wrote:> Hi, > > I want to rename some volume groups and logical volumes. > > I was not surprised when it would not let me rename active volumes. > > So I booted up the system using the CentOS 5.5 LiveCD, > but the LiveCD makes the logical volumes browsable using Nautilus, > so they are still active and I can't rename them. > > Tried: > > /usr/sbin/lvchange -a n VolGroup00/LogVol00 > > but it still says: > > LV VolGroup00/LogVol00 in use: not deactivatingdid you try booting the liveCD in single mode? in grub, add the word 'single' to the kernel line... that won't mount anything.
>I want to rename some volume groups and logical volumes. > >I was not surprised when it would not let me rename active volumes. > >So I booted up the system using the CentOS 5.5 LiveCD, >but the LiveCD makes the logical volumes browsable using Nautilus, >so they are still active and I can't rename them. > >Tried: > >/usr/sbin/lvchange -a n VolGroup00/LogVol00 > >but it still says: > > LV VolGroup00/LogVol00 in use: not deactivatingIf its mounted you'll need to unmount it before you can deactivate it, and if its in use you wont be able to unmount it.... I'm guessing that with a name like VolGroup00/LogVol00 its probably the root filesystem so probably the best procedure is to boot from your live CD, then umount /dev/VolGroup00/LogVol00 and you should then be able to deactivate it then do your lvrename/vgrename stuff You'll also need to change any entry it may have in /etc/fstab before you reboot back onto the internal disks, or it wont mount on bootup and if its the root filesystem thats pretty fatal! chris
On Sat, Sep 11, 2010 at 3:45 PM, drew einhorn <drew.einhorn at gmail.com> wrote:> > I want to rename some volume groups and logical volumes. > I was not surprised when it would not let me rename active volumes. > So I booted up the system using the CentOS 5.5 LiveCD, > but the LiveCD makes the logical volumes browsable using Nautilus, > so they are still active and I can't rename them. > Tried: > /usr/sbin/lvchange -a n VolGroup00/LogVol00 > but it still says: > ?? LV VolGroup00/LogVol00 in use: not deactivating > > Did some googling and found out that other folks have had > problems with mkinitrd, but I haven't gotten that far yet. > Made a wild guess and killed my nautilus process, a lot of stuff > disappeared from the desktop, then reappeared along with a new > nautilus process.Is VolGroup00/LogVol00 mounted? Is VolGroup00/LogVol00 a swap partition that the Live CD is using?
At Sat, 11 Sep 2010 13:45:55 -0600 CentOS mailing list <centos at centos.org> wrote:> > > > Hi, > > I want to rename some volume groups and logical volumes. > > I was not surprised when it would not let me rename active volumes. > > So I booted up the system using the CentOS 5.5 LiveCD, > but the LiveCD makes the logical volumes browsable using Nautilus, > so they are still active and I can't rename them. > > Tried: > > /usr/sbin/lvchange -a n VolGroup00/LogVol00 > > but it still says: > > LV VolGroup00/LogVol00 in use: not deactivating > > Did some googling and found out that other folks have had > problems with mkinitrd, but I haven't gotten that far yet. > > Made a wild guess and killed my nautilus process, a lot of stuff > disappeared from the desktop, then reappeared along with a new > nautilus process. > > Still googling, but haven't found anything useful so far. > > Any idea?*Don't* boot the GUI! Boot into text mode. Nautilus, etc. is not started and won't be restarted. Sometimes the GUI is not really easier, it can in fact be much harder. You should be able to login as root and use the CLI to do what you need to do. Note: in the case of mkinitrd, you will need to rebuild your initrd if you expect to actually boot the machine after renaming the volume group and logical volumes. You'll need to *manually* mount the root and /boot (at least) someplace (eg under /sysroot), then chroot there. Don't forget to fix /etc/fstab and /boot/grub/grub.conf (root=...). -- Robert Heller -- 978-544-6933 Deepwoods Software -- Download the Model Railroad System http://www.deepsoft.com/ -- Binaries for Linux and MS-Windows heller at deepsoft.com -- http://www.deepsoft.com/ModelRailroadSystem/
On 09/11/2010 08:45 PM, drew einhorn wrote:> So I booted up the system using the CentOS 5.5 LiveCD, > but the LiveCD makes the logical volumes browsable using Nautilus, > so they are still active and I can't rename them.Rather than the livecd, you might want to just boot the installer into rescue mode. You will have none of the issues you ran into. - KB
Maybe Matching Threads
- Is it possible to lvrename the current root partition?
- Un Installing a hard drive in a Centos 5.1 box
- domU corrupt after server crash, help needed trying to recover domU LVM
- Reinstalled Windows and GRUB - Cannot boot Linux - fstab and grub.conf errors?
- CentOS Live CD for System Rescue - How to get full root access to HD?