Axelle Apvrille
2009-Jul-23 19:31 UTC
[zfs-discuss] No ZFS snapshot since upgrade to 2009.06
I''ve upgrade my OpenSolaris 2008.11 to 2009.06. During that process it created a new boot environment: BE Active Mountpoint Space Policy Created -- ------ ---------- ----- ------ ------- opensolaris NR / 7.53G static 2009-01-03 13:18 opensolaris-1 - - 2.80G static 2009-07-20 22:38 But now, all my zfs snapshot services are in maintenance mode: svc:/system/filesystem/zfs/auto-snapshot:frequent (ZFS automatic snapshots) State: maintenance since Thu Jul 23 20:21:29 2009 Reason: Restarter svc:/system/svc/restarter:default gave no explanation. See: http://sun.com/msg/SMF-8000-9C See: /var/svc/log/system-filesystem-zfs-auto-snapshot:frequent.log Impact: 1 dependent service is not running: svc:/application/time-slider:default etc The logs say that my host tried to create a snapshot, but couldn''t because ''dataset is busy'': cannot create snapshot ''rpool/ROOT/opensolaris-1 at zfs-auto-snap:frequent-2009-07-23-20:21'': dataset is busy no snapshots were created Error: Unable to take recursive snapshots of rpool/ROOT at zfs-auto-snap:frequent-2009-07-23-20:21. Moving service svc:/system/filesystem/zfs/auto-snapshot:frequent to maintenance mode. Anyone knows how to fix this ? What is that boot environment opensolaris-1 for ? can I erase it safely ? Regards -- This message posted from opensolaris.org
Nathan Fiedler
2009-Jul-23 19:56 UTC
[zfs-discuss] No ZFS snapshot since upgrade to 2009.06
This is probably bug #6462803. The work-around goes something like this: $ pfexec bash # beadm mount opensolaris /mnt # beadm unmount opensolaris # svcadm clear svc:/system/filesystem/zfs/auto-snapshot:frequent # svcadm clear svc:/system/filesystem/zfs/auto-snapshot:hourly # svcadm clear svc:/system/filesystem/zfs/auto-snapshot:daily # svcs -a | grep snapshot The last command should show that the services are back online. n On Thu, Jul 23, 2009 at 12:31 PM, Axelle Apvrille<no-reply at opensolaris.org> wrote:> I''ve upgrade my OpenSolaris 2008.11 to 2009.06. During that process it created a new boot environment: > BE ? ? ? ? ? ?Active Mountpoint Space Policy Created > -- ? ? ? ? ? ?------ ---------- ----- ------ ------- > opensolaris ? NR ? ? / ? ? ? ? ?7.53G static 2009-01-03 13:18 > opensolaris-1 - ? ? ?- ? ? ? ? ?2.80G static 2009-07-20 22:38 > > But now, all my zfs snapshot services are in maintenance mode: > svc:/system/filesystem/zfs/auto-snapshot:frequent (ZFS automatic snapshots) > ?State: maintenance since Thu Jul 23 20:21:29 2009 > Reason: Restarter svc:/system/svc/restarter:default gave no explanation. > ? See: http://sun.com/msg/SMF-8000-9C > ? See: /var/svc/log/system-filesystem-zfs-auto-snapshot:frequent.log > Impact: 1 dependent service is not running: > ? ? ? ?svc:/application/time-slider:default > etc > > The logs say that my host tried to create a snapshot, but couldn''t because ''dataset is busy'': > cannot create snapshot ''rpool/ROOT/opensolaris-1 at zfs-auto-snap:frequent-2009-07-23-20:21'': dataset is busy > no snapshots were created > Error: Unable to take recursive snapshots of rpool/ROOT at zfs-auto-snap:frequent-2009-07-23-20:21. > Moving service svc:/system/filesystem/zfs/auto-snapshot:frequent to maintenance mode. > > Anyone knows how to fix this ? > What is that boot environment opensolaris-1 for ? can I erase it safely ? > > Regards > -- > This message posted from opensolaris.org > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >
Axelle Apvrille
2009-Jul-23 19:59 UTC
[zfs-discuss] [SOLVED] Re: No ZFS snapshot since upgrade to 2009.06
Ok, I''ve found the solution to my problem on Internet here: http://sigtar.com/2009/03/17/troubleshooting-time-slider-zfs-snapshots/ This was indeed caused by the old boot environment. This is how to solve it: - disable snapshots on the old boot environment: pfexec zfs set com.sun:auto-snapshot=false rpool/ROOT/opensolaris-1 - clear zfs snapshot services pfexec svcadm clear auto-snapshot:frequent pfexec svcadm clear auto-snapshot:hourly pfexec svcadm clear auto-snapshot:daily - launch the time slider and enable zfs snapshots on the appropriate systems - check the services are online: svcs ... online 21:50:20 svc:/system/filesystem/zfs/auto-snapshot:hourly online 21:50:26 svc:/system/filesystem/zfs/auto-snapshot:frequent online 21:50:36 svc:/system/filesystem/zfs/auto-snapshot:daily Hurray ! -- Axelle -- This message posted from opensolaris.org