Highlighted

Storage foundation linux - increase lun

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

1 Solution

Accepted Solutions
Accepted Solution!

You will need to: vxprint -d

You will need to:

  1. vxprint -d (see current disk sizes)
  2. expand the 2 Luns on EMC storage
  3. vxdctl enable 
  4. vxdisk -g oradg01 resize emcpowera (grow disk)
  5. vxdisk -g oradg02 resize emcpowerb (grow disk)
  6. vxprint -d (check disk sizes have increased)
  7. check space available to grow datavol01:
    vxassist -g oradg01 maxgrow datavol01
  8. check space available to grow datavol02:
    vxassist -g oradg02 maxgrow datavol02
  9. Grow filesystem (size you can grow will depend on output from 7):
    vxresize -g oradg01 datavol01 +354
  10. Grow filesystem (size you can grow will depend on output from 8):
    vxresize -g oradg02 datavol02 +352

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

View solution in original post

3 Replies
Highlighted

You have to add space to

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:

  1. Expand existing LUN and then use "vxdisk resize" to recognise new LUN size
  2. Add an additional LUN using:
    vxdisksetup -i newdisk
    vxdg -g diskgroup adddisk newdisk

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

Highlighted

Hi Mike, thanks a lot for

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

 

Accepted Solution!

You will need to: vxprint -d

You will need to:

  1. vxprint -d (see current disk sizes)
  2. expand the 2 Luns on EMC storage
  3. vxdctl enable 
  4. vxdisk -g oradg01 resize emcpowera (grow disk)
  5. vxdisk -g oradg02 resize emcpowerb (grow disk)
  6. vxprint -d (check disk sizes have increased)
  7. check space available to grow datavol01:
    vxassist -g oradg01 maxgrow datavol01
  8. check space available to grow datavol02:
    vxassist -g oradg02 maxgrow datavol02
  9. Grow filesystem (size you can grow will depend on output from 7):
    vxresize -g oradg01 datavol01 +354
  10. Grow filesystem (size you can grow will depend on output from 8):
    vxresize -g oradg02 datavol02 +352

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

View solution in original post