{"id":24,"date":"2010-04-17T17:25:05","date_gmt":"2010-04-18T02:25:05","guid":{"rendered":"\/blog\/?p=24"},"modified":"2023-09-21T09:41:25","modified_gmt":"2023-09-21T00:41:25","slug":"%eb%a0%88%eb%93%9c%ed%96%87-%eb%a6%ac%eb%88%85%ec%8a%a4-%ec%86%8c%ed%94%84%ed%8a%b8%ec%9b%a8%ec%96%b4-raid-%ea%b5%ac%ec%84%b1%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/hasu0707.duckdns.org\/blog\/?p=24","title":{"rendered":"\ub808\ub4dc\ud587 \ub9ac\ub205\uc2a4 \uc18c\ud504\ud2b8\uc6e8\uc5b4 RAID \uad6c\uc131\ud558\uae30"},"content":{"rendered":"\n<P><FONT face=\uad74\ub9bc>\ub808\ub4dc\ud587 \ub9ac\ub205\uc2a4 \uc18c\ud504\ud2b8\uc6e8\uc5b4 RAID \uad6c\uc131\ud558\uae30<\/FONT><\/P>\n<P>&nbsp;<\/P>\n<P><FONT face=\uad74\ub9bc>**) \uc774 \ubb38\uc11c\ub294 \ub808\ub4dc\ud587 \uc5d4\ud130\ud504\ub77c\uc774\uc988 \ud074\ub860\uc778 CentOS 4.4 \ubc84\uc804\uc5d0\uc11c \uc2dc\ud5d8\ud558\uc600\uc74c.<br \/>**) \uac19\uc740 \ubaa8\ub378\uc758 300GB IDE \ud558\ub4dc\uac00 2\uac1c\uace0 RAID-0 \ud0c0\uc785\uc73c\ub85c \uad6c\uc131\ud55c\ub2e4\ub294 \uac00\uc815\ud558\uc5d0 \uc791\uc131\ud568.<br \/>**) \uc2dc\ud5d8\ud560 \ud558\ub4dc\ub514\uc2a4\ud06c\ub294 \/dev\/hda\uc640 \/dev\/hdb<br \/>**) \uc2dc\uc2a4\ud15c\uc774 \uc124\uce58\ub41c \ud558\ub4dc\ub514\uc2a4\ud06c\ub294 \ub530\ub85c \uc788\uc74c. (\/dev\/sda)<\/FONT><\/P>\n<P>&nbsp;<\/P>\n<P><FONT face=\uad74\ub9bc>1. fdisk\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub450 \ud558\ub4dc\ub514\uc2a4\ud06c\uc758 \ud30c\ud2f0\uc158\uc744 \uc544\ub798\uc640 \uac19\uc774 raid auto(fd) \ud0c0\uc785\uc73c\ub85c \uc7a1\ub294\ub2e4.<\/FONT><\/P>\n<P>&nbsp;<\/P>\n<P><FONT face=\uad74\ub9bc># fdisk \/dev\/hda<\/FONT><\/P>\n<P><FONT face=\uad74\ub9bc>The number of cylinders for this disk is set to 36481.<br \/>There is nothing wrong with that, but this is larger than 1024,<br \/>and could in certain setups cause problems with:<br \/>1) software that runs at boot time (e.g., old versions of LILO)<br \/>2) booting and partitioning software from other OSs<br \/>&nbsp;&nbsp; (e.g., DOS FDISK, OS\/2 FDISK)<\/FONT><\/P>\n<P><FONT face=\uad74\ub9bc>Command (m for help): p<\/FONT><\/P>\n<P><FONT face=\uad74\ub9bc>Disk \/dev\/hda: 300.0 GB, 300069052416 bytes<br \/>255 heads, 63 sectors\/track, 36481 cylinders<br \/>Units = cylinders of 16065 * 512 = 8225280 bytes<\/FONT><\/P>\n<P><FONT face=\uad74\ub9bc>&nbsp;&nbsp; Device Boot &nbsp; &nbsp;&nbsp; Start &nbsp; &nbsp; &nbsp; &nbsp; End &nbsp; &nbsp;&nbsp; Blocks &nbsp; Id&nbsp; System<br \/>\/dev\/hda1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1 &nbsp; &nbsp; &nbsp; 36481 &nbsp; 293033601 &nbsp; 83&nbsp; Linux<\/FONT><\/P>\n<P><FONT face=\uad74\ub9bc>Command (m for help): d<br \/>Selected partition 1<\/FONT><\/P>\n<P><FONT face=\uad74\ub9bc>Command (m for help): p<\/FONT><\/P>\n<P><FONT face=\uad74\ub9bc>Disk \/dev\/hda: 300.0 GB, 300069052416 bytes<br \/>255 heads, 63 sectors\/track, 36481 cylinders<br \/>Units = cylinders of 16065 * 512 = 8225280 bytes<\/FONT><\/P>\n<P><FONT face=\uad74\ub9bc>&nbsp;&nbsp; Device Boot &nbsp; &nbsp;&nbsp; Start &nbsp; &nbsp; &nbsp; &nbsp; End &nbsp; &nbsp;&nbsp; Blocks &nbsp; Id&nbsp; System<\/FONT><\/P>\n<P><FONT face=\uad74\ub9bc>Command (m for help): n<br \/>Command action<br \/>&nbsp;&nbsp; e &nbsp; extended<br \/>&nbsp;&nbsp; p &nbsp; primary partition (1-4)<br \/>p<br \/>Partition number (1-4): 1<br \/>First cylinder (1-36481, default 1):<br \/>Using default value 1<br \/>Last cylinder or +size or +sizeM or +sizeK (1-36481, default 36481):<br \/>Using default value 36481<\/FONT><\/P>\n<P><FONT face=\uad74\ub9bc>Command (m for help): t<br \/>Selected partition 1<br \/>Hex code (type L to list codes): fd &lt;-- \uc5ec\uae30\uc11c fd\ub85c \uc785\ub825\ud55c\ub2e4.<br \/>Changed system type of partition 1 to fd (Linux raid autodetect)<\/FONT><\/P>\n<P><FONT face=\uad74\ub9bc>Command (m for help): p<\/FONT><\/P>\n<P><FONT face=\uad74\ub9bc>Disk \/dev\/hda: 300.0 GB, 300069052416 bytes<br \/>255 heads, 63 sectors\/track, 36481 cylinders<br \/>Units = cylinders of 16065 * 512 = 8225280 bytes<\/FONT><\/P>\n<P><FONT face=\uad74\ub9bc>&nbsp;&nbsp; Device Boot &nbsp; &nbsp;&nbsp; Start &nbsp; &nbsp; &nbsp; &nbsp; End &nbsp; &nbsp;&nbsp; Blocks &nbsp; Id&nbsp; System<br \/>\/dev\/hda1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1 &nbsp; &nbsp; &nbsp; 36481 &nbsp; 293033601 &nbsp; fd&nbsp; Linux raid autodetect<\/FONT><\/P>\n<P><FONT face=\uad74\ub9bc>Command (m for help): w<br \/>The partition table has been altered!<\/FONT><\/P>\n<P><FONT face=\uad74\ub9bc>Calling ioctl() to re-read partition table.<br \/>Syncing disks.<br \/>#<\/FONT><\/P>\n<P>&nbsp;<\/P>\n<P>&nbsp;<\/P>\n<P><FONT face=\uad74\ub9bc>2. (1)\uacfc \uac19\uc740 \ubc29\ubc95\uc73c\ub85c \/dev\/hdb\ub3c4 \ud30c\ud2f0\uc158\uc744 \uc7a1\uc544\uc900\ub2e4.<\/FONT><\/P>\n<P>&nbsp;<\/P>\n<P>&nbsp;<\/P>\n<P><FONT face=\uad74\ub9bc>3. \uc544\ub798\uc640 \uac19\uc774 \ud558\uc5ec RAID\ub97c \uad6c\uc131\ud574 \uc900\ub2e4.<\/FONT><\/P>\n<P>&nbsp;<\/P>\n<P><FONT face=\uad74\ub9bc># mdadm -C \/dev\/md0 --level=raid0 --raid-devices=2 \/dev\/hda1 \/dev\/hdb1<\/FONT><\/P>\n<P><FONT face=\uad74\ub9bc>mdadm: \/dev\/hda1 appears to contain an ext2fs file system<br \/>&nbsp; &nbsp; size=586067072K&nbsp; mtime=Fri Dec&nbsp; 1 14:37:24 2006<br \/>mdadm: \/dev\/hda1 appears to be part of a raid array:<br \/>&nbsp; &nbsp; level=0 devices=2 ctime=Fri Dec&nbsp; 1 14:30:43 2006<br \/>mdadm: \/dev\/hdb1 appears to be part of a raid array:<br \/>&nbsp; &nbsp; level=0 devices=2 ctime=Fri Dec&nbsp; 1 14:30:43 2006<br \/>Continue creating array? y &lt;-- \uc5ec\uae30\uc11c y\ub97c \uc785\ub825\ud55c\ub2e4.<br \/>mdadm: array \/dev\/md0 started.<br \/>#<\/FONT><\/P>\n<P>&nbsp;<\/P>\n<P>&nbsp;<\/P>\n<P><FONT face=\uad74\ub9bc>4. \uc544\ub798\uc640 \uac19\uc774 \ub9c8\uc6b4\ud2b8\ub97c \ud14c\uc2a4\ud2b8 \ud55c\ub2e4.<br \/># mount -t ext3 -o usrquota,grpquota,noatime \/dev\/md0 \/home<\/FONT><\/P>\n<P>&nbsp;<\/P>\n<P>&nbsp;<\/P>\n<P><br \/><FONT face=\uad74\ub9bc>5. fstab\ub97c \ud3b8\uc9d1\ud574 \uc900\ub2e4. \uc774\ub54c \uc8fc\uc758\ud560 \uc810\uc740 LABEL\ub85c \ub418\uc5b4 \uc788\ub294 \ub2e4\ub978 \uc7a5\uce58\uba85\ub4e4\uc744<br \/>&nbsp;&nbsp; \/dev\/... \ud615\uc2dd\uc73c\ub85c \ubcc0\uacbd\ud574 \uc900\ub2e4.<\/FONT><\/P>\n<P>&nbsp;<\/P>\n<P>&nbsp;<\/P>\n<P><FONT face=\uad74\ub9bc>6. \ub05d. \n<\/FONT>\n","protected":false},"excerpt":{"rendered":"<p>\ub808\ub4dc\ud587 \ub9ac\ub205\uc2a4 \uc18c\ud504\ud2b8\uc6e8\uc5b4 RAID \uad6c\uc131\ud558\uae30 &nbsp; **) \uc774 \ubb38\uc11c\ub294 \ub808\ub4dc\ud587 \uc5d4\ud130\ud504\ub77c\uc774\uc988 \ud074\ub860\uc778 CentOS 4.4 \ubc84\uc804\uc5d0\uc11c \uc2dc\ud5d8\ud558\uc600\uc74c.**) \uac19\uc740 \ubaa8\ub378\uc758 300GB IDE \ud558\ub4dc\uac00 2\uac1c\uace0 RAID-0 \ud0c0\uc785\uc73c\ub85c \uad6c\uc131\ud55c\ub2e4\ub294 \uac00\uc815\ud558\uc5d0 \uc791\uc131\ud568.**) \uc2dc\ud5d8\ud560 \ud558\ub4dc\ub514\uc2a4\ud06c\ub294 \/dev\/hda\uc640 \/dev\/hdb**) \uc2dc\uc2a4\ud15c\uc774 \uc124\uce58\ub41c \ud558\ub4dc\ub514\uc2a4\ud06c\ub294 \ub530\ub85c \uc788\uc74c. (\/dev\/sda) &nbsp; 1. fdisk\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub450 \ud558\ub4dc\ub514\uc2a4\ud06c\uc758 \ud30c\ud2f0\uc158\uc744 \uc544\ub798\uc640 \uac19\uc774 raid auto(fd) \ud0c0\uc785\uc73c\ub85c \uc7a1\ub294\ub2e4. &nbsp; # fdisk \/dev\/hda The [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[39],"tags":[],"class_list":["post-24","post","type-post","status-publish","format-standard","hentry","category-os_linux_unix_macos"],"_links":{"self":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/24","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=24"}],"version-history":[{"count":0,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/24\/revisions"}],"wp:attachment":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=24"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=24"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=24"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}