Operating System - HP-UX
1833995 Members
3960 Online
110063 Solutions
New Discussion

Problem with a umount FS and make vgchange

 
JESUS HIGUERAS
Advisor

Problem with a umount FS and make vgchange

Hi,

when i try to make a vgchange of a volume i can not because i had mount 2 FS with IO errors then i can not umount this FS y i have to reboot the system.

There are any option for umount 2 FS with IO errors?
12 REPLIES 12
Devender Khatana
Honored Contributor

Re: Problem with a umount FS and make vgchange

Hi,

Do you know why the I/O error is coming? It seems to some hardware failure (Disk).

What does "umount /mount_point" reports for these two file systems? It could be even in use by applications which can be listed by fuser command.

HTH,
Devender
Impossible itself mentions "I m possible"
Alex Lavrov.
Honored Contributor

Re: Problem with a umount FS and make vgchange

When you have IO errors and "umount" command is hang, there is nothing you can but reboot the system.

When process is waiting on IO, and it does with it has IO problems, it becomes "non signalable", it means it cannot trap any signals and there is no way to kill it.

Reboot the system, do not mount the problematic FS and try to figure out why you have IO errors.

Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
JESUS HIGUERAS
Advisor

Re: Problem with a umount FS and make vgchange

I don't have because the FS have IO errors, all process in this FS have finished correctly.

The FS are third copy of an aplication and it mount, make backup and umount but when try umount fail.

Sorry if my english are not correct.

Thank you.

Pd.. finish i reboot the system.
Alex Lavrov.
Honored Contributor

Re: Problem with a umount FS and make vgchange

Does the umount hang or print some error message?

What do you mean by "fail"?

Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
JESUS HIGUERAS
Advisor

Re: Problem with a umount FS and make vgchange

to fail, fault,
Alex Lavrov.
Honored Contributor

Re: Problem with a umount FS and make vgchange

Do you see any error message or is it just hang?
I don't give a damn for a man that can only spell a word one way. (M. Twain)
JESUS HIGUERAS
Advisor

Re: Problem with a umount FS and make vgchange

umount: cannot find /mnta2_bc/xxx/xxx/xxx: in /xxx/xxx
cannot unmount /xxx/xxx/xxx/xxx:

When i try umount /mnta2 the error messages is "FS is busy" because i have umount the other FS before.
Rajesh SB
Esteemed Contributor

Re: Problem with a umount FS and make vgchange

Hi,

Use fuser -c , it shows the list of process are using the mountpoints.
Clear those processes by killing the PID.

OR

Use "fuser -k " will release the file from user/process by killing.

Regards,
Rajesh
JESUS HIGUERAS
Advisor

Re: Problem with a umount FS and make vgchange

When i run a fuser -cu don't show process and the script run a fuser -k always
Jannik
Honored Contributor

Re: Problem with a umount FS and make vgchange

fuser does not dig down, use lsof to pinpoint the process that holds the session and kill it. lsof is not standard so you have to install it.
jaton
Jannik
Honored Contributor

Re: Problem with a umount FS and make vgchange

you can get lsof from this site:
http://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/binaries/hpux/

then do a:
gzip -d lsof_4.75.gz
chmod 755 lsof_4.75

and you will be able to run it with:
./lsof_4.75 /mnt2

this will show all process runnig in mount mnt2.
jaton
JESUS HIGUERAS
Advisor

Re: Problem with a umount FS and make vgchange

I don-t check the FS because when i try make cd /FS said "Bad Directory" for IO errors then fuser and lsof now is impossible.