1833700 Members
3472 Online
110062 Solutions
New Discussion

/usr full

 
SOLVED
Go to solution
Waqar Razi
Regular Advisor

/usr full

/usr on K-class server running hpux version 10.20 is full. This file system resides on /dev/vg00/lvol8 and its size is approximately 800 mb. The vg00 has two physical volumes included c2t6d0 and c12t6d0. Here is the output of different commands:
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 9
Open LV 9
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 2200
VGDA 4
PE Size (Mbytes) 4
Total PE 4338
Alloc PE 3060
Free PE 1278
Total PVG 0
LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 800
Current LE 200
Allocated PE 400
Used PV 2
Physical volumes ---
PV Name /dev/dsk/c2t6d0
PV Status available
Total PE 2169
Free PE 639
Autoswitch On

PV Name /dev/dsk/c12t6d0
PV Status available
Total PE 2169
Free PE 639
Autoswitch On

And output of lvdisplay is
lvdisplay /dev/vg00/lvol8
--- Logical volumes ---
LV Name /dev/vg00/lvol8
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 800
Current LE 200
Allocated PE 400
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default

Can some one guide me the procedure to increase the /usr file system?





12 REPLIES 12
Waqar Razi
Regular Advisor

Re: /usr full

The output of the commands get messed up, here is the better output:

VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 9
Open LV 9
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 2200
VGDA 4
PE Size (Mbytes) 4
Total PE 4338
Alloc PE 3060
Free PE 1278
Total PVG 0

----------------------------------
LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 800
Current LE 200
Allocated PE 400
Used PV 2

----------------------------------

--- Physical volumes ---
PV Name /dev/dsk/c2t6d0
PV Status available
Total PE 2169
Free PE 639
Autoswitch On

PV Name /dev/dsk/c12t6d0
PV Status available
Total PE 2169
Free PE 639
Autoswitch On


----------------------------------

lvdisplay /dev/vg00/lvol8
--- Logical volumes ---
LV Name /dev/vg00/lvol8
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 800
Current LE 200
Allocated PE 400
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
Ivan Krastev
Honored Contributor
Solution

Re: /usr full

You have ~5GB free (1278 x 4MB), but since this volume is mirrored you can use half size ~2,5GB for that.

If you have OnlineJFS installed, you can do it online, otherwise you should umount the file system.

regards,
ivan
Waqar Razi
Regular Advisor

Re: /usr full

Do I need to do lvextend for just /dev/vg00/lvol8 or its mirror also?
SKR_1
Trusted Contributor

Re: /usr full

Do you have online JFS? If yes then only two commands need to run

lvextend -L 1024 /dev/vg00/lvol8
fsadm -F vxfs 1024M /usr


If you dont have online JFS,then you need to go in single user mode, and there you need to run below commands.

lvextend -L 1024 /dev/vg00/lvol8
extendfs -F vxfs -b 1024M /usr


Thanks

SKR
James R. Ferguson
Acclaimed Contributor

Re: /usr full

Hi:

> Do I need to do lvextend for just /dev/vg00/lvol8 or its mirror also?

You only need to 'lvextend' '/dev/vg00/lvol8'. The mirror copies will be automatically handled.

By the way, if you don't have OnlineJFS, you will need to boot into single-user mode where '/usr' isn't mounted. Then, use the commands in '/sbin' to perform your work. When done, reboot to resume normal processing. This is the easiest way in the absence of OnlineJFS.

Regards!

...JRF...
Waqar Razi
Regular Advisor

Re: /usr full

How can you go to single user mode.

I use the following approach.

Shutdown the system

Then from ISL prompt, issue hpux -is

James R. Ferguson
Acclaimed Contributor

Re: /usr full

Hi (again):

> How can you go to single user mode. I use the following approach. Shutdown the system. Then from ISL prompt, issue hpux -is

Yes, use 'shutdown -ry 0' and interrupt the boot during the 10-second prompt.

Regards!

...JRF...
Akif_1
Super Advisor

Re: /usr full

Hi Razi,

You can also use #init -S command which will divert you to SINGLE user mode .......check with #who -r command in which init level you are before and after hitting this command ....


All the best :)
T(ogether) E(very one) A(chive) M(ore)
Pete Randall
Outstanding Contributor

Re: /usr full

Running "init -S" is NOT going to get you to true single user mode - none of your filesystems get unmounted, processes are not completely terminated, all the things you're trying to accomplish by going to single user mode just don't happen. The only way to truly get to single user mode is to reboot and interrupt the boot sequence.


Pete

Pete
Deepak Kr
Respected Contributor

Re: /usr full

>>>Shutdown the system

>>>Then from ISL prompt, issue hpux -is

Yes, this is the command you can use.

Intruppt the booting of system by pressing any key as it waits till 10 seconds...

"There is always some scope for improvement"
Mark McDonald_2
Trusted Contributor

Re: /usr full

You can edit the /etc/inittab so the first line reads:

init:s:initdefault:

This saves waiting for the 10 second window on the slow rebooting K class.
Carlos Corredor
Advisor

Re: /usr full

Hi.

To enter to the way ISL after the command to execute shutdown-ry 0
to stop the boot and you appears on screen in following message:

Processor is booting from first available device.

To discontinue, press any key within 10 seconds.

After pressing the key you are going to interact with the BCH.

There you execute the following command:

Bo pri

You the following message appears:

Interact with IPL (Y, N, or Cancel)?>Y

Of there you execute the command
ISL> hpux-is (to enter to single user mode)

execute:

lvextend-L 1024/dev/vg00/lvol8
extendfs-F vxfs/dev/vg00/rlvol8
mount/usr
bdf (in order that you corroborate)
shutdown-ry 0
I list!

Regards.