Operating System - HP-UX
1833861 Members
2138 Online
110063 Solutions
New Discussion

I cannot umount a powerfailed drive.

 
Steve Huizenga
Frequent Advisor

I cannot umount a powerfailed drive.

I have an N4000 built with HPUX 11.00 from the Dec. 2003 CDs. It is FC attached to several FC10s. When a drive POWERFAILED I could not umount the FS, umount just hung, bdf hung and ll / hung. This works fine on a V2200 running HPUX 11.00 patched upto Dec. 2001. Any ideas?
10 REPLIES 10
Patrick Wallek
Honored Contributor

Re: I cannot umount a powerfailed drive.

If the drive that is powerfailed is the ONLY drive that the filesystem is part of, then it will hang. If you don't have that filesystem mirrored it will behave exactly as you see.

Basically IO requests are being sent to that disk, but since the disk is quite dead, it will not respond to them and thus the commands will hang.

There is no way around this. This is a good reason to have stuff mirrored.
David Burgess
Esteemed Contributor

Re: I cannot umount a powerfailed drive.

You could run bdf to get the fs's in the vg and then try fuser -c to see if any processes are running that are holding it.

Just a guess to start!

Dave.
Steven E. Protter
Exalted Contributor

Re: I cannot umount a powerfailed drive.

You can't mount a fileystem that is sitting on a power failed drive.

You will need to shut down this system and replace the drive, or continue along without that filesystem until you are ready.

If the fs is "mounted" then try this:

fuser -cuk /fs_name

That will kill processes and possibly let you umount the filesystem.

Be careful with fuser you can clobber a system easily by say using it on the root filesystem.

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
Steve Huizenga
Frequent Advisor

Re: I cannot umount a powerfailed drive.

The FS is one with data, not system. bdf hangs, fuser hangs, the process do not die when killed. In this situation umount works on my V2200, it takes 5 minutes, but it works.
David Burgess
Esteemed Contributor

Re: I cannot umount a powerfailed drive.

Assuming it's possible, what about shutting the application that is using it and then trying.

Failing that the big one - shutdown -hy 0

I've never used a V class. Maybe it has extra functionality. I the past I've always shutdown the apps and server to best clean it up.

Regards,

Dave.
Steve Huizenga
Frequent Advisor

Re: I cannot umount a powerfailed drive.

I'd hate to think it was something special about the V's and it doesn't work on the N's. I've had years where I didn't have to shutdown my V's and I was always able to umount, vgchange, vgexport, swap out bad drives, rebuild and restore file systems.
David Burgess
Esteemed Contributor

Re: I cannot umount a powerfailed drive.

I'm lost then. Best open a call with HP.

Please let us know if you get an answer.

Regards,

Dave.
Todd McDaniel_1
Honored Contributor

Re: I cannot umount a powerfailed drive.

Try my old trick of deleting the /etc/mnttab ...

Then umount FS, but be quick it refreshes in 5-10 seconds...

Unix, the other white meat.
Patrick Wallek
Honored Contributor

Re: I cannot umount a powerfailed drive.

I've worked on several different classes of machines, but never a V. I've NEVER been able to do ANYTHING to a bad disk.

When replacing disks, I also NEVER take it out of the VG. That's pointless. If the disk is hot-swappable I just replace the disk, do a vgcfgrestore to the disk, then if the data was mirrored I do a vgsync. If it wasn't mirrored, you'd have to do a restore.

Steve Huizenga
Frequent Advisor

Re: I cannot umount a powerfailed drive.

I've had this discussion with HP before and I've never received a satisfactory answer. I'll try the mnttab trick nex time. Thanks.