01-27-2015 09:00 AM
Hi All,
I am new on storage foundation solution, and also on the company.
I have a oracle database running storage foundation and i just need increase a database lun.
Do i need to do something on storage foundation configuration? or can i just increase the size by storage side and reboot my linux?
The luns is one of resources that storage foundation manage.
Thank you
Solved! Go to Solution.
01-28-2015 08:27 AM
You will need to:
Note on your systems you have 2 disks each containing 1 filesystem, but you could have 2 filesystems on one disk - this is why growing disks and filesystems are separate steps
Mike
01-27-2015 09:22 AM
You have to add space to diskgroup and then increase the filesystem (and volume) in the diskgroup.
You have 2 choices for adding storage to diskgroup:
Note, before doing either of above, use "vxdctl enable" to scan for new disks and to see names of disks use "vxdisk -o alldgs list"
To expand filesystem (and volume) use:
vxresize -g diskgroup volume +size
Where you can get volume name from df (string after /dsk/ in block device is diskgroup and the next(last) string is volume) or "vxprint -v"
size can be specified used a suffix of m for MB or g for GB.
All this can be done online, so you do not need to reboot and if you do reboot, this will not be all done automatically.
Mike
01-28-2015 03:38 AM
Hi Mike, thanks a lot for your answer!
I found this link but it has some different commans you have teach me. (https://sort.symantec.com/public/documents/sfha/6.1/solaris/productguides/html/sf_admin/ch05s03.htm)
I have builded the commands bellow based on my configuration and your guide. Could you please check?
1-expand the Lun on EMC storage
2-vxdctl enable
3-vxresize -g oradg01 datavol01 +354
4-vxresize -g oradg02 datavol02 +352
What about the commands bellow from link?
1 - Make Veritas Volume Manager (VxVM) aware of the new LUN size.
# vxdisk -g dg1 resize 3PARDATA0_1
2 - Calculate the new maximum volume size:
# vxassist -g dg1 -b maxgrow vol1
3 - Grow the volume and the file system to the desired size:
# vxresize -b -F vxfs -g dg1 vol1 200g
Which is the correct form to expand the LUN?
Follow my informations:
###############################################################################
[root@DB01 ~]# vxdisk -o alldgs list
DEVICE TYPE DISK GROUP STATUS
emcpowera auto:cdsdisk emcpowera oradg01 online
emcpowerb auto:cdsdisk emcpowerb oradg02 online
sda auto:none - - online invalid
###############################################################################
[root@DB01 ~]# vxprint -v
Disk group: oradg01
TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0
v datavol01 fsgen ENABLED 1404913664 - ACTIVE - -
Disk group: oradg02
TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0
v datavol02 fsgen ENABLED 1408817152 - ACTIVE - -
###############################################################################
[root@DB01 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda7 29G 9.3G 18G 35% /
/dev/sda6 29G 16G 12G 60% /oracle
/dev/sda2 284G 12G 258G 5% /data
/dev/sda3 157G 4.5G 144G 3% /data1
/dev/sda1 99M 13M 82M 14% /boot
tmpfs 32G 0 32G 0% /dev/shm
tmpfs 4.0K 0 4.0K 0% /dev/vx
/dev/vx/dsk/oradg01/datavol01
670G 602G 65G 91% /oradata01
/dev/vx/dsk/oradg02/datavol02
672G 637G 33G 96% /oradata02
###############################################################################
Thanks in advance
01-28-2015 08:27 AM
You will need to:
Note on your systems you have 2 disks each containing 1 filesystem, but you could have 2 filesystems on one disk - this is why growing disks and filesystems are separate steps
Mike