1748204 Members
3563 Online
108759 Solutions
New Discussion юеВ

/tmp & /opt extending

 
SOLVED
Go to solution
kunjuttan
Super Advisor

/tmp & /opt extending

Hi gurus,
I have 2 servers in which I need to extend some filesystems.
1)In one server two FS are in threshold level.

/dev/vg00/lvol6 2097152 1890928 204768 90% /tmp
/dev/vg00/lvol4 2097152 1803720 291200 86% /home

vgdisplay output is--
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 13
Open LV 13
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4356
VGDA 2
PE Size (Mbytes) 32
Total PE 4346
Alloc PE 2835
Free PE 1511
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

2)In other server one FS are in threshold level.

/dev/vg00/lvol4 7274496 6835232 435840 94% /opt

vgdisplay output is--
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 15
Open LV 15
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4465
VGDA 2
PE Size (Mbytes) 64
Total PE 4455
Alloc PE 3215
Free PE 1240
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

In both the cases free PE s are available. Please tell me how to proceed to extend these three FS.Is this required a reboot to single user mode?

OS - HPUX11.23
OnlineJFS not available.
RX series Servers-Itanium CPU

34 REPLIES 34
Abid Iqbal
Regular Advisor

Re: /tmp & /opt extending

Backup data on both the mounts.
Reboot system in single user mode.
Extend lv and extend filesystem using extendfs.
Raj D.
Honored Contributor

Re: /tmp & /opt extending

Kunjuttan,

Begin with this:

>>
/dev/vg00/lvol6 2097152 1890928 204768 90% /tmp
/dev/vg00/lvol4 2097152 1803720 291200 86% /home

> OnlineJFS not available.
- How do you know is not there.


For above two: (With online jfs )
1. # lvextend -L 4096 /dev/vg00/lvol4
2. # fsadm -b 4096m /home



- without online jfs:
1. # fuser -cu /home
2. # fuser -ku /home # will kill all /home processes.
3. # umount /home
4. # lvextend -L 4096 /dev/vg00/lvol4
5. # extendfs /dev/vg00/rlvol4
6. # mount /home # Verify.



Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: /tmp & /opt extending

Kunjuttan,

If you are trying /opt and /tmp without online jfs you can do from single user mode.

Online JFS can be cheked with:
# swlist -l product | grep -i jfs
# /sbin/vxlicrep

without online JFS :
- reboot the system
- Interupt boot sequence.
- from EFI shell:> boot vmunix -is
- activate vg00
- mount all but /opt
#(check /etc/fstab ) for lvol reference .
- extend /opt
# lvextend -L ...
# extendfs /dev/vg00/rlvol..

- mount and check. # bdf /opt
- same for /tmp .
- boot in multiuser mode. # init 3
or reboot .


Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
kunjuttan
Super Advisor

Re: /tmp & /opt extending

"If you are trying /opt and /tmp without online jfs you can do from single user mode."

So can i do it in multiusermode also,if onlinejfs is ther???
stephen peng
Valued Contributor

Re: /tmp & /opt extending

quite simple, like you want to extend /tmp to 4096m:
# lvextend -L 4096 /dev/vg00/lvol6
# fsadm -b 4096m /tmp
Fabio Ettore
Honored Contributor

Re: /tmp & /opt extending

Hi,
if you have OnlineJFS ("swlist -l product |grep -i online" to check) you can do that in multi-user mode by

lvextend -L /dev/vg00/lvol4
fsadm -F vxfs -b /home
(this is the sample just for /hoem on the first system)

Otherwise you have to get single-user mode and using extendfs with filesystems unmounted.

HTH.

Best regards,
Fabio
WISH? IMPROVEMENT!
Raj D.
Honored Contributor

Re: /tmp & /opt extending

Kunjuttan,
(again),

> So can i do it in multiusermode also,if onlinejfs is ther???

- Yes, this is pretty easy if you have Online JFS. Online JFS comes with MCOE Operating OE. by Default.

Check type of OE you have:
# swlist -l bundle | grep HPUX11


With online JFS, it is as simple as just typing two command:(lvextend & fsadm )

Ex: Suppose you want to add 2GB to those 2GB FS.
1. # Check the current size with lvdisplay
# lvdisplay /dev/vg00/lvol6 | grep "LV Size"
2. # Add 2048 to that value, to make 2GB extension.
- So total comes 4096. (This is for /tmp)
# lvextend -L 4096 /dev/vg00/lvol6
# fsadm -b 4096M /tmp
# bdf /tmp



3. Done.

Enjoy,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
kunjuttan
Super Advisor

Re: /tmp & /opt extending

i already mentioned that onlinejfs is not there....
Raj D.
Honored Contributor

Re: /tmp & /opt extending

> i already mentioned that onlinejfs is not there....

- So you have to spend some $$$, or to accept the pain , as it is not straight forward without Online JFS.
- The main thinghe file system needs to be unmounted to be able to use extendfs command.
- /tmp and /opt cannot be unmounted when the system is in multiuser mode,(run level 3) (#who -r) as the files will be in use by the system and by the services.

Hth,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "