Operating System - HP-UX
1835707 Members
3041 Online
110082 Solutions
New Discussion

Re: /opt file system is missing

 
Daniel Fourie
Frequent Advisor

/opt file system is missing

My /opt file system is missing and I tryed to re-mount it but it keeps failing to mount. /opt is located on /dev/vgo1/lvol2.
Can anyone help
Knowlage is Power
17 REPLIES 17
harry d brown jr
Honored Contributor

Re: /opt file system is missing

Does it respond to "lvdisplay -v /dev/vgo1/lvol2 | more " ??

Check your physical volumes using pvdisplay -v /dev/dsk/cXtXdX | more

Do you get any messages when trying to mount /opt??
Live Free or Die
James R. Ferguson
Acclaimed Contributor

Re: /opt file system is missing

Hi Daniel:

Are you trying to mount a VxFS filesystem with mount options like "mincache=direct,con
vosync=direct"? If so, you need Online JFS to do so.

What syntax and what error are you experiencing if not the above.

Regards!

...JRF...
Daniel Fourie
Frequent Advisor

Re: /opt file system is missing

Yes it does respond and it is there, I have analized the groups file and all seems ok.
Knowlage is Power
James R. Ferguson
Acclaimed Contributor

Re: /opt file system is missing

Hi (again) Daniel:

I'd also suggest running 'fsck'.

Regards!

...JRF...
linuxfan
Honored Contributor

Re: /opt file system is missing

Hi Daniel,


what kind of errors are you getting when you try mounting /opt?

Also do a "fuser -cu /opt" to see if /opt is busy. You may have to shutdown those processes before you can mount the filesysteem and restart them after mounting it.


-Regards
Ramesh
They think they know but don't. At least I know I don't know - Socrates
Daniel Fourie
Frequent Advisor

Re: /opt file system is missing

I get the following error when running pvdisplay.

pvdisplay -v /dev/dsk/c3t5d0
pvdisplay: Warning: couldn't query physical volume "/dev/dsk/c3t5d0":
The specified path does not correspond to physical volume attached to
this volume group
pvdisplay: Warning: couldn't query all of the physical volumes.
pvdisplay: Couldn't retrieve the names of the physical volumes
belonging to volume group "/dev/vg01".
pvdisplay: Cannot display physical volume "/dev/dsk/c3t5d0".

Any Ideas

Knowlage is Power
Animesh Chakraborty
Honored Contributor

Re: /opt file system is missing

Hi,
What about other file systems under vg01.
Is vg01 activated successfully ?


Best of luck
Animesh
Did you take a backup?
Printaporn_1
Esteemed Contributor

Re: /opt file system is missing

use ioscan and sikinfo to verify disk.
if all ok,
activate vg01

#vgchange -a y vg01
does any error ?
enjoy any little thing in my life
Daniel Fourie
Frequent Advisor

Re: /opt file system is missing

The output is as follows.

nndnh001(/)# vgdisplay -v /dev/vg01
vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "/dev/vg01".

I have tryed to reactivate it but it gives me the following error.

vgchange -a y /dev/vg01/
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c3t5d0":
Device busy
vgchange: Warning: couldn't query physical volume "/dev/dsk/c3t5d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query all of the physical volumes.
vgchange: Couldn't activate volume group "/dev/vg01/":
Quorum not present, or some physical volume(s) are missing.
Knowlage is Power
Eugen Cocalea
Respected Contributor

Re: /opt file system is missing

Hi,

I remember my users panicked when they saw they don't have the vols with their whole work. Well, they forgot to power on the external disks case.

Check the cables then recheck them. Power it on.

Did you put in another disk lately? Maybe the you messed with the IDs.

best regards,

Eugen
To Live Is To Learn
Animesh Chakraborty
Honored Contributor

Re: /opt file system is missing

Hi,
Assuming that your disk is ok!
See the result of
#strings /etc/lvmtab|grep c3t5d0
By any chance pvcreate -f ... on that disk by someone?

Regards
Animesh
Did you take a backup?
David Allen
Frequent Advisor

Re: /opt file system is missing

Hi Daniel,

Sounds like you might have a dead disk. I gather that vg01 is mirrored?

Try,

ioscan -fnC disk

to see if the system can see the disk - it should return CLAIMED if the disk is ok and NO_HW if it has failed.

You can activate the volume group without the quorum check by using the following command,

vgchange -a y -q n /dev/vg01

Regards,
Dave
Michael Tully
Honored Contributor

Re: /opt file system is missing

What is the output of these do:

# grep vg01 /etc/fstab
# diskinfo /dev/rdsk/c3t5d0
# dd if=/dev/dsk/c3t5d0 of=/dev/null
# ioscan -fnC disk

Thanks
-Michael
Anyone for a Mutiny ?
Daniel Fourie
Frequent Advisor

Re: /opt file system is missing

The output is as follows:

nndnh001(/)# grep vg01 /etc/fstab
/dev/vg01/lvol1 /opt vxfs delaylog 0 2
/dev/vg01/lvol2 /opt/nethealth vxfs delaylog 0 2

nndnh001(/)# diskinfo /dev/rdsk/c3t5d0
SCSI describe of /dev/rdsk/c3t5d0:
vendor: SEAGATE
product id: ST39102LC
type: direct access
size: 0 Kbytes
bytes per sector: 0

nndnh001(/)# dd if=/dev/dsk/c3t5d0 of=/dev/null
/dev/dsk/c3t5d0: Device busy
dd: cannot open /dev/dsk/c3t5d0

Knowlage is Power
Michael Tully
Honored Contributor

Re: /opt file system is missing

Daniel,

What was the output of the ioscan for that disk? If it has NO_HW as already suggested I think that the disk maybe cactus, that's why I wanted you to run a "diskinfo" and the "dd" to see the output.

-Michael
Anyone for a Mutiny ?
David Allen
Frequent Advisor

Re: /opt file system is missing

Hi Daniel,

I think the "size: 0 Kbytes" from the diskinfo output could be a firmware issue on the disk. In any case it sounds like you should get HP in to replace it. You can run diskinfo with the -v option to get more info on the disk, including the firmware level

Regards,
Dave
Saumitra Sathye
New Member

Re: /opt file system is missing

Have you SCSI cable and SCSI interface checked.
Also , if you have added any extra disk recently , there is need to check jumper setting. Wrong jumper settings create conflicts
between devices / SCSI ids.
- Saumitra.