SHARE
TWEET

Untitled

a guest Jun 18th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mypool
  2.     mirror1
  3.         disk1 (2TB)
  4.         disk2 (2TB)
  5.         combined
  6.             disk3 (1TB)
  7.             disk4 (1TB)
  8.      
  9. mypool
  10.     mirror1
  11.         disk1 (2TB)
  12.         disk2 (2TB)
  13.      
  14. # mkdir zfs-test; cd zfs-test
  15. # truncate -s 2G drive1; truncate -s 2G drive2
  16. # truncate -s 1G drive3; truncate -s 1G drive4
  17.      
  18. # for N in $(jot 4); do mdconfig -u $N -t vnode -f drive$N; done
  19. # mdconfig -lv
  20. md1     vnode    2048M  /home/jim/zfs-test/drive1
  21. md2     vnode    2048M  /home/jim/zfs-test/drive2
  22. md3     vnode    1024M  /home/jim/zfs-test/drive3
  23. md4     vnode    1024M  /home/jim/zfs-test/drive4
  24.      
  25. # zpool create mypool mirror md1 md2
  26. # zpool status mypool
  27.   pool: mypool
  28.  state: ONLINE
  29.   scan: none requested
  30. config:
  31.  
  32.         NAME        STATE     READ WRITE CKSUM
  33.         mypool      ONLINE       0     0     0
  34.           mirror-0  ONLINE       0     0     0
  35.             md1     ONLINE       0     0     0
  36.             md2     ONLINE       0     0     0
  37.  
  38. errors: No known data errors
  39.      
  40. # gstripe label -h combined md3 md4
  41. # gstripe status
  42.            Name  Status  Components
  43. stripe/combined      UP  md3
  44.                          md4
  45. # zpool attach mypool md2 stripe/combined
  46. cannot attach stripe/combined to md2: device is too small
  47.      
  48. # diskinfo -v md1 md2 stripe/combined
  49. md1
  50.         512             # sectorsize
  51.         2147483648      # mediasize in bytes (2.0G)
  52.         4194304         # mediasize in sectors
  53.         0               # stripesize
  54.         0               # stripeoffset
  55.         MD-DEV5473951480393710199-INO24 # Disk ident.
  56.         Yes             # TRIM/UNMAP support
  57.         Unknown         # Rotation rate in RPM
  58.  
  59. md2
  60.         512             # sectorsize
  61.         2147483648      # mediasize in bytes (2.0G)
  62.         4194304         # mediasize in sectors
  63.         0               # stripesize
  64.         0               # stripeoffset
  65.         MD-DEV5473951480393710199-INO24 # Disk ident.
  66.         Yes             # TRIM/UNMAP support
  67.         Unknown         # Rotation rate in RPM
  68.  
  69. stripe/combined
  70.         512             # sectorsize
  71.         2147352576      # mediasize in bytes (2.0G)
  72.         4194048         # mediasize in sectors
  73.         65536           # stripesize
  74.         0               # stripeoffset
  75.         No              # TRIM/UNMAP support
  76.         Unknown         # Rotation rate in RPM
  77.      
  78. # gstripe destroy combined
  79. # mdconfig -d -u3; mdconfig -d -u4
  80. # mdconfig -lv
  81. md1     vnode    2048M  /home/jim/zfs-test/drive1
  82. md2     vnode    2048M  /home/jim/zfs-test/drive2
  83.      
  84. # truncate -s 1025M drive3
  85. # truncate -s 1025M drive4
  86. # mdconfig -u3 -t vnode -f drive3
  87. # mdconfig -u4 -t vnode -f drive4
  88. # gstripe label -h combined md3 md4
  89. # zpool attach mypool md2 stripe/combined
  90. # zpool status mypool
  91.   pool: mypool
  92.  state: ONLINE
  93.   scan: resilvered 81.5K in 0 days 00:00:04 with 0 errors on Thu May 23 15:27:26 2019
  94. config:
  95.  
  96.         NAME                 STATE     READ WRITE CKSUM
  97.         mypool               ONLINE       0     0     0
  98.           mirror-0           ONLINE       0     0     0
  99.             md1              ONLINE       0     0     0
  100.             md2              ONLINE       0     0     0
  101.             stripe/combined  ONLINE       0     0     0
  102.  
  103. errors: No known data errors
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