grow zfs volume

Discussions about using Solaris guests in VirtualBox.
Post Reply
levada
Posts: 1
Joined: 21. Jan 2011, 12:04
Primary OS: Mac OS X Leopard
VBox Version: OSE other
Guest OSses: Solaris 10

grow zfs volume

Post by levada »

hi folks,

i have a vdi = 8GB with zfs volume and Solaris 10_u9
Now i have create another vdi 30 GB. Then i have copy the Data from the 8GB to 30GB with dd.
Boot from the Disk are okay. i see the new disk (30GB) only with 8GB
Now i will resize the Disk from 8GB to 30GB.


Any ideas how i can do it ?

by levada
ljw1
Posts: 41
Joined: 26. Apr 2009, 10:35
Primary OS: OpenSolaris 11
VBox Version: OSE other
Guest OSses: Ubuntu

Re: grow zfs volume

Post by ljw1 »

Not this way!

You should look up how to create a mirror first of the two drives then remove the smaller drive from the mirror after it has replicated. This should allow the full space on the other drive. Do not use dd as this is not how zfs is designed to work. You could also try using zfs send and receive commands which will also achieve the same result. There are a number of posts on the opensolaris forums and on the web about this very problem.

Good luck
Post Reply