Operating System - HP-UX
1754338 Members
3270 Online
108813 Solutions
New Discussion юеВ

the / is mounted on /dev/root instead of /dev/vg00/lvol3

 
SOLVED
Go to solution
Pierre Samson
Occasional Advisor

the / is mounted on /dev/root instead of /dev/vg00/lvol3

lvlnboot -v returns:
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c0t4d0 (8/4.4.0) -- Boot Disk
/dev/dsk/c1t4d0 (8/12.4.0) -- Boot Disk
PV Name: lvol1 on: /dev/dsk/c0t4d0
/dev/dsk/c1t4d0
Root: lvol3 on: /dev/dsk/c0t4d0
/dev/dsk/c1t4d0
Swap: lvol2 on: /dev/dsk/c0t4d0
/dev/dsk/c1t4d0
Dump: lvol2 on: /dev/dsk/c0t4d0, 0


But after the system is all up the / is still mounted on /dev/root. It should be mounted on /dev/vg00/lvol3 as stated in the fstab file.
What's going on?
10 REPLIES 10
Pete Randall
Outstanding Contributor
Solution

Re: the / is mounted on /dev/root instead of /dev/vg00/lvol3

Delete /etc/mnttab and do a "mount -a" to recreate it.


Pete



Pete
Martin Johnson
Honored Contributor

Re: the / is mounted on /dev/root instead of /dev/vg00/lvol3

Check the contents of /etc/mnttab. If it has root mount on /dev/root then:

verify /etc/fstab has / mounted on /dev/vg00/lovl3
mv /etc/mnttab /etc/mnttab.old
mountall

This should recreate a new /etc/mnttab and clear up the problem.

HTH
Marty
Martin Johnson
Honored Contributor

Re: the / is mounted on /dev/root instead of /dev/vg00/lvol3

Either "mount -a" or "mountall" will work.

Marty
PIYUSH D. PATEL
Honored Contributor

Re: the / is mounted on /dev/root instead of /dev/vg00/lvol3

Hi,

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 .

Delete /etc/mnttab and recreate it. A simple mount -a will do that for you.

HTH,
Piyush
Jeff Schussele
Honored Contributor

Re: the / is mounted on /dev/root instead of /dev/vg00/lvol3

Hi Pierre,

The above answers tell you how to fix the problem.
But the usual reason for having /dev/root mounted on / is that someone completed a boot (init 3?) while the system was in LVM maintenance mode.
One should always do a /etc/reboot or shutdown -ry 0 from LVM maintenance mode.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
S.K. Chan
Honored Contributor

Re: the / is mounted on /dev/root instead of /dev/vg00/lvol3

As stated the fix is to recreate /etc/mnttab file. The reason for /dev/root mounting is because it may be that you had gone into LVM maintenance mode and then rebooting th machine, hence the kernel has to use /dev/root as it's "pseudo" root FS.
Pierre Samson
Occasional Advisor

Re: the / is mounted on /dev/root instead of /dev/vg00/lvol3

Thanks it worked, why does this happenned even after reboots?
Pete Randall
Outstanding Contributor

Re: the / is mounted on /dev/root instead of /dev/vg00/lvol3

Pierre,

In theory, it shouldn't happen after a reboot - only after continuting to multi-user state from LVM maintenance mode.


Pete



Pete
Tim D Fulford
Honored Contributor

Re: the / is mounted on /dev/root instead of /dev/vg00/lvol3

edit /etc/mnttab

Tim
-