Operating System - HP-UX
1753625 Members
5497 Online
108797 Solutions
New Discussion юеВ

Re: Can not increase Filesystem /usr

 
Schwerdtfeger
Occasional Contributor

Can not increase Filesystem /usr

Hi,

I tried to to increase Filesystem /usr - no success

Steps:

1. change to single-user-mode with 'init 1' -> ok

2. lvextend -L 1000 /dev/vg00/lvol7 -> ok

3. umount /dev/vg00/lvol7 -> ...Device busy

4. ps -ef | grep /usr -->

some processes from filesystem /usr are running:
/usr/.../monitor/RemoteMonitor
/usr/.../monitor/disk_em
/usr/.../monitor/dm_memory
...
...

Thanks for any help
Frank
7 REPLIES 7
A. Clay Stephenson
Acclaimed Contributor

Re: Can not increase Filesystem /usr

Init -s is not going to do it. You will need to reboot, interrupt the boot process, boot pri, interact with IPL? Y,hpux -is. That will bring you up in single-user mode with only / mounted as root. All the commands that you need will be in /sbin.

P.S. Get OnlineJFS and aviod all this nonsense and downtime.
If it ain't broke, I can fix that.
Helen French
Honored Contributor

Re: Can not increase Filesystem /usr

You need to reboot the system in to single user mode. Simple init 1 will not allow you to umount the file system.

Interrupt the boot process and at ISL prompt, give "hpux -is" to boot the system in single user mode. Then you can mount or umount the file systems.
Life is a promise, fulfill it!
Tom Danzig
Honored Contributor

Re: Can not increase Filesystem /usr

Boot into single user mode. init 1 usually won't get you to where you want to be.

Interupt boot, type bo pri, interact with IPL = Y, and type hpux -is

Paul Sperry
Honored Contributor

Re: Can not increase Filesystem /usr

or do this

add new lvm usr2
cd usr
find . ???print | cpio ???pcxvdmu /usr2
edit fstab comment out usr and change usr2 to usr
reboot
remove unused volumes.
Sachin Patel
Honored Contributor

Re: Can not increase Filesystem /usr

Hi Frank,

As other says boot in to single user mode first then

#lvextend -L 1000 /dev/vg00/lvol7
#extendfs /dev/vg00/rlvol7

#mount /usr

Don't foreget to user row device (rlvol7) in extendfs command.

Sachin

Is photography a hobby or another way to spend $
John Meissner
Esteemed Contributor

Re: Can not increase Filesystem /usr

perhaps a vgchange -an /dev/vg00 ?
I've never had to do this with vg00 but i've used this doing Service Gard filesystem work. This changes the vg status from available y/n (yes or no)
All paths lead to destiny
Sean_84
New Member

Re: Can not increase Filesystem /usr

This may not be the safest way to do it, but what I've done in the past to minimize downtime is the following:

> lvextend -L 1000 /dev/vg00/lvol7
> vi /sbin/ioinitrc

[just before exit $rval at the end add]
/sbin/extendfs /dev/vg00/lvol7
:wq

> sync; reboot

After the system reboots just go back into ioinitrc and remove or comment out the extendfs line.