Operating System - HP-UX
1834930 Members
2653 Online
110071 Solutions
New Discussion

Re: Additional Space required

 
Asif Chaudhary
Advisor

Additional Space required

Hi all,

We have a 2 node cluster and need to extend our file system.We have LUNs assigned from an XP1024.

Please guide, what step we have to follow to do the activity. Attached is the excel sheet to add additional Space.

Thanks in advance.

Regards,

AFA!
4 REPLIES 4
Mridul Shrivastava
Honored Contributor

Re: Additional Space required

If you are not going to add any new LUNs then this ca be done without anychanges on any node. (since this will not add any new device files to existing vg).
If you are adding luns or adding lvs then do this activity on one node then update the information on all other nodes using vgimport and vgexport commands.
Pls find below the example of the same:
After u created all the Lvs and extended them successfully, activate vg on that node then execute these commands:
#vgexport -p -v -s -m /tmp/.map

ftp this map file to other nodes and execute the following command:
# vgimport -p -v -s -m /tmp/.map

Pls feel free for any queries.
Time has a wonderful way of weeding out the trivial
Ninad_1
Honored Contributor

Re: Additional Space required

I would like to make a suggestion - why not create seperate filesystems where you wish to increase the space which will result the volume to be more than 200GB.
Is there any dependancy that you should have only limited number of volumes - which happen to be sooo huge in size - as you have mentioned 100 GB and above as well in the additional space [ Hope its not a typo for MB ]
I am totally not able to understand your design. You have seperate volume groups for each volume it seems . anyway
Now about increasing filesystem sizes -
This will also depend on whether you are having any remote replication - Continuous Access software replicating the volumes at primary site to DR site ?
If not then its much easier. Simply add disks to the respective VGs
pvcreate /dev/rdsk/cxtydz [ for all the disks - LUNs you need for allocating the additional space ]
vgextend /dev/vgunn /dev/dsk/cxtydz ...
for each VG depending on how many disks need to be added as per space required to be extended.
then
If you are having Online JFS you can extend the filesystems online
lvextend -L lv_size_inMB /dev/vgunn
fsadm -F fs_type -b size_in_bytes /dev/vgunn/lvunn

If you dont have Online JFS - then you need to unmount the filesystems - so you may need to stop the package first.
then
lvextend , unmount , extendfs , mount , start package

Regards,
Ninad
Enrico P.
Honored Contributor

Re: Additional Space required

Hi,
the step are the follow:

In the server that have active the VG, for each VG (Es. vgXX):

-pvcreate /dev/rdsk/cxtxdx (put new disk under control of LVM)
-vgextend /dev/vgXX /dev/dsk/cxtxdx (add new disk to vg)
-lvextend -L /dev/vgXX/lvolXX
(extend the lvol)
-fsadm -Fvxfs -b m /mount_point
(extend filesystem)
-vgexport -v -p -s -m vgXX.map /dev/vgXX (export the vg with preview option an create the map file)
-rcp -p vgXX.map other_node:$PWD (copy the map file on the other node in the same dir)

On the other node:

- ll /dev/vgXX/group (save the 0xAA0000 minor number)
-vgexport vgXX
-mkdir /dev/vgXX
-mknod /dev/vgXX/group c 64 0xAA0000
-vgimport -v -s -m vgXX.map /dev/vgXX

Enrico
Ninad_1
Honored Contributor

Re: Additional Space required

Sorry - forgot to say that you need to copy the maps and device list files for the VGs to the other nodes.
vgexport -pv -m mapfile -f outfile /dev/vgunn

Copy the files to the other node to replace the files used as mapfile and infile to vgimport on the 2nd node.

If you are using VGs in shared mode then probably you need to halt the package, extend the filesystem on primary node, copy the mapfile to 2nd node and import VGs.

Regards,
Ninad