Operating System - HP-UX
1753907 Members
8397 Online
108810 Solutions
New Discussion юеВ

Re: fuser and lvm problems...

 
SOLVED
Go to solution
inventsekar_1
Respected Contributor

fuser and lvm problems...

hi,
i tried to increase the /opt size, but sam told that device busy.
----------------
fuser -cu /opt
/opt: 11182mt(root) 11179mt(root) 11183mt(root)
----------------
fuser -ck /opt
/opt: 11182mt 11179mt
----------------
fuser -cu /opt
/opt: 11247mt(root) 11244mt(root) 11248mt(root)
----------------
ps -ef|grep 11247
root 11247 1 0 20:59:54 ? 0:04 /opt/wbem/sbin/cimserver
root 11248 11247 0 20:59:59 ? 0:00 /opt/wbem/sbin/cimservera
----------------
this is simply sand box kind of system for our testing only.... so not production system...
in this case what is this cimserver and its daemon and y i am not able to fuser -ck not killing that..

1.)what is the cimservera and his daemon do?..
shall i stop those and increse the lvm?if so.. how?
2.)or shall i go to single user mode and do lvm?..if so.. how?

Be Tomorrow, Today.
13 REPLIES 13
Pete Randall
Outstanding Contributor
Solution

Re: fuser and lvm problems...

wbem appears to be a java base "Web Based Enterprise Management " system. Since you say this is a sandbox system, I see no harm in stopping it. Check for a /sbin/init.d start/stop script for wbem:

find /sbin/init.d -exec grep -l 'wbem' {} \;

If you don't find a script to start/stop it, then you can try killing it.

Ultimately, you may want to reboot in single user mode to enlarge /opt. That is the absolutely fool proof way to get things unmounted.


Pete

Pete
Victor Fridyev
Honored Contributor

Re: fuser and lvm problems...

Hi,

If a reboot is not a big problem, I'd prefer single user mode.
In this case you can extend the logical volume (e.g. /dev/vg00/lvol5), which contains /opt:
#lvextend -L 4096 /dev/vg00/lvol5

reboot the machine to single user mode and in this mode run:
# extendfs -F vxfs /dev/vg00/rlvol5
# init 3

HTH
Entities are not to be multiplied beyond necessity - RTFM
Mark Greene_1
Honored Contributor

Re: fuser and lvm problems...

To increase the size of /opt, /var, /usr, /, or /stand you have to reboot into single user mode. Note that init 1 or shutdown 0 won't accomplish this.

Boot the box, interrupt the boot, enter BO PRI to boot from the primary device, and reply "Y" to the "interact with ISL" prompt. Then at the ISL prompt enter "hp-ux -is"

The system will boot in single user mode with only / and /stand mounted. You can then do the lvextend for the logical volume and extendfs for the /opt file system and then init 3 to fully boot the system.

mark
the future will be a lot like now, only later
inventsekar_1
Respected Contributor

Re: fuser and lvm problems...

fuser -cu /opt
/opt: 11951mt(root)
-----------------
ps -ef|grep 11951
root 11951 1 0 22:21:32 ? 0:00 /opt/wbem/sbin/cimserverd
-----------------
man cimserverd telling something i cant understand.(it told to kill)
-----------------
kill -9 11951 ....killing sucessfull..
-----------------
but it restarting automaticlly...
fuser -cu /opt
/opt: 11956mt(root)
-----------------
umount /opt
umount: cannot unmount /opt : Device busy
-----------------
Be Tomorrow, Today.
Florian Heigl (new acc)
Honored Contributor

Re: fuser and lvm problems...

How about stopping it using Your system startup scripts?

We're not running WBEM here at this site, so I can't tell You which script to look for, but it should be easy to locate.

try:

cd /sbin/init.d
grep -i wbem *

are there any results for that command?

if yes, use
/sbin/init.d/scriptname stop

and then re-run fuser -uc /opt

greetings, florian
yesterday I stood at the edge. Today I'm one step ahead.
Jim Mallett
Honored Contributor

Re: fuser and lvm problems...

Sekar,

cimserverd is restarting because it exists in your /etc/inittab file. If you don't want it to restart you can pound out that entry or change the "respawn" to "off". Then run: init q

When you are done, either undo your /etc/inittab changes.

Jim
Hindsight is 20/20
Joshua Scott
Honored Contributor

Re: fuser and lvm problems...

Really, the only filesystem in the root VG that you can unmount with the system at init 3 (fully up) is /home. root, /stand, /var, /usr, /tmp are used by the system. As far as /opt goes, Java is in /opt, and a lot of things are dependant on Java now.

BTW, you can use this to get a list of what processes are running in /opt:

# for pro in `fuser -cu /opt 2> /tmp/fuser.blah`;do ps -fp $pro|grep -v "TIME COMMAND";done

Josh
What are the chances...
Sanjay_6
Honored Contributor

Re: fuser and lvm problems...

Hi,

to stop cimserverd from restarting, disable the entry for this in /etc/inittab. Change the "respawn" to "off" and do "init q" to have the init program read the changes to /etc/inittab.

From the man pages of cmiserverd

/Quote/
By default, cimserverd will check on the status of cimserver every 30 seconds. This period can be adjusted by setting the value in the /etc/opt/wbem/cimserver_retry.conf file, and having cimserverd re-read this file. In order to have cimserverd re-read the file, the cimserverd process must be killed (kill -9 pid). cimserverd will respawn automatically as it has an entry in /etc/inittab.

/endQuote/

Hope this helps.

regds
inventsekar_1
Respected Contributor

Re: fuser and lvm problems...

i thought to go to single user mode and correct the problem.
i ran reboot command (with some option...i found the option here in itrc only..)and on the way to reboot,
it told transtion to run-level 0 is complete and it gave some thing and waited for some input from me..(i saw "20 sec" something...)
i did only "return".
something wrong. and it came back to the prompt without rebooting,,..
bdf shows only four(/var,/opt,/,/stand..i think)
then inside sam i am to increase the /opt size as i wish.
still i found only four mount points.
i gave reboot. it rebooted and everything fine now. my /opt size incresed.

now i like to know
1.)what is wrong while going to single user mode..?
2.)same way i need to increse /var and / size. SAM told device busy.
--------------
fuser -cu /var
/var: 20850o(root) 20860m(root)
ps -ef |grep 20850
root 20850 1 0 23:55:23 ? 0:00 /usr/sam/lbin/samd
ps -ef |grep 20860
root 20860 782 0 23:55:37 pts/ta 0:00 telnetd
root 20861 20860 0 23:55:37 pts/ta 0:00 -sh
--------------

3.) or can i download evaluation version of onlineJFS?..is it available?..links?..

thanks for ur support..
sekar
Be Tomorrow, Today.