1848852 Members
8237 Online
104038 Solutions
New Discussion

Re: Help Lvextend

 
subodhbagade
Regular Advisor

Help Lvextend

hi,

Please help me for the following case.

I have HP UX Production server of version B 11.11.U and i have to extend LV /dev/lathprd/lvol13 to 45 GB which is mounted on /oracle/PRD and 96% full.
I don't have online JFS install.

These are more details:--


(a)#vgdisplay
pe size :8
free pe:10841 so
free size:86728 mb(confirmation)
vg having 84 Gb free space.

(b) LV Name /dev/lathprd/lvol13
LV Status available/syncd
LV Size (Mbytes) 523440
Current LE 65430
Allocated PE 65430
Used PV 3

Due to maximum value of LE--65535 , i can extend upto 840 mb, so i am trying for following steps .please advise me for any changes.


1)Creating new lv of 47 Gb and mount point is /oracle/PRD/sapdata5_new

2)#newfs -F vxfs -b 8192 -o largefiles /dev/lathprd/rlv

3)In /oracle/PRD thier is sapdata5(oracle/PRD/sapdata5) of 42 GB size. so i am trying to make it free after copy the data to mount point(oracle/PRD/sapdata5_new) of new FS.

cd /oracle/PRD and ls -l, it show sapdata5 size in byte is 8192.

After checking


#cp -R -p /oracle/PRD/sapdata5/* /oracle/PRD/sapdata5_new
3)Renaming /oracle/PRD/sapdata5 to /oracle/PRD/sapdata5_old

4)Renaming /oracle/PRD/sapdata5_new to /oracle/PRD/sapdata5 and making changes mount point in /etc/fstab.

5)After copying ,i will check all permission and all data , then /oracle/PRD/sapdata5_old will move to other path, so that /oracle/PRD get free of 42 GB.


6)But on /oracle/PRD thier are SAP application of version 6.. will it affect from oracle and SAP side?
7)Is this is right way to resolve this?

8) I tested the same case in testing server,it look fine.

9)But after cd /oraclr/PRD and long listing (ls -l) , it show the sapdata5 with size in byte 96. (I already created the FS with 8192 block size)

10)I think so this size should be 8192 so that it will not create any issue from SAP side.
11)last time during this activity, after cd /oracle/PRD and long listing it size in byte was 96 because of which SAP was down for long time.

12)can we changr PE size from 8 to 32 using vgmodify, i have HP version B 11.11.U.



13)IS there is any other solution.
_

kindly suggest me for this plan..

Regards,
4 REPLIES 4
Anshumali
Esteemed Contributor

Re: Help Lvextend

I don't think vgmodify is available in 11.11............At least below link says that,

http://h20000.www2.hp.com/bc/docs/support/SupportManual/c01920387/c01920387.pdf (BSC link updated by admin)

You can change PE size only during creating
new vg. The only way is:
1. backup your data.
2. remove vg
3. Create new vg with new PE size. You should create a new VG with -s 32.
4. restore
Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!
YAQUB_1
Respected Contributor

Re: Help Lvextend

Hi,

Here is Example who U can increase Ur lvol without OnlineJFS...

Increase the size of a logical volume from xxx MB to yyy MB:
# lvextend -L yyy /dev/vg01/lvol1 (yyy = size of the new logical volume size in MB)
# umount /mountdir
# extendfs -F vxfs /dev/vg01/rlvol1
# mount /dev/vg01/lvol1 /mountdir

BR/
Yaqub
Mridul Shrivastava
Honored Contributor

Re: Help Lvextend

One thing is for sure that you have to bring down your application (ie SAP ).

I would rather go for a different approach.

1) Take Tape backup using fbackup of the direcotries (Make sure you do this activity as a superuser).

2) Restore the backup using frecover on newfs and verify the contents after changing the ownership and permission. (Since you are restoring the backup as root so ownership will get changed).

I think this will be more safer way of going ahead. You could take ll -R o/p before and after task , to verify the restore.

fbackup and frecover format could be something like below:

Make sure that these commands are executed from the directory where backup/ restore to be done.

nohup fbackup -f /dev/rmt/0m -v -i ./ > 2>&1 &

nohup /usr/sbin/frecover -v -O -f /dev/rmt/0m -r > 2>&1 &

vgmodify is not available in 11.11. Its available from 11.23 onwards (11.23 patch is required, 11.31 it comes by default).
Time has a wonderful way of weeding out the trivial
Emil Velez
Honored Contributor

Re: Help Lvextend

vgmodify is and was available for 11.11 as a unsupported utility. This means do a massive backup. Read all documentation before using it.

vgmodify became a supported part of hpux at 11.23