forked from zfsonlinux/zfsonlinux.github.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample-zpl.html
More file actions
63 lines (55 loc) · 1.91 KB
/
example-zpl.html
File metadata and controls
63 lines (55 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<html>
<head>
<title>ZPL Example</title>
<meta name="keyword" content="zfs, linux"/>
<meta name="description" content="ZFS Posix Layer (ZPL) Example." />
<meta name="robots" content="all" />
</head>
<body>
<center>
<img src="images/zfs-linux.png">
<table width="80%">
<tr>
<td>
<p>Create the <em>tank</em> zpool containing a raidz vdev spread
over 3 devices. It is recommended that you use the persistent
/dev/disk/by-id/* device names when creating your pool to avoid
any device reordering issues latter. Your device names will of
course be different.</p>
<pre>
$ sudo zpool create tank raidz scsi-SATA_Maxtor_7Y250M0_Y638RXME
scsi-SATA_Maxtor_7Y250M0_Y638S56E scsi-SATA_Maxtor_7Y250M0_Y638TJFE
$ sudo zpool status tank
pool: tank
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
tank ONLINE 0 0 0
raidz1-0 ONLINE 0 0 0
scsi-SATA_Maxtor_7Y250M0_Y638RXME ONLINE 0 0 0
scsi-SATA_Maxtor_7Y250M0_Y638S56E ONLINE 0 0 0
scsi-SATA_Maxtor_7Y250M0_Y638TJFE ONLINE 0 0 0
errors: No known data errors
</pre>
<p>Your <em>tank</em> pool will automatically contain a filesystem
which is mounted under your root directory. You can create additional
filesystems with the <em>zfs create</em> command. They will also be
automatically mounted.</p>
<pre>
$ sudo zfs create tank/fish
$ df -h -t zfs
Filesystem Size Used Avail Use% Mounted on
tank 459G 128K 459G 1% /tank
tank/fish 459G 128K 459G 1% /tank/fish
</pre>
<p>Some other useful <em>zfs</em> subcommands are <em>mount</em>,
<em>unmount</em>, <em>destroy</em>, and <em>snapshot</em>. These
are all fully described in the zfs man page and should be enough
to get you started.</em>
</td>
</tr>
</table>
</center>
</body>
</html>