Operating System - HP-UX
1834178 Members
2386 Online
110064 Solutions
New Discussion

Adding space in /data file sysem in HP-UX

 
SOLVED
Go to solution
GSB_3
Frequent Advisor

Adding space in /data file sysem in HP-UX

Hi,

I want to add 20 GB space in one of the file systems (/data) mounted in logical volume in my HP-UX Server. Can anyone pls tell me the procedure for the same in JFS as well as VxFS ?

Thanks in advance.
Gabri
7 REPLIES 7
Rasheed Tamton
Honored Contributor
Solution

Re: Adding space in /data file sysem in HP-UX

Hi,

#vgdisplay vgname |grep -E 'Free PE|PE Size'
PE Size (Mbytes) 4
Free PE 1146

The above command says you have 4464 MB (4*1146)left on the VG.

# bdf|grep /data
You can see the lvname on the first column.

#lvdisplay /dev/vgname/lvolname
(look for the LV Size of the lv)

#lvextend -L 5000 /dev/vgname/lvolname
(extend the lv to new BIG size - this case to 5000 MB - here you are increasing the size of lv)

fsadm -F vxfs -b "sizeM" /mountpoint (if you have online jfs installed - you can extend the mountpoint without unmounting it)


#fsadm -F vxfs -b 5000m /data (extending the mountpoint to 5000MB)
or
extendfs -F vxfs /dev/vgname/lvolname (if there is no online jfs installed - in this case you have to first unmount the /data before you issue the extendfs command)

man fsadm_vxfs

Regards,
Rasheed Tamton.
GSB_3
Frequent Advisor

Re: Adding space in /data file sysem in HP-UX

Hi Rasheed,

thanks for the reply. Is vxfs the only file system we have in hp-ux 11 or any other file system we have ? You have mentioned only vxfs file systems. Please tell me how can i check if online jfs is installed or not ?

GSB
Rasheed Tamton
Honored Contributor

Re: Adding space in /data file sysem in HP-UX

Hi,

#swlist -l product|grep -i online
OnlineJFS B.11.11 Online features of the VxFS File System

The above shows you have Online VxFs installed

fstyp command on the lvol-device file will give you the type of the file system.

#fstyp /dev/vg00/lvol1 (/stand)
hfs

#fstyp /dev/vg00/lvol5
vxfs


What OS version you are using there. If you are using VxVM instead of LVM, then you have to use the Veritas commands to do the Volume Manager administration.
GSB_3
Frequent Advisor

Re: Adding space in /data file sysem in HP-UX

Hi Rasheed,

Thanks for the reply.I am using HP-UX 11i with LVM.

Please advice.

Thanks
GSB
Rasheed Tamton
Honored Contributor

Re: Adding space in /data file sysem in HP-UX

Hi Gabri,

So refer my above posts - those are for the LVM stuff. Check:
- for enough free space in the VG
- use fstyp on lvol to see whether it is hfs or vxfs
- Online jfs installed or not (if installed use fsadm after lvextend with the new size)
or use extendfs

Regards,
Rasheed Tamton.

Nguyen Anh Tien
Honored Contributor

Re: Adding space in /data file sysem in HP-UX

This is really ease if you use LVM
Steps are:

1, Check Online JFS software
#swlist -l product|grep -i online
2, If Online JFS is available, You can do it online
#lvextend -L ???M -n /dev/vgxx/lvname

???-> size you want to be
lvname: lv name mounted to /data

3,extend file system
#extendfs -b ???M /data

HTH
HP is simple
jkumar
Advisor

Re: Adding space in /data file sysem in HP-UX

Hello Gabri,

Step 1) Check for Onlinejfs

# swlist -l product OnlineJFS
# Initializing...
# Contacting target
OnlineJFS B.11.11 Online features of the VxFS File System
# If its not there follow the below steps
# ( eg: Already existing /data is 10 gb )
# lvextend -L 10+20gb /dev/vg00/data
# extendfs /dev/vg00/data
If online JFS is installed
# lvextend -L 10+20 gb /dev/vg00/data
# fsadm -F vxfs -b 10+20M /data
# bdf to check
If you want the correct GB&MB (10+20) then give the vgdisplay and lvdisplays output I will send you excat lvsize which you need to increase.

--cheers