{"id":221,"date":"2023-06-23T18:07:47","date_gmt":"2022-12-31T19:17:32","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/ubuntu-22-04%e3%81%a7mdadm%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6raid%e3%82%a2%e3%83%ac%e3%82%a4%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/"},"modified":"2024-03-19T23:14:28","modified_gmt":"2024-03-19T14:14:28","slug":"ubuntu-22-04%e3%81%a7mdadm%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6raid%e3%82%a2%e3%83%ac%e3%82%a4%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-22-04%e3%81%a7mdadm%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6raid%e3%82%a2%e3%83%ac%e3%82%a4%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","title":{"rendered":"Ubuntu 22.04\u3067mdadm\u3092\u4f7f\u7528\u3057\u3066RAID\u30a2\u30ec\u30a4\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<h3>\u306f\u3058\u3081\u306b<\/h3>\n<p>\u300cmdadm\u300d\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001Linux\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2RAID\u6a5f\u80fd\u3092\u5229\u7528\u3057\u3066\u30b9\u30c8\u30ec\u30fc\u30b8\u30a2\u30ec\u30a4\u3092\u4f5c\u6210\u304a\u3088\u3073\u7ba1\u7406\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u7ba1\u7406\u8005\u306f\u500b\u3005\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u30c7\u30d0\u30a4\u30b9\u3092\u8abf\u6574\u3057\u3001\u3088\u308a\u9ad8\u3044\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3084\u5197\u9577\u6027\u3092\u6301\u3064\u8ad6\u7406\u7684\u306a\u30b9\u30c8\u30ec\u30fc\u30b8\u30c7\u30d0\u30a4\u30b9\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u5927\u304d\u306a\u67d4\u8edf\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30ac\u30a4\u30c9\u3067\u306f\u3001Ubuntu 22.04 \u30b5\u30fc\u30d0\u30fc\u3092\u4f7f\u7528\u3057\u3066\u8a2d\u5b9a\u3067\u304d\u308b\u3055\u307e\u3056\u307e\u306a RAID \u69cb\u6210\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<h2>\u524d\u63d0\u6761\u4ef6 (Zenjiten)<\/h2>\n<p>\u3053\u306e\u30ac\u30a4\u30c9\u306b\u5f93\u3046\u305f\u3081\u306b\u306f\u3001\u4ee5\u4e0b\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>A non-root user with sudo privileges on an Ubuntu 22.04 server. To learn how to set up an account with these privileges, follow our Ubuntu 22.04 initial server setup guide.<\/li>\n<li>A basic understanding of RAID terminology and concepts. To learn more about RAID and what RAID level is right for you, read our introduction to RAID article.<\/li>\n<li>Multiple raw storage devices available on your server. The examples in this tutorial demonstrate how to configure various types of arrays on the server. As such, you will need some drives to configure.<\/li>\n<li>Depending on the array type, you will need two to four storage devices. These drives do not need to be formatted prior to following this guide.<\/li>\n<\/ul>\n<div class=\"post-conf-info\">\n<p class=\"post-conf-desc\">Info<\/p>\n<div>\u60c5\u5831\uff1a\u4eee\u60f3\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30b5\u30fc\u30d0\u30fc\u306b\u304a\u3051\u308bRAID\u69cb\u6210\u306e\u975e\u52b9\u7387\u6027\u3092\u8003\u616e\u3057\u3001Silicon Cloud\u30c9\u30ed\u30c3\u30d7\u30ec\u30c3\u30c8\u4e0a\u3067\u306eRAID\u69cb\u6210\u306e\u5c55\u958b\u306f\u63a8\u5968\u3057\u3066\u3044\u307e\u305b\u3093\u3002\u30c7\u30fc\u30bf\u30bb\u30f3\u30bf\u30fc\u306e\u30c7\u30a3\u30b9\u30af\u8907\u88fd\u306e\u52b9\u7387\u306b\u3088\u308a\u3001\u30d9\u30a2\u30e1\u30bf\u30eb\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u4e0a\u306e\u69cb\u6210\u3068\u6bd4\u8f03\u3057\u3066RAID\u306e\u5229\u70b9\u306f\u7121\u8996\u3067\u304d\u308b\u7a0b\u5ea6\u3067\u3059\u3002\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306f\u5f93\u6765\u306eRAID\u69cb\u6210\u306e\u53c2\u8003\u3068\u306a\u308b\u3053\u3068\u3092\u76ee\u6307\u3057\u3066\u3044\u307e\u3059\u3002<\/div>\n<\/div>\n<h2>\u65e2\u5b58\u306eRAID\u30c7\u30d0\u30a4\u30b9\u306e\u30ea\u30bb\u30c3\u30c8\uff08\u4efb\u610f\uff09<\/h2>\n<p>\u307e\u3060\u914d\u5217\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u3001\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u306f\u4e00\u6642\u7684\u306b\u30b9\u30ad\u30c3\u30d7\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u30ac\u30a4\u30c9\u3067\u306f\u3001\u3055\u307e\u3056\u307e\u306aRAID\u30ec\u30d9\u30eb\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u30c7\u30d0\u30a4\u30b9\u3054\u3068\u306b\u5404RAID\u30ec\u30d9\u30eb\u3092\u5b8c\u4e86\u3057\u3066\u3044\u304f\u305f\u3081\u306b\u306f\u3001\u5404\u30bb\u30af\u30b7\u30e7\u30f3\u306e\u5f8c\u3067\u30b9\u30c8\u30ec\u30fc\u30b8\u30c7\u30d0\u30a4\u30b9\u3092\u518d\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u671b\u307e\u3057\u3044\u3067\u3057\u3087\u3046\u3002\u65b0\u3057\u3044RAID\u30ec\u30d9\u30eb\u3092\u30c6\u30b9\u30c8\u3059\u308b\u524d\u306b\u3001\u30b9\u30c8\u30ec\u30fc\u30b8\u30c7\u30d0\u30a4\u30b9\u3092\u30ea\u30bb\u30c3\u30c8\u3059\u308b\u305f\u3081\u306b\u3053\u306e\u7279\u5b9a\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u300c\u65e2\u5b58\u306eRAID\u30c7\u30d0\u30a4\u30b9\u306e\u30ea\u30bb\u30c3\u30c8\u300d\u3092\u53c2\u7167\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"post-conf-warning\">\n<p class=\"post-conf-desc\">Warning<\/p>\n<div>\u8b66\u544a: \u3053\u306e\u30d7\u30ed\u30bb\u30b9\u306b\u3088\u308a\u3001\u914d\u5217\u3068\u305d\u306e\u4e2d\u306e\u30c7\u30fc\u30bf\u304c\u5b8c\u5168\u306b\u7834\u58ca\u3055\u308c\u307e\u3059\u3002\u6b63\u3057\u3044\u914d\u5217\u3067\u64cd\u4f5c\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3001\u914d\u5217\u3092\u7834\u58ca\u3059\u308b\u524d\u306b\u4fdd\u6301\u3059\u308b\u5fc5\u8981\u306e\u3042\u308b\u30c7\u30fc\u30bf\u3092\u30b3\u30d4\u30fc\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/div>\n<\/div>\n<p>\u6700\u521d\u306b\u3001\/proc\/mdstat \u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u304b\u3089\u30a2\u30af\u30c6\u30a3\u30d6\u306a\u914d\u5217\u3092\u898b\u3064\u3051\u308b\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">cat<\/span> \/proc\/mdstat<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>Personalities : [raid0] [linear] [multipath] [raid1] [raid6] [raid5] [raid4] [raid10] <mark>md0<\/mark> : active raid0 sdc[1] sdd[0] 209584128 blocks super 1.2 512k chunks unused devices: &lt;none&gt;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u305d\u306e\u5f8c\u3001\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u304b\u3089\u914d\u5217\u3092\u30a2\u30f3\u30de\u30a6\u30f3\u30c8\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">umount<\/span> \/dev\/<mark>md0<\/mark><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4eca\u3001\u6b62\u3081\u3066\u914d\u5217\u3092\u524a\u9664\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mdadm<\/span> <span class=\"token parameter variable\">&#8211;stop<\/span> \/dev\/<mark>md0<\/mark><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3063\u3066\u3001\u30a2\u30ec\u30a4\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u305f\u30c7\u30d0\u30a4\u30b9\u3092\u898b\u3064\u3051\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"post-conf-warning\">\n<p class=\"post-conf-desc\">Warning<\/p>\n<div>\u8b66\u544a\uff1a\/dev\/sd*\u306e\u540d\u524d\u306f\u518d\u8d77\u52d5\u3059\u308b\u305f\u3073\u306b\u5909\u66f4\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u6b63\u3057\u3044\u30c7\u30d0\u30a4\u30b9\u4e0a\u3067\u64cd\u4f5c\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u3001\u6bce\u56de\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/div>\n<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">lsblk <span class=\"token parameter variable\">-o<\/span> NAME,SIZE,FSTYPE,TYPE,MOUNTPOINT<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>NAME SIZE FSTYPE TYPE MOUNTPOINT <mark>sda 100G linux_raid_member disk <\/mark> <mark>sdb 100G linux_raid_member disk <\/mark> sdc 100G disk sdd 100G disk vda 25G disk \u251c\u2500vda1 24.9G ext4 part \/ \u251c\u2500vda14 4M part \u2514\u2500vda15 106M vfat part \/boot\/efi vdb 466K iso9660 disk<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30c7\u30d0\u30a4\u30b9\u3092\u767a\u898b\u3057\u305f\u5f8c\u3001\u914d\u5217\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u308b\u30b9\u30fc\u30d1\u30fc\u30d6\u30ed\u30c3\u30af\u3092\u30bc\u30ed\u306b\u3059\u308b\u3002\u3053\u308c\u306b\u3088\u308a\u3001RAID\u306e\u30e1\u30bf\u30c7\u30fc\u30bf\u304c\u524a\u9664\u3055\u308c\u3001\u901a\u5e38\u306e\u72b6\u614b\u306b\u30ea\u30bb\u30c3\u30c8\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mdadm<\/span> &#8211;zero-superblock \/dev\/<mark>sda<\/mark><\/li>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mdadm<\/span> &#8211;zero-superblock \/dev\/<mark>sdb<\/mark><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u300c\u30a2\u30ec\u30a4\u3078\u306e\u6301\u7d9a\u7684\u306a\u53c2\u7167\u3082\u524a\u9664\u3059\u308b\u3053\u3068\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002\/etc\/fstab \u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u3001\u30a2\u30ec\u30a4\u3078\u306e\u53c2\u7167\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u307e\u305f\u306f\u524a\u9664\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u884c\u306e\u5148\u982d\u306b\u30cf\u30c3\u30b7\u30e5\u30bf\u30b0 # \u3092\u633f\u5165\u3059\u308b\u3053\u3068\u3067\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3067\u304d\u307e\u3059\u3002nano \u3084\u304a\u597d\u307f\u306e\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u300d<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/fstab<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div>\n<p>\/etc\/fstab\u3092\u65e5\u672c\u8a9e\u306b\u30cd\u30a4\u30c6\u30a3\u30d6\u306a\u8868\u73fe\u3067\u8a00\u3044\u63db\u3048\u308b\u3068\u3001<\/p>\n<p>\u300c\/etc\/fstab\u300d<\/p>\n<\/div>\n<pre class=\"post-pre\"><code>. . .\r\n<mark>#<\/mark> \/dev\/md0 \/mnt\/md0 ext4 defaults,nofail,discard 0 0\r\n<\/code><\/pre>\n<p>\u307e\u305f\u3001\/etc\/mdadm\/mdadm.conf\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u914d\u5217\u306e\u5b9a\u7fa9\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u307e\u305f\u306f\u524a\u9664\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/mdadm\/mdadm.conf<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div>\/etc\/mdadm\/mdadm.conf\u3092\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u308b\u3068\u3001\u300c\/etc\/mdadm\/mdadm.conf\u300d\u3067\u3059\u3002<\/div>\n<pre class=\"post-pre\"><code>. . .\r\n<mark>#<\/mark> ARRAY \/dev\/md0 metadata=1.2 name=mdadmwrite:0 UUID=7261fb9c:976d0d97:30bc63ce:85e76e91\r\n<\/code><\/pre>\n<p>\u6700\u5f8c\u306b\u3001initramfs\u3092\u518d\u5ea6\u66f4\u65b0\u3057\u3066\u3001\u65e9\u671f\u8d77\u52d5\u30d7\u30ed\u30bb\u30b9\u304c\u5229\u7528\u3067\u304d\u306a\u3044\u914d\u5217\u3092\u30aa\u30f3\u30e9\u30a4\u30f3\u306b\u3057\u3088\u3046\u3068\u3057\u306a\u3044\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> update-initramfs <span class=\"token parameter variable\">-u<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u3053\u304b\u3089\u306f\u3001\u30b9\u30c8\u30ec\u30fc\u30b8\u30c7\u30d0\u30a4\u30b9\u3092\u500b\u5225\u306b\u518d\u5229\u7528\u3059\u308b\u304b\u3001\u7570\u306a\u308b\u914d\u5217\u306e\u8981\u7d20\u3068\u3057\u3066\u4f7f\u7528\u3059\u308b\u6e96\u5099\u304c\u6574\u3044\u307e\u3057\u305f\u3002<\/p>\n<h2>RAID 0\u30a2\u30ec\u30a4\u3092\u4f5c\u6210\u3059\u308b<\/h2>\n<p>RAID 0\u30a2\u30ec\u30a4\u306f\u3001\u30c7\u30fc\u30bf\u3092\u30c1\u30e3\u30f3\u30af\u306b\u5206\u5272\u3057\u3001\u5229\u7528\u53ef\u80fd\u306a\u30c7\u30a3\u30b9\u30af\u306b\u30b9\u30c8\u30e9\u30a4\u30d4\u30f3\u30b0\u3059\u308b\u3053\u3068\u3067\u52d5\u4f5c\u3057\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u5404\u30c7\u30a3\u30b9\u30af\u306b\u306f\u30c7\u30fc\u30bf\u306e\u4e00\u90e8\u304c\u542b\u307e\u308c\u3001\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u969b\u306b\u306f\u8907\u6570\u306e\u30c7\u30a3\u30b9\u30af\u304c\u53c2\u7167\u3055\u308c\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>Requirements: Minimum of 2 storage devices.<\/li>\n<li>Primary benefit: Performance in terms of read\/write and capacity.<\/li>\n<li>Things to keep in mind: Make sure that you have functional backups. A single device failure will destroy all data in the array.<\/li>\n<\/ul>\n<h3>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u30c7\u30d0\u30a4\u30b9\u306e\u7279\u5b9a<\/h3>\n<p>\u6700\u521d\u306b\u3001\u4f7f\u7528\u3059\u308b\u751f\u30c7\u30a3\u30b9\u30af\u306e\u8b58\u5225\u5b50\u3092\u898b\u3064\u3051\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">lsblk <span class=\"token parameter variable\">-o<\/span> NAME,SIZE,FSTYPE,TYPE,MOUNTPOINT<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>NAME SIZE FSTYPE TYPE MOUNTPOINT <mark>sda 100G disk<\/mark> <mark>sdb 100G disk<\/mark> vda 25G disk \u251c\u2500vda1 24.9G ext4 part \/ \u251c\u2500vda14 4M part \u2514\u2500vda15 106M vfat part \/boot\/efi vdb 466K iso9660 disk<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u306a\u30442\u3064\u306e\u30c7\u30a3\u30b9\u30af\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u308c\u305e\u308c\u306e\u30b5\u30a4\u30ba\u306f100G\u3067\u3059\u3002\u3053\u308c\u3089\u306e\u30c7\u30d0\u30a4\u30b9\u306f\u3001\u3053\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u3067\u306e \/dev\/sda \u304a\u3088\u3073 \/dev\/sdb \u306e\u8b58\u5225\u5b50\u304c\u5272\u308a\u5f53\u3066\u3089\u308c\u3001\u914d\u5217\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306e\u751f\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3068\u3057\u3066\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>\u914d\u5217\u306e\u4f5c\u6210<\/h3>\n<p>\u3053\u308c\u3089\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u4f7f\u7528\u3057\u3066RAID 0\u30a2\u30ec\u30a4\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001mdadm &#8211;create\u30b3\u30de\u30f3\u30c9\u306b\u6e21\u3057\u307e\u3059\u3002\u4f5c\u6210\u3059\u308b\u30c7\u30d0\u30a4\u30b9\u540d\u3001RAID\u30ec\u30d9\u30eb\u3001\u304a\u3088\u3073\u30c7\u30d0\u30a4\u30b9\u306e\u6570\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306e\u4f8b\u3067\u306f\u3001\u30c7\u30d0\u30a4\u30b9\u540d\u3092\/dev\/md0\u3068\u3057\u3066\u3001\u30a2\u30ec\u30a4\u3092\u69cb\u7bc9\u3059\u308b2\u3064\u306e\u30c7\u30a3\u30b9\u30af\u3092\u542b\u3081\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mdadm<\/span> <span class=\"token parameter variable\">&#8211;create<\/span> <span class=\"token parameter variable\">&#8211;verbose<\/span> <mark>\/dev\/md0<\/mark> <span class=\"token parameter variable\">&#8211;level<\/span><span class=\"token operator\">=<\/span><span class=\"token number\">0<\/span> &#8211;raid-devices<span class=\"token operator\">=<\/span><span class=\"token number\">2<\/span> \/dev\/<mark>sda<\/mark> \/dev\/<mark>sdb<\/mark><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\/proc\/mdstat\u30d5\u30a1\u30a4\u30eb\u3092\u78ba\u8a8d\u3057\u3066\u3001RAID\u304c\u6b63\u5e38\u306b\u4f5c\u6210\u3055\u308c\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">cat<\/span> \/proc\/mdstat<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] <mark>md0 : active raid0 sdb[1] sda[0]<\/mark> 209584128 blocks super 1.2 512k chunks unused devices: &lt;none&gt;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u51fa\u529b\u7d50\u679c\u306b\u3088\u308c\u3070\u3001\/dev\/md0 \u30c7\u30d0\u30a4\u30b9\u306f RAID 0 \u69cb\u6210\u3067 \/dev\/sda \u3068 \/dev\/sdb \u30c7\u30d0\u30a4\u30b9\u3092\u4f7f\u7528\u3057\u3066\u4f5c\u6210\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<h3>\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u4f5c\u6210\u3068\u30de\u30a6\u30f3\u30c8<\/h3>\n<p>\u6b21\u306b\u3001\u914d\u5217\u4e0a\u306b\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002 (Tsugi ni, hais\u016bj\u014d ni fairushisutemu o sakusei shite kudasai.)<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> mkfs.ext4 <span class=\"token parameter variable\">-F<\/span> \/dev\/md0<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u305d\u306e\u5f8c\u3001\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3092\u63a5\u7d9a\u3059\u308b\u305f\u3081\u306e\u30de\u30a6\u30f3\u30c8\u30dd\u30a4\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mkdir<\/span> <span class=\"token parameter variable\">-p<\/span> \/mnt\/md0<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3092\u30de\u30a6\u30f3\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mount<\/span> \/dev\/md0 \/mnt\/md0<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u305d\u306e\u5f8c\u3001\u65b0\u3057\u3044\u30b9\u30da\u30fc\u30b9\u304c\u5229\u7528\u53ef\u80fd\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">df<\/span> <span class=\"token parameter variable\">-h<\/span> <span class=\"token parameter variable\">-x<\/span> devtmpfs <span class=\"token parameter variable\">-x<\/span> tmpfs<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>Filesystem Size Used Avail Use% Mounted on \/dev\/vda1 25G 1.4G 23G 6% \/ \/dev\/vda15 105M 3.4M 102M 4% \/boot\/efi <mark>\/dev\/md0 196G 61M 186G 1% \/mnt\/md0<\/mark><\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306f\u73fe\u5728\u30de\u30a6\u30f3\u30c8\u3055\u308c\u3001\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h3>\u914d\u5217\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u4fdd\u5b58\u3059\u308b<\/h3>\n<p>\u8d77\u52d5\u6642\u306b\u81ea\u52d5\u7684\u306b\u914d\u5217\u304c\u518d\u69cb\u7bc9\u3055\u308c\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306b\u306f\u3001\/etc\/mdadm\/mdadm.conf\u30d5\u30a1\u30a4\u30eb\u3092\u8abf\u6574\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30a2\u30af\u30c6\u30a3\u30d6\u306a\u914d\u5217\u3092\u81ea\u52d5\u7684\u306b\u30b9\u30ad\u30e3\u30f3\u3057\u3001\u6b21\u306e\u5185\u5bb9\u3092\u30d5\u30a1\u30a4\u30eb\u306b\u8ffd\u8a18\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mdadm<\/span> <span class=\"token parameter variable\">&#8211;detail<\/span> <span class=\"token parameter variable\">&#8211;scan<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">sudo<\/span> <span class=\"token function\">tee<\/span> <span class=\"token parameter variable\">-a<\/span> \/etc\/mdadm\/mdadm.conf<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u305d\u306e\u5f8c\u3001\u521d\u671fRAM\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3067\u3042\u308binitramfs\u3092\u66f4\u65b0\u3057\u3066\u3001\u30a2\u30ec\u30a4\u304c\u65e9\u671f\u306e\u30d6\u30fc\u30c8\u30d7\u30ed\u30bb\u30b9\u4e2d\u306b\u5229\u7528\u53ef\u80fd\u306b\u306a\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> update-initramfs <span class=\"token parameter variable\">-u<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30d6\u30fc\u30c8\u6642\u306b\u81ea\u52d5\u7684\u306b\u30de\u30a6\u30f3\u30c8\u3059\u308b\u305f\u3081\u3001\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u30de\u30a6\u30f3\u30c8\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\/etc\/fstab\u30d5\u30a1\u30a4\u30eb\u306b\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#8216;\/dev\/md0 \/mnt\/md0 ext4 defaults,nofail,discard 0 0&#8217;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">sudo<\/span> <span class=\"token function\">tee<\/span> <span class=\"token parameter variable\">-a<\/span> \/etc\/fstab<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>RAID 0\u30a2\u30ec\u30a4\u306f\u3001\u81ea\u52d5\u7684\u306b\u5404\u30d6\u30fc\u30c8\u6642\u306b\u7d44\u307f\u7acb\u3066\u3066\u30de\u30a6\u30f3\u30c8\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3042\u306a\u305f\u306f\u4eca\u3001RAID\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002\u5225\u306eRAID\u3092\u8a66\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u6700\u521d\u306e\u30ea\u30bb\u30c3\u30c8\u624b\u9806\u306b\u5f93\u3044\u3001\u65b0\u3057\u3044RAID\u30a2\u30ec\u30a4\u30bf\u30a4\u30d7\u306e\u4f5c\u6210\u3092\u9032\u3081\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>RAID 1\u30a2\u30ec\u30a4\u3092\u4f5c\u6210\u3059\u308b<\/h2>\n<p>RAID 1\u30a2\u30ec\u30a4\u30bf\u30a4\u30d7\u306f\u3001\u5229\u7528\u53ef\u80fd\u306a\u3059\u3079\u3066\u306e\u30c7\u30a3\u30b9\u30af\u306b\u30c7\u30fc\u30bf\u3092\u30df\u30e9\u30fc\u30ea\u30f3\u30b0\u3059\u308b\u3053\u3068\u3067\u5b9f\u88c5\u3055\u308c\u3066\u3044\u307e\u3059\u3002RAID 1\u30a2\u30ec\u30a4\u306e\u5404\u30c7\u30a3\u30b9\u30af\u306f\u30c7\u30fc\u30bf\u306e\u5b8c\u5168\u306a\u30b3\u30d4\u30fc\u3092\u53d6\u5f97\u3057\u3001\u30c7\u30d0\u30a4\u30b9\u306e\u6545\u969c\u6642\u306b\u5197\u9577\u6027\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>Requirements: Minimum of 2 storage devices.<\/li>\n<li>Primary benefit: Redundancy between two storage devices.<\/li>\n<li>Things to keep in mind: Since two copies of the data are maintained, only half of the disk space will be usable.<\/li>\n<\/ul>\n<h3>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u30c7\u30d0\u30a4\u30b9\u306e\u7279\u5b9a<\/h3>\n<p>\u6700\u521d\u306b\u3001\u4f7f\u7528\u3059\u308b\u751f\u306e\u30c7\u30a3\u30b9\u30af\u306e\u8b58\u5225\u5b50\u3092\u898b\u3064\u3051\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">lsblk <span class=\"token parameter variable\">-o<\/span> NAME,SIZE,FSTYPE,TYPE,MOUNTPOINT<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>NAME SIZE FSTYPE TYPE MOUNTPOINT <mark>sda 100G disk <\/mark> <mark>sdb 100G disk <\/mark> vda 25G disk \u251c\u2500vda1 24.9G ext4 part \/ \u251c\u2500vda14 4M part \u2514\u2500vda15 106M vfat part \/boot\/efi vdb 466K iso9660 disk<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u306a\u30442\u3064\u306e\u30c7\u30a3\u30b9\u30af\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u308c\u305e\u308c\u306e\u30b5\u30a4\u30ba\u306f100G\u3067\u3059\u3002\u3053\u308c\u3089\u306e\u30c7\u30d0\u30a4\u30b9\u306f\u3001\u3053\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u3067\/ dev \/ sda\u3068\/ dev \/ sdb\u306e\u8b58\u5225\u5b50\u304c\u4ed8\u3051\u3089\u308c\u3001\u914d\u5217\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306e\u751f\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3068\u3057\u3066\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>\u914d\u5217\u306e\u4f5c\u6210<\/h3>\n<p>\u3053\u308c\u3089\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u4f7f\u7528\u3057\u3066RAID 1\u30a2\u30ec\u30a4\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001mdadm &#8211;create\u30b3\u30de\u30f3\u30c9\u306b\u6e21\u3057\u307e\u3059\u3002\u4f5c\u6210\u3059\u308b\u30c7\u30d0\u30a4\u30b9\u540d\u3001RAID\u30ec\u30d9\u30eb\u3001\u304a\u3088\u3073\u30c7\u30d0\u30a4\u30b9\u306e\u6570\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306e\u4f8b\u3067\u306f\u3001\u30c7\u30d0\u30a4\u30b9\u540d\u3092\/dev\/md0\u3068\u3057\u3001\u30a2\u30ec\u30a4\u3092\u69cb\u7bc9\u3059\u308b\u30c7\u30a3\u30b9\u30af\u3092\u542b\u3081\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mdadm<\/span> <span class=\"token parameter variable\">&#8211;create<\/span> <span class=\"token parameter variable\">&#8211;verbose<\/span> <mark>\/dev\/md0<\/mark> <span class=\"token parameter variable\">&#8211;level<\/span><span class=\"token operator\">=<\/span><span class=\"token number\">1<\/span> &#8211;raid-devices<span class=\"token operator\">=<\/span><span class=\"token number\">2<\/span> \/dev\/<mark>sda<\/mark> \/dev\/<mark>sdb<\/mark><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3082\u3057\u3001\u4f7f\u7528\u3057\u3066\u3044\u308b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u30c7\u30d0\u30a4\u30b9\u304c\u30d6\u30fc\u30c8\u30d5\u30e9\u30b0\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u306a\u3044\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3067\u3042\u308b\u5834\u5408\u3001\u304a\u305d\u3089\u304f\u4ee5\u4e0b\u306e\u8b66\u544a\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002y\u3067\u8fd4\u7b54\u3057\u3066\u7d99\u7d9a\u3057\u3066\u3082\u5b89\u5168\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>mdadm: Note: this array has metadata at the start and may not be suitable as a boot device. If you plan to store &#8216;\/boot&#8217; on this device please ensure that your boot-loader understands md\/v1.x metadata, or use &#8211;metadata=0.90 mdadm: size set to 104792064K Continue creating array? <mark>y<\/mark><\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>mdadm\u30c4\u30fc\u30eb\u306f\u30c9\u30e9\u30a4\u30d6\u306e\u30df\u30e9\u30fc\u30ea\u30f3\u30b0\u3092\u958b\u59cb\u3057\u307e\u3059\u3002\u5b8c\u4e86\u307e\u3067\u306b\u306f\u6642\u9593\u304c\u304b\u304b\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u3053\u306e\u9593\u306b\u306f\u30a2\u30ec\u30a4\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30df\u30e9\u30fc\u30ea\u30f3\u30b0\u306e\u9032\u6357\u72b6\u6cc1\u306f\u3001\/proc\/mdstat\u30d5\u30a1\u30a4\u30eb\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u3067\u76e3\u8996\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">cat<\/span> \/proc\/mdstat<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] <mark>md0 : active raid1 sdb[1] sda[0]<\/mark> 104792064 blocks super 1.2 [2\/2] [UU] <mark>[====&gt;&#8230;&#8230;&#8230;&#8230;&#8230;.] resync = 20.2% (21233216\/104792064) finish=6.9min speed=199507K\/sec<\/mark> unused devices: &lt;none&gt;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6700\u521d\u306e\u5f37\u8abf\u3055\u308c\u305f\u884c\u3067\u306f\u3001\/dev\/sda\u3068\/dev\/sdb\u30c7\u30d0\u30a4\u30b9\u3092\u4f7f\u7528\u3057\u3066\u3001RAID 1\u306e\u8a2d\u5b9a\u3067\/dev\/md0\u30c7\u30d0\u30a4\u30b9\u304c\u4f5c\u6210\u3055\u308c\u307e\u3057\u305f\u30022\u756a\u76ee\u306e\u5f37\u8abf\u3055\u308c\u305f\u884c\u3067\u306f\u3001\u30df\u30e9\u30fc\u30ea\u30f3\u30b0\u306e\u9032\u884c\u72b6\u6cc1\u304c\u660e\u3089\u304b\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u30d7\u30ed\u30bb\u30b9\u304c\u5b8c\u4e86\u3059\u308b\u307e\u3067\u3001\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u306b\u9032\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u4f5c\u6210\u3068\u30de\u30a6\u30f3\u30c8<\/h3>\n<p>\u6b21\u306b\u3001\u30a2\u30ec\u30a4\u4e0a\u306b\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> mkfs.ext4 <span class=\"token parameter variable\">-F<\/span> \/dev\/md0<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u305d\u306e\u5f8c\u3001\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3092\u53d6\u308a\u4ed8\u3051\u308b\u305f\u3081\u306e\u30de\u30a6\u30f3\u30c8\u30dd\u30a4\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mkdir<\/span> <span class=\"token parameter variable\">-p<\/span> \/mnt\/md0<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6b21\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3092\u30de\u30a6\u30f3\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mount<\/span> \/dev\/md0 \/mnt\/md0<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u65b0\u3057\u304f\u30b9\u30da\u30fc\u30b9\u304c\u5229\u7528\u53ef\u80fd\u304b\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">df<\/span> <span class=\"token parameter variable\">-h<\/span> <span class=\"token parameter variable\">-x<\/span> devtmpfs <span class=\"token parameter variable\">-x<\/span> tmpfs<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>Filesystem Size Used Avail Use% Mounted on \/dev\/vda1 25G 1.4G 23G 6% \/ \/dev\/vda15 105M 3.4M 102M 4% \/boot\/efi <mark>\/dev\/md0 99G 60M 94G 1% \/mnt\/md0<\/mark><\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306f\u30de\u30a6\u30f3\u30c8\u3055\u308c\u3001\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h3>\u914d\u5217\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u4fdd\u5b58<\/h3>\n<p>\u30d6\u30fc\u30c8\u6642\u306b\u914d\u5217\u304c\u81ea\u52d5\u7684\u306b\u518d\u69cb\u7bc9\u3055\u308c\u308b\u3088\u3046\u306b\u3059\u308b\u306b\u306f\u3001\/etc\/mdadm\/mdadm.conf \u30d5\u30a1\u30a4\u30eb\u3092\u8abf\u6574\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30a2\u30af\u30c6\u30a3\u30d6\u306a\u914d\u5217\u3092\u81ea\u52d5\u7684\u306b\u30b9\u30ad\u30e3\u30f3\u3057\u3001\u6b21\u306e\u5185\u5bb9\u3067\u30d5\u30a1\u30a4\u30eb\u306b\u8ffd\u8a18\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mdadm<\/span> <span class=\"token parameter variable\">&#8211;detail<\/span> <span class=\"token parameter variable\">&#8211;scan<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">sudo<\/span> <span class=\"token function\">tee<\/span> <span class=\"token parameter variable\">-a<\/span> \/etc\/mdadm\/mdadm.conf<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u305d\u306e\u5f8c\u3001\u521d\u671f\u5316RAM\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u307e\u305f\u306finitramfs\u3092\u66f4\u65b0\u3059\u308b\u3053\u3068\u3067\u3001\u914d\u5217\u306f\u65e9\u671f\u306e\u8d77\u52d5\u30d7\u30ed\u30bb\u30b9\u4e2d\u306b\u5229\u7528\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> update-initramfs <span class=\"token parameter variable\">-u<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30d6\u30fc\u30c8\u6642\u306b\u81ea\u52d5\u7684\u306b\u30de\u30a6\u30f3\u30c8\u3059\u308b\u305f\u3081\u306b\u3001\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u30de\u30a6\u30f3\u30c8\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\/etc\/fstab\u30d5\u30a1\u30a4\u30eb\u306b\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#8216;\/dev\/md0 \/mnt\/md0 ext4 defaults,nofail,discard 0 0&#8217;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">sudo<\/span> <span class=\"token function\">tee<\/span> <span class=\"token parameter variable\">-a<\/span> \/etc\/fstab<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3042\u306a\u305f\u306eRAID 1\u30a2\u30ec\u30a4\u306f\u4eca\u5f8c\u3001\u8d77\u52d5\u3059\u308b\u3054\u3068\u306b\u81ea\u52d5\u7684\u306b\u7d44\u307f\u8fbc\u307e\u308c\u3001\u30de\u30a6\u30f3\u30c8\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>RAID\u306e\u8a2d\u5b9a\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002\u3082\u3057\u5225\u306eRAID\u3092\u8a66\u3057\u3066\u307f\u305f\u3044\u5834\u5408\u306f\u3001\u65b0\u3057\u3044RAID\u30a2\u30ec\u30a4\u30bf\u30a4\u30d7\u306e\u4f5c\u6210\u3092\u9032\u3081\u308b\u305f\u3081\u306b\u3001\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u6700\u521d\u306e\u30ea\u30bb\u30c3\u30c8\u624b\u9806\u306b\u5f93\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>RAID 5\u30a2\u30ec\u30a4\u3092\u4f5c\u6210\u3059\u308b<\/h2>\n<p>RAID 5\u30a2\u30ec\u30a4\u30bf\u30a4\u30d7\u306f\u3001\u5229\u7528\u53ef\u80fd\u306a\u30c7\u30d0\u30a4\u30b9\u306b\u30c7\u30fc\u30bf\u3092\u30b9\u30c8\u30ea\u30c3\u30d7\u5316\u3057\u3066\u5b9f\u88c5\u3055\u308c\u307e\u3059\u3002\u5404\u30b9\u30c8\u30e9\u30a4\u30d7\u306e\u4e00\u90e8\u3068\u3057\u3066\u8a08\u7b97\u3055\u308c\u308b\u306e\u306f\u30d1\u30ea\u30c6\u30a3\u30d6\u30ed\u30c3\u30af\u3067\u3059\u3002\u30c7\u30d0\u30a4\u30b9\u304c\u6545\u969c\u3057\u305f\u5834\u5408\u3001\u30d1\u30ea\u30c6\u30a3\u30d6\u30ed\u30c3\u30af\u3068\u6b8b\u308a\u306e\u30d6\u30ed\u30c3\u30af\u3092\u4f7f\u7528\u3057\u3066\u4e0d\u8db3\u3057\u3066\u3044\u308b\u30c7\u30fc\u30bf\u3092\u8a08\u7b97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30d1\u30ea\u30c6\u30a3\u30d6\u30ed\u30c3\u30af\u3092\u53d7\u4fe1\u3059\u308b\u30c7\u30d0\u30a4\u30b9\u306f\u3001\u5404\u30c7\u30d0\u30a4\u30b9\u304c\u30d0\u30e9\u30f3\u30b9\u306e\u53d6\u308c\u305f\u30d1\u30ea\u30c6\u30a3\u60c5\u5831\u3092\u6301\u3064\u3088\u3046\u306b\u56de\u8ee2\u3055\u305b\u3089\u308c\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>Requirements: Minimum of 3 storage devices.<\/li>\n<li>Primary benefit: Redundancy with more usable capacity.<\/li>\n<li>Things to keep in mind: While the parity information is distributed, one disk\u2019s worth of capacity will be used for parity. RAID 5 can suffer from very poor performance when in a degraded state.<\/li>\n<\/ul>\n<h3>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u30c7\u30d0\u30a4\u30b9\u306e\u8b58\u5225<\/h3>\n<p>\u306f\u3058\u3081\u306b\u3001\u4f7f\u7528\u3059\u308b\u751f\u30c7\u30a3\u30b9\u30af\u306e\u8b58\u5225\u5b50\u3092\u898b\u3064\u3051\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">lsblk <span class=\"token parameter variable\">-o<\/span> NAME,SIZE,FSTYPE,TYPE,MOUNTPOINT<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>NAME SIZE FSTYPE TYPE MOUNTPOINT <mark>sda 100G disk <\/mark> <mark>sdb 100G disk <\/mark> <mark>sdc 100G disk <\/mark> vda 25G disk \u251c\u2500vda1 24.9G ext4 part \/ \u251c\u2500vda14 4M part \u2514\u2500vda15 106M vfat part \/boot\/efi vdb 466K iso9660 disk<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u306a\u30443\u3064\u306e\u30c7\u30a3\u30b9\u30af\u304c\u3042\u308a\u307e\u3059\u3002\u5404\u30c7\u30a3\u30b9\u30af\u306f100G\u306e\u5927\u304d\u3055\u3067\u3059\u3002\u3053\u308c\u3089\u306e\u30c7\u30d0\u30a4\u30b9\u306f\u3001\/dev\/sda\u3001\/dev\/sdb\u3001\/dev\/sdc \u306e\u8b58\u5225\u5b50\u304c\u4e0e\u3048\u3089\u308c\u3001\u30a2\u30ec\u30a4\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306e\u751f\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3068\u3057\u3066\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>\u914d\u5217\u306e\u4f5c\u6210<\/h3>\n<p>\u3053\u308c\u3089\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u4f7f\u7528\u3057\u3066RAID 5\u30a2\u30ec\u30a4\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u3001mdadm &#8211;create\u30b3\u30de\u30f3\u30c9\u306b\u305d\u308c\u3089\u3092\u6e21\u3057\u307e\u3059\u3002\u4f5c\u6210\u3057\u305f\u3044\u30c7\u30d0\u30a4\u30b9\u540d\u3001RAID\u30ec\u30d9\u30eb\u3001\u304a\u3088\u3073\u30c7\u30d0\u30a4\u30b9\u306e\u6570\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306e\u4f8b\u3067\u306f\u3001\u30c7\u30d0\u30a4\u30b9\u540d\u3092\/dev\/md0\u3068\u3057\u3001\u30a2\u30ec\u30a4\u3092\u69cb\u7bc9\u3059\u308b\u30c7\u30a3\u30b9\u30af\u3092\u542b\u3081\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mdadm<\/span> <span class=\"token parameter variable\">&#8211;create<\/span> <span class=\"token parameter variable\">&#8211;verbose<\/span> <mark>\/dev\/md0<\/mark> <span class=\"token parameter variable\">&#8211;level<\/span><span class=\"token operator\">=<\/span><span class=\"token number\">5<\/span> &#8211;raid-devices<span class=\"token operator\">=<\/span><span class=\"token number\">3<\/span> \/dev\/<mark>sda<\/mark> \/dev\/<mark>sdb<\/mark> \/dev\/<mark>sdc<\/mark><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>mdadm\u30c4\u30fc\u30eb\u306f\u3001\u914d\u5217\u306e\u69cb\u6210\u3092\u958b\u59cb\u3057\u307e\u3059\u3002\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u305f\u3081\u306b\u3001\u56de\u5fa9\u30d7\u30ed\u30bb\u30b9\u3092\u4f7f\u7528\u3057\u3066\u914d\u5217\u3092\u69cb\u7bc9\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u306f\u6642\u9593\u304c\u304b\u304b\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u914d\u5217\u306f\u3053\u306e\u9593\u306b\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002\u30df\u30e9\u30fc\u30ea\u30f3\u30b0\u306e\u9032\u884c\u72b6\u6cc1\u306f\u3001\/proc\/mdstat\u30d5\u30a1\u30a4\u30eb\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3053\u3068\u3067\u76e3\u8996\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">cat<\/span> \/proc\/mdstat<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] <mark>md0 : active raid5 sdc[3] sdb[1] sda[0]<\/mark> 209582080 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3\/2] [UU_] <mark> [&gt;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..] recovery = 0.9% (957244\/104791040) finish=18.0min speed=95724K\/sec<\/mark> unused devices: &lt;none&gt;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6700\u521d\u306b\u30cf\u30a4\u30e9\u30a4\u30c8\u3055\u308c\u305f\u884c\u3067\u306f\u3001\/dev\/md0 \u30c7\u30d0\u30a4\u30b9\u304c\u3001\/dev\/sda\u3001\/dev\/sdb\u3001\/dev\/sdc \u306e\u30c7\u30d0\u30a4\u30b9\u3092\u4f7f\u7528\u3057\u3066 RAID 5 \u69cb\u6210\u3067\u4f5c\u6210\u3055\u308c\u307e\u3057\u305f\u30022\u756a\u76ee\u306b\u30cf\u30a4\u30e9\u30a4\u30c8\u3055\u308c\u305f\u884c\u306f\u3001\u30d3\u30eb\u30c9\u306e\u9032\u6357\u3092\u8868\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<div class=\"post-conf-warning\">\n<p class=\"post-conf-desc\">Warning<\/p>\n<div>\u8b66\u544a: mdadm\u304cRAID 5\u30a2\u30ec\u30a4\u3092\u69cb\u7bc9\u3059\u308b\u65b9\u6cd5\u306b\u3088\u308a\u3001\u30a2\u30ec\u30a4\u304c\u307e\u3060\u69cb\u7bc9\u4e2d\u306e\u5834\u5408\u3001\u30a2\u30ec\u30a4\u5185\u306e\u30b9\u30da\u30a2\u306e\u6570\u306f\u9593\u9055\u3063\u3066\u5831\u544a\u3055\u308c\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001\/etc\/mdadm\/mdadm.conf\u30d5\u30a1\u30a4\u30eb\u3092\u66f4\u65b0\u3059\u308b\u524d\u306b\u3001\u30a2\u30ec\u30a4\u306e\u7d44\u307f\u7acb\u3066\u304c\u5b8c\u4e86\u3059\u308b\u306e\u3092\u5f85\u305f\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u30a2\u30ec\u30a4\u304c\u307e\u3060\u69cb\u7bc9\u4e2d\u306e\u72b6\u614b\u3067\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u66f4\u65b0\u3059\u308b\u3068\u3001\u30b7\u30b9\u30c6\u30e0\u306f\u30a2\u30ec\u30a4\u306e\u72b6\u614b\u306b\u3064\u3044\u3066\u8aa4\u3063\u305f\u60c5\u5831\u3092\u6301\u3061\u3001\u30d6\u30fc\u30c8\u6642\u306b\u6b63\u3057\u3044\u540d\u524d\u3067\u81ea\u52d5\u7684\u306b\u7d44\u307f\u7acb\u3066\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/div>\n<\/div>\n<p>\u3053\u306e\u30d7\u30ed\u30bb\u30b9\u304c\u5b8c\u4e86\u3059\u308b\u307e\u3067\u3001\u30ac\u30a4\u30c9\u3092\u7d9a\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u4f5c\u6210\u3068\u30de\u30a6\u30f3\u30c8<\/h3>\n<p>\u6b21\u306b\u3001\u914d\u5217\u4e0a\u306b\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> mkfs.ext4 <span class=\"token parameter variable\">-F<\/span> \/dev\/md0<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3092\u53d6\u308a\u4ed8\u3051\u308b\u305f\u3081\u306e\u30de\u30a6\u30f3\u30c8\u30dd\u30a4\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mkdir<\/span> <span class=\"token parameter variable\">-p<\/span> \/mnt\/md0<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u65b9\u6cd5\u3067\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3092\u30de\u30a6\u30f3\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mount<\/span> \/dev\/md0 \/mnt\/md0<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u65b0\u3057\u3044\u30b9\u30da\u30fc\u30b9\u304c\u5229\u7528\u53ef\u80fd\u304b\u3069\u3046\u304b\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">df<\/span> <span class=\"token parameter variable\">-h<\/span> <span class=\"token parameter variable\">-x<\/span> devtmpfs <span class=\"token parameter variable\">-x<\/span> tmpfs<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>Filesystem Size Used Avail Use% Mounted on \/dev\/vda1 25G 1.4G 23G 6% \/ \/dev\/vda15 105M 3.4M 102M 4% \/boot\/efi <mark>\/dev\/md0 197G 60M 187G 1% \/mnt\/md0<\/mark><\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306f\u30de\u30a6\u30f3\u30c8\u3055\u308c\u3001\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h3>\u914d\u5217\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u4fdd\u5b58\u3059\u308b\u3002<\/h3>\n<p>\u30d6\u30fc\u30c8\u6642\u306b\u914d\u5217\u304c\u81ea\u52d5\u7684\u306b\u518d\u69cb\u7bc9\u3055\u308c\u308b\u3088\u3046\u306b\u3059\u308b\u306b\u306f\u3001\/etc\/mdadm\/mdadm.conf \u30d5\u30a1\u30a4\u30eb\u3092\u8abf\u6574\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<div class=\"post-conf-warning\">\n<p class=\"post-conf-desc\">Warning<\/p>\n<div>\u8b66\u544a: \u524d\u8ff0\u306e\u3088\u3046\u306b\u3001\u69cb\u6210\u3092\u8abf\u6574\u3059\u308b\u524d\u306b\u3001\u518d\u5ea6\u78ba\u8a8d\u3057\u3066\u914d\u5217\u304c\u7d44\u307f\u7acb\u3066\u3089\u308c\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u914d\u5217\u304c\u69cb\u7bc9\u3055\u308c\u308b\u524d\u306b\u4ee5\u4e0b\u306e\u624b\u9806\u3092\u5b8c\u4e86\u3059\u308b\u3053\u3068\u3067\u3001\u518d\u8d77\u52d5\u6642\u306b\u6b63\u3057\u304f\u914d\u5217\u304c\u7d44\u307f\u7acb\u3066\u3089\u308c\u306a\u3044\u3088\u3046\u306b\u9632\u304e\u307e\u3059\u3002<\/div>\n<\/div>\n<p>\/proc\/mdstat \u30d5\u30a1\u30a4\u30eb\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u3067\u3001\u30df\u30e9\u30fc\u30ea\u30f3\u30b0\u306e\u9032\u6357\u72b6\u6cc1\u3092\u76e3\u8996\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">cat<\/span> \/proc\/mdstat<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10] md0 : active raid5 sdc[3] sdb[1] sda[0] 209584128 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3\/3] [UUU] unused devices: &lt;none&gt;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u51fa\u529b\u306f\u3001\u30ea\u30d3\u30eb\u30c9\u304c\u5b8c\u4e86\u3057\u305f\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3067\u3001\u30a2\u30af\u30c6\u30a3\u30d6\u306a\u914d\u5217\u3092\u81ea\u52d5\u7684\u306b\u30b9\u30ad\u30e3\u30f3\u3057\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mdadm<\/span> <span class=\"token parameter variable\">&#8211;detail<\/span> <span class=\"token parameter variable\">&#8211;scan<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">sudo<\/span> <span class=\"token function\">tee<\/span> <span class=\"token parameter variable\">-a<\/span> \/etc\/mdadm\/mdadm.conf<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u305d\u306e\u5f8c\u3001\u521d\u671fRAM\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3067\u3042\u308binitramfs\u3092\u66f4\u65b0\u3059\u308b\u3053\u3068\u3067\u3001\u30a2\u30ec\u30a4\u3092\u65e9\u671f\u306e\u30d6\u30fc\u30c8\u30d7\u30ed\u30bb\u30b9\u4e2d\u306b\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> update-initramfs <span class=\"token parameter variable\">-u<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30d6\u30fc\u30c8\u6642\u306e\u81ea\u52d5\u30de\u30a6\u30f3\u30c8\u306e\u305f\u3081\u306b\u3001\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u30de\u30a6\u30f3\u30c8\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\/etc\/fstab\u30d5\u30a1\u30a4\u30eb\u306b\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#8216;\/dev\/md0 \/mnt\/md0 ext4 defaults,nofail,discard 0 0&#8217;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">sudo<\/span> <span class=\"token function\">tee<\/span> <span class=\"token parameter variable\">-a<\/span> \/etc\/fstab<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3042\u306a\u305f\u306eRAID 5\u30a2\u30ec\u30a4\u306f\u3001\u4eca\u5f8c\u81ea\u52d5\u7684\u306b\u7d44\u307f\u7acb\u3066\u3089\u308c\u3066\u30de\u30a6\u30f3\u30c8\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3042\u306a\u305f\u306f\u4eca\u3001RAID\u306e\u8a2d\u5b9a\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002\u3082\u3057\u5225\u306eRAID\u3092\u8a66\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u65b0\u3057\u3044RAID\u30a2\u30ec\u30a4\u30bf\u30a4\u30d7\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u3001\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u6700\u521d\u306e\u6307\u793a\u306b\u5f93\u3063\u3066\u30ea\u30bb\u30c3\u30c8\u624b\u9806\u3092\u9032\u3081\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>RAID 6\u30a2\u30ec\u30a4\u3092\u4f5c\u6210\u3059\u308b<\/h2>\n<p>RAID 6\u30a2\u30ec\u30a4\u30bf\u30a4\u30d7\u306f\u3001\u5229\u7528\u53ef\u80fd\u306a\u30c7\u30d0\u30a4\u30b9\u5168\u4f53\u306b\u30c7\u30fc\u30bf\u3092\u30b9\u30c8\u30e9\u30a4\u30d4\u30f3\u30b0\u3057\u3066\u5b9f\u88c5\u3055\u308c\u307e\u3059\u3002\u5404\u30b9\u30c8\u30e9\u30a4\u30d7\u306e2\u3064\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f\u3001\u30d1\u30ea\u30c6\u30a3\u30d6\u30ed\u30c3\u30af\u304c\u8a08\u7b97\u3055\u308c\u307e\u3059\u3002\u3082\u3057\u30c7\u30d0\u30a4\u30b9\u306e\u3046\u30611\u3064\u304b2\u3064\u304c\u6545\u969c\u3057\u305f\u5834\u5408\u3001\u30d1\u30ea\u30c6\u30a3\u30d6\u30ed\u30c3\u30af\u3068\u6b8b\u308a\u306e\u30d6\u30ed\u30c3\u30af\u3092\u4f7f\u7528\u3057\u3066\u6b20\u843d\u3057\u305f\u30c7\u30fc\u30bf\u3092\u8a08\u7b97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30d1\u30ea\u30c6\u30a3\u30d6\u30ed\u30c3\u30af\u3092\u53d7\u3051\u53d6\u308b\u30c7\u30d0\u30a4\u30b9\u306f\u3001\u5404\u30c7\u30d0\u30a4\u30b9\u304c\u30d0\u30e9\u30f3\u30b9\u306e\u53d6\u308c\u305f\u91cf\u306e\u30d1\u30ea\u30c6\u30a3\u60c5\u5831\u3092\u6301\u3064\u3088\u3046\u306b\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u306fRAID 5\u30a2\u30ec\u30a4\u306b\u4f3c\u3066\u3044\u307e\u3059\u304c\u30012\u3064\u306e\u30c9\u30e9\u30a4\u30d6\u306e\u6545\u969c\u306b\u3082\u8010\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>Requirements: Minimum of 4 storage devices.<\/li>\n<li>Primary benefit: Double redundancy with more usable capacity.<\/li>\n<li>Things to keep in mind: While the parity information is distributed, two disks worth of capacity will be used for parity. RAID 6 can suffer from very poor performance when in a degraded state.<\/li>\n<\/ul>\n<h3>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u30c7\u30d0\u30a4\u30b9\u306e\u7279\u5b9a<\/h3>\n<p>\u6700\u521d\u306b\u3001\u4f7f\u7528\u3059\u308b\u751f\u30c7\u30a3\u30b9\u30af\u306e\u8b58\u5225\u5b50\u3092\u898b\u3064\u3051\u3066\u304f\u3060\u3055\u3044\u3002 (Saisho ni, shiy\u014d suru namadisuku no shikibetsu-shi o mitsukete kudasai.)<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">lsblk <span class=\"token parameter variable\">-o<\/span> NAME,SIZE,FSTYPE,TYPE,MOUNTPOINT<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>NAME SIZE FSTYPE TYPE MOUNTPOINT <mark>sda 100G disk <\/mark> <mark>sdb 100G disk <\/mark> <mark>sdc 100G disk <\/mark> <mark>sdd 100G disk <\/mark> vda 25G disk \u251c\u2500vda1 24.9G ext4 part \/ \u251c\u2500vda14 4M part \u2514\u2500vda15 106M vfat part \/boot\/efi vdb 466K iso9660 disk<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u306a\u3044\u30b5\u30a4\u30ba\u304c100G\u306e\u30c7\u30a3\u30b9\u30af\u304c4\u3064\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30c7\u30d0\u30a4\u30b9\u306f\u3001\u3053\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u3067\/dev\/sda\u3001\/dev\/sdb\u3001\/dev\/sdc\u3001\u304a\u3088\u3073\/dev\/sdd\u306e\u8b58\u5225\u5b50\u3092\u4ed8\u3051\u3089\u308c\u3001\u30a2\u30ec\u30a4\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306e\u751f\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3068\u3057\u3066\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>\u914d\u5217\u3092\u4f5c\u6210\u3059\u308b<\/h3>\n<p>\u3053\u308c\u3089\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u4f7f\u7528\u3057\u3066RAID 6\u30a2\u30ec\u30a4\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001mdadm &#8211;create\u30b3\u30de\u30f3\u30c9\u306b\u305d\u308c\u3089\u3092\u6e21\u3057\u307e\u3059\u3002\u4f5c\u6210\u3059\u308b\u30c7\u30d0\u30a4\u30b9\u540d\u3001RAID\u30ec\u30d9\u30eb\u3001\u304a\u3088\u3073\u30c7\u30d0\u30a4\u30b9\u306e\u6570\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306e\u4f8b\u3067\u306f\u3001\u30c7\u30d0\u30a4\u30b9\u3092\/dev\/md0\u3068\u540d\u4ed8\u3051\u3001\u30a2\u30ec\u30a4\u3092\u69cb\u7bc9\u3059\u308b\u30c7\u30a3\u30b9\u30af\u3092\u542b\u3081\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mdadm<\/span> <span class=\"token parameter variable\">&#8211;create<\/span> <span class=\"token parameter variable\">&#8211;verbose<\/span> <mark>\/dev\/md0<\/mark> <span class=\"token parameter variable\">&#8211;level<\/span><span class=\"token operator\">=<\/span><span class=\"token number\">6<\/span> &#8211;raid-devices<span class=\"token operator\">=<\/span><span class=\"token number\">4<\/span> \/dev\/<mark>sda<\/mark> \/dev\/<mark>sdb<\/mark> \/dev\/<mark>sdc<\/mark> \/dev\/<mark>sdd<\/mark><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>mdadm\u30c4\u30fc\u30eb\u306f\u914d\u5217\u306e\u8a2d\u5b9a\u3092\u958b\u59cb\u3057\u307e\u3059\u3002\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u305f\u3081\u306b\u3001\u30ea\u30ab\u30d0\u30ea\u30d7\u30ed\u30bb\u30b9\u3092\u4f7f\u7528\u3057\u3066\u914d\u5217\u3092\u69cb\u7bc9\u3057\u307e\u3059\u3002\u5b8c\u4e86\u3059\u308b\u307e\u3067\u306b\u306f\u6642\u9593\u304c\u304b\u304b\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u3053\u306e\u6642\u9593\u4e2d\u3082\u914d\u5217\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002\u9032\u884c\u72b6\u6cc1\u306f\/proc\/mdstat\u30d5\u30a1\u30a4\u30eb\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u3067\u76e3\u8996\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">cat<\/span> \/proc\/mdstat<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] <mark>md0 : active raid6 sdd[3] sdc[2] sdb[1] sda[0]<\/mark> 209584128 blocks super 1.2 level 6, 512k chunk, algorithm 2 [4\/4] [UUUU] <mark>[&gt;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..] resync = 0.6% (668572\/104792064) finish=10.3min speed=167143K\/sec<\/mark> unused devices: &lt;none&gt;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6700\u521d\u306e\u5f37\u8abf\u8868\u793a\u3055\u308c\u305f\u884c\u3067\u306f\u3001\/dev\/md0 \u30c7\u30d0\u30a4\u30b9\u304c RAID 6 \u69cb\u6210\u3067 \/dev\/sda\u3001\/dev\/sdb\u3001\/dev\/sdc\u3001\/dev\/sdd \u30c7\u30d0\u30a4\u30b9\u3092\u4f7f\u7528\u3057\u3066\u4f5c\u6210\u3055\u308c\u307e\u3057\u305f\u30022\u756a\u76ee\u306e\u5f37\u8abf\u8868\u793a\u3055\u308c\u305f\u884c\u306f\u30d3\u30eb\u30c9\u306e\u9032\u6357\u72b6\u6cc1\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30d7\u30ed\u30bb\u30b9\u304c\u5b8c\u4e86\u3059\u308b\u307e\u3067\u3001\u30ac\u30a4\u30c9\u3092\u7d9a\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u4f5c\u6210\u3068\u30de\u30a6\u30f3\u30c8<\/h3>\n<p>\u6b21\u306b\u3001\u30a2\u30ec\u30a4\u306b\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> mkfs.ext4 <span class=\"token parameter variable\">-F<\/span> \/dev\/md0<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3092\u63a5\u7d9a\u3059\u308b\u305f\u3081\u306e\u30de\u30a6\u30f3\u30c8\u30dd\u30a4\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mkdir<\/span> <span class=\"token parameter variable\">-p<\/span> \/mnt\/md0<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u65b9\u6cd5\u3067\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3092\u30de\u30a6\u30f3\u30c8\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mount<\/span> \/dev\/md0 \/mnt\/md0<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u65b0\u3057\u3044\u30b9\u30da\u30fc\u30b9\u304c\u5229\u7528\u53ef\u80fd\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002 (Atarashii sup\u0113su ga riy\u014d kan\u014d ka d\u014dka o kakunin shite kudasai.)<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">df<\/span> <span class=\"token parameter variable\">-h<\/span> <span class=\"token parameter variable\">-x<\/span> devtmpfs <span class=\"token parameter variable\">-x<\/span> tmpfs<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>Filesystem Size Used Avail Use% Mounted on \/dev\/vda1 25G 1.4G 23G 6% \/ \/dev\/vda15 105M 3.4M 102M 4% \/boot\/efi <mark>\/dev\/md0 197G 60M 187G 1% \/mnt\/md0<\/mark><\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u304c\u30de\u30a6\u30f3\u30c8\u3055\u308c\u3001\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<h3>\u914d\u5217\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u4fdd\u5b58\u3059\u308b\u3002<\/h3>\n<p>\u8d77\u52d5\u6642\u306b\u914d\u5217\u304c\u81ea\u52d5\u7684\u306b\u518d\u7d44\u307f\u7acb\u3066\u3055\u308c\u308b\u3088\u3046\u306b\u3059\u308b\u306b\u306f\u3001\/etc\/mdadm\/mdadm.conf \u30d5\u30a1\u30a4\u30eb\u3092\u8abf\u6574\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30a2\u30af\u30c6\u30a3\u30d6\u306a\u914d\u5217\u3092\u81ea\u52d5\u7684\u306b\u30b9\u30ad\u30e3\u30f3\u3057\u3001\u30d5\u30a1\u30a4\u30eb\u306b\u8ffd\u52a0\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\uff1a<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mdadm<\/span> <span class=\"token parameter variable\">&#8211;detail<\/span> <span class=\"token parameter variable\">&#8211;scan<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">sudo<\/span> <span class=\"token function\">tee<\/span> <span class=\"token parameter variable\">-a<\/span> \/etc\/mdadm\/mdadm.conf<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u305d\u306e\u5f8c\u3001\u521d\u671fRAM\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\uff08initramfs\uff09\u3092\u66f4\u65b0\u3059\u308b\u3053\u3068\u3067\u3001\u914d\u5217\u304c\u65e9\u671f\u306e\u8d77\u52d5\u30d7\u30ed\u30bb\u30b9\u4e2d\u306b\u5229\u7528\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> update-initramfs <span class=\"token parameter variable\">-u<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u8d77\u52d5\u6642\u306b\u81ea\u52d5\u30de\u30a6\u30f3\u30c8\u3059\u308b\u305f\u3081\u306b\u3001\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u30de\u30a6\u30f3\u30c8\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u300c\/etc\/fstab\u300d\u30d5\u30a1\u30a4\u30eb\u306b\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#8216;\/dev\/md0 \/mnt\/md0 ext4 defaults,nofail,discard 0 0&#8217;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">sudo<\/span> <span class=\"token function\">tee<\/span> <span class=\"token parameter variable\">-a<\/span> \/etc\/fstab<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3042\u306a\u305f\u306eRAID 6\u30a2\u30ec\u30a4\u306f\u3001\u4eca\u5f8c\u306f\u81ea\u52d5\u7684\u306b\u7d44\u307f\u7acb\u3066\u3066\u30d6\u30fc\u30c8\u3054\u3068\u306b\u30de\u30a6\u30f3\u30c8\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3042\u306a\u305f\u306f\u4eca\u3001RAID\u306e\u8a2d\u5b9a\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002\u3082\u3057\u5225\u306eRAID\u3092\u8a66\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u65b0\u3057\u3044RAID\u30a2\u30ec\u30a4\u30bf\u30a4\u30d7\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u3001\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u6700\u521d\u306b\u3042\u308b\u30ea\u30bb\u30c3\u30c8\u624b\u9806\u306b\u5f93\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u8907\u96d1\u306aRAID 10\u30a2\u30ec\u30a4\u3092\u4f5c\u6210\u3059\u308b<\/h2>\n<p>RAID 10\u306f\u3001\u901a\u5e38\u3001RAID 1\u306e\u30bb\u30c3\u30c8\u304b\u3089\u69cb\u6210\u3055\u308c\u308b\u30b9\u30c8\u30e9\u30a4\u30d7\u5316\u3055\u308c\u305fRAID 0\u306e\u914d\u5217\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3067\u5b9f\u88c5\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u30cd\u30b9\u30c8\u3057\u305f\u914d\u5217\u30bf\u30a4\u30d7\u306f\u5197\u9577\u6027\u3068\u9ad8\u3044\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u63d0\u4f9b\u3057\u307e\u3059\u304c\u3001\u591a\u304f\u306e\u30c7\u30a3\u30b9\u30af\u5bb9\u91cf\u304c\u5fc5\u8981\u3067\u3059\u3002mdadm\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u306b\u306f\u3001\u67d4\u8edf\u6027\u304c\u5411\u4e0a\u3057\u305f\u540c\u3058\u7a2e\u985e\u306e\u5229\u70b9\u3092\u63d0\u4f9b\u3059\u308b\u5c02\u7528\u306eRAID 10\u30bf\u30a4\u30d7\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u30bf\u30a4\u30d7\u306f\u914d\u5217\u3092\u30cd\u30b9\u30c8\u3059\u308b\u3053\u3068\u306a\u304f\u4f5c\u6210\u3055\u308c\u307e\u3059\u304c\u3001\u540c\u69d8\u306e\u7279\u6027\u3068\u4fdd\u8a3c\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001mdadm RAID 10\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>Requirements: Minimum of 3 storage devices.<\/li>\n<li>Primary benefit: Performance and redundancy.<\/li>\n<li>Things to keep in mind: The amount of capacity reduction for the array is defined by the number of data copies you choose to keep. The number of copies that are stored with mdadm style RAID 10 is configurable.<\/li>\n<\/ul>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001\u5404\u30c7\u30fc\u30bf\u30d6\u30ed\u30c3\u30af\u306e2\u3064\u306e\u30b3\u30d4\u30fc\u304c\u8fd1\u63a5\u914d\u7f6e\u3068\u547c\u3070\u308c\u308b\u65b9\u6cd5\u3067\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002\u30c7\u30fc\u30bf\u30d6\u30ed\u30c3\u30af\u304c\u4fdd\u5b58\u3055\u308c\u308b\u53ef\u80fd\u306a\u30ec\u30a4\u30a2\u30a6\u30c8\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>near: The default arrangement. Copies of each chunk are written consecutively when striping, meaning that the copies of the data blocks will be written around the same part of multiple disks.<\/li>\n<li>far: The first and subsequent copies are written to different parts of the storage devices in the array. For instance, the first chunk might be written near the beginning of a disk, while the second chunk would be written halfway down on a different disk. This can give some read performance gains for traditional spinning disks at the expense of write performance.<\/li>\n<li>offset: Each stripe is copied, and offset by one drive. This means that the copies are offset from one another, but still close together on the disk. This helps minimize excessive seeking during some workloads.<\/li>\n<\/ul>\n<p>\u3053\u306eman\u30da\u30fc\u30b8\u306eRAID10\u30bb\u30af\u30b7\u30e7\u30f3\u3092\u53c2\u7167\u3057\u3066\u3001\u3053\u308c\u3089\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u306b\u95a2\u3057\u3066\u8a73\u7d30\u3092\u77e5\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">man<\/span> <span class=\"token number\">4<\/span> md<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u30de\u30f3\u30da\u30fc\u30b8\u306f\u30aa\u30f3\u30e9\u30a4\u30f3\u3067\u3082\u898b\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u30c7\u30d0\u30a4\u30b9\u306e\u8b58\u5225<\/h3>\n<p>\u59cb\u3081\u308b\u306b\u306f\u3001\u4f7f\u7528\u3059\u308b\u751f\u30c7\u30a3\u30b9\u30af\u306e\u8b58\u5225\u5b50\u3092\u898b\u3064\u3051\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">lsblk <span class=\"token parameter variable\">-o<\/span> NAME,SIZE,FSTYPE,TYPE,MOUNTPOINT<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>NAME SIZE FSTYPE TYPE MOUNTPOINT <mark>sda 100G disk <\/mark> <mark>sdb 100G disk <\/mark> <mark>sdc 100G disk <\/mark> <mark>sdd 100G disk <\/mark> vda 25G disk \u251c\u2500vda1 24.9G ext4 part \/ \u251c\u2500vda14 4M part \u2514\u2500vda15 106M vfat part \/boot\/efi vdb 466K iso9660 disk<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u306a\u30444\u3064\u306e\u30c7\u30a3\u30b9\u30af\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u308c\u305e\u308c\u306e\u30b5\u30a4\u30ba\u306f100G\u3067\u3059\u3002\u3053\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u3067\u306f\u3001\u3053\u308c\u3089\u306e\u30c7\u30d0\u30a4\u30b9\u306b\u306f\/dev\/sda\u3001\/dev\/sdb\u3001\/dev\/sdc\u3001\u304a\u3088\u3073 \/dev\/sdd \u306e\u8b58\u5225\u5b50\u304c\u4e0e\u3048\u3089\u308c\u3001\u914d\u5217\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306e\u751f\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3068\u3057\u3066\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>\u914d\u5217\u306e\u4f5c\u6210<\/h3>\n<p>\u3053\u308c\u3089\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3067RAID 10\u30a2\u30ec\u30a4\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u305d\u308c\u3089\u3092mdadm &#8211;create\u30b3\u30de\u30f3\u30c9\u306b\u6e21\u3057\u307e\u3059\u3002\u4f5c\u6210\u3057\u305f\u3044\u30c7\u30d0\u30a4\u30b9\u540d\u3001RAID\u30ec\u30d9\u30eb\u3001\u304a\u3088\u3073\u30c7\u30d0\u30a4\u30b9\u306e\u6570\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u4f8b\u3067\u306f\u3001\u30c7\u30d0\u30a4\u30b9\u306e\u540d\u524d\u3092\/dev\/md0\u3068\u3057\u3066\u3001\u30a2\u30ec\u30a4\u3092\u69cb\u7bc9\u3059\u308b\u30c7\u30a3\u30b9\u30af\u3092\u542b\u3081\u307e\u3059\u3002<\/p>\n<p>\u300c\u30ec\u30a4\u30a2\u30a6\u30c8\u3084\u30b3\u30d4\u30fc\u306e\u6570\u3092\u6307\u5b9a\u305b\u305a\u306b\u3001\u8fd1\u3044\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u4f7f\u7528\u3057\u30662\u3064\u306e\u30b3\u30d4\u30fc\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u300d<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mdadm<\/span> <span class=\"token parameter variable\">&#8211;create<\/span> <span class=\"token parameter variable\">&#8211;verbose<\/span> <mark>\/dev\/md0<\/mark> <span class=\"token parameter variable\">&#8211;level<\/span><span class=\"token operator\">=<\/span><span class=\"token number\">10<\/span> &#8211;raid-devices<span class=\"token operator\">=<\/span><span class=\"token number\">4<\/span> \/dev\/<mark>sda<\/mark> \/dev\/<mark>sdb<\/mark> \/dev\/<mark>sdc<\/mark> \/dev\/<mark>sdd<\/mark><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u7570\u306a\u308b\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u4f7f\u7528\u3057\u305f\u308a\u3001\u30b3\u30d4\u30fc\u306e\u6570\u3092\u5909\u66f4\u3057\u305f\u3044\u5834\u5408\u306f\u3001&#8211;layout=\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u3001\u30ec\u30a4\u30a2\u30a6\u30c8\u3068\u30b3\u30d4\u30fc\u306e\u8b58\u5225\u5b50\u3092\u53d6\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30ec\u30a4\u30a2\u30a6\u30c8\u306b\u306f\u3001n\uff08\u8fd1\u8ddd\u96e2\u7528\uff09\u3001f\uff08\u9060\u8ddd\u96e2\u7528\uff09\u3001o\uff08\u30aa\u30d5\u30bb\u30c3\u30c8\u7528\uff09\u304c\u3042\u308a\u307e\u3059\u3002\u4fdd\u5b58\u3059\u308b\u30b3\u30d4\u30fc\u306e\u6570\u306f\u305d\u306e\u5f8c\u306b\u8ffd\u52a0\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001\u30aa\u30d5\u30bb\u30c3\u30c8\u30ec\u30a4\u30a2\u30a6\u30c8\u30673\u3064\u306e\u30b3\u30d4\u30fc\u3092\u6301\u3064\u914d\u5217\u3092\u4f5c\u6210\u3059\u308b\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u542b\u3081\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mdadm<\/span> <span class=\"token parameter variable\">&#8211;create<\/span> <span class=\"token parameter variable\">&#8211;verbose<\/span> <mark>\/dev\/md0<\/mark> <span class=\"token parameter variable\">&#8211;level<\/span><span class=\"token operator\">=<\/span><span class=\"token number\">10<\/span> <mark><span class=\"token parameter variable\">&#8211;layout<\/span><span class=\"token operator\">=<\/span>o3<\/mark> &#8211;raid-devices<span class=\"token operator\">=<\/span><span class=\"token number\">4<\/span> \/dev\/<mark>sda<\/mark> \/dev\/<mark>sdb<\/mark> \/dev\/<mark>sdc<\/mark> \/dev\/<mark>sdd<\/mark><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>mdadm\u30c4\u30fc\u30eb\u306f\u30a2\u30ec\u30a4\u306e\u69cb\u6210\u3092\u958b\u59cb\u3057\u307e\u3059\u3002\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u305f\u3081\u306b\u3001\u30ea\u30ab\u30d0\u30ea\u30d7\u30ed\u30bb\u30b9\u3092\u4f7f\u7528\u3057\u3066\u30a2\u30ec\u30a4\u3092\u69cb\u7bc9\u3057\u307e\u3059\u3002\u5b8c\u4e86\u3059\u308b\u307e\u3067\u306b\u306f\u6642\u9593\u304c\u304b\u304b\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u306e\u6642\u9593\u4e2d\u306b\u30a2\u30ec\u30a4\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30df\u30e9\u30fc\u30ea\u30f3\u30b0\u306e\u9032\u884c\u72b6\u6cc1\u306f\u3001\/proc\/mdstat\u30d5\u30a1\u30a4\u30eb\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3053\u3068\u3067\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">cat<\/span> \/proc\/mdstat<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>Personalities : [raid6] [raid5] [raid4] [linear] [multipath] [raid0] [raid1] [raid10] <mark>md0 : active raid10 sdd[3] sdc[2] sdb[1] sda[0]<\/mark> 209584128 blocks super 1.2 512K chunks <mark>2 near-copies<\/mark> [4\/4] [UUUU] <mark>[===&gt;&#8230;&#8230;&#8230;&#8230;&#8230;..] resync = 18.1% (37959424\/209584128) finish=13.8min speed=206120K\/sec<\/mark> unused devices: &lt;none&gt;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6700\u521d\u306e\u30cf\u30a4\u30e9\u30a4\u30c8\u3055\u308c\u305f\u884c\u3067\u306f\u3001\/dev\/md0\u30c7\u30d0\u30a4\u30b9\u304c\/dev\/sda\u3001\/dev\/sdb\u3001\/dev\/sdc\u3001\/dev\/sdd\u30c7\u30d0\u30a4\u30b9\u3092\u4f7f\u7528\u3057\u3066RAID 10\u69cb\u6210\u3067\u4f5c\u6210\u3055\u308c\u307e\u3057\u305f\u30022\u3064\u76ee\u306e\u30cf\u30a4\u30e9\u30a4\u30c8\u3055\u308c\u305f\u7b87\u6240\u306f\u3053\u306e\u4f8b\u3067\u4f7f\u7528\u3055\u308c\u305f\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u793a\u3057\u3066\u3044\u307e\u3059\uff08\u8fd1\u3044\u69cb\u6210\u30672\u3064\u306e\u30b3\u30d4\u30fc\uff09\u30023\u3064\u76ee\u306e\u30cf\u30a4\u30e9\u30a4\u30c8\u3055\u308c\u305f\u7b87\u6240\u306f\u30d3\u30eb\u30c9\u306e\u9032\u6357\u72b6\u6cc1\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30d7\u30ed\u30bb\u30b9\u304c\u5b8c\u4e86\u3059\u308b\u9593\u3082\u3001\u64cd\u4f5c\u30ac\u30a4\u30c9\u3092\u7d9a\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u4f5c\u6210\u3068\u30de\u30a6\u30f3\u30c8<\/h3>\n<p>\u6b21\u306b\u3001\u914d\u5217\u306b\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> mkfs.ext4 <span class=\"token parameter variable\">-F<\/span> \/dev\/md0<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3092\u63a5\u7d9a\u3059\u308b\u305f\u3081\u306b\u30de\u30a6\u30f3\u30c8\u30dd\u30a4\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mkdir<\/span> <span class=\"token parameter variable\">-p<\/span> \/mnt\/md0<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u624b\u9806\u3067\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3092\u30de\u30a6\u30f3\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mount<\/span> \/dev\/md0 \/mnt\/md0<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u65b0\u3057\u3044\u30b9\u30da\u30fc\u30b9\u304c\u5229\u7528\u53ef\u80fd\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">df<\/span> <span class=\"token parameter variable\">-h<\/span> <span class=\"token parameter variable\">-x<\/span> devtmpfs <span class=\"token parameter variable\">-x<\/span> tmpfs<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>Filesystem Size Used Avail Use% Mounted on \/dev\/vda1 25G 1.4G 23G 6% \/ \/dev\/vda15 105M 3.4M 102M 4% \/boot\/efi <mark>\/dev\/md0 197G 60M 187G 1% \/mnt\/md0<\/mark><\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306f\u30de\u30a6\u30f3\u30c8\u3055\u308c\u3001\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u914d\u5217\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u4fdd\u5b58<\/h3>\n<p>\u8d77\u52d5\u6642\u306b\u81ea\u52d5\u7684\u306b\u914d\u5217\u304c\u518d\u7d50\u6210\u3055\u308c\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306b\u306f\u3001\/etc\/mdadm\/mdadm.conf \u30d5\u30a1\u30a4\u30eb\u3092\u8abf\u6574\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001\u30a2\u30af\u30c6\u30a3\u30d6\u306a\u914d\u5217\u3092\u81ea\u52d5\u7684\u306b\u30b9\u30ad\u30e3\u30f3\u3057\u3001\u30d5\u30a1\u30a4\u30eb\u306b\u8ffd\u8a18\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mdadm<\/span> <span class=\"token parameter variable\">&#8211;detail<\/span> <span class=\"token parameter variable\">&#8211;scan<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">sudo<\/span> <span class=\"token function\">tee<\/span> <span class=\"token parameter variable\">-a<\/span> \/etc\/mdadm\/mdadm.conf<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u305d\u306e\u5f8c\u3001\u521d\u671fRAM\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\uff08initramfs\uff09\u3092\u66f4\u65b0\u3057\u3066\u3001\u30a2\u30ec\u30a4\u304c\u65e9\u671f\u306e\u30d6\u30fc\u30c8\u30d7\u30ed\u30bb\u30b9\u4e2d\u306b\u5229\u7528\u53ef\u80fd\u306b\u306a\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> update-initramfs <span class=\"token parameter variable\">-u<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u8d77\u52d5\u6642\u306b\u81ea\u52d5\u7684\u306b\u30de\u30a6\u30f3\u30c8\u3059\u308b\u305f\u3081\u3001\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u30de\u30a6\u30f3\u30c8\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\/etc\/fstab\u30d5\u30a1\u30a4\u30eb\u306b\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#8216;\/dev\/md0 \/mnt\/md0 ext4 defaults,nofail,discard 0 0&#8217;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">sudo<\/span> <span class=\"token function\">tee<\/span> <span class=\"token parameter variable\">-a<\/span> \/etc\/fstab<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3042\u306a\u305f\u306eRAID 10\u30a2\u30ec\u30a4\u306f\u3001\u4eca\u5f8c\u306f\u30d6\u30fc\u30c8\u6642\u306b\u81ea\u52d5\u7684\u306b\u7d44\u307f\u7acb\u3066\u3089\u308c\u3001\u30de\u30a6\u30f3\u30c8\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2>\u7d50\u8ad6<\/h2>\n<p>\u3053\u306e\u30ac\u30a4\u30c9\u3067\u306f\u3001Linux\u306emdadm\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2RAID\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u3092\u4f7f\u7528\u3057\u3066\u3055\u307e\u3056\u307e\u306a\u30bf\u30a4\u30d7\u306e\u914d\u5217\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3073\u307e\u3057\u305f\u3002RAID\u914d\u5217\u306f\u3001\u500b\u5225\u306e\u8907\u6570\u306e\u30c7\u30a3\u30b9\u30af\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306b\u6bd4\u3079\u3066\u5197\u9577\u6027\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u5411\u4e0a\u304c\u671f\u5f85\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u74b0\u5883\u306b\u5fc5\u8981\u306a\u914d\u5217\u306e\u30bf\u30a4\u30d7\u3092\u6c7a\u5b9a\u3057\u3001\u30c7\u30d0\u30a4\u30b9\u3092\u4f5c\u6210\u3057\u305f\u3089\u3001mdadm\u3092\u4f7f\u7528\u3057\u3066\u65e5\u5e38\u306e\u7ba1\u7406\u65b9\u6cd5\u3092\u5b66\u3076\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002Ubuntu\u3067mdadm\u3092\u4f7f\u7528\u3057\u3066RAID\u914d\u5217\u3092\u7ba1\u7406\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306e\u30ac\u30a4\u30c9\u304c\u5f79\u7acb\u3061\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b \u300cmdadm\u300d\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001Linux\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2RAID\u6a5f\u80fd\u3092\u5229\u7528\u3057\u3066\u30b9\u30c8\u30ec\u30fc\u30b8\u30a2\u30ec\u30a4\u3092\u4f5c\u6210\u304a\u3088\u3073\u7ba1\u7406\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u7ba1\u7406\u8005\u306f\u500b\u3005\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u30c7\u30d0\u30a4\u30b9\u3092\u8abf\u6574\u3057\u3001\u3088\u308a\u9ad8\u3044\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3084\u5197\u9577 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-221","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Ubuntu 22.04\u3067mdadm\u3092\u4f7f\u7528\u3057\u3066RAID\u30a2\u30ec\u30a4\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-22-04\u3067mdadm\u3092\u4f7f\u7528\u3057\u3066raid\u30a2\u30ec\u30a4\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ubuntu 22.04\u3067mdadm\u3092\u4f7f\u7528\u3057\u3066RAID\u30a2\u30ec\u30a4\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"\u306f\u3058\u3081\u306b \u300cmdadm\u300d\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001Linux\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2RAID\u6a5f\u80fd\u3092\u5229\u7528\u3057\u3066\u30b9\u30c8\u30ec\u30fc\u30b8\u30a2\u30ec\u30a4\u3092\u4f5c\u6210\u304a\u3088\u3073\u7ba1\u7406\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u7ba1\u7406\u8005\u306f\u500b\u3005\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u30c7\u30d0\u30a4\u30b9\u3092\u8abf\u6574\u3057\u3001\u3088\u308a\u9ad8\u3044\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3084\u5197\u9577 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-22-04\u3067mdadm\u3092\u4f7f\u7528\u3057\u3066raid\u30a2\u30ec\u30a4\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-12-31T19:17:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-19T14:14:28+00:00\" \/>\n<meta name=\"author\" content=\"\u967d, \u5411\u5b87\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u967d, \u5411\u5b87\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"10\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-22-04%e3%81%a7mdadm%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6raid%e3%82%a2%e3%83%ac%e3%82%a4%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-22-04%e3%81%a7mdadm%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6raid%e3%82%a2%e3%83%ac%e3%82%a4%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\",\"name\":\"Ubuntu 22.04\u3067mdadm\u3092\u4f7f\u7528\u3057\u3066RAID\u30a2\u30ec\u30a4\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2022-12-31T19:17:32+00:00\",\"dateModified\":\"2024-03-19T14:14:28+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-22-04%e3%81%a7mdadm%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6raid%e3%82%a2%e3%83%ac%e3%82%a4%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-22-04%e3%81%a7mdadm%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6raid%e3%82%a2%e3%83%ac%e3%82%a4%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-22-04%e3%81%a7mdadm%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6raid%e3%82%a2%e3%83%ac%e3%82%a4%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ubuntu 22.04\u3067mdadm\u3092\u4f7f\u7528\u3057\u3066RAID\u30a2\u30ec\u30a4\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c\",\"name\":\"\u967d, \u5411\u5b87\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g\",\"caption\":\"\u967d, \u5411\u5b87\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/hinatasora\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-22-04%e3%81%a7mdadm%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6raid%e3%82%a2%e3%83%ac%e3%82%a4%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Ubuntu 22.04\u3067mdadm\u3092\u4f7f\u7528\u3057\u3066RAID\u30a2\u30ec\u30a4\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-22-04\u3067mdadm\u3092\u4f7f\u7528\u3057\u3066raid\u30a2\u30ec\u30a4\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\/","og_locale":"ja_JP","og_type":"article","og_title":"Ubuntu 22.04\u3067mdadm\u3092\u4f7f\u7528\u3057\u3066RAID\u30a2\u30ec\u30a4\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5","og_description":"\u306f\u3058\u3081\u306b \u300cmdadm\u300d\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001Linux\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2RAID\u6a5f\u80fd\u3092\u5229\u7528\u3057\u3066\u30b9\u30c8\u30ec\u30fc\u30b8\u30a2\u30ec\u30a4\u3092\u4f5c\u6210\u304a\u3088\u3073\u7ba1\u7406\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u7ba1\u7406\u8005\u306f\u500b\u3005\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u30c7\u30d0\u30a4\u30b9\u3092\u8abf\u6574\u3057\u3001\u3088\u308a\u9ad8\u3044\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3084\u5197\u9577 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-22-04\u3067mdadm\u3092\u4f7f\u7528\u3057\u3066raid\u30a2\u30ec\u30a4\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-12-31T19:17:32+00:00","article_modified_time":"2024-03-19T14:14:28+00:00","author":"\u967d, \u5411\u5b87","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u967d, \u5411\u5b87","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"10\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-22-04%e3%81%a7mdadm%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6raid%e3%82%a2%e3%83%ac%e3%82%a4%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-22-04%e3%81%a7mdadm%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6raid%e3%82%a2%e3%83%ac%e3%82%a4%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","name":"Ubuntu 22.04\u3067mdadm\u3092\u4f7f\u7528\u3057\u3066RAID\u30a2\u30ec\u30a4\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2022-12-31T19:17:32+00:00","dateModified":"2024-03-19T14:14:28+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-22-04%e3%81%a7mdadm%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6raid%e3%82%a2%e3%83%ac%e3%82%a4%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-22-04%e3%81%a7mdadm%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6raid%e3%82%a2%e3%83%ac%e3%82%a4%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-22-04%e3%81%a7mdadm%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6raid%e3%82%a2%e3%83%ac%e3%82%a4%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"Ubuntu 22.04\u3067mdadm\u3092\u4f7f\u7528\u3057\u3066RAID\u30a2\u30ec\u30a4\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c","name":"\u967d, \u5411\u5b87","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g","caption":"\u967d, \u5411\u5b87"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/hinatasora\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-22-04%e3%81%a7mdadm%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6raid%e3%82%a2%e3%83%ac%e3%82%a4%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/221","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=221"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/221\/revisions"}],"predecessor-version":[{"id":37876,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/221\/revisions\/37876"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=221"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}