<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Daz's bits and bobs &#187; snapshots</title>
	<atom:link href="http://sigtar.com/tag/snapshots/feed/" rel="self" type="application/rss+xml" />
	<link>http://sigtar.com</link>
	<description>…bytes bits</description>
	<lastBuildDate>Mon, 26 Jul 2010 07:25:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Citrix XenServer 5.5 &#8211; First impressions</title>
		<link>http://sigtar.com/2009/07/28/citrix-xenserver-5-5-first-impressions/</link>
		<comments>http://sigtar.com/2009/07/28/citrix-xenserver-5-5-first-impressions/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 04:42:39 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[Virtual]]></category>
		<category><![CDATA[citrix xen server]]></category>
		<category><![CDATA[impressions]]></category>
		<category><![CDATA[snapshots]]></category>
		<category><![CDATA[vsphere]]></category>

		<guid isPermaLink="false">http://sigtar.com/?p=863</guid>
		<description><![CDATA[I had decided to try out Citrix Xen Server at home since i work a lot with vmware during my working week and felt like a change. It all seemed well&#8230; That is until i had to deal with snapshots. I suppose i have taken for granted almost all other virtual host software that provides a [...]


Related posts:<ol><li><a href='http://sigtar.com/2009/10/01/vmware-issues-stopping-starting-a-virtual-machine/' rel='bookmark' title='Permanent Link: vmware &#8211; issues stopping / starting a virtual machine'>vmware &#8211; issues stopping / starting a virtual machine</a> <small>I&#8217;ve had this issue in vSphere where a machine appears...</small></li>
<li><a href='http://sigtar.com/2009/08/22/esx-network-utilization/' rel='bookmark' title='Permanent Link: ESX &#8211; network utilization'>ESX &#8211; network utilization</a> <small>One of the best articles i have found on this...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I had decided to try out Citrix Xen Server at home since i work a lot with vmware during my working week and felt like a change. It all seemed well&#8230; That is until i had to deal with <em>snapshots</em>. I suppose i have taken for granted almost all other virtual host software that provides a simple &#8220;revert to snapshot&#8221; option. From what i can tell this is totally absent from Citrix XenServer 5.5.</p>
<p>There are comments from within Citrix that they are working on this as a feature, but it has yet to make it to fruition. Unfortunately for me with the type of work i do (testing / proof of concept etc) this is a deal breaker. Looks like i&#8217;m gunna have to try out vSphere at home. (currently only using 3.5 at work)</p>
<p>Least vSphere has thin provisioning now, so nothing (feature wise) i&#8217;ll be missing from Citrix&#8217;s Xen Server.</p>
<p><strong><em>Updated : 28/07/2009</em></strong></p>
<p>I&#8217;ve actually got no choice but to stay with Citrix Xen for now, looks like the sata controller and network chip on my motherboard is not supported by either 3.5 U4 or vSphere. Doh! (i should have checked the HCL but sometimes just like to try my luck)</p>


<p>Related posts:<ol><li><a href='http://sigtar.com/2009/10/01/vmware-issues-stopping-starting-a-virtual-machine/' rel='bookmark' title='Permanent Link: vmware &#8211; issues stopping / starting a virtual machine'>vmware &#8211; issues stopping / starting a virtual machine</a> <small>I&#8217;ve had this issue in vSphere where a machine appears...</small></li>
<li><a href='http://sigtar.com/2009/08/22/esx-network-utilization/' rel='bookmark' title='Permanent Link: ESX &#8211; network utilization'>ESX &#8211; network utilization</a> <small>One of the best articles i have found on this...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://sigtar.com/2009/07/28/citrix-xenserver-5-5-first-impressions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Troubleshooting &#8211; Time Slider (zfs snapshots)</title>
		<link>http://sigtar.com/2009/03/17/troubleshooting-time-slider-zfs-snapshots/</link>
		<comments>http://sigtar.com/2009/03/17/troubleshooting-time-slider-zfs-snapshots/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 19:12:57 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[dataset]]></category>
		<category><![CDATA[snapshots]]></category>
		<category><![CDATA[timeslider]]></category>
		<category><![CDATA[zfs]]></category>

		<guid isPermaLink="false">http://sigtar.com/?p=441</guid>
		<description><![CDATA[1. snapshot complains about no access to cron
This problem i came across was after i was playing with crontab. It looks like the zfs snapshot service uses an account called &#8220;zfssnap&#8221; and if it doesnt have access to cron then it will have issues creating / checking snapshots. Check the file /etc/cron.d/cron.allow and ensure that [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><strong>1. snapshot complains about no access to cron</strong></p>
<p>This problem i came across was after i was playing with crontab. It looks like the zfs snapshot service uses an account called &#8220;zfssnap&#8221; and if it doesnt have access to cron then it will have issues creating / checking snapshots. Check the file <strong>/etc/cron.d/cron.allow</strong> and ensure that &#8220;zfssnap&#8221; is in there. The issues i had looked like this in the log&#8230;   (check the logs via the log file viewer)</p>
<p><em>Checking for non-recursive missed // snapshots  rpool</em></p>
<p><em>Checking for recursive missed // snapshots protected rpool/backup rpool/export rpool/ROOT unprotected</em></p>
<p><em>crontab: you are not authorized to use cron.  Sorry.</em></p>
<p><em>crontab: you are not authorized to use cron.  Sorry.</em></p>
<p><em>Error: Unable to add cron job!</em></p>
<p><em>Moving service to maintenance mode.</em></p>
<p>The actual crontab lives in the <strong>/var/spool/cron/crontab/zfssnap</strong> file. (don&#8217;t edit this manually)</p>
<p>Restart the services by clearing the maintenance status then if required enable or restart like so&#8230;</p>
<p><strong>svcadm clear auto-snapshot:frequent</strong></p>
<p><strong>svcadm enable auto-snapshot:frequent</strong></p>
<p>Check that all zfs snapshot services are running as expected&#8230;.</p>
<p><strong>svcs -a | grep snapshot</strong></p>
<p><strong><em><span style="font-weight: normal;">online         22:26:12 svc:/system/filesystem/zfs/auto-snapshot:weekly</span></em></strong></p>
<p><em><span style="font-weight: normal;">online          9:06:36 svc:/system/filesystem/zfs/auto-snapshot:monthly</span></em></p>
<p><em><span style="font-weight: normal;">online          9:11:23 svc:/system/filesystem/zfs/auto-snapshot:daily</span></em></p>
<p><em><span style="font-weight: normal;">online          9:12:00 svc:/system/filesystem/zfs/auto-snapshot:hourly</span></em></p>
<p><em><span style="font-weight: normal;">online          9:23:57 svc:/system/filesystem/zfs/auto-snapshot:frequent</span></em></p>
<p><strong>2. snapshot fails with dataset busy error</strong></p>
<p>Seen something similar to this in the logs? &#8230;</p>
<p><em>Checking for recursive missed // snapshots protected rpool/backup rpool/export rpool/ROOT unprotected</em></p>
<p><em>Last snapshot for svc:/system/filesystem/zfs/auto-snapshot:frequent taken on Sun Mar 15 22:26 2009</em></p>
<p><em>which was greater than the 15 minutes schedule. Taking snapshot now.</em></p>
<p><em>cannot create snapshot &#8216;rpool/ROOT/opensolaris@zfs-auto-snap:frequent-2009-03-16-09:06&#8242;: dataset is busy</em></p>
<p><em>no snapshots were created</em></p>
<p><em>Error: Unable to take recursive snapshots of rpool/ROOT@zfs-auto-snap:frequent-2009-03-16-09:06.</em></p>
<p><em>Moving service svc:/system/filesystem/zfs/auto-snapshot:frequent to maintenance mode.</em></p>
<p>Here is an bit from this <a href="http://malsserver.blogspot.com/2008/11/zfs-auto-snapshot-and-thus-time-slider.html" target="_blank">site</a> - &#8221;This problem is being caused by the old (IE: read non-active) boot environments not being mounted and it is trying to snapshot them. You can&#8217;t &#8217;svcadm clear&#8217; or &#8217;svcadm enable&#8217; them because they will still fail.&#8221;</p>
<p>Apparently a bug with the zfs snapshots similar to <strong>/root/opensolaris</strong> type pools &#8212; anyhow to fix i&#8217;ve just used a custom setup in time slider. Clear all the services set to &#8220;maintenance&#8221; then launch time-slider-setup and configure to exclude the problem pools.</p>
<p><strong>Update</strong> : As per Johns comments below you can disable the snapshots on the offending zfs system using the following command&#8230;</p>
<p><strong>zfs set com.sun:auto-snapshot=false rpool/ROOT</strong></p>
<p>As above to clear &#8220;maintenance&#8221; status on the effected services run the following command&#8230;</p>
<p><strong></strong><strong> svcadm clear auto-snapshot:hourly</strong></p>
<p><strong></strong><strong>svcadm clear auto-snapshot:frequent</strong></p>
<p><span style="font-weight: normal;">Now run this to ensure all the SMF services are running without issue&#8230; </span></p>
<p><strong> </strong><strong>svcs -x</strong></p>
<p><span style="font-weight: normal;">If all is well you will get no output. </span></p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://sigtar.com/2009/03/17/troubleshooting-time-slider-zfs-snapshots/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ZFS &#8211; Creating snapshots</title>
		<link>http://sigtar.com/2009/02/09/zfs-creating-snapshots/</link>
		<comments>http://sigtar.com/2009/02/09/zfs-creating-snapshots/#comments</comments>
		<pubDate>Sun, 08 Feb 2009 19:00:33 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[snapshots]]></category>
		<category><![CDATA[time slider]]></category>
		<category><![CDATA[zfs]]></category>

		<guid isPermaLink="false">http://sigtar.com/?p=235</guid>
		<description><![CDATA[There is some funky ways of modifying the default &#8220;time slider&#8221; services to do the work for you, but i like a bit more hands on. Generally so i know what is happening in the background, but the time slider can be sometimes overkill creating snapshots every 15 mins if not configured properly.
On a side [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>There is some funky ways of modifying the default &#8220;time slider&#8221; services to do the work for you, but i like a bit more hands on. Generally so i know what is happening in the background, but the time slider can be sometimes overkill creating snapshots every 15 mins if not configured properly.</p>
<p>On a side note i&#8217;ve yet to get my head around the SMF stuff properly&#8230; Anyhow onto creating snapshots.</p>
<p>I&#8221;ve decided to snapshot both my <strong>unprotected </strong>and <strong>protected </strong>zpools.</p>
<p>I&#8217;ve created three scripts,this is what my snapdaily.sh script looks like ;</p>
<p><strong>zfs destroy -r protected@daily</strong></p>
<p><strong>zfs destroy -r unprotected@daily</strong></p>
<p><strong>zfs snapshot -r protected@daily</strong></p>
<p><strong>zfs snapshot -r unprotected@daily</strong></p>
<p><strong>echo &#8220;Daily ZFS snapshot done&#8221; </strong>- output saved as part of the crontab job</p>
<p>The other two are similar, but weekly and monthly.  The name of the snapshot is after the @ symbol as above. the -r switch is recursive, so all zfs file systems beneath the named zfs also have snapshots created.</p>
<p>next I&#8217;ve saved this script and added it to crontab (as root since its zfs commands which are usually restricted);</p>
<p><strong>su</strong> &#8211; enter password, you are now root.</p>
<p><strong>crontab -e -</strong> edit roots crontab file (use vi to insert the following line)<strong><br />
</strong></p>
<p><strong>0 5 * * * /protected/snapdaily.sh </strong>- this will run every day at 5am.</p>
<p>Run the script first to see if it works, then check with this command;</p>
<p><strong>zfs list -t snapshot</strong> &#8211; you should see the above snapshots.</p>
<p>Repeat for weekly / monthly as above&#8230;</p>
<p>I have disabled all the automatic snapshots&#8230;.</p>
<p><strong>svcs -a | grep &#8220;snapshot&#8221; </strong>- should show you all the zfs snapshot services</p>
<p><strong>svcadm disable svc:/system/filesystem/zfs/auto-snapshot:daily</strong> &#8211; etc, will disable these snapshots.</p>
<p>You can also turn off time slider via the GUI if you have turned it on.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://sigtar.com/2009/02/09/zfs-creating-snapshots/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
