detach small block device from pool so it get enlarged
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 1 May 2009 16:23:24 +0000 (16:23 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 1 May 2009 16:23:24 +0000 (16:23 +0000)
git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@29 191e9f34-6774-4a6d-acfc-7664dacd4a2a

recepies/zfs/enlarge-pool/4.remove-small-remote-block-device [new file with mode: 0644]

diff --git a/recepies/zfs/enlarge-pool/4.remove-small-remote-block-device b/recepies/zfs/enlarge-pool/4.remove-small-remote-block-device
new file mode 100644 (file)
index 0000000..9fd4db9
--- /dev/null
@@ -0,0 +1,46 @@
+root@opl:~# zfs list
+NAME                         USED  AVAIL  REFER  MOUNTPOINT
+zfs                         97.7G   288M    22K  /zfs
+zfs/install                 6.40G   288M  6.40G  /zfs/install
+zfs/vz                      91.3G   288M  72.8G  /zfs/vz
+zfs/vz@2009-05-01_14:41:50  18.5G      -  72.2G  -
+
+
+root@opl:~# zpool status
+  pool: zfs
+ state: ONLINE
+ scrub: resilver completed after 0h28m with 0 errors on Fri May  1 18:13:31 2009
+config:
+
+        NAME               STATE     READ WRITE CKSUM
+        zfs                ONLINE       0     0     0
+          mirror           ONLINE       0     0     0
+            nbd0p1         ONLINE       0     0     0
+            raid0/zfs-200  ONLINE       0     0     0
+
+errors: No known data errors
+
+
+root@opl:~# zpool detach zfs nbd0p1
+
+
+root@opl:~# zpool status
+  pool: zfs
+ state: ONLINE
+ scrub: resilver completed after 0h28m with 0 errors on Fri May  1 18:13:31 2009
+config:
+
+        NAME             STATE     READ WRITE CKSUM
+        zfs              ONLINE       0     0     0
+          raid0/zfs-200  ONLINE       0     0     0
+
+errors: No known data errors
+
+
+root@opl:~# zfs list
+NAME                         USED  AVAIL  REFER  MOUNTPOINT
+zfs                         97.7G  98.7G    22K  /zfs
+zfs/install                 6.40G  98.7G  6.40G  /zfs/install
+zfs/vz                      91.3G  98.7G  72.8G  /zfs/vz
+zfs/vz@2009-05-01_14:41:50  18.5G      -  72.2G  -
+r