Operating System - HP-UX
1832938 Members
2769 Online
110048 Solutions
New Discussion

Re: umount /users restriction - device busy

 
SOLVED
Go to solution
apple
Super Advisor

umount /users restriction - device busy

dear hpux gurus,
i want to increase some space for /users, but since we don't have jfs2 file system, we need to umount the /users.
it says device busy. can we force out all the users fuser -cuk /users? because i'm using root id, what is the impact to my session?
thanks a lot
14 REPLIES 14
Rasheed Tamton
Honored Contributor
Solution

Re: umount /users restriction - device busy

Hi,

bdf /users
fuser -u /dev/vg00/lvolname - of /users)
who

The above two cmds will give you the info who are using the systems.

If you are sure nobody is accessing then you can umount it and extend it. Otherwise, fuser -uk will kill all the users already connected. Of course, their session will get killed and the work they are doing will be lost.

Regards,
Rasheed Tamton.

Kapil Jha
Honored Contributor

Re: umount /users restriction - device busy

Hello ,
fuser -k is not good practice.
You can check the above command and better send a mail to every user in advance and at the time of activity u may send some wall messages then still if smone is connected u may go for fuser -k.
Well all point in saying this u should not have any application and DB running while doing anything nasty.

Generally nothing bad happens , but when ur luck is sucking....its hard ;)

BR,
Kapil
I am in this small bowl, I wane see the real world......
apple
Super Advisor

Re: umount /users restriction - device busy

# fuser -u /users
/users:

nobody sits on it, i'm wondering my session using root. will it impacted.
apple
Super Advisor

Re: umount /users restriction - device busy

# cd ~root
# pwd
/
my root id profile in root, can i say if i extend /users, my root id will not impacted (my current session is not terminated)?
thanks a lot
apple
Super Advisor

Re: umount /users restriction - device busy

interesting, i couldn't help to ask for more.
i'll send an email and ensure the database and application is down.
appreciate you can guide me how to send some wall messages? it's very interesting. i've seen this kind of message before. thanks a lot
Sajjad Sahir
Honored Contributor

Re: umount /users restriction - device busy

Dear Almond
u can use wall command to send messages to all users
if group is mentioned with wall command it will get all logged members in that group
Sajjad Sahir
Honored Contributor

Re: umount /users restriction - device busy

can we force out all the users fuser -cuk /users? because i'm using root id, what is the impact to my session?

u have to ensure all users are not doing any important tasks there, my advice is please don't do it immediately first u have to send messages or u have to do it in downtime.
apple
Super Advisor

Re: umount /users restriction - device busy

but how to configure the wall message? i want to send to all. would really appreciate you can give the command.
if i umount /users will my current session terminated? currently i'm login using root id. hope to hear from you. thanks a lot
Rasheed Tamton
Honored Contributor

Re: umount /users restriction - device busy

Do fuser on the filesystem (lvol) name. Sometimes, it is more better than using on the dir.

e.g.
fuser -u /dev/vg00/lvol8

-using wall

:>wall
type your message
Press Ctrl-d
:>

man wall

Kapil Jha
Honored Contributor

Re: umount /users restriction - device busy

>># fuser -u /users
>>/users:

what does who -u says.
If still nobody is logged in you may go ahead and do your activity.

You may want to check lsof /users as well,it will show all the files open from users filesystem.
BR,
Kapil
I am in this small bowl, I wane see the real world......
apple
Super Advisor

Re: umount /users restriction - device busy

how about my root session? do i need to go to single user mode or something?
Rasheed Tamton
Honored Contributor

Re: umount /users restriction - device busy

No need for single user
You can do it on multi mode.

Do a
cd /

If you are too much worried, open one more root session before you issue the command.
Jeeshan
Honored Contributor

Re: umount /users restriction - device busy

Hi

If you enter command fusr -u /users it will not tell you the total userr uses of it.

You need to fuser in /usrs directory with its total lvm path like

#fuser -u /dev/vgname/lvname

then you need to kill all users completely by issuing command

#fuser -ku /dev/vgname/lvnameofusersmountpoint
a warrior never quits
Sajjad Sahir
Honored Contributor

Re: umount /users restriction - device busy

dear almond
/usr/sbin/wall

System is going to the maintence mode-------------
---------
cntrlD

open one more terminal with any user name u can see the message immediately there. coming from here
ok
just check it