Nico Sabbi
2009-Jan-14 10:11 UTC
[zfs-discuss] zpool export+import doesn''t maintain snapshot
Hi, I wanted to migrate a virtual disk from a S10U6 to OpenSolaris 2008.11. In the first machine I rebooted to single-user and ran $ zpool export disco then copied the disk files to the target VM, rebooted as single-user and ran $ zpool import disco The disc was mounted, but none of the hundreds of snapshots was there. Did Imiss something?
Peter Tribble
2009-Jan-14 10:44 UTC
[zfs-discuss] zpool export+import doesn''t maintain snapshot
On Wed, Jan 14, 2009 at 10:11 AM, Nico Sabbi <Nicola.Sabbi at poste.it> wrote:> Hi, > I wanted to migrate a virtual disk from a S10U6 to OpenSolaris > 2008.11. > In the first machine I rebooted to single-user and ran > $ zpool export disco > > then copied the disk files to the target VM, rebooted as single-user > and ran > $ zpool import disco > > The disc was mounted, but none of the hundreds of snapshots was there. > > Did Imiss something?How do you know the snapshots are gone? Note that the zfs list command no longer shows snapshots by default. You need ''zfs list -t all'' for that. -- -Peter Tribble http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/
Nico Sabbi
2009-Jan-14 10:55 UTC
[zfs-discuss] zpool export+import doesn''t maintain snapshot
On Wednesday 14 January 2009 11:44:56 Peter Tribble wrote:> On Wed, Jan 14, 2009 at 10:11 AM, Nico Sabbi <Nicola.Sabbi at poste.it>wrote:> > Hi, > > I wanted to migrate a virtual disk from a S10U6 to OpenSolaris > > 2008.11. > > In the first machine I rebooted to single-user and ran > > $ zpool export disco > > > > then copied the disk files to the target VM, rebooted as > > single-user and ran > > $ zpool import disco > > > > The disc was mounted, but none of the hundreds of snapshots was > > there. > > > > Did Imiss something? > > How do you know the snapshots are gone? > > Note that the zfs list command no longer shows snapshots by > default. You need ''zfs list -t all'' for that.now I see them, but why this change? what do I have to do to list them by default as on the old server?
Cindy.Swearingen at Sun.COM
2009-Jan-14 15:49 UTC
[zfs-discuss] zpool export+import doesn''t maintain snapshot
Nico, If you want to enable snapshot display as in previous releases, then set this parameter on the pool: # zpool set listsnapshots=on pool-name Cind Nico Sabbi wrote:> On Wednesday 14 January 2009 11:44:56 Peter Tribble wrote: > >>On Wed, Jan 14, 2009 at 10:11 AM, Nico Sabbi <Nicola.Sabbi at poste.it> > > wrote: > >>>Hi, >>>I wanted to migrate a virtual disk from a S10U6 to OpenSolaris >>>2008.11. >>>In the first machine I rebooted to single-user and ran >>>$ zpool export disco >>> >>>then copied the disk files to the target VM, rebooted as >>>single-user and ran >>>$ zpool import disco >>> >>>The disc was mounted, but none of the hundreds of snapshots was >>>there. >>> >>>Did Imiss something? >> >>How do you know the snapshots are gone? >> >>Note that the zfs list command no longer shows snapshots by >>default. You need ''zfs list -t all'' for that. > > > now I see them, but why this change? what do I have to do to list them > by default as on the old server? > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Nico Sabbi
2009-Jan-14 15:53 UTC
[zfs-discuss] zpool export+import doesn''t maintain snapshot
On Wednesday 14 January 2009 16:49:48 Cindy.Swearingen at sun.com wrote:> Nico, > > If you want to enable snapshot display as in previous releases, > then set this parameter on the pool: > > # zpool set listsnapshots=on pool-name > > Cind >thanks, it works as I need.