cancel
Showing results for 
Search instead for 
Did you mean: 

How to extend the volume

Dear All

My current Solaris 9.0 using the VM 4.1 version.  I have the one mount point in 90 % usage, and need to extend the volume but there is no space usage.  Therefore I add the new disk space to VM by using vxdiskadm  c3t40d1s2 

root@devuardms01 # vxdisk list
DEVICE TYPE DISK GROUP STATUS
c1t0d0s2 auto:sliced rootdg01 rootdg online
c1t1d0s2 auto:sliced rootdg02 rootdg online
c3t40d1s2 auto:cdsdisk rootdg03 rootdg online

Extend the volume dctm 

root@devuardms01 # vxprint
Disk group: rootdg

TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0
dg rootdg rootdg - - - - - -

dm rootdg01 c1t0d0s2 - 143318784 - - - -
dm rootdg02 c1t1d0s2 - 143318784 - - - -
dm rootdg03 c3t40d1s2 - 51193600 - - - -

sd rootdg01-06 - ENABLED 8390112 - - - -

v dctm fsgen ENABLED 20972736 - ACTIVE - -
pl dctm-01 dctm ENABLED 20972736 - ACTIVE - -
sd rootdg01-05 dctm-01 ENABLED 20972736 0 - - -
pl dctm-02 dctm ENABLED 20972736 - ACTIVE - -
sd rootdg02-05 dctm-02 ENABLED 20972736 0 - - -

 I would like to know if there is way to extend the volume , is it need to downtime to extend the volume?  Please provide the step to do guide me.

Thank you !

 

 

2 Solutions

Accepted Solutions
Accepted Solution!

Re: How to extend the volume

Solaris 9.0, YaY!

Ok, here is what you need to do:

You need one more disk. The reason why is because your original volume is mirrored. To extend a mirrored disk, you need to add two disks not one.

Now once you have another disk that is went through vxdisksetup, vxdg -g rootdg adddisk <diskname> and visible in vxprint, you just run:

vxassist -g rootdg maxgrow dctm

This will give the max size you can grow the volume to

Now you can refer to something like http://www.veritas.com/docs/100029279 if you have VxFS and it will be online, for other file systems you need to check whether the file system supports online resize

View solution in original post

Accepted Solution!

Re: How to extend the volume

if memory serves me well, something like

vxresize -g rootdg dctm 106415296 alloc=rootdg03,rootdg04

should do the trick, provided it's VxFS and it is mounted

View solution in original post

3 Replies
Accepted Solution!

Re: How to extend the volume

Solaris 9.0, YaY!

Ok, here is what you need to do:

You need one more disk. The reason why is because your original volume is mirrored. To extend a mirrored disk, you need to add two disks not one.

Now once you have another disk that is went through vxdisksetup, vxdg -g rootdg adddisk <diskname> and visible in vxprint, you just run:

vxassist -g rootdg maxgrow dctm

This will give the max size you can grow the volume to

Now you can refer to something like http://www.veritas.com/docs/100029279 if you have VxFS and it will be online, for other file systems you need to check whether the file system supports online resize

View solution in original post

Re: How to extend the volume

Hi Mouse,

Thank you for your reply !

I add the disk to the disk group and check the size 

oot@devuardms01 # vxdisk list
DEVICE TYPE DISK GROUP STATUS
c1t0d0s2 auto:sliced rootdg01 rootdg online
c1t1d0s2 auto:sliced rootdg02 rootdg online
c3t40d1s2 auto:cdsdisk rootdg03 rootdg online
c3t40d2s2 auto:cdsdisk rootdg04 rootdg online
c3t40d3s2 auto:cdsdisk - - online
c3t40d4s2 auto:cdsdisk - - online
root@devuardms01 # vxassist -g rootdg maxgrow dctm
Volume dctm can be extended by 85442560 to: 106415296 (51960Mb+1216 sectors)
root@devuardms01 #

But how can use the the rootdg03 and rootdg04 to extend the dctm by command 

Do I need to type two times?

 

 

Accepted Solution!

Re: How to extend the volume

if memory serves me well, something like

vxresize -g rootdg dctm 106415296 alloc=rootdg03,rootdg04

should do the trick, provided it's VxFS and it is mounted

View solution in original post