Operating System - HP-UX
1834100 Members
2352 Online
110063 Solutions
New Discussion

Re: umout and extend file ststem

 
SOLVED
Go to solution
Grayh
Trusted Contributor

umout and extend file ststem

i have done a lvextend

then when i try umount i get

# umount /dev/vg00/lvol6
umount: cannot unmount /opt : Device busy
umount: return error 1.
# fuser -u /dev/vg00/lvol6
/dev/vg00/lvol6: 5976m(root) 5984mt(root) 6031mt(sfmdb) 5981mt(root
) 5982mt(root) 6032mt(sfmdb) 6005mt(sfmdb) 6002mt(sfmdb) 5983mt(r
oot) 5974mt(root) 6006mt(sfmdb)

How can i now umount lvol6 and do extendfs
22 REPLIES 22
John Guster
Trusted Contributor
Solution

Re: umout and extend file ststem

fuser -k /dev/vg00/lvol6, then extendfs. Assume you don't have onlineJFS installed.
Torsten.
Acclaimed Contributor

Re: umout and extend file ststem

It's most likely better to boot into single user mode for doing this. I assume you don't have onlineJFS.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Grayh
Trusted Contributor

Re: umout and extend file ststem

but by doing that might reboot the server...

will it
Grayh
Trusted Contributor

Re: umout and extend file ststem

# fuser -u /dev/vg00/lvol6
/dev/vg00/lvol6: 5976m(root) 5984mt(root) 6031mt(sfmdb) 5981mt(root
) 5982mt(root) 6032mt(sfmdb) 6005mt(sfmdb) 6002mt(sfmdb) 5983mt(r
oot) 5974mt(root) 6006mt(sfmdb)

# fuser -k /dev/vg00/lvol6
/dev/vg00/lvol6: 5976m 5984mt 6031mt 5981mt 5982mt 6032mt
6005mt 6002mt 5983mt 5974mt 6006mt

# Oct 8 14:18:23 cimserverd[6420]: cimserver[5981] not running, attempting rest
art

# extendfs /dev/vg00/lvol6
vxfs extendfs: /dev/vg00/lvol6 is mounted, cannot extend.
James R. Ferguson
Acclaimed Contributor

Re: umout and extend file ststem

Hi:

If you don't have Online JFS (and you should!) then you can't use 'fsadm' to resize a filesystem without unmounting it.

If this is the case, you must unmount the filesystem in order to 'extendfs' it. For most 'vg00' filesystems it is easiest if you *boot into* single user-mode where only the root filesystem is mounted. Use the commands in '/sbin' or in your specific case, mount '/usr' if that isn't the filesystem you are attempting to extend.

It is cleanest, when done, to simply reboot again and resume normal production.

Regards!

...JRF...
John Guster
Trusted Contributor

Re: umout and extend file ststem

make sure there are no processes attatched to this volume after fuser -k. then umount /dev/vg00/lvol6, then extendfs.
Grayh
Trusted Contributor

Re: umout and extend file ststem

Hooo... no....

By mistake I have run fuser -k on lvol6 without going into single suer mode


and now I cannot ping to the servers... how ever I can login through MP>Co
Grayh
Trusted Contributor

Re: umout and extend file ststem

# fuesr -k /dev/vg00/lvol7
sh: fuesr: not found.
# fuser -k /dev/vg00/lvol7
/dev/vg00/lvol7: 0mKilled
# umount /dev/vg00/lvol7
umount: cannot unmount /usr : Device busy
umount: return error 1.
# fuser -k /dev/vg00/lvol7
/dev/vg00/lvol7: 0mKilled
# fuser -u /dev/vg00/lvol7
/dev/vg00/lvol7: 0m(root) 643mt(root) 845mt(root) 419mt(root)
618mt(root) 415mt(root) 1392mt(root) 842mt(root) 653mt(root)
843mt(root) 844mt(root) 846mt(root) 847mt(root) 848mt(root)
849mt(root) 850mt(root) 851mt(root) 852mt(root) 853mt(root)
854mt(root) 855mt(root) 856mt(root) 857mt(root) 10050mt(root)
1408mt(root) 9962o(root) 1706mt(root) 1788mt(root) 1876mt(root)
2037mt(root) 2123mt(root) 2159mt(root) 2211mt(root) 2253mt(root)

