/[sysadmin-cookbook]/recepies/zfs/enlarge-pool/4.remove-small-remote-block-device
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /recepies/zfs/enlarge-pool/4.remove-small-remote-block-device

Parent Directory Parent Directory | Revision Log Revision Log


Revision 29 - (hide annotations)
Fri May 1 16:23:24 2009 UTC (15 years ago) by dpavlin
File size: 1426 byte(s)
detach small block device from pool so it get enlarged

1 dpavlin 29 root@opl:~# zfs list
2     NAME USED AVAIL REFER MOUNTPOINT
3     zfs 97.7G 288M 22K /zfs
4     zfs/install 6.40G 288M 6.40G /zfs/install
5     zfs/vz 91.3G 288M 72.8G /zfs/vz
6     zfs/vz@2009-05-01_14:41:50 18.5G - 72.2G -
7    
8    
9     root@opl:~# zpool status
10     pool: zfs
11     state: ONLINE
12     scrub: resilver completed after 0h28m with 0 errors on Fri May 1 18:13:31 2009
13     config:
14    
15     NAME STATE READ WRITE CKSUM
16     zfs ONLINE 0 0 0
17     mirror ONLINE 0 0 0
18     nbd0p1 ONLINE 0 0 0
19     raid0/zfs-200 ONLINE 0 0 0
20    
21     errors: No known data errors
22    
23    
24     root@opl:~# zpool detach zfs nbd0p1
25    
26    
27     root@opl:~# zpool status
28     pool: zfs
29     state: ONLINE
30     scrub: resilver completed after 0h28m with 0 errors on Fri May 1 18:13:31 2009
31     config:
32    
33     NAME STATE READ WRITE CKSUM
34     zfs ONLINE 0 0 0
35     raid0/zfs-200 ONLINE 0 0 0
36    
37     errors: No known data errors
38    
39    
40     root@opl:~# zfs list
41     NAME USED AVAIL REFER MOUNTPOINT
42     zfs 97.7G 98.7G 22K /zfs
43     zfs/install 6.40G 98.7G 6.40G /zfs/install
44     zfs/vz 91.3G 98.7G 72.8G /zfs/vz
45     zfs/vz@2009-05-01_14:41:50 18.5G - 72.2G -
46     r

  ViewVC Help
Powered by ViewVC 1.1.26