SHARE
TWEET

Копипаста

a guest Dec 10th, 2015 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ressurected# dd if=/dev/zero of=test.img bs=1m count=15000
  2. 15000+0 records in
  3. 15000+0 records out
  4. 15728640000 bytes transferred in 299.641029 secs (52491610 bytes/sec)
  5. ressurected# vnconfig -c vn test.img
  6. vn4
  7. ressurected# disklabel64 -w -r /dev/vn4s0 auto
  8. ressurected# disklabel64 -e /dev/vn4s0
  9. ressurected# newfs_hammer -f -L TEST /dev/vn4s0a
  10. Volume 0 DEVICE /dev/vn4s0a     size  14.65GB
  11. initialize freemap volume 0
  12. initializing the undo map (504 MB)
  13. ---------------------------------------------
  14. 1 volume total size  14.65GB version 6
  15. boot-area-size:       32.00MB
  16. memory-log-size:      32.00MB
  17. undo-buffer-size:    504.00MB
  18. total-pre-allocated:   0.51GB
  19. fsid:                44b3c7ea-9f56-11e5-a636-11feed02b918
  20.  
  21. NOTE: Please remember that you may have to manually set up a
  22. cron(8) job to prune and reblock the filesystem regularly.
  23. By default, the system automatically runs 'hammer cleanup'
  24. on a nightly basis.  The periodic.conf(5) variable
  25. 'daily_clean_hammer_enable' can be unset to disable this.
  26. Also see 'man hammer' and 'man HAMMER' for more information.
  27.  
  28. WARNING: HAMMER filesystems less than 50GB are not recommended!
  29. You may have to run 'hammer prune-everything' and 'hammer reblock'
  30. quite often, even if using a nohistory mount.
  31. ressurected# mount /dev/vn4s0a /mnt/
  32. ressurected# cd /mnt/
  33. ressurected# touch it
  34. ressurected# hammer snapq .
  35. ./@@0x0000000100008020
  36. ressurected# touch seems
  37. ressurected# hammer snapq .
  38. ./@@0x0000000100008080
  39. ressurected# touch to\ be\ working
  40. ressurected# hammer snapq .
  41. ./@@0x0000000100008120
  42. ressurected# cd
  43. ressurected# umount /mnt/
  44. ressurected# mount /dev/vn4s0a /mnt/
  45. ressurected# cd /mnt/
  46. ressurected# hammer snapq .
  47. ./@@0x0000000000000000
  48. ressurected# touch no\ it\ does\ not
  49. ressurected# hammer snapq .
  50. ./@@0x0000000100010220
  51. ressurected# hammer snapls .
  52. Snapshots on .  PFS #0
  53. Transaction ID          Timestamp               Note
  54. 0x0000000000000000      2015-12-10 19:17:09 MSK -
  55. 0x0000000100008020      2015-12-10 19:16:29 MSK -
  56. 0x0000000100008080      2015-12-10 19:16:35 MSK -
  57. 0x0000000100008120      2015-12-10 19:16:54 MSK -
  58. 0x0000000100010220      2015-12-10 19:17:23 MSK -
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top