lvol7 is mounted on /usr

cat kill it still says busy
John Guster
Trusted Contributor

Re: umout and extend file ststem

bo pri
y
ISL>hpux-is
then extendfs
James R. Ferguson
Acclaimed Contributor

Re: umout and extend file ststem

Hi (again):

Since you are going deeper and deeper, do yourself a favor and REBOOT into SINGLE USER MODE as I suggested.

...JRF...
Grayh
Trusted Contributor

Re: umout and extend file ststem

yes Now I am into single user mode james...
Grayh
Trusted Contributor

Re: umout and extend file ststem

I am in single user mode

I was able to do this on lvol6 ie., /opt but I can't do it for /usr

# fuser -k /dev/vg00/lvol7
/dev/vg00/lvol7: 0mKilled
# umount /dev/vg00/lvol7
umount: cannot unmount /usr : Device busy
umount: return error 1.
#
Ivan Krastev
Honored Contributor

Re: umout and extend file ststem

Check with fuser (or lsof) what is preventing /usr from umount. have you tried:
#fuser -ku /usr

regards,
ivan
Grayh
Trusted Contributor

Re: umout and extend file ststem

# umount /usr
umount: cannot unmount /usr : Device busy
umount: return error 1.
# fuser -ku /usr
/usr:

# umount /usr
umount: cannot unmount /usr : Device busy
umount: return error 1.
James R. Ferguson
Acclaimed Contributor

Re: umout and extend file ststem

Hi (again);

> I am in single user mode ... I was able to do this on lvol6 ie., /opt but I can't do it for /usr

Then you aren't in single user mode or you mounted '/usr' after booting. You *don't* need to do this. You should interrupt the boot; interract with the IPL; and specify boot 'hpux -s'. If you do this, then only the root filesystem will be mounted. Then, use the commands in '/sbin' as I noted.

Regards!

...JRF...
John Guster
Trusted Contributor

Re: umout and extend file ststem

don't be panic, make sure one step a time, do again. Single user mood has nothing started yet.
Grayh
Trusted Contributor

Re: umout and extend file ststem

Shell> bo pri
'bo' not found
Exit status code: Invalid Parameter

Shell> boot pri
'boot' not found
Exit status code: Invalid Parameter

Shell> hpux -s
'hpux' not found
Exit status code: Invalid Parameter

Shell>
Grayh
Trusted Contributor

Re: umout and extend file ststem

what am I doing... hooo noooo... I am again stuck at the fundemantals

Shell> fs0:

fs0:\> hpux -s
'hpux' not found
Exit status code: Invalid Parameter

fs0:\> fs1:

fs1:\> hpux -s
'hpux' not found
Exit status code: Invalid Parameter

fs1:\> boot pri
'boot' not found
Exit status code: Invalid Parameter

fs1:\>
Ivan Krastev
Honored Contributor

Re: umout and extend file ststem

See exact procedure how to boot into single user mode from EFI - http://docs.hp.com/en/AB587-96012/ch04s04.html

regards,
ivan
Grayh
Trusted Contributor

Re: umout and extend file ststem

# who -r
. run-level 1 Oct 8 15:20 1 0 3
# fuser -k /usr
/usr:

# umount /usr
umount: cannot unmount /usr : Device busy
umount: return error 1.
#
James R. Ferguson
Acclaimed Contributor

Re: umout and extend file ststem

Hi (again):

I urge you to slow down and then sit down and read:

http://docs.hp.com/en/B2355-90950/index.html

Chapter-5 discusses booting and startup.

Chapter-6 discusses disk and filesystem management.

Regards!

...JRF...
Grayh
Trusted Contributor

Re: umout and extend file ststem