Operating System - HP-UX
1834796 Members
2651 Online
110070 Solutions
New Discussion

Re: Increasing the size of several logical volume using online JFS within a ServiceGuard cluster

 
Andrew Kaplan
Super Advisor

Increasing the size of several logical volume using online JFS within a ServiceGuard cluster

Hi there --

I need to increase the size of several logical volumes within a serviceguard cluster. The system has online jfs.

I have the Veritas Enterprise Administrator utility available via SAM. Is that the utility that I should use to complete this task, or is there a better alternative? Thanks.
A Journey In The Quest Of Knowledge
4 REPLIES 4
Asif Sharif
Honored Contributor

Re: Increasing the size of several logical volume using online JFS within a ServiceGuard cluster

See the below thread,

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1238570

Regards,
Asif Sharif
Regards,
Asif Sharif
Avinash20
Honored Contributor

Re: Increasing the size of several logical volume using online JFS within a ServiceGuard cluster

1. Extend the logical volume:

lvextend -L 256 /dev/vg07/lvolx

256 MB is now the Total size of the LV

2. Extend the filesystem:

# fsadm -b 262144 /FS

The size is in blocks, so multiply the logical volume size by 1024
(256 x 1024 = 262144)

>> If the VG is only activated in only One node (Active - Passive Cluster) the above two steps are enough.
NOTE: If you are adding extending the VG (adding disk to a VG) then you have to perform the vgexport and vgimport operations.

"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Rasheed Tamton
Honored Contributor

Re: Increasing the size of several logical volume using online JFS within a ServiceGuard cluster

Hi,

To me the better alternative is always the commands. Alos you have to check whether there are mirrors on the LVs.

First check the current size of the LV:

lvdisplay /dev/vg00/lvol1|grep "LV Size"
(chnage the LV name with your LV - you will get the current size in Mbytes)

extend to the new size:
lvextend -L 2048 /dev/vg00/lvol1
(here you are saying that you want to increase the lvol1 to 2048MB which would be the new size. You have to always have a backup prior to doing this, if you are not comfortable with the tasks).

fsadm -b 2048m /dirname (mountpoint of the LV)
You are extending the file system to 2048MB.

Make sure that the size will be always greater than the current size.

Regards.
Sajjad Sahir
Honored Contributor

Re: Increasing the size of several logical volume using online JFS within a ServiceGuard cluster


Dear Andre
Increasing the size of several logical volume using online JFS within a ServiceGuard cluster?

u don't worry about clustering env there.
but if u are doing any thing on clustered
volume group u have to deactivate the clustered volume group first. but if u are doing other volume groups u can use lvextend and fsadm command to extend logical volume and file system, but in case of clustered volume group u have to follow up some other additional steps. ok

thanks and regards

Sajjad