1 root@opl:/srv/sysadmin-cookbook/recepies/zfs# fdisk -l /dev/nbd0
3 Disk /dev/nbd0: 250.0 GB, 250000000000 bytes
4 255 heads, 63 sectors/track, 30394 cylinders
5 Units = cylinders of 16065 * 512 = 8225280 bytes
6 Disk identifier: 0x00000000
8 Device Boot Start End Blocks Id System
9 /dev/nbd0p1 1 13374 107426623+ 83 Linux
12 root@opl:~# zpool status
15 scrub: scrub completed after 0h19m with 0 errors on Thu Apr 30 22:46:09 2009
18 NAME STATE READ WRITE CKSUM
20 raid0/zfs ONLINE 0 0 0
22 errors: No known data errors
25 root@opl:~# zpool attach zfs /dev/raid0/zfs /dev/nbd0p1
27 root@opl:~# zpool status
30 status: One or more devices is currently being resilvered. The pool will
31 continue to function, possibly in a degraded state.
32 action: Wait for the resilver to complete.
33 scrub: resilver in progress for 0h2m, 3.47% done, 1h5m to go
36 NAME STATE READ WRITE CKSUM
39 raid0/zfs ONLINE 0 0 0
42 errors: No known data errors