Operating System - HP-UX
1833187 Members
2593 Online
110051 Solutions
New Discussion

cannot mount all other file systems except root fie system

 
Brian Lee_4
Regular Advisor

cannot mount all other file systems except root fie system

I rebooted HP-UX L2000 11.11 server but could not mount all of file systems except root file system.
When I ran "fsck", it said "file system is clean - log replay is not required".

anyone can help me out to resolve this problem?
brian lee
16 REPLIES 16
Brian Lee_4
Regular Advisor

Re: cannot mount all other file systems except root fie system

Since I cannot mount /var file system, I can not read /var/adm/syslog/syslog.log file.

When I ran "mount -a" command, nothing happend. There was no error message at all.
I tried to mount with "mount /dev/vg00/lvol3 /var" but nothing happend. There was no error message but I could not mount it.

I ran the "fsck" but just got "file system is clean - log replay is not required"
brian lee
Rajeev  Shukla
Honored Contributor

Re: cannot mount all other file systems except root fie system

Hi,
As said above /etc/rc.log should tell you about the services that failed and hence give you some idea as why it failed.

Also you should undestand that /dev/vg00/lvol3 is root which is already mounted, try mounting /dev/vg00/lvol5 /dev/vg00/lvol6 /dev/vg00/lvol7
they are /usr /var and /opt
Also what typr of filesystems are you using, i mean what is in /etc/fstab can you post it here.

Brian Lee_4
Regular Advisor

Re: cannot mount all other file systems except root fie system

I put wrong number. I tried to mount with "mount /dev/vg00/lvol4 /var" not, /dev/vg00/lvol3.

Original file systems are like the followings.

/dev/vg00/lvol3 4096000 1475665 2457001 38% /
/dev/vg00/lvol1 199381 40674 138768 23% /stand
/dev/vg00/lvol4 4096000 1940218 2051801 49% /var
/dev/vg00/lvol5 2150400 916615 1156712 44% /opt
brian lee
Steven E. Protter
Exalted Contributor

Re: cannot mount all other file systems except root fie system

There should be error messages in /var/adm/syslog/syslog.log

and /etc/rc.log

They would be helpful.

what is the error message if you run mount -a

Are you running fsck right?

example.
# fsck -F vxfs -o full -y /dev/vg01/rorcl_pgm

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Brian Lee_4
Regular Advisor

Re: cannot mount all other file systems except root fie system

The output in /etc/rc.log file is like this.

Mount file systems
Output from "/sbin/rc1.d/S100localmount start":
----------------------------
mountall: /dev/vg00/lvol5 is seriously damaged
mountall: diagnostics from mount
mountall: mount : Exec format error
mountall: /dev/vg04/lvsps is seriously damaged
mountall: diagnostics from mount
mountall: mount : Exec format error
mountall: /dev/vg20/lvol3 is seriously damaged
mountall: diagnostics from mount
mountall: mount : Exec format error
mountall: /dev/vg06/lvol5 is seriously damaged
mountall: diagnostics from mount
mountall: mount : Exec format error
mountall: /dev/vg03/lvsap is seriously damaged
mountall: diagnostics from mount
mountall: mount : Exec format error
mountall: /dev/vg03/lvarch is seriously damaged
mountall: diagnostics from mount
mountall: mount : Exec format error
mountall: /dev/vg00/lvol1 is seriously damaged
mountall: diagnostics from mount
mountall: mount : Exec format error
mountall: /dev/vg01/lvsapmnt is seriously damaged
mountall: diagnostics from mount
mountall: mount : Exec format error
mountall: /dev/vg15/lvol4 is seriously damaged
mountall: diagnostics from mount
mountall: mount : Exec format error
mountall: /dev/vg20/lvol5 is seriously damaged
mountall: diagnostics from mount
mountall: mount : Exec format error
mountall: /dev/vg15/lvol5 is seriously damaged
mountall: diagnostics from mount
mountall: mount : Exec format error
mountall: cannot mount /dev/vg15/lvol3
mountall: cannot mount /dev/vg15/lvol2
mountall: cannot mount /dev/vg15/lvol1
mountall: cannot mount /dev/vg14/lvol1
mountall: cannot mount /dev/vg13/lvol1
mountall: cannot mount /dev/vg12/lvol1
mountall: cannot mount /dev/vg11/lvol1
mountall: cannot mount /dev/vg10/lvol1
mountall: cannot mount /dev/vg09/lvol1
mountall: cannot mount /dev/vg08/lvol1
mountall: cannot mount /dev/vg07/lvol1
mountall: cannot mount /dev/vg06/lvol4
mountall: cannot mount /dev/vg06/lvol3
mountall: cannot mount /dev/vg06/lvol2
mountall: cannot mount /dev/vg06/lvol1
mountall: cannot mount /dev/vg05/lvol4
mountall: cannot mount /dev/vg05/lvol3
mountall: cannot mount /dev/vg05/lvol2
mountall: cannot mount /dev/vg05/lvol1
mountall: cannot mount /dev/vg04/lvol3
mountall: cannot mount /dev/vg04/lvol2
mountall: cannot mount /dev/vg04/lvol1
mountall: cannot mount /dev/vg03/lvol4
mountall: cannot mount /dev/vg03/lvol3
mountall: cannot mount /dev/vg03/lvol2
mountall: cannot mount /dev/vg02/lvol4
mountall: cannot mount /dev/vg02/lvol3
mountall: cannot mount /dev/vg02/lvol2
mountall: cannot mount /dev/vg02/lvol1
mountall: cannot mount /dev/vg01/lvol3
mountall: cannot mount /dev/vg01/lvol2
mountall: cannot mount /dev/vg01/lvol1
mountall: cannot mount /dev/vg15/lvol7
mountall: cannot mount /dev/vg15/lvol6
mountall: cannot mount /dev/vg06/lvol6
mountall: /dev/vg20/lvol4 is seriously damaged
mountall: diagnostics from mount
mountall: mount : Exec format error
mountall: /dev/vg00/lvol4 is seriously damaged
mountall: diagnostics from mount
mountall: mount : Exec format error
mountall: /dev/vg00/lvol6 is seriously damaged
mountall: diagnostics from mount
mountall: mount : Exec format error
brian lee
Norman_21
Honored Contributor

