Operating System - HP-UX
1830234 Members
2451 Online
109999 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.
Arunvijai_4
Honored Contributor

Re: fuser and lvm problems...

Hello,

what is wrong while going to single user mode..?

You need to go to Console to get in GSP or MP prompt. From there, you can interrupt the boot sequence.

GSP>hpux -iS

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Arunvijai_4
Honored Contributor

Re: fuser and lvm problems...

OnlineJFS is not free product, you have to pay for it.

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=BASEVXFS
[jfs 3.5 for hp-ux 11.11]

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B3929CA
[OnlineJFS for HP-UX 11.11]

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Devender Khatana
Honored Contributor

Re: fuser and lvm problems...

Hi,

Online JFS is not available for evaluation and this is the only way of extending root online. The alternate would be to restore using ignite or remove/move unwanted files from root file system.

/var can very well be changed in the same manner as you did for /opt.

But for booting into single user mode you should be on the console. The message will be to press any key within 10 sec. After doing that you will be dropped to PDC menu. Here give
PDC >bo pri

It will prompt for interacting with ISL. Select Yes
At ISL prompt give
ISL>hpux -is

After a while you will find your self at # prompt and you can increase /var from here.

HTH,
Devender
Impossible itself mentions "I m possible"
Florian Heigl (new acc)
Honored Contributor

Re: fuser and lvm problems...

He only wanted to increase /opt, not the root filesystem.
please don't get him all confused here.

and I suppose he has OnlineJFS installed, judgeing from the fact he used sam and ended up with an increased /opt.

:)
yesterday I stood at the edge. Today I'm one step ahead.