Operating System - HP-UX
1827858 Members
1589 Online
109969 Solutions
New Discussion

How to add disks to vg and need to extend the filesystem?

 
SOLVED
Go to solution
Sudhaadm
Regular Advisor

Re: How to add disks to vg and need to extend the filesystem?

Hi Joseph/all,

How can add again 10GB space in /dev/vg04_chardata/lv_data07

and provide the extent calculation deatils,

Thanx in advance.
Joseph Loo
Honored Contributor

Re: How to add disks to vg and need to extend the filesystem?

hi,

to add another 10GB to /dev/vg04_chardata/lv_data07:

# lvextend -l 15442 /dev/vg04_chardata/lv_data07
where 15442 is derived by adding 1250 extents to current. (1250 is 1250x8MB based on 8MB per extent)

# fsadm -F vxfs -b 126500864 /data/data07
where 126500864kb = 15442x1024x8


regards.
what you do not see does not mean you should not believe
Devender Khatana
Honored Contributor

Re: How to add disks to vg and need to extend the filesystem?

Hi,

You have allready added both the disks to your vg this has allready added around 70GB space to your VG. Even if you reduced it from one disk it still should be having 35GB free space in this VG.

Perhaps you need to say add 10GB to file system.

You can do this.
Calculate the no. of PEs in 10GB by which you are going to grow your file system. Here as the PE size is 8MB, the same shall be [(10*1024)/4]=1280
So the total PE's to be allocated to the LVOL after extending should be 1280+12942=14222.

Extend the LVOL to this size first using

#lvextend -l 14222 /dev/vg04_chardata/lv_data07

Now unmount the file system and extend it with extendfs

#umount /dev/vg04_chardata/lv_data07

#extendfs /dev/vg04_chardata/lv_data07

#mount /dev/vg04_chardata/lv_data07 /data/data07

#bdf

To confirm the new size.

HTH,
Devender
Impossible itself mentions "I m possible"
Raj D.
Honored Contributor

Re: How to add disks to vg and need to extend the filesystem?

Hi Sudhaadm ,

1. First check if you have Online JFS installed. Then the task is pretty easy. You dont need to bring the application down , and unmount the filesystem.

Here , you can check:

# swlist -l product | grep -i online

(Online features of the VxFS File System , must be there .)

2. Here it is how you can extend the FS.

Check if you have free PE on that vg.

# vgdisplay -v /dev/vg00 | egrep -i '(phy|free)'

3. If yes , calculate the space requirement.

To get total size in MB: = ( Current FS size in MB + new size you want to add)

# lvextend -L (TotalSize in MB) /dev/vg_name/lvoln

# fsadm -F vxfs -b (Totalsize in MB*1024) /filesystem_name

Hope this will help you.


Cheers,
Raj.


" If u think u can , If u think u cannot , - You are always Right . "
Sudhaadm
Regular Advisor

Re: How to add disks to vg and need to extend the filesystem?

##Thanks for the help and great support.
Have a good day for all.