Operating System - HP-UX
1834914 Members
2860 Online
110071 Solutions
New Discussion

/ on /dev/root instead of /dev/vg00/lvol3

 
SOLVED
Go to solution
Daniel D.B. Shafer Sr.
Occasional Advisor

/ on /dev/root instead of /dev/vg00/lvol3

This is probably simple, but...

We 7 systems, all identical for the most part. All but one have / mounted on /dev/vg00/lvol3. All 7 have "/dev/vg00/lvol3 / vxfs delaylog 0 1" as the first line in /etc/fstab. Yet one mounts / on /dev/root. Can anyone enlightend a beginner as to what governs this mount other than /etc/fstab?

Thanks.
8 REPLIES 8
Pete Randall
Outstanding Contributor

Re: / on /dev/root instead of /dev/vg00/lvol3

The usual reason I've seen for this is that the system was booted in LVM maintenance mode. A simple reboot should clear the condition.


Pete

Pete
Keely Jackson
Trusted Contributor
Solution

Re: / on /dev/root instead of /dev/vg00/lvol3

Hi

We had this before. Soultion was to delete /etc/mnttab and recreate it. A simple mount -a will do that for you.

Cheers
Keely
Live long and prosper
eran maor
Honored Contributor

Re: / on /dev/root instead of /dev/vg00/lvol3

Hi

pete is rigth , when you boot to maintence mode your volume group is not active so the system create the /dev/root for the lvol3 .

do a reboot to your system and this need to solve your problem .

if a reboot will not solve this issue you can boot to maintence mode again do a vgexport to /dev/root and then vgimport to the /dev/vg00
love computers
Ravi_8
Honored Contributor

Re: / on /dev/root instead of /dev/vg00/lvol3


Hi,
could you check /etc/passwd file. shell for root user should be sh (/sbin/sh)

#init 3
or
#reboot
command should solve this problem
never give up
john korterman
Honored Contributor

Re: / on /dev/root instead of /dev/vg00/lvol3

Hi,
I can see the same thing every day on a 10.20 machine. The machine has been booted many times since "something happend" that caused /dev/root to appear. I was not present when ???something happened??? and the story has probably got a little extra colour every time it has been told ??? the short version: a person, who apparently did not know where he was, started a mass-deletion of files on the machine in question. As the deletion lasted a bit longer than expected, he became aware of his mistake and stopped the deletion. It has never been quite clear how much had been deleted, but he replaced many files in /var and /etc by copying them from a similar machine. Strangely enough, the machine could reboot successfully afterwards.
But keeping that in mind, I think that the occurrance of /dev/root does not signify a very healthy system. Check also Bill Hassel's answer in this thread:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x25337b8d1de3d5118ff40090279cd0f9,00.html

I must admit that I have not tried any of the solutions suggested in the thread.

regards,
John K.
it would be nice if you always got a second chance
Daniel D.B. Shafer Sr.
Occasional Advisor

Re: / on /dev/root instead of /dev/vg00/lvol3

Ravi, I checked /etc/passwd as you suggested androot's shell was /sbin/sh already.

Pete and eran, now I have to dive into LVM maintenance mode and see what that's about. How to use it and how to get out of it.

Keely, recreating mnttab worked while interactive.

I rebooted and it stuck.

Thanks all.
Daniel
Ravi_8
Honored Contributor

Re: / on /dev/root instead of /dev/vg00/lvol3

Hi

deleting /etc/lvmtab is foolishness. mount -a will look into this file to check for the devices which are all belongs to the vg's.

Now the solution is to get into single user mode
. mount the file systems manually
(i.e /sbin/mount /dev/vg00/lvolx / look at other m/c bdf o/p)
. lvlnboot -v
. vgscan -a -v
. reboot
never give up
Martin Johnson
Honored Contributor

Re: / on /dev/root instead of /dev/vg00/lvol3

No reboot is necessary. As stated before, delete /etc/mnttab and do a mountall or mount -a to recreate the file.

HTH
Marty