[zfs-discuss] Migrating ZFS pool with zones from one host to another

2007-06-20 Thread Hector De Jesus
I have created a zfs pool and I have installed a zone in the pool. For example 
my pool name is hec pool /hecpool and I have installed my zone to the following 
location /hecpool/zones/heczone.  Is there away to migrate all of my pool data 
and zones to another SUN host if my pools are created on provisioned storage 
from a SAN. I have found an interesting blog article that discusses this but it 
does not seem to work. I am able to import the pool on another machine, but the 
zone info is not there. zoneadm -z heczone attach or zoneadm -z heczone boot do 
not work.  Can anyone help with a set of steps to do a migration thanks in 
advance.

PS. please see this link,  these are the steps that i followed to try the 
migration
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/6162
 
 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Migrating a pool

2007-03-29 Thread Constantin Gonzalez
Hi Matt,

cool, thank you for doing this!

I'll still write my script since today my two shiny new 320GB USB
disks will arrive :).

I'll add to that the feature to first send all current snapshots, then
bring down the services that depend on the filesystem, unmount the old
fs, send a final incremental snapshot then zfs set mountpoint=x to the new
filesystem, then bring up the services again.

Hope this works as I imagine.

Cheers,
   Constantin

Matthew Ahrens wrote:
 Constantin Gonzalez wrote:
 What is the most elegant way of migrating all filesystems to the new
 pool,
 including snapshots?

 Can I do a master snapshot of the whole pool, including
 sub-filesystems and
 their snapshots, then send/receive them to the new pool?

 Or do I have to write a script that will individually snapshot all
 filesystems
 within my old pool, then run a send (-i) orgy?
 
 Unfortunately, you will need to make/find a script to do the various
 'zfs send -i' to send each snapshot of each filesystem.
 
 I am working on 'zfs send -r', which will make this a snap:
 
 # zfs snapshot -r [EMAIL PROTECTED]
 # zfs send -r [EMAIL PROTECTED] | zfs recv ...
 
 You'll also be able to do 'zfs send -r -i @yesterday [EMAIL PROTECTED]'.
 
 See RFE 6421958.
 
 --matt

-- 
Constantin GonzalezSun Microsystems GmbH, Germany
Platform Technology Group, Global Systems Engineering  http://www.sun.de/
Tel.: +49 89/4 60 08-25 91   http://blogs.sun.com/constantin/

Sitz d. Ges.: Sun Microsystems GmbH, Sonnenallee 1, 85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Marcel Schneider, Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re[2]: [zfs-discuss] Migrating a pool

2007-03-29 Thread Robert Milkowski
Hello Matthew,

Thursday, March 29, 2007, 3:29:36 AM, you wrote:

MA Constantin Gonzalez wrote:
 What is the most elegant way of migrating all filesystems to the new pool,
 including snapshots?
 
 Can I do a master snapshot of the whole pool, including sub-filesystems and
 their snapshots, then send/receive them to the new pool?
 
 Or do I have to write a script that will individually snapshot all 
 filesystems
 within my old pool, then run a send (-i) orgy?

MA Unfortunately, you will need to make/find a script to do the various 
MA 'zfs send -i' to send each snapshot of each filesystem.

MA I am working on 'zfs send -r', which will make this a snap:

MA # zfs snapshot -r [EMAIL PROTECTED]
MA # zfs send -r [EMAIL PROTECTED] | zfs recv ...

MA You'll also be able to do 'zfs send -r -i @yesterday [EMAIL PROTECTED]'.

Will it work serially (one fs incremental at the time) or in parallel
or maybe it will traverse the pool in such a clever way that pool will
be scanned sequentially and if a block has to be sent it will + some
form of parallelism (read-ahead, etc.) - ok, i'm dreaming :))

-- 
Best regards,
 Robertmailto:[EMAIL PROTECTED]
   http://milek.blogspot.com

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Migrating a pool

2007-03-28 Thread Matthew Ahrens

Constantin Gonzalez wrote:

What is the most elegant way of migrating all filesystems to the new pool,
including snapshots?

Can I do a master snapshot of the whole pool, including sub-filesystems and
their snapshots, then send/receive them to the new pool?

Or do I have to write a script that will individually snapshot all filesystems
within my old pool, then run a send (-i) orgy?


Unfortunately, you will need to make/find a script to do the various 
'zfs send -i' to send each snapshot of each filesystem.


I am working on 'zfs send -r', which will make this a snap:

# zfs snapshot -r [EMAIL PROTECTED]
# zfs send -r [EMAIL PROTECTED] | zfs recv ...

You'll also be able to do 'zfs send -r -i @yesterday [EMAIL PROTECTED]'.

See RFE 6421958.

--matt
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


[zfs-discuss] Migrating a pool

2007-03-27 Thread Constantin Gonzalez
Hi,

soon it'll be time to migrate my patchwork pool onto a real pair of
mirrored (albeit USB-based) external disks.

Today I have about half a dozen filesystems in the old pool plus dozens of
snapshots thanks to Tim Bray's excellent SMF snapshotting service.

What is the most elegant way of migrating all filesystems to the new pool,
including snapshots?

Can I do a master snapshot of the whole pool, including sub-filesystems and
their snapshots, then send/receive them to the new pool?

Or do I have to write a script that will individually snapshot all filesystems
within my old pool, then run a send (-i) orgy?

Best regards,
   Constantin

-- 
Constantin GonzalezSun Microsystems GmbH, Germany
Platform Technology Group, Global Systems Engineering  http://www.sun.de/
Tel.: +49 89/4 60 08-25 91   http://blogs.sun.com/constantin/

Sitz d. Ges.: Sun Microsystems GmbH, Sonnenallee 1, 85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Marcel Schneider, Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Migrating a pool

2007-03-27 Thread Constantin Gonzalez
Hi,

 Today I have about half a dozen filesystems in the old pool plus dozens of
 snapshots thanks to Tim Bray's excellent SMF snapshotting service.

I'm sorry I mixed up Tim's last name. The fine guy who wrote the SMF snapshot
service is Tim Foster. And here's the link:

  http://blogs.sun.com/timf/entry/zfs_automatic_snapshots_0_8

There doesn't seem to be an easy answer to the original question of how to
migrate a complete pool. Writing a script with a snapshot send/receive
party seems to be the only approach.

I wish I could zfs snapshot pool then zfs send pool | zfs receive dest and
all blocks would be transferred as they are, including all embedded snapshots.

Is that already an RFE?

Best regards,
   Constantin

-- 
Constantin GonzalezSun Microsystems GmbH, Germany
Platform Technology Group, Global Systems Engineering  http://www.sun.de/
Tel.: +49 89/4 60 08-25 91   http://blogs.sun.com/constantin/

Sitz d. Ges.: Sun Microsystems GmbH, Sonnenallee 1, 85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Marcel Schneider, Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss