Advertisement
peetaur

zpool rename

Dec 11th, 2012
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. # dd if=/dev/zero of=testfile bs=1M count=0 seek=1000
  2. 0+0 records in
  3. 0+0 records out
  4. 0 bytes (0 B) copied, 9.849e-06 s, 0.0 kB/s
  5.  
  6. # ls -lh
  7. total 8.0K
  8. -rw-r--r-- 1 root root 1000M Dec 11 14:35 testfile
  9.  
  10. # losetup /dev/loop0 testfile
  11. #
  12. # zpool create testpool /dev/loop0
  13. # zpool status testpool
  14. pool: testpool
  15. state: ONLINE
  16. scan: none requested
  17. config:
  18.  
  19. NAME STATE READ WRITE CKSUM
  20. testpool ONLINE 0 0 0
  21. loop0 ONLINE 0 0 0
  22.  
  23. errors: No known data errors
  24.  
  25. # zpool export testpool
  26. # zpool import testpool testpool2
  27. # zpool status testpool
  28. cannot open 'testpool': no such pool
  29.  
  30. # zpool status testpool2
  31. pool: testpool2
  32. state: ONLINE
  33. scan: none requested
  34. config:
  35.  
  36. NAME STATE READ WRITE CKSUM
  37. testpool2 ONLINE 0 0 0
  38. loop0 ONLINE 0 0 0
  39.  
  40. errors: No known data errors
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement