1847342 Members
2131 Online
110264 Solutions
New Discussion

Increasing /opt

 
SOLVED
Go to solution
Neale Machin
Advisor

Increasing /opt

I wish to increase /opt on a 10:20 K370
when I do an fuser -c /opt
there are several processes which are using this partition. I have checked these processes and the only one I am uncertain about is :
/opt/dce/sbin/rpcd

Can I stop this without causing any problems?
If so is there an rc script ?

Just cos I look after Unix Boxes doesnt mean I wear sandals
18 REPLIES 18
Rita C Workman
Honored Contributor

Re: Increasing /opt

You don't just want to umount /opt.....better to schedule to take the system down and go into single user mode and than extend the file system.
When extending operating system file systems - it is far cleaner to do it single user.
Rita C Workman
Honored Contributor

Re: Increasing /opt

When extending operating system file systems - it is far cleaner to do it in single user mode.
You don't just want to umount /opt.....better to schedule to take the system down and go into single user mode and than extend the file system.
Kofi ARTHIABAH
Honored Contributor
Solution

Re: Increasing /opt

you should not have any problems if you shut rpcd down and restart it when completed.

HPUX 11.0
# /sbin/init.d/Rpcd stop
# fuser -ku /opt
# umount /opt
...continue as usual

# mount /opt
# /sbin/init.d/Rcpd start

HPUX 10.20
# /sbin/init.d/ncs stop (to kill rpcd daemons)


nothing wrong with me that a few lines of code cannot fix!
Rick Garland
Honored Contributor

Re: Increasing /opt

You will want to look at Ignite for doing the modifications. The process you are seeing works with NFS (among other things). You could stop but you just as well be in single-user mode.

Check out the ignite package. It is a no-cost package from HP.
Kofi ARTHIABAH
Honored Contributor

Re: Increasing /opt

you should not have any problems if you shut rpcd down and restart it when completed.

HPUX 11.0
# /sbin/init.d/Rpcd stop
# fuser -ku /opt
# umount /opt
...continue as usual

# mount /opt
# /sbin/init.d/Rcpd start

HPUX 10.20
# /sbin/init.d/ncs stop (to kill rpcd daemons)

However, if you can, you might want to go to single user mode before increasing /opt (although you really do not need to)
nothing wrong with me that a few lines of code cannot fix!
Kofi ARTHIABAH
Honored Contributor

Re: Increasing /opt

you should not have any problems if you shut rpcd down and restart it when completed.

HPUX 11.0
# /sbin/init.d/Rpcd stop
# fuser -ku /opt
# umount /opt
...continue as usual

# mount /opt
# /sbin/init.d/Rcpd start

HPUX 10.20
# /sbin/init.d/ncs stop (to kill rpcd daemons)

However, if you can, you might want to go to single user mode before increasing /opt (although you really do not need to)
nothing wrong with me that a few lines of code cannot fix!
Alex Glennie
Honored Contributor

Re: Increasing /opt

You should be OK unless your system is part of a DCE Cell in which case it would be wise to run /opt/dce/bin/dce_shutdown or /opt/dce/bin/dce_config and option 3 Shutdown first
Alex Glennie
Honored Contributor

Re: Increasing /opt

You should be OK unless the system is part of a DCE cell in which case it would be wise to run /opt/dce/bin/dce_config : option 3 : shutdown, otherwise I think rpcd is started by /sbin/init.d/ncs
Alex Glennie
Honored Contributor

Re: Increasing /opt

You should be OK unless the system is part of a DCE cell in which case it would be wise to run /opt/dce/bin/dce_config : option 3 : shutdown, otherwise I think rpcd is started by /sbin/init.d/ncs
Kofi ARTHIABAH
Honored Contributor

Re: Increasing /opt

you should not have any problems if you shut rpcd (with /sbin/init.d/ncs) down and restart it when completed.

HPUX 10.20
# /sbin/init.d/ncs stop
# fuser -ku /opt
# umount /opt
...continue as usual

# mount /opt
# /sbin/init.d/ncs start


However, if you can, you might want to go to single user mode before increasing /opt (although you really do not need to)
nothing wrong with me that a few lines of code cannot fix!
Kofi ARTHIABAH
Honored Contributor

Re: Increasing /opt

you should not have any problems if you shut rpcd (with /sbin/init.d/ncs) down and restart it when completed.

HPUX 10.20
# /sbin/init.d/ncs stop
# fuser -ku /opt
# umount /opt
...continue as usual

# mount /opt
# /sbin/init.d/ncs start


However, if you can, you might want to go to single user mode before increasing /opt (although you really do not need to)
nothing wrong with me that a few lines of code cannot fix!
Cheryl Griffin
Honored Contributor

Re: Increasing /opt

Check for either:
/sbin/init.d/ncs stop & start /sbin/init.d/dce stop & start

"Downtime is a Crime."
Cheryl Griffin
Honored Contributor

Re: Increasing /opt

Check for either:
/sbin/init.d/ncs stop & start /sbin/init.d/dce stop & start

"Downtime is a Crime."
James R. Ferguson
Acclaimed Contributor

Re: Increasing /opt

Mark:

If you have online JFS you can do this "on-the-fly". The online component is well worth the cost of license.

...JRF...
Antoanetta Naghiu
Esteemed Contributor

Re: Increasing /opt

/opt is not a "critical" fs. As it was already said, with On Line JFS you can do it on fly, don't worry about any processes.
If you do not have it, either kill or stop of the process will work. (stop is more recommended but kill will not catastrophically damage). No need to go in single user mode.
Ramesh Donti
Frequent Advisor

Re: Increasing /opt

Hi,
If I am right, erpcd daemons will be killed by /sbin/init.d/dce shutdown script.
/sbin/init.d/ncs will not shutdown erpcd daemons. You can look at the above shutdown scripts, they are self-explanatory.

To add stregth to couple of guys, you can very well do fuser -k on /opt and go ahead with unmounting filesystem.

If you have Online JFS, just forget about above things. You can do LV and filesystem extension even when the filesystem is mounted and being used.
Always Keep Smiling
Neale Machin
Advisor

Re: Increasing /opt

Many thanks for the responses.
I would have loved to have had the opportunity to have taken the box down into single user mode but its in another country.
Online JFS is a great bit of software but we dont have it on this node(Unfortunately)
Sorry for taking so long to apply points but had difficulty logging onto web
Just cos I look after Unix Boxes doesnt mean I wear sandals
Ron Bogard
Occasional Contributor

Re: Increasing /opt

It may be a little late regarding this, but I have been doing this for years. When it comes to increasing O/S filesystems, and doing it remotely for several, rather than doing it in Single User locally, do this. lvextend can be performed on a volume regardless of whether the filesystem is mounted or not.

lvextend -L number_in_MB /dev/vg00/lvol{vol_number}
Edit your /sbin/ioinitrc file
Toward the end, just before the exit, add these lines:
PATH=$PATH:/sbin
export PATH
extendfs /dev/vg00/rlvol{vol_number}

Then reboot the workstation/server. This will increase the filesystem size to the volume size just before it goes into multiuser. You cannot do this to /stand, though, because it requires contiguous disk space.

Make sure you remove the entries added to /sbin/ioinitrc after it comes back up, just to ensure cleanup and sanity. extendfs cannot extend the filesystem past the volume size, so if you forget to take it out and reboot again, don't worry, just take it out when it comes back up to multiuser.
Unix is Unix...NOT