Serviceguard

Re: SG, vxfs, file system reorganization help needed.

 
ConnieK
Regular Advisor

SG, vxfs, file system reorganization help needed.

Hello to all!

I need assistance on the correct procedure for reorganizing a file system on one VG. I am not very familiar with SG, but have been reading posts and manuals and need to make sure this procedure I am to do on Friday will work correctly.

The facts:
HPUX 11.31 on ia rx4640
A.11.18.00 SG Cluster CVM CFS SD installed.
OnLineJFS installed.
SG-Oracle-Tool.CM-ORACLE installed.

The tasking:
I need to reduce two lvols to obtain spare disk space, and then increase one lvol. These are all on one volume group.

My concerns are:
1. Am I forgetting something?
2. Should I bring the cluster node down first?
(Based upon what I've read, it's not necessary to)
3. Do I have to do this procedure on both nodes?

Procedure steps below:

------SNIP---------------
DBA backs up DB
DBA brings Oracle Down

SA:
1. Create new mountpoints

a. # mkdir /var/opt/apps/oracle/backup
b. # mkdir /var/opt/apps/oracle/archivelogs


2. Reduce /var/opt/apps/oracle/backup/myname/null (/dev/vg_05/lvol51) to 56GB.

a. # fsadm -F vxfs -b 58720256 -r /dev/vg_05/rlvol51
OR
# fsadm -F vxfs -b 58720256 /var/opt/apps/oracle/backup/myname/null

b. # lvreduce -l 57344 /dev/vg_05/lvol51


3. Reduce /var/opt/apps/oracle/achivelogs/myname/null (/dev/vg_05/lvol52) to 15GB.

a. # fsadm -F vxfs -b 15728640 -r /dev/vg_05/rlvol52
OR
# fsadm -f vxfs -b 15728640 /var/opt/apps/oracle/archivelogs/myname/null

b. # lvreduce -l 15360 /dev/vg_05/lvol52


4. Extend /var/opt/apps/oracle (/dev/vg_05/lvol50) to 90GB

a. # lvextend -l 92160 /dev/vg_05/lvol50
b. # fsadm -F vxfs -b 94371840 /var/opt/apps/oracle


5. vi /etc/fstab to accomodate new mountpints


6. Unmount the newly reduced filesystems
# umount /var/opt/apps/oracle/backup/myname/null
# umount /var/opt/apps/oracle/archivelogs/myname/null


7. Mount the newly-reduced lvols on the new mountpoints.

# mount -F vxfs /dev/vg_05/lvol51 /var/opt/apps/oracle/backup
# mount -F vxfs /dev/vg_05/lvol52 /var/opt/apps/oracle/archivelogs

DBA restores Oracle DB
DBA brings up Oracle & verifies.
---------SNIP-------------------------

Could someone out there give me an opinion or guidance please? I'm real nervous about this!

Thanks much!

Connie



Independent by nature
8 REPLIES 8
Aashique
Honored Contributor

Re: SG, vxfs, file system reorganization help needed.

Hi,
Firstly you want to reduce the lvol and increase one lvol but in the procedure after reduce you umount the filesystem why?

if you want to reduce and increase, no need to halt the cluster coz U have online jfs.

if you want to remove the mount point and create new mount point for this purpose need to halt the cluster must. then your procedure is ok.

Thanks & regards
Aashique
ConnieK
Regular Advisor

Re: SG, vxfs, file system reorganization help needed.

Aashique,

I need to reduce 2 lvols and increase 1 in the same VG. The customer is requesting a new mount point name for these.

So, are you saying I need to stop the cluster to umount and then mount to the new mount point name (dir name)?
Independent by nature
Aashique
Honored Contributor

Re: SG, vxfs, file system reorganization help needed.

Hi,
Is this Active/Passive cluster?
If yes and If you want to add the new mount point in the cluster system then you must halt the cluster to activate the new mount point.

Thanks
ConnieK
Regular Advisor

Re: SG, vxfs, file system reorganization help needed.

I know this is ignorant, but how can you tell what type (active/passive) the cluster is?
Independent by nature
Aashique
Honored Contributor

Re: SG, vxfs, file system reorganization help needed.

Hi,
send me the bdf output of both nodes and also cmviewcl output.

Thanks
Sajjad Sahir
Honored Contributor

Re: SG, vxfs, file system reorganization help needed.

Dear Konniek
I need u need some chnages in the volume group vg05 am i right?
Is it shared or not
can u give me vgdisplay /dev/vg05 then i can give u
complete procedure
Sajjad Sahir
Honored Contributor

Re: SG, vxfs, file system reorganization help needed.

Dear Koniek
I asked u u volume group is shared or not
vgdiplay will give u an output

eg: data1# vgdisplay /dev/vgrac3
--- Volume groups ---
VG Name /dev/vgrac3
VG Write Access read/write
VG Status available, shared, client
Max LV 255
Cur LV 25
Open LV 25
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 50000
VGDA 2
PE Size (Mbytes) 32
Total PE 12798
Alloc PE 1046
Free PE 11752
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

on shared volume group u must remove deactivate the volume group
then only u can make changes on that volume group
also
regarding cluster down
it is highly recommednded way is shutdown cluster.
but i need from u end u volume group is shared or not shared then only i can give u suggestion
thanks and regards
sajjad
ConnieK
Regular Advisor

Re: SG, vxfs, file system reorganization help needed.

closed
Independent by nature