1832455 Members
3122 Online
110043 Solutions
New Discussion

Re: /var not mounted

 
Nsikan_2
Occasional Advisor

/var not mounted

Hi,
I did a "bdf" ,the result shows other files mounted but '/var' only not mounted.
sam could not run because of this problem.I guess it is corrupted,how do resolve this without restoring from backup? I chcked /etc/fstab and /etc/mnttab and it's not there.
7 REPLIES 7
Pete Randall
Outstanding Contributor

Re: /var not mounted

If it's not in /etc/fstab, that's probably why it didn't get mounted. Try mounting it manually:

mount /dev/vg00/lvol? /var

and see what it says (you'll need to supply the lvol number)


Pete

Pete
melvyn burnard
Honored Contributor

Re: /var not mounted

do you mean hter eis no entry in /etrc/fstab for /var?
if so, htat is why it wont mount.
are you sure it is a separate file system (silly question you might think, but....)
what lvols are listed for vg00 in fstab?
and what are in /dev/vg00?
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Marco Santerre
Honored Contributor

Re: /var not mounted

I'm surprised it is not in your fstab. You should include it in your fstab.

Do you still have a logical volume for it? If so, I would suggest you do this :

fsck /dev/vg00/lvol# {logical volume of /var}
{include the mount line in your /etc/fstab}
mount /var

Cooperation is doing with a smile what you have to do anyhow.
David_246
Trusted Contributor

Re: /var not mounted

Hi,

If you don't have /var in your /etc/fstab it will never get mounted at boot. Either you don't have /var specified as a specific FS or someone deleted is from there.

Try to go into /var/adm or so, and see if there is any data in there. If not somone delete /var, else /var never has been a seperated FS.
I have /var mounted on /dev/vg00/lvol7, but don't believe it's as standard, just try to see which fs is missing above the lvol3.

Please check and see if you ever had a FS /var

Regs David
@yourservice
Nsikan_2
Occasional Advisor

Re: /var not mounted

According to my customer,there was a power problem and the UPS went off,when the system came up,only /var was not mounted.I'm thinking of any possibility of repairing lvol# of /var and mounting it again without restoring from backup.I appreciate and note the ideas given,but not enough to solve this issue!!!
David_246
Trusted Contributor

Re: /var not mounted

Hi,

If you found out which volume was mounted at /var, you can still solve this without any problem.
fsck -m /dev/vg00/lvol7 # Assuming it is lvol7

If you get an error of need corrected, you can initiate a :
fsck -y /dev/vg00/lvol7
To repair any errors on /var

After that : mount /dev/vg00/lvol7 /var
And better to also add it into your /etc/fstab.


Good luck

Regs David
@yourservice
Helen French
Honored Contributor

Re: /var not mounted

Check the system configuration and find out the LV which was holding the /var file system (/etc/fstab, /etc/mnttab). If you cannot find out, check the output of vgdisplay -v /dev/vg00 and search for any LV which is not mounted at this time.

A best way to resolve the FS issues is to boot in single user mode, repair all FS with 'fsck' command and boot in multi user mode.
Life is a promise, fulfill it!