Re: cannot mount all other file systems except root fie system

Try my $0.2 cents,

mount /dev/vg00/rlvol4 /var (notice the rlvol4 and not just lvol4

"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003
Brian Lee_4
Regular Advisor

Re: cannot mount all other file systems except root fie system

mount /dev/vg00/rlvol4 /var does not work.
brian lee
Norman_21
Honored Contributor

Re: cannot mount all other file systems except root fie system

As Rajeev indiecated if you could ftp the fstab to your local PC and then attach it here. Do you have CIF installed, what is the run level?
who -r

You are gonna need a patch for mountall in 11.11

11.11 mountall cumulative patch PHCO_24777

Please let us know how it goes.
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003
Brian Lee_4
Regular Advisor

Re: cannot mount all other file systems except root fie system

Refer to the following commands and outputs.

root@seauxk2:/ > fsck -F vxfs -o full -y /dev/vg00/rlvol4
log replay in progress
pass0 - checking structural files
pass1 - checking inode sanity and blocks
pass2 - checking directory linkage
pass3 - checking reference counts
pass4 - checking resource maps
OK to clear log? (ynq)y
set state to CLEAN? (ynq)y
root@seauxk2:/ > mount /dev/vg00/lvol4 /var
root@seauxk2:/ > bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 3072000 1582983 1396097 53% /

brian lee

Re: cannot mount all other file systems except root fie system

Brian,

I don't think the problem is with your file systems - it's with the mount command itself by the looks of it...

Notice that every time mountall tried to call mount it got a message 'Exec format error'

Seems like the mount command might have got corrupted in some way

What is the output of the following?

which mount

file `which mount`

chatr `which mount`

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Brian Lee_4
Regular Advisor

Re: cannot mount all other file systems except root fie system

root@seauxk2:/ > which mount
/usr/sbin/mount
root@seauxk2:/ >
root@seauxk2:/ > file `which mount`
/usr/sbin/mount: empty
root@seauxk2:/ >
root@seauxk2:/ > chatr `which mount`
chatr(error): cannot read magic number in file /usr/sbin/mount
brian lee
Norman_21
Honored Contributor

Re: cannot mount all other file systems except root fie system

Brian,

Did you use the single quote or the Meta charachter? do not use the single qoute.
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003
Norman_21
Honored Contributor

Re: cannot mount all other file systems except root fie system

Brian,

did you move the mnttab prior to mount -a
command:

# mv /etc/mnttab /etc/mnttab.old
# mount -a

"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003
Brian Lee_4
Regular Advisor

Re: cannot mount all other file systems except root fie system

No. I didn't move /etc/mnttab to /etc/mnttab.old.

I move /etc/mnttab to /etc/mnttab.old and run "mount -a" but still can not mount the other file systems.

root@seauxk2:/etc > mv /etc/mnttab /etc/mnttab.olf
root@seauxk2:/etc > mount -a
root@seauxk2:/etc > bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 3072000 1584292 1394851 53% /
root@seauxk2:/etc > bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 3072000 1584292 1394851 53% /
brian lee
Brian Lee_4
Regular Advisor

Re: cannot mount all other file systems except root fie system

I resolve this problem.
/sbin/mount file was empty so that I copied the same file from another system to this server and ran "mount all". And then it brought all of file systems.

Thank you for your helps.
brian lee
Norman_21
Honored Contributor

Re: cannot mount all other file systems except root fie system

I'm glad you fixed the problem, I thought that you used the single qoute with the chatr command, I was wrong!
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003