Guest User

Untitled

a guest
Jul 17th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.05 KB | None | 0 0
  1. $ sudo mdadm --detail-platform
  2. Platform : Intel(R) Rapid Storage Technology
  3. Version : 10.1.0.1008
  4. RAID Levels : raid0 raid1 raid5
  5. Chunk Sizes : 4k 8k 16k 32k 64k 128k
  6. 2TB volumes : supported
  7. 2TB disks : not supported
  8. Max Disks : 7
  9. Max Volumes : 2 per array, 4 per controller
  10. I/O Controller : /sys/devices/pci0000:00/0000:00:1f.2 (SATA)
  11. Port0 : /dev/sda (W0Q6DV7Z)
  12. Port3 : - non-disk device (HL-DT-ST DVD+-RW GS30N) -
  13. Port1 : /dev/sdb (W0Q6CJM1)
  14. Port2 : - no device attached -
  15. Port4 : - no device attached -
  16. Port5 : - no device attached -
  17.  
  18. $ sudo fdisk -l
  19. Disk /dev/loop0: 298.1 GiB, 320072933376 bytes, 625142448 sectors
  20. Units: sectors of 1 * 512 = 512 bytes
  21. Sector size (logical/physical): 512 bytes / 512 bytes
  22. I/O size (minimum/optimal): 512 bytes / 512 bytes
  23. Disklabel type: dos
  24. Disk identifier: 0x2bd2c32a
  25.  
  26. Device Boot Start End Sectors Size Id Type
  27. /dev/loop0p1 * 2048 4196351 4194304 2G 7 HPFS/NTFS/exFAT
  28. /dev/loop0p2 4196352 1250273279 1246076928 594.2G 7 HPFS/NTFS/exFAT
  29.  
  30.  
  31. Disk /dev/loop1: 298.1 GiB, 320072933376 bytes, 625142448 sectors
  32. Units: sectors of 1 * 512 = 512 bytes
  33. Sector size (logical/physical): 512 bytes / 512 bytes
  34. I/O size (minimum/optimal): 512 bytes / 512 bytes
  35.  
  36.  
  37. Disk /dev/sda: 298.1 GiB, 320072933376 bytes, 625142448 sectors
  38. Units: sectors of 1 * 512 = 512 bytes
  39. Sector size (logical/physical): 512 bytes / 4096 bytes
  40. I/O size (minimum/optimal): 4096 bytes / 4096 bytes
  41. Disklabel type: dos
  42. Disk identifier: 0x2bd2c32a
  43.  
  44. Device Boot Start End Sectors Size Id Type
  45. /dev/sda1 * 2048 4196351 4194304 2G 7 HPFS/NTFS/exFAT
  46. /dev/sda2 4196352 1250273279 1246076928 594.2G 7 HPFS/NTFS/exFAT
  47.  
  48.  
  49. Disk /dev/sdb: 298.1 GiB, 320072933376 bytes, 625142448 sectors
  50. Units: sectors of 1 * 512 = 512 bytes
  51. Sector size (logical/physical): 512 bytes / 4096 bytes
  52. I/O size (minimum/optimal): 4096 bytes / 4096 bytes
  53.  
  54. $ sudo mdadm --examine --verbose /dev/sda
  55. /dev/sda:
  56. Magic : Intel Raid ISM Cfg Sig.
  57. Version : 1.0.00
  58. Orig Family : 81bdf089
  59. Family : 81bdf089
  60. Generation : 00001796
  61. Attributes : All supported
  62. UUID : acf55f6b:49f936c5:787fa66e:620d7df0
  63. Checksum : 6cf37d06 correct
  64. MPB Sectors : 1
  65. Disks : 2
  66. RAID Devices : 1
  67.  
  68. [ARRAY]:
  69. UUID : e4d3f954:2f449bfd:43495615:e040960c
  70. RAID Level : 0
  71. Members : 2
  72. Slots : [_U]
  73. Failed disk : 0
  74. This Slot : ?
  75. Array Size : 1250275328 (596.18 GiB 640.14 GB)
  76. Per Dev Size : 625137928 (298.09 GiB 320.07 GB)
  77. Sector Offset : 0
  78. Num Stripes : 2441944
  79. Chunk Size : 128 KiB
  80. Reserved : 0
  81. Migrate State : idle
  82. Map State : normal
  83. Dirty State : clean
  84.  
  85. Disk00 Serial : W0Q6DV7Z
  86. State : active failed
  87. Id : 00000000
  88. Usable Size : 625136142 (298.09 GiB 320.07 GB)
  89.  
  90. Disk01 Serial : W0Q6CJM1
  91. State : active
  92. Id : 00010000
  93. Usable Size : 625136142 (298.09 GiB 320.07 GB)
  94.  
  95. $ sudo mdadm --examine --verbose /dev/sdb
  96. /dev/sdb:
  97. Magic : Intel Raid ISM Cfg Sig.
  98. Version : 1.0.00
  99. Orig Family : 81bdf089
  100. Family : 81bdf089
  101. Generation : 00001796
  102. Attributes : All supported
  103. UUID : acf55f6b:49f936c5:787fa66e:620d7df0
  104. Checksum : 6cf37d06 correct
  105. MPB Sectors : 1
  106. Disks : 2
  107. RAID Devices : 1
  108.  
  109. Disk01 Serial : W0Q6CJM1
  110. State : active
  111. Id : 00010000
  112. Usable Size : 625137928 (298.09 GiB 320.07 GB)
  113.  
  114. [ARRAY]:
  115. UUID : e4d3f954:2f449bfd:43495615:e040960c
  116. RAID Level : 0
  117. Members : 2
  118. Slots : [_U]
  119. Failed disk : 0
  120. This Slot : 1
  121. Array Size : 1250275328 (596.18 GiB 640.14 GB)
  122. Per Dev Size : 625137928 (298.09 GiB 320.07 GB)
  123. Sector Offset : 0
  124. Num Stripes : 2441944
  125. Chunk Size : 128 KiB
  126. Reserved : 0
  127. Migrate State : idle
  128. Map State : normal
  129. Dirty State : clean
  130.  
  131. Disk00 Serial : W0Q6DV7Z
  132. State : active failed
  133. Id : 00000000
  134. Usable Size : 625137928 (298.09 GiB 320.07 GB)
  135.  
  136. $ sudo mdadm --assemble --verbose /dev/md0 /dev/loop0 /dev/loop1
  137. mdadm: looking for devices for /dev/md0
  138. mdadm: Cannot assemble mbr metadata on /dev/loop0
  139. mdadm: /dev/loop0 has no superblock - assembly aborted
  140.  
  141. $ sudo mdadm -CR /dev/md/imsm -e imsm -n 2 /dev/loop[01]
  142. mdadm: /dev/loop0 is not attached to Intel(R) RAID controller.
  143. mdadm: /dev/loop0 is not suitable for this array.
  144. mdadm: /dev/loop1 is not attached to Intel(R) RAID controller.
  145. mdadm: /dev/loop1 is not suitable for this array.
  146. mdadm: create aborted
  147.  
  148. $ sudo IMSM_NO_PLATFORM=1 IMSM_DEVNAME_AS_SERIAL=1 mdadm -CR /dev/md/imsm -e imsm -n 2 /dev/loop[01]
  149. mdadm: /dev/loop0 appears to be part of a raid array:
  150. level=container devices=0 ctime=Wed Dec 31 19:00:00 1969
  151. mdadm: metadata will over-write last partition on /dev/loop0.
  152. mdadm: /dev/loop1 appears to be part of a raid array:
  153. level=container devices=0 ctime=Wed Dec 31 19:00:00 1969
  154. mdadm: container /dev/md/imsm prepared.
  155.  
  156. $ ls -l /dev/md
  157. total 0
  158. lrwxrwxrwx 1 root root 8 Apr 2 05:32 imsm -> ../md126
  159. lrwxrwxrwx 1 root root 8 Apr 2 05:20 imsm0 -> ../md127
  160.  
  161. $ sudo IMSM_NO_PLATFORM=1 IMSM_DEVNAME_AS_SERIAL=1 mdadm -Ev /dev/md/imsm
  162. /dev/md/imsm:
  163. Magic : Intel Raid ISM Cfg Sig.
  164. Version : 1.0.00
  165. Orig Family : 00000000
  166. Family : ff3cb556
  167. Generation : 00000001
  168. Attributes : All supported
  169. UUID : 00000000:00000000:00000000:00000000
  170. Checksum : 7edb0f81 correct
  171. MPB Sectors : 1
  172. Disks : 1
  173. RAID Devices : 0
  174.  
  175. Disk00 Serial : /dev/loop0
  176. State : spare
  177. Id : 00000000
  178. Usable Size : 625140238 (298.09 GiB 320.07 GB)
  179.  
  180. Disk Serial : /dev/loop1
  181. State : spare
  182. Id : 00000000
  183. Usable Size : 625140238 (298.09 GiB 320.07 GB)
  184.  
  185. Disk Serial : /dev/loop0
  186. State : spare
  187. Id : 00000000
  188. Usable Size : 625140238 (298.09 GiB 320.07 GB)
  189.  
  190. $ sudo IMSM_NO_PLATFORM=1 IMSM_DEVNAME_AS_SERIAL=1 mdadm -I /dev/md/imsm
  191.  
  192. $ sudo IMSM_NO_PLATFORM=1 IMSM_DEVNAME_AS_SERIAL=1 mdadm -Iv /dev/md/imsm
  193. mdadm: not enough devices to start the container
  194.  
  195. $ sudo cat /proc/mdstat
  196. Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
  197. md126 : inactive loop1[1](S) loop0[0](S)
  198. 2210 blocks super external:imsm
  199.  
  200. md127 : inactive sdb[1](S) sda[0](S)
  201. 5413 blocks super external:imsm
  202.  
  203. unused devices: <none>
  204.  
  205. Disk /dev/loop0: 298.1 GiB, 320072933376 bytes, 625142448 sectors
  206.  
  207. Device Boot Start End Sectors Size Id Type
  208. /dev/loop0p1 * 2048 4196351 4194304 2G 7 HPFS/NTFS/exFAT
  209. /dev/loop0p2 4196352 1250273279 1246076928 594.2G 7 HPFS/NTFS/exFAT
  210.  
  211. Disk /dev/loop1: 298.1 GiB, 320072933376 bytes, 625142448 sectors
  212.  
  213. mdadm --build /dev/md0 --raid-devices=2 --level=0 --chunk=128 /dev/loop0 /dev/loop1
  214. cat /proc/mdstat
  215.  
  216. ld=$(losetup --show --find --offset=$((4196352*512)) /dev/md0)
  217. echo loop device is $ld
  218. mkdir -p /mnt/dsk
  219. mount -t ntfs -o ro $ld /mnt/dsk
Add Comment
Please, Sign In to add comment