By user12625760 on Apr 21, 2006
If I had not got caught out again by the M2 hanging during boot this would have been a breeze. Instead I was to struggle off and on for hours before finding the answer on my own blog. Doh.
Anyway I have bought a 160G USB 2.0 disk drive so that I can backup my laptops and have some extra space for things that it would be nice to keep but not on the cramped internal drives. Looks like a nice bit of kit in it's fanless enclosure.
Plugged the drive in and pointed zpool at the device as seen by volume manager and I now have a pool that lives on this disk with lots of file systems on it. I can see a need for a script to run zfs backup on each local file system redirected to a file system on the external box.
1846 # zfs list -r removable NAME USED AVAIL REFER MOUNTPOINT removable 20.7G 131G 12.5K /removable removable/bike 4.88G 131G 4.88G /removable/bike removable/nv 137M 131G 137M /removable/nv removable/principia 9.50K 131G 9.50K /removable/principia removable/scratch 9K 131G 9K /removable/scratch removable/sigma 5.14G 131G 9.50K /removable/sigma removable/sigma/home 5.14G 131G 9.50K /removable/sigma/home removable/sigma/home/cjg 5.14G 131G 597M /removable/sigma/home/cjg removable/sigma/home/cjg/pics 4.55G 131G 4.55G /removable/sigma/home/cjg/pics removable/sigma_backup 556M 141G 556M - removable/users 586M 131G 9.50K /removable/users removable/users/cjg 586M 131G 586M /removable/users/cjg 1847 #
Exporting the pool and then reimporting it on the other laptop all works as expected which is good and I hope is going to allow me to do the live upgrade from the OS image on that drive so it does not have to get slurped over the internet twice.
I did over achieve and manage to crash one system as plan A was to have a zvol for each laptop on the disk and use that as a backup mirror for the internal drive which could be offlined when not in use. Alas this just hung and appears to be known issue with putting zpools inside zpools. However the talk that USB storage and zfs don't work together does not appear to be close to the truth.