----- "Ben M." <centos at rivint.com> wrote:> Gack. I added an additional Raid1 pair to my machine just before I > planned to bring it over to the office and I did something dumb and > locked out. > > I have the pv's, vg's and lv's cleared. All I need to do is get on > root > and remove a line from fstab, but I can't get it out of read only mode > > to save the edit. > > My root login at "Repair Filesystem" seems unable to make the file > writeable. I have done this in past with Knoppix, but can't seem to > file > the utility to make the write editable (same with CentOS and other > live > CD's, am downloading newer BackTrack now).The root filesystem's LV/device is not writable or your root filesystem is mounted read-only? If it's the latter, just ``mount -o remount,rw /''. -- Christopher G. Stach II
Thanks, I am going to try this. I finally got in by disconnecting the new RAID1 (nv fakeraid) and then linux rescue could mount the drives and volumes, I deleted the fstab entry and I'm good again. I'm gonna take one more shot at adding this additional storage and will try your suggestion if it happens again. Are there any known issues with Xen/CentOS "standard" and adding new drives and dmraid "automagically" activating them? I have to say my biggest mistake was trying to add the pv (hd) to the existing vgs so I could migrate some virtual machine to the other array. Big mess. Christopher G. Stach II wrote:> ----- "Ben M." <centos at rivint.com> wrote: > >> Gack. I added an additional Raid1 pair to my machine just before I >> planned to bring it over to the office and I did something dumb and >> locked out. >> >> I have the pv's, vg's and lv's cleared. All I need to do is get on >> root >> and remove a line from fstab, but I can't get it out of read only mode >> >> to save the edit. >> >> My root login at "Repair Filesystem" seems unable to make the file >> writeable. I have done this in past with Knoppix, but can't seem to >> file >> the utility to make the write editable (same with CentOS and other >> live >> CD's, am downloading newer BackTrack now). > > The root filesystem's LV/device is not writable or your root filesystem is mounted read-only? If it's the latter, just ``mount -o remount,rw /''. >
It's really simple: Boot Centos 5 CD Start rescue mode by typing # linux rescue # sudo -i # mkdir /mnt/root # mount -t ext3 /dev/whatever /mnt/root # nano /mnt/root/etc/fstab Regards, Netbulae Jorick Astrego Netbulae B.V. Janninksweg 127 7513 DH Enschede Tel. +31 (0)6 - 34 15 20 76 Fax. +31 (0)53 - 88 00 326 Email: jorick at netbulae.com Site: http://www.netbulae.com centos-virt-request at centos.org wrote:> Send CentOS-virt mailing list submissions to > centos-virt at centos.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.centos.org/mailman/listinfo/centos-virt > or, via email, send a message with subject or body 'help' to > centos-virt-request at centos.org > > You can reach the person managing the list at > centos-virt-owner at centos.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of CentOS-virt digest..." > > > Today's Topics: > > 1. LVM Lockout (Ben M.) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 14 Oct 2009 08:17:28 -0400 > From: "Ben M." <centos at rivint.com> > Subject: [CentOS-virt] LVM Lockout > To: Discussion about the virtualization on CentOS > <centos-virt at centos.org> > Message-ID: <4AD5C158.9080207 at rivint.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Gack. I added an additional Raid1 pair to my machine just before I > planned to bring it over to the office and I did something dumb and > locked out. > > I have the pv's, vg's and lv's cleared. All I need to do is get on root > and remove a line from fstab, but I can't get it out of read only mode > to save the edit. > > My root login at "Repair Filesystem" seems unable to make the file > writeable. I have done this in past with Knoppix, but can't seem to file > the utility to make the write editable (same with CentOS and other live > CD's, am downloading newer BackTrack now). > > > > > > > ------------------------------ > > _______________________________________________ > CentOS-virt mailing list > CentOS-virt at centos.org > http://lists.centos.org/mailman/listinfo/centos-virt > > > End of CentOS-virt Digest, Vol 26, Issue 11 > ******************************************* >
----- "Ben M." <centos at rivint.com> wrote:> They show up in /dev as sd(x)s, but not in /dev/mapper with the > nvidia_ > handle. I type dmraid -ay and there they are, but not auto-magically > like the first pair do at boot. I don't see a conf file to make this > happenYou can temporarily edit rc.sysinit around the dmraid logic and add some debugging to see what it's doing or not doing. Have you considered skipping dmraid and just using MD RAID? You would probably be better off. -- Christopher G. Stach II