Thanx ALL,<br><br>yes i followed the procedure to fix the initrd and worked.<br><br>thanx again.<br><br><div class="gmail_quote">On Thu, Apr 21, 2011 at 2:59 PM, Tom Combs <span dir="ltr"><<a href="mailto:combs@fsu.edu">combs@fsu.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5">On 04/21/2011 03:15 PM, Jonathan Smith wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On 04/21/2011 11:10 AM, Rogelio Bazan wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
hi All,<br>
<br>
I have rhel4.7 with lvm2 lvm2-2.02.42-9.el4.<br>
<br>
At boot time, when trying to mount the file systems, it can't find the<br>
devices/lv's which are on a different volume group.<br>
<br>
I have 2 VG's one for the OS file systems vgroot and other for<br>
Applications File systems vgapps.<br>
<br>
Those lv's which are on vgapps, cannot be mounted because the vgapps is<br>
not being activated at boot time.<br>
<br>
Once OS is up, i can do vgchange -ay vgapps and mount -a.<br>
</blockquote>
<br>
Check/rebuild your initrd.<br>
<br>
    smithj<br>
<br>
_______________________________________________<br>
rhn-users mailing list<br>
<a href="mailto:rhn-users@redhat.com" target="_blank">rhn-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/rhn-users" target="_blank">https://www.redhat.com/mailman/listinfo/rhn-users</a><br>
</blockquote>
<br>
<br></div></div>
Yeah, sounds like your initrd is broken. I've had somewhat similar<br>
problems on RHEL4. For guidance, I've included a procedure I've<br>
used for fixing another issue with the initrd. Note that this is<br>
a different problem then what you are having but the steps for<br>
getting in a fixing the initrd will be similar, you just need to<br>
fix a different part. Hopefully this will be enough to point you<br>
in the right direction.<br>
<br>
Problem<br>
========<br>
On xxx, once after upgrading the kernel and once after<br>
installing vmwaretools, the initrd gets broken. On booting,<br>
this error is generated:<br>
<br>
  Checking root filesystem [FAILED]<br>
  /dev/VolGroup00/LogVol00 is mounted. e2fsck : cannot<br>
  continue, aborting.<br>
<br>
  *** An error occurred during the file system check<br>
  *** Dropping you to a shell; blah, blah, blah<br>
<br>
The problem is that the init file in the initrd image mounts<br>
/root in read,write and then tries to e2fsck /root. This<br>
can't be done on a mounted file system, thus the error. This<br>
has only happened on xxx and is most likely an issue<br>
with RHEL 4.<br>
<br>
<br>
Solution<br>
========<br>
Boot the system using an older kernel (hit return on the boot<br>
screen before booting occurs, select older kernel, hit return).<br>
If you don't have an older kernel, you'll have to boot off of<br>
CD and go into rescue mode and the go to were the disk is mounted,<br>
/mnt/sysimg (?)<br>
<br>
When the system is up, fix the broken initrd image with the<br>
following. Note that the kernel levels used are for example<br>
and will probably differe from what you have.<br>
<br>
1) mkdir /tmp/initrd<br>
<br>
2) cd /tmp/initrd<br>
<br>
3) gzip -dc /boot/initrd-2.6.9-89.0.18.ELsmp.img | cpio -id<br>
<br>
4) vi init<br>
   change<br>
      mount -o rw,acl --ro -t ext3 /dev/root /sysroot<br>
   to<br>
       mount -o defaults --ro -t ext3 /dev/root /sysroot<br>
   save changes<br>
<br>
5) mv /boot/initrd-2.6.9-89.0.18.ELsmp.img \<br>
        /boot/initrd-2.6.9-89.0.18.ELsmp.img.orig<br>
<br>
6) find ./ | cpio -H newc -o > /boot/initrd-new.img<br>
<br>
7) gzip /boot/initrd-new.img<br>
<br>
8) cd /boot<br>
<br>
9) mv -v initrd-new.img.gz initrd-2.6.9-89.0.18.ELsmp.img<br>
   (over write = yes)<br>
<br>
10) reboot using the 2.6.9-89.0.18 kernel with the fixed<br>
    initrd.<br><font color="#888888">
<br>
<br>
<br>
-- <br>
Tom Combs<br>
Systems Administrator<br>
Information Technology Services<br>
Florida State University<br>
<a href="tel:%28850%29%20645-8026" value="+18506458026" target="_blank">(850) 645-8026</a><br>
<a href="mailto:combs@fsu.edu" target="_blank">combs@fsu.edu</a></font><div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
rhn-users mailing list<br>
<a href="mailto:rhn-users@redhat.com" target="_blank">rhn-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/rhn-users" target="_blank">https://www.redhat.com/mailman/listinfo/rhn-users</a><br>
</div></div></blockquote></div><br>