{"id":51,"date":"2007-05-07T23:49:23","date_gmt":"2007-05-07T14:49:23","guid":{"rendered":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=51"},"modified":"2008-05-06T15:56:56","modified_gmt":"2008-05-06T06:56:56","slug":"linux-raid5-%e3%81%ae-reshape-%ef%bc%88%e3%81%9d%e3%81%ae2%ef%bc%89","status":"publish","type":"post","link":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=51","title":{"rendered":"[Linux] RAID5 \u306e reshape \uff08\u305d\u306e2\uff09"},"content":{"rendered":"<p><a href=\"http:\/\/umezawa.dyndns.info\/wordpress\/?p=43\">\u524d\u306e\u8a18\u4e8b<\/a>\u3067\u3001reshape \u4e2d\u306b degrade \u3059\u308b\u3068\u30c7\u30a3\u30b9\u30af\u30a2\u30af\u30bb\u30b9\u304c\u6b62\u307e\u3063\u305f\u3068\u3044\u3046\u8a71\u3092\u66f8\u304d\u307e\u3057\u305f\u304c\u3001\u305d\u306e\u72b6\u614b\u3067 md \u30c7\u30d0\u30a4\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3069\u3046\u306a\u308b\u304b\u3092\u8abf\u3079\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p><!--more--><\/p>\n<blockquote>\n<pre>\uff08\u9014\u4e2d\u7565\uff09\r\n[root@linuxraidtest ~]# mdadm --manage \/dev\/md0 --fail \/dev\/sda1\r\nmdadm: set \/dev\/sda1 faulty in \/dev\/md0\r\n[root@linuxraidtest ~]# dd if=\/dev\/md0 of=\/dev\/null bs=1MiB count=3000<\/pre>\n<\/blockquote>\n<p>\u56fa\u307e\u308a\u307e\u3057\u305f\u2026<\/p>\n<p>\u3057\u3087\u3046\u304c\u306a\u3044\u306e\u3067\u6bba\u3057\u3066\u307f\u3088\u3046\u3068\u3001<\/p>\n<blockquote>\n<pre>[root@linuxraidtest ~]# ps ax | grep dd\r\n 2383 pts\/0    D+     0:04 dd if \/dev\/md0 of \/dev\/null bs 1MiB count 3000\r\n 2405 pts\/3    R+     0:00 grep dd\r\n[root@linuxraidtest ~]# kill 2383\r\n[root@linuxraidtest ~]# kill -QUIT 2383\r\n[root@linuxraidtest ~]# kill -ABRT 2383\r\n[root@linuxraidtest ~]# kill -KILL 2383<\/pre>\n<\/blockquote>\n<p>\u3068\u3057\u307e\u3057\u305f\u304c\u4f55\u3082\u304a\u304d\u307e\u305b\u3093\u3002\u5f53\u7136 md \u30c7\u30d0\u30a4\u30b9\u3082 busy \u306a\u306e\u3067\u518d\u8d77\u52d5\u4ee5\u5916\u65b9\u6cd5\u304c\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<blockquote>\n<pre>[root@linuxraidtest ~]# mdadm --stop \/dev\/md0\r\nmdadm: fail to stop array \/dev\/md0: Device or resource busy\r\n[root@linuxraidtest ~]# reboot<\/pre>\n<\/blockquote>\n<p>\u3064\u307e\u308a reshape \u4e2d\u306b degrade \u3057\u305f\u30a2\u30ec\u30a4\u306b\u306f\u30a2\u30af\u30bb\u30b9\u3057\u3066\u306f\u3044\u3051\u306a\u3044\u3001\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3055\u3066\u3001\u524d\u56de\u306f\u96fb\u30d7\u30c1\u3057\u307e\u3057\u305f\u304c\u3001\u3055\u3059\u304c\u306b\u5b9f\u904b\u7528\u3067\u305d\u3093\u306a\u3053\u3068\u3092\u3059\u308b\u308f\u3051\u306b\u306f\u3044\u304b\u306a\u3044\u306e\u3067\u3001\u666e\u901a\u306b\u30a2\u30ec\u30a4\u3092\u518d\u8d77\u52d5\u3057\u3066\u307f\u308b\u3068\u3001<\/p>\n<blockquote>\n<pre>[root@linuxraidtest ~]# mdadm --manage \/dev\/md0 --fail \/dev\/sda1\r\nmdadm: set \/dev\/sda1 faulty in \/dev\/md0\r\n[root@linuxraidtest ~]# cat \/proc\/mdstat\r\nPersonalities : [raid6] [raid5] [raid4] \r\nmd0 : active raid5 sde1[4] sdd1[3] sdc1[2] sdb1[1] sda1[5](F)\r\n      3132288 blocks super 0.91 level 5, 64k chunk, algorithm 2 [5\/4] [_UUUU]\r\n\r\nunused devices: &lt;none&gt;\r\n[root@linuxraidtest ~]# mdadm --manage \/dev\/md0 --stop\r\nmdadm: stopped \/dev\/md0\r\n[root@linuxraidtest ~]# cat \/proc\/mdstat\r\nPersonalities : [raid6] [raid5] [raid4] \r\nunused devices: <none>\r\n[root@linuxraidtest ~]# mdadm --assemble \/dev\/md0 --config partitions --super-minor 0\r\nmdadm: \/dev\/md0 has been started with 4 drives (out of 5).\r\n[root@linuxraidtest ~]# cat \/proc\/mdstat\r\nPersonalities : [raid6] [raid5] [raid4] \r\nmd0 : active raid5 sdb1[1] sde1[4] sdd1[3] sdc1[2]\r\n      3132288 blocks super 0.91 level 5, 64k chunk, algorithm 2 [5\/4] [_UUUU]\r\n      [===&gt;.................]  reshape = 15.0% (157824\/1044096) finish=3.1min speed=4704K\/sec\r\n\r\nunused devices: &lt;none&gt;\r\n[root@linuxraidtest ~]#\r\n\uff08\u3057\u3070\u3089\u304f\u5f85\u3064\uff09\r\n[root@linuxraidtest ~]# cat \/proc\/mdstat\r\nPersonalities : [raid6] [raid5] [raid4] \r\nmd0 : active raid5 sdb1[1] sde1[4] sdd1[3] sdc1[2]\r\n      3132288 blocks super 0.91 level 5, 64k chunk, algorithm 2 [5\/4] [_UUUU]\r\n\r\nunused devices: &lt;none&gt;\r\n[root@linuxraidtest ~]# dd if=\/dev\/md0 bs=1MiB count=3000 | cmp \/dev\/stdin check.dat; echo $?\r\n3000+0 records in\r\n3000+0 records out\r\n3145728000 bytes (3.1 GB) copied, 386.504 seconds, 8.1 MB\/s\r\n0<\/none><\/pre>\n<\/blockquote>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u30c7\u30fc\u30bf\u306f\u4fdd\u5b58\u3055\u308c\u3066\u3044\u307e\u3059\u3002\uff08\u5f53\u305f\u308a\u524d\u304b\uff09<\/p>\n<p>\u7d50\u5c40\u306e\u3068\u3053\u308d\u3001reshape \u4e2d\u306b degrade \u3059\u308b\u53ef\u80fd\u6027\u3092\u8003\u3048\u308b\u3068\u3001\u4e0a\u306b\u8f09\u3063\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3092 unmount \u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u305f\u3081\u3001\u30aa\u30f3\u30e9\u30a4\u30f3\u3067 reshape \u3067\u304d\u308b\u30e1\u30ea\u30c3\u30c8\u306f\u3042\u307e\u308a\u7121\u3044\u3001\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u30de\u30b7\u30f3\u304c\u30cf\u30f3\u30b0\u30a2\u30c3\u30d7\u3057\u3066 reshape \u304c\u4e2d\u65ad\u3055\u308c\u3066\u3082\u6b21\u306e\u8d77\u52d5\u6642\u306b\u6b63\u3057\u304f\u518d\u958b\u3055\u308c\u308b\u306e\u304c\u5229\u70b9\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u6614\u3005\u3001\u307e\u3060 Fedora Core \u3067\u306f\u306a\u304f RedHat Linux \u3060\u3063\u305f\u9803\u3001reshape \u4e2d\u306b\u30d6\u30ec\u30fc\u30ab\u30fc\u304c\u843d\u3061\u3066\u30c7\u30fc\u30bf\u3092\u5439\u3063\u98db\u3070\u3057\u305f\u7d4c\u9a13\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u9803\u306b\u6bd4\u3079\u308c\u3070\u305a\u3063\u3068\u826f\u304f\u306a\u3063\u3066\u308b\u3093\u3067\u3059\u3051\u3069\u306d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u306e\u8a18\u4e8b\u3067\u3001reshape \u4e2d\u306b degrade \u3059\u308b\u3068\u30c7\u30a3\u30b9\u30af\u30a2\u30af\u30bb\u30b9\u304c\u6b62\u307e\u3063\u305f\u3068\u3044\u3046\u8a71\u3092\u66f8\u304d\u307e\u3057\u305f\u304c\u3001\u305d\u306e\u72b6\u614b\u3067 md \u30c7\u30d0\u30a4\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3069\u3046\u306a\u308b\u304b\u3092\u8abf\u3079\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-51","post","type-post","status-publish","format-standard","hentry","category-software"],"_links":{"self":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/51","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=51"}],"version-history":[{"count":0,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/51\/revisions"}],"wp:attachment":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=51"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=51"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=51"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}