<?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>Technology, Computer, Network and Games Cheat &#187; ZFS</title>
	<atom:link href="http://www.gamescheat.ca/tag/zfs/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gamescheat.ca</link>
	<description>Day to day technical how to - by Andrew Lin</description>
	<lastBuildDate>Fri, 06 Aug 2010 20:42:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>How to create a ZFS filesystem on two striped disk drives</title>
		<link>http://www.gamescheat.ca/2010/01/how-to-create-a-zfs-filesystem-on-two-striped-disk-drives/</link>
		<comments>http://www.gamescheat.ca/2010/01/how-to-create-a-zfs-filesystem-on-two-striped-disk-drives/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 11:00:57 +0000</pubDate>
		<dc:creator>Andrew Lin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[ZFS]]></category>

		<guid isPermaLink="false">http://www.gamescheat.ca/?p=747</guid>
		<description><![CDATA[I ran out of space on my SAN drive on the Solaris 10 SPARC server. Since I had two spare disk drives sitting in the server that were not being used, I decided to create a single striped volume out of the two drives. The drives contained the factory installed Solaris 10 image. Here are [...]]]></description>
			<content:encoded><![CDATA[<p>I ran out of space on my SAN drive on the Solaris 10 SPARC server. Since I had two spare disk drives sitting in the server that were not being used, I decided to create a single striped volume out of the two drives.  The drives contained the factory installed Solaris 10 image.</p>
<p>Here are the step by step instructions on how to create a ZFS pool on the two hard disks, and then create a single ZFS filesystem.</p>
<p>I tried to create the ZFS pool but received the error message that the drive contains ufs filesystems.  This was the factory installed filesystem.</p>
<blockquote><p>bash-3.00# zpool create backup c0t0d0<br />
invalid vdev specification<br />
use &#8216;-f&#8217; to override the following errors:<br />
/dev/dsk/c0t0d0s1 contains a ufs filesystem.<br />
/dev/dsk/c0t0d0s2 contains a ufs filesystem.  </p></blockquote>
<p>Use the -f option with the create command to forcefully create the zfs pool.</p>
<blockquote><p>bash-3.00# zpool create -f backup c0t0d0</p></blockquote>
<p>Now confirm that the zfs pool was created successfully.</p>
<blockquote><p>bash-3.00# zpool list<br />
NAME     SIZE   USED  AVAIL    CAP  HEALTH  ALTROOT<br />
backup   136G  76.5K   136G     0%  ONLINE  &#8211;<br />
rpool    348G   221G   127G    63%  ONLINE  -</p></blockquote>
<p>Add the second disk drive to the zfs pool backup.</p>
<blockquote><p>bash-3.00# zpool add backup c0t1d0</p></blockquote>
<p>Confirm that the second disk was added, the size of backup should have doubled.</p>
<blockquote><p>bash-3.00# zpool list<br />
NAME     SIZE   USED  AVAIL    CAP  HEALTH  ALTROOT<br />
backup   272G  79.5K   272G     0%  ONLINE  &#8211;<br />
rpool    348G   221G   127G    63%  ONLINE  &#8211;   </p></blockquote>
<p>Create a ZFS filesystem called archive with the zfs create command.  It should reside in the backup pool.</p>
<blockquote><p>bash-3.00# zfs create backup/archive</p></blockquote>
<p>Confirm that the new zfs filesystem archive was created.</p>
<blockquote><p>bash-3.00# zfs list<br />
NAME                        USED  AVAIL  REFER  MOUNTPOINT<br />
backup                      106K   268G    21K  /backup<br />
backup/archive               21K   268G    21K  /backup/archive<br />
rpool                       223G   120G    97K  /rpool<br />
rpool/ROOT                 4.39G   120G    21K  legacy<br />
rpool/ROOT/s10s_u8wos_08a  4.39G   120G  4.39G  /<br />
rpool/dump                 1.00G   120G  1.00G  &#8211;<br />
rpool/export                215G   120G   215G  /export<br />
rpool/export/home            21K   120G    21K  /export/home<br />
rpool/swap                    2G   122G    16K  &#8211;   </p></blockquote>
<p>A ZFS filesystem is automatically mounted after you create it, you can now use the new filesystem archive. If you do not want archive to use all available disk space in the zfs pool backup, then you can define a quota.  If you were to create a second filesystem in the backup pool, then the available disk dynamically shared between the two filesystems unless a quota is defined.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gamescheat.ca/2010/01/how-to-create-a-zfs-filesystem-on-two-striped-disk-drives/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
