Operating System - HP-UX
1834330 Members
2191 Online
110066 Solutions
New Discussion

Re: Cannot mount directory after crash

 
kenny chia
Regular Advisor

Cannot mount directory after crash

Hi all
I have a problem which caused my DS2300 disk to go offline. Not exactly sure what caused it
But I manage to online them and run fsck for the following lvols

/dev/vg01/lvol1
/dev/vg01/lvol2
/dev/vg01/lvol3

which is all in my DS2300 server.

I could mount my directories to lvol1 and lvol2 but when I mount lvol3 I got the following error

# mount /users2
vxfs mount: /dev/vg01/lvol3 no such device

What could be the cause of the problem?




All Your Bases Are Belong To Us!
15 REPLIES 15
Luk Vandenbussche
Honored Contributor

Re: Cannot mount directory after crash

Hi,

Can you send the output of vgdisplay -v vg01
Senthil Kumar .A_1
Honored Contributor

Re: Cannot mount directory after crash

Hi Kenny,

Please provide us the outputs of the following commands,

vgdisplay -v vg01
lvdisplay /dev/vg01/lvol3
ll /dev/vg01

regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
kenny chia
Regular Advisor

Re: Cannot mount directory after crash

Hi
Attached is the output
All Your Bases Are Belong To Us!
Luk Vandenbussche
Honored Contributor

Re: Cannot mount directory after crash

Everything looks fine

Try

fsck -F vxfs /dev/vg01/rlvol3
mount /dev/vg01/lvol1 /users2
kenny chia
Regular Advisor

Re: Cannot mount directory after crash

There seems to be no problem for my attached results.
At the bottom is my dmesg results. /users2 seems to be badly affected and the situation seems hopeless. Should I do mkfs_vxfs instead of trying to recover?

vxfs: mesg 055: vx_metaioerr - /dev/vg01/lvol3 file system meta data write error
vxfs: mesg 056: vx_dataioerr - /dev/vg01/lvol1 file system file data read error
vxfs: mesg 008: vx_direrr - /users2 file system inode 22 block 64323 error 22
vxfs: mesg 008: vx_direrr - /users2 file system inode 22 block 64323 error 22
vxfs: mesg 008: vx_direrr - /users2 file system inode 22 block 64323 error 22
vxfs: mesg 008: vx_direrr - /users2 file system inode 22 block 64323 error 22
vxfs: mesg 008: vx_direrr - /users2 file system inode 22 block 64323 error 22
vxfs: mesg 008: vx_direrr - /users2 file system inode 22 block 64323 error 22
vxfs: mesg 008: vx_direrr - /users2 file system inode 22 block 64323 error 22
vxfs: mesg 031: vx_disable - /dev/vg01/lvol3 file system disabled
vxfs: mesg 031: vx_disable - /dev/vg01/lvol1 file system disabled
vxfs: mesg 049: vx_esum_bad - /dev/vg01/lvol2 file system extent allocation unit summary number 5 marked bad

---------------- End of dmesg ------------

If my fstab entry for /users2 is as follows..

/dev/vg01/lvol3 /users2 vxfs rw,suid,largefiles,delaylog,datainlog 0 2

should my newfs command be
# newfs -F vxfs -o largefiles /dev/vg01/lvol3

Thanks
All Your Bases Are Belong To Us!
Luk Vandenbussche
Honored Contributor

Re: Cannot mount directory after crash

Hi,

lvol3 is striped on two disk.

Try the following

fsck -F vxfs -o full /dev/vg01/lvol1

or
restart your DS2300 it the fsck doesn't solve your problem.
Senthil Kumar .A_1
Honored Contributor

Re: Cannot mount directory after crash

Hi Kenny,

If you issue newfs, you are at the risk of loosing the data in that volume, why don't you check fsck , once again, before taking such a drastic step.

Regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
kenny chia
Regular Advisor

Re: Cannot mount directory after crash

hmm...
full fsck not much of a help.


# fsck -F vxfs -o full /dev/vg01/rlvol3
log replay in progress
pass0 - checking structural files
pass1 - checking inode sanity and blocks
pass2 - checking directory linkage
warning - no lost+found directory for fileset 999
pass3 - checking reference counts
pass4 - checking resource maps
OK to clear log? (ynq)y
set state to CLEAN? (ynq)y
# pwd
/
# mount /users2
vxfs mount: /dev/vg01/lvol3 no such device
#
All Your Bases Are Belong To Us!
Luk Vandenbussche
Honored Contributor

Re: Cannot mount directory after crash

Hi,

Try also mount /dev/vg01/lvol3 /users2 please.

Perhaps here might be an error in your fstab
Senthil Kumar .A_1
Honored Contributor

Re: Cannot mount directory after crash

Hi Kenny,

As luk suggested ,if "mount /dev/vg01/lvol3 /users2 " does not work, your command for newfs is good to go. I hope you have the backup of the data. Because, for obvious reasons, u will have to perform a restore operation after "newfs".

Regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Devender Khatana
Honored Contributor

Re: Cannot mount directory after crash

Hi,

The error at dmesg clearly indicated a disk i/o error and disabling of the LVOLs. Now your problem is that other two are activating and this one still not. Can you try deactivating and activating the VG and see if it activates the LVOL. But for now atleast the LVOL seems OK and once it is available you should be able to find all data intact.

HTH,
Devender
Impossible itself mentions "I m possible"
Senthil Kumar .A_1
Honored Contributor

Re: Cannot mount directory after crash

Hi Kenny,

Devendran has a valid suggestion , I think it might work out, first try as he suggests.

Regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Senthil Kumar .A_1
Honored Contributor

Re: Cannot mount directory after crash

Hi,

as per devender, the commands to try are,

vgchange -a n vg01
vgchange -a y vg01

now try mounting /dev/vg01/lvol3

regards,
Senthil
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
kenny chia
Regular Advisor

Re: Cannot mount directory after crash

I have given up mounting /users2
I have done a mkfs and recover the data from a backup
I like to know the cause of my disk going offline. Strange thing is that there are no amber light on my disks
I am starting a new thread for this..
All Your Bases Are Belong To Us!
kenny chia
Regular Advisor

Re: Cannot mount directory after crash

Closed thread.
All Your Bases Are Belong To Us!