β02-11-2015 10:17 PM
Hi,
I have a case as below,
Please extend below file systems from 30G to 50G on server island.
/dev/vx/dsk/VRP_PRD_ora_data_dg/sapdata2 30G 15G 14G 52% /oracle/VRP/sapdata2
/dev/vx/dsk/VRP_PRD_ora_data_dg/sapdata4 30G 15G 14G 51% /oracle/VRP/sapdata4
/dev/vx/dsk/VRP_PRD_ora_data_dg/sapdata1 30G 14G 15G 49% /oracle/VRP/sapdata1
/dev/vx/dsk/VRP_PRD_ora_data_dg/sapdata3 30G 27G 2.7G 91% /oracle/VRP/sapdata3
root@myers# vxdisk -o alldgs -e list
DEVICE TYPE DISK GROUP STATUS OS_NATIVE_NAME ATTR
emcpower22s2 auto VRP_PRD_sapcent_dg01 VRP_PRD_sapcent_dg online emcpower22c -
emcpower23s2 auto emcpower23s2 VRP_PRD_ora_data_dg online emcpower23c -
emcpower24s2 auto emcpower24s2 VRP_PRD_ora_data_dg online emcpower24c -
emcpower25s2 auto emcpower25s2 VRP_PRD_ora_data_dg online emcpower25c -
emcpower26s2 auto emcpower26s2 VRP_PRD_ora_data_dg online emcpower26c -
emcpower27s2 auto emcpower27s2 VRP_PRD_ora_bin_dg online emcpower27c -
emcpower28s2 auto VRP_PRD_ora_arch_dg01 VRP_PRD_ora_arch_dg online emcpower28c -
======================================================================================
These are the 4 new luns of 30 GB assigned by Storage.
57. emcpower29e <EMC-SYMMETRIX-5874 cyl 29158 alt 2 hd 15 sec 128>
/pseudo/emcp@29
58. emcpower30a <EMC-SYMMETRIX-5874 cyl 29158 alt 2 hd 15 sec 128>
/pseudo/emcp@30
59. emcpower33a <EMC-SYMMETRIX-5874 cyl 29158 alt 2 hd 15 sec 128>
/pseudo/emcp@33
60. emcpower34b <EMC-SYMMETRIX-5874 cyl 29158 alt 2 hd 15 sec 128>
/pseudo/emcp@34
====================================================================
When I tried to label them they are giving errors as,
57. emcpower29e <EMC-SYMMETRIX-5874 cyl 29158 alt 2 hd 15 sec 128>
/pseudo/emcp@29
58. emcpower30a <EMC-SYMMETRIX-5874 cyl 29158 alt 2 hd 15 sec 128>
/pseudo/emcp@30
59. emcpower33a <EMC-SYMMETRIX-5874 cyl 29158 alt 2 hd 15 sec 128>
/pseudo/emcp@33
60. emcpower34b <EMC-SYMMETRIX-5874 cyl 29158 alt 2 hd 15 sec 128>
/pseudo/emcp@34
Specify disk (enter its number): 57
selecting emcpower29e
[disk formatted]
Disk not labeled. Label it now? y
Warning: error writing VTOC.
Warning: no backup labels
Write label failed
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
===========================================================================
There are 4 luns emcpower29e,emcpower30a,emcpower33a,emcpower34b which is require to initilize it and add them to the VRP_PRD_ora_data_dg diskgroup to increase filesystem to 20 GB more.
Shall I have to proceed with the disk initilization in vxvm without labeling it or Please help me to proceed step by step activities required for this.
Thanks,
Solved! Go to Solution.
β02-23-2015 04:08 PM
root@myers# vxassist -g VRP_PRD_ora_data_dg maxsize emcpower29s2.
Hi,
Maximum volume size: 55916544 (27303Mb)
Each lun is of 27 GB, but I have to extend 20 GB to each filesystem
I am unable to calculate this what size I can put with he vxresize command?
β02-23-2015 04:47 PM
I have tried to calculate the size of 20 GB in block as 41984000, and then tried however, no luck.
Could you please let me know what is the issue now?
root@myers# /etc/vx/bin/vxresize -g VRP_PRD_ora_data_dg sapdata1 +41984000 emcpower29s2
VxVM vxassist ERROR V-5-1-436 Cannot allocate space to grow volume to 104898560 blocks
VxVM vxresize ERROR V-5-1-4703 Problem running vxassist command for volume sapdata1, in diskgroup VRP_PRD_ora_data_dg
β02-24-2015 02:22 AM
sapdata1 is a striped volume across 2 disks :
v sapdata1 - ENABLED ACTIVE 62914560 SELECT sapdata1-01 fsgen
pl sapdata1-01 sapdata1 ENABLED ACTIVE 62914560 STRIPE 2/128 RW
sd emcpower23s2-01 sapdata1-01 emcpower23s2 0 31457280 0/0 emcpower23 ENA
sd emcpower24s2-01 sapdata1-01 emcpower24s2 0 31457280 1/0 emcpower24 ENA
(same disks used for sapdata3)
As per my previous post, a resize needs to maintain the same volume layout.
You will need to add a minimum of 2 disks to the diskgroup in order to grow this volume (and other volumes that are striped as well).
β02-24-2015 03:25 PM
root@myers# vxdisk list
DEVICE TYPE DISK GROUP STATUS
emcpower22s2 auto:cdsdisk VRP_PRD_sapcent_dg01 VRP_PRD_sapcent_dg online
emcpower23s2 auto:cdsdisk emcpower23s2 VRP_PRD_ora_data_dg online
emcpower24s2 auto:cdsdisk emcpower24s2 VRP_PRD_ora_data_dg online
emcpower25s2 auto:cdsdisk emcpower25s2 VRP_PRD_ora_data_dg online
emcpower26s2 auto:cdsdisk emcpower26s2 VRP_PRD_ora_data_dg online
emcpower27s2 auto:cdsdisk emcpower27s2 VRP_PRD_ora_bin_dg online
emcpower28s2 auto:cdsdisk VRP_PRD_ora_arch_dg01 VRP_PRD_ora_arch_dg online
emcpower29s2 auto:cdsdisk emcpower29s2 VRP_PRD_ora_data_dg online
emcpower30s2 auto:cdsdisk emcpower30s2 VRP_PRD_ora_data_dg online
emcpower33s2 auto:cdsdisk - - online
emcpower34s2 auto:cdsdisk - - online
TO resize do,It will resize 10- 10 GB more from the two disks as we have stripe configuration.
we have increased two volumes sapdata1 and sapdata2
vxdg -g VRP_PRD_ora_data_dg adddisk emcpower29s2
vxdg -g VRP_PRD_ora_data_dg adddisk emcpower30s2
root@myers# /etc/vx/bin/vxresize -g VRP_PRD_ora_data_dg -F vxfs -x sapdata2 +41943040b <<< this +41943040b is a block size calculated which would require to put after
volume.
To increase on sapdata3 and sapdata4 do,
vxdg -g VRP_PRD_ora_data_dg adddisk emcpower33s2
vxdg -g VRP_PRD_ora_data_dg adddisk emcpower34s2
/etc/vx/bin/vxresize -g VRP_PRD_ora_data_dg sapdata3 +20g
/etc/vx/bin/vxresize -g VRP_PRD_ora_data_dg sapdata4 +20g
It will increase each filesystem by 20 Gig.
Thanks all, for this wonderfull support.
Issue resolved..
β02-25-2015 02:16 AM
I would recommend you use maxgrow and not maxsize for growing filesystems as in post:
as this takes striping into account - i.e if you use maxgrow with a 2-way stripe and specify 1 disk, it will say there is no space as oppose to maxsize which will give you the space on the one disk.
Mike