Operating System - HP-UX
1833779 Members
2601 Online
110063 Solutions
New Discussion

I can not find /var and /opt

 
mudongxiao
Advisor

I can not find /var and /opt

I have a volume group vg03,
The details are
/dev/vg03/lvol1 ---> /var
/dev/vg03/lvol2 ---> /opt
/dev/vg03/lvol3 ---> /oracl817
/dev/vg03/lvol4 ---> /data2t

Right now, I reboot my machine and bdf
I noly can see /oracl817 and /data2t, I lose the other two filesystem (/var and /opt).

I run fsck /dev/vg03/lvol1,fsck /dev/vg03/lvol2
But failed.
I don't have a back up for this two fileststem, How can I get them back?
Who can help me
Thank you in advance.
7 REPLIES 7
mudongxiao
Advisor

Re: I can not find /var and /opt

When i run
fsck /dev/vg03/lvo1
Then I got the following error message
=======================================
cannot open device /dev/vg03/lvo1
file system check failure,aborting ...
=======================================



mudongxiao
Advisor

Re: I can not find /var and /opt

Sorry, the second post is wrong. Ignore it

I logon root
and
fsck -F vxfs /dev/vg03/lvol1

I got

vxfs fsck: file system had I/O error(s) on meta-data.
lof replay in progress
Full file system check required, eciting....

Who can let me know what's this mean.
Thanks
A. Clay Stephenson
Acclaimed Contributor

Re: I can not find /var and /opt

You can try this:
fsck -F vxfs -o full,nolog /dev/vg03/rlvol2

Hw who has good backs seldom needs them but he who does not ... --- you are your own worst enemy.
If it ain't broke, I can fix that.
Deepak Kulkarni
Regular Advisor

Re: I can not find /var and /opt

Hi Mudo,

Can you paste the output of "fstab" and "lvmtab" file.

Regards
Deepak
Sudeesh
Respected Contributor

Re: I can not find /var and /opt

Looks like you have a real problem!! Error points to bad blocks in the disk. Do a full fsck (this will skip the intent log and will do a full filesystem check on vxfs)as Clay suggested.

fsck -F vxfs -o full /dev/vg03/lvol2

Thanks

Sudeesh
The most predictable thing in life is its unpredictability
Joseph Loo
Honored Contributor

Re: I can not find /var and /opt

hi,

u may like to check your syslog.log or OLDsyslog.log (in /var/adm/syslog) for the vxfs error message.

refer to this doc for the error message and solution:

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000076281156

regards.
(p.s. please remember to assign points to those who has assisted u in finding the solution.)
what you do not see does not mean you should not believe
Bill Hassell
Honored Contributor

Re: I can not find /var and /opt

The I/O errors means that your disk has gone bad and must be replaced. Unfortunately, there is nothing you can do to fix the bad spots on the disk and apparently there are bad spots in the directory structures. Get a complete backup of everything you have on vg03 right now since disks that go bad never get better, just worse.


Bill Hassell, sysadmin