{"id":8155,"date":"2024-06-01T22:30:34","date_gmt":"2024-06-01T13:30:34","guid":{"rendered":"https:\/\/hasu0707.duckdns.org\/blog\/?p=8155"},"modified":"2024-06-01T22:34:44","modified_gmt":"2024-06-01T13:34:44","slug":"software-raid-%ea%b5%ac%ec%84%b1-mdadm","status":"publish","type":"post","link":"https:\/\/hasu0707.duckdns.org\/blog\/?p=8155","title":{"rendered":"Software RAID \uad6c\uc131 (mdadm)"},"content":{"rendered":"\n<span style=\"font-family: \ub3cb\uc6c0\uccb4, \uad74\ub9bc\uccb4, \ub098\ub214\uace0\ub515\ucf54\ub529, \uad81\uc11c\uccb4; font-size: 12pt;\"><strong>\u25a0 RAID-0 \ub300\uc0c1 \ub514\uc2a4\ud06c (RAID Level: <a href=\"https:\/\/namu.wiki\/w\/RAID\" target=\"_blank\" rel=\"noopener\">https:\/\/namu.wiki\/w\/RAID<\/a>)<\/strong><br \/>\/dev\/sdb 500GB<br \/>\/dev\/sdc 500GB<br \/><br \/><strong>1.mdadm \uc124\uce58<\/strong><br \/>&nbsp; <em>yum -y install mdadm<br \/>&nbsp; apt -y install mdadm<\/em><br \/><br \/><strong>2.\ub300\uc0c1 \ub514\uc2a4\ud06c \ud30c\ud2f0\uc158 \uc0ad\uc81c<\/strong><br \/>&nbsp;<em> dd if=\/dev\/zero of=\/dev\/sdb bs=1024 count=1<\/em><br \/><em>&nbsp; dd if=\/dev\/zero of=\/dev\/sdc bs=1024 count=1<\/em><br \/><br \/><strong>3.RAID \ud0c0\uc785\uc73c\ub85c \ud30c\ud2f0\uc154\ub2dd<\/strong><br \/>&nbsp; # <em>fdisk \/dev\/sdb<\/em> (\uac19\uc740 \ubc29\ubc95\uc73c\ub85c sdc\ub3c4 \ud30c\ud2f0\uc154\ub2dd)<br \/><br \/>&nbsp; <span style=\"font-size: 10pt;\">&nbsp; Welcome to fdisk (util-linux 2.32.1).<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; Changes will remain in memory only, until you decide to write them.<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; Be careful before using the write command.<\/span><br \/><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; Device does not contain a recognized partition table.<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; Created a new DOS disklabel with disk identifier 0x5e7f68d2.<\/span><br \/><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; Command (m for help): <span style=\"color: #e03e2d;\">n<\/span><\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; Partition type<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp;p &nbsp; primary (0 primary, 0 extended, 4 free)<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp;e &nbsp; extended (container for logical partitions)<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; Select (default p): <span style=\"color: #e03e2d;\">p<\/span><\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; Partition number (1-4, default 1):<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; First sector (2048-976773167, default 2048):<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; Last sector, +sectors or +size{K,M,G,T,P} (2048-976773167, default 976773167):<\/span><br \/><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; Created a new partition 1 of type 'Linux' and of size 465.8 GiB.<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; Partition #1 contains a ext4 signature.<\/span><br \/><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; Do you want to remove the signature? [Y]es\/[N]o: <span style=\"color: #e03e2d;\">Y<\/span><\/span><br \/><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; The signature will be removed by a write command.<\/span><br \/><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; Command (m for help): <span style=\"color: #e03e2d;\">t<\/span><\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; Selected partition 1<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; Hex code (type L to list all codes): <span style=\"color: #e03e2d;\">fd<\/span><\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; Changed type of partition 'Linux' to 'Linux raid autodetect'.<\/span><br \/><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; Command (m for help): <span style=\"color: #e03e2d;\">p<\/span><\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; Disk \/dev\/sdb: 465.8 GiB, 500107862016 bytes, 976773168 sectors<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; Units: sectors of 1 * 512 = 512 bytes<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; Sector size (logical\/physical): 512 bytes \/ 512 bytes<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; I\/O size (minimum\/optimal): 512 bytes \/ 512 bytes<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; Disklabel type: dos<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; Disk identifier: 0x5e7f68d2<\/span><br \/><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; Device &nbsp; &nbsp; Boot Start &nbsp; &nbsp; &nbsp; End &nbsp; Sectors &nbsp; Size Id Type<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; \/dev\/sdb1 &nbsp; &nbsp; &nbsp; &nbsp;2048 976773167 976771120 465.8G fd Linux raid autodetect<\/span><br \/><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; Filesystem\/RAID signature on partition 1 will be wiped.<\/span><br \/><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; Command (m for help): <span style=\"color: #e03e2d;\">w<\/span><\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; The partition table has been altered.<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; Calling ioctl() to re-read partition table.<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; Syncing disks.<\/span><br \/><br \/><strong>4.\ubcc0\uacbd\uc0ac\ud56d \ud655\uc778<\/strong><br \/>&nbsp; # <em>mdadm -E \/dev\/sd[b-c]<\/em><br \/>&nbsp;<span style=\"font-size: 10pt;\"> &nbsp; \/dev\/sdb:<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp;MBR Magic : aa55<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; Partition[0] : &nbsp; &nbsp;976771120 sectors at &nbsp; &nbsp; &nbsp; &nbsp; 2048 (type fd)<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; \/dev\/sdc:<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp;MBR Magic : aa55<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; Partition[0] : &nbsp; &nbsp;976771120 sectors at &nbsp; &nbsp; &nbsp; &nbsp; 2048 (type fd)<\/span><br \/><br \/>&nbsp; # <em>mdadm -E \/dev\/sd[b-c]1<\/em><br \/>&nbsp;<span style=\"font-size: 10pt;\"> &nbsp; mdadm: No md superblock detected on \/dev\/sdb1.<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; mdadm: No md superblock detected on \/dev\/sdc1.<\/span><br \/><br \/><strong>5.RAID \uc7a5\uce58 \uc0dd\uc131<\/strong><br \/>&nbsp; # <em>mdadm --create \/dev\/md0 --level=0 --raid-devices=2 \/dev\/sdb1 \/dev\/sdc1<\/em><br \/>&nbsp;<span style=\"font-size: 10pt;\"> &nbsp; mdadm: Note: this array has metadata at the start and<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; may not be suitable as a boot device. &nbsp;If you plan to<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; store '\/boot' on this device please ensure that<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; your boot-loader understands md\/v1.x metadata, or use<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; --metadata=0.90<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; Continue creating array? y<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; mdadm: Defaulting to version 1.2 metadata<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; mdadm: array \/dev\/md0 started.<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; # cat \/proc\/mdstat<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; Personalities : [raid1]<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; md0 : active raid1 sdc1[1] sdb1[0]<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 488253440 blocks super 1.2 [2\/2] [UU]<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [&gt;....................] &nbsp;resync = &nbsp;0.1% (605696\/488253440) finish=107.3min speed=75712K\/sec<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bitmap: 4\/4 pages [16KB], 65536KB chunk<\/span><br \/><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; unused devices: &lt;none&gt;<\/span><br \/><br \/><strong>6.RAID \uc7a5\uce58 \uc0dd\uc131 \ud655\uc778<\/strong><br \/>&nbsp; # <em>mdadm -E \/dev\/sd[b-c]1<\/em><br \/>&nbsp;<span style=\"font-size: 10pt;\"> &nbsp; \/dev\/sdb1:<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Magic : a92b4efc<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Version : 1.2<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; Feature Map : 0x1<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Array UUID : 0fe62843:e7d9d0e8:56b5b49a:69682d79<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Name : db:0 &nbsp;(local to host db)<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; Creation Time : Sat Jun &nbsp;1 04:09:43 2024<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Raid Level : raid1<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp;Raid Devices : 2<\/span><br \/><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp;Avail Dev Size : 976506928 sectors (465.63 GiB 499.97 GB)<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Array Size : 488253440 KiB (465.63 GiB 499.97 GB)<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; Used Dev Size : 976506880 sectors (465.63 GiB 499.97 GB)<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; Data Offset : 264192 sectors<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp;Super Offset : 8 sectors<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp;Unused Space : before=264112 sectors, after=48 sectors<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; State : active<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; Device UUID : 2fe4cb6b:c2be29d8:96db5e70:ce4628fa<\/span><br \/><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; Internal Bitmap : 8 sectors from superblock<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; Update Time : Sat Jun &nbsp;1 04:10:48 2024<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; Bad Block Log : 512 entries available at offset 16 sectors<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Checksum : 8e9ac22 - correct<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Events : 13<\/span><br \/><br \/><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp;Device Role : Active device 0<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp;Array State : AA ('A' == active, '.' == missing, 'R' == replacing)<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; \/dev\/sdc1:<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Magic : a92b4efc<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Version : 1.2<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; Feature Map : 0x1<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Array UUID : 0fe62843:e7d9d0e8:56b5b49a:69682d79<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Name : db:0 &nbsp;(local to host db)<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; Creation Time : Sat Jun &nbsp;1 04:09:43 2024<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Raid Level : raid1<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp;Raid Devices : 2<\/span><br \/><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp;Avail Dev Size : 976506928 sectors (465.63 GiB 499.97 GB)<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Array Size : 488253440 KiB (465.63 GiB 499.97 GB)<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; Used Dev Size : 976506880 sectors (465.63 GiB 499.97 GB)<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; Data Offset : 264192 sectors<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp;Super Offset : 8 sectors<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp;Unused Space : before=264112 sectors, after=48 sectors<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; State : active<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; Device UUID : bb646c05:8a3ebe24:2b3cfce6:c92a7010<\/span><br \/><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; Internal Bitmap : 8 sectors from superblock<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; Update Time : Sat Jun &nbsp;1 04:10:48 2024<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; Bad Block Log : 512 entries available at offset 16 sectors<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Checksum : 7c03f105 - correct<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Events : 13<\/span><br \/><br \/><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp;Device Role : Active device 1<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp;Array State : AA ('A' == active, '.' == missing, 'R' == replacing)<\/span><br \/><br \/>&nbsp; \uc790\uc138\ud558\uac8c \uc0c1\ud0dc \uccb4\ud06c<br \/>&nbsp; # <em>mdadm --detail \/dev\/md0<\/em><br \/>&nbsp; &nbsp; <span style=\"font-size: 10pt;\">\/dev\/md0:<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Version : 1.2<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Creation Time : Sat Jun &nbsp;1 04:09:43 2024<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Raid Level : raid1<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Array Size : 488253440 (465.63 GiB 499.97 GB)<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Used Dev Size : 488253440 (465.63 GiB 499.97 GB)<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Raid Devices : 2<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Total Devices : 2<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Persistence : Superblock is persistent<\/span><br \/><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Intent Bitmap : Internal<\/span><br \/><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Update Time : Sat Jun &nbsp;1 04:11:08 2024<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;State : clean, resyncing<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; Active Devices : 2<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp;Working Devices : 2<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; Failed Devices : 0<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Spare Devices : 0<\/span><br \/><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; Consistency Policy : bitmap<\/span><br \/><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Resync Status : 1% complete<\/span><br \/><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Name : db:0 &nbsp;(local to host db)<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UUID : 0fe62843:e7d9d0e8:56b5b49a:69682d79<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Events : 17<\/span><br \/><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; Number &nbsp; Major &nbsp; Minor &nbsp; RaidDevice State<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; 8 &nbsp; &nbsp; &nbsp; 17 &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;active sync &nbsp; \/dev\/sdb1<\/span><br \/><span style=\"font-size: 10pt;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp; 8 &nbsp; &nbsp; &nbsp; 33 &nbsp; &nbsp; &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp;active sync &nbsp; \/dev\/sdc1<\/span><br \/><br \/>&nbsp; \uac04\ub2e8\ud558\uac8c \uc0c1\ud0dc \uccb4\ud06c<br \/>&nbsp; # <em>mdadm --query \/dev\/md0<\/em><br \/><br \/><strong>7. \ub514\uc2a4\ud06c \ud3ec\ub9f7<\/strong><br \/>&nbsp; # <em>mkfs -t ext4 \/dev\/md0<\/em><br \/><br \/><strong>8.fstab \ucd94\uac00<\/strong><br \/>&nbsp; # <em>vi \/etc\/fstab<\/em><br \/>&nbsp; \/dev\/md0 \/mnt\/md0 ext4 defaults 1 2<br \/><br \/><strong>9. RAID \uc2dc\uc791\uacfc \uc911\uc9c0<\/strong><br \/>&nbsp;<em> mdadm --run \/dev\/md0<\/em><br \/><em>&nbsp; mdadm --stop \/dev\/md0<\/em><\/span>\n","protected":false},"excerpt":{"rendered":"<p>\u25a0 RAID-0 \ub300\uc0c1 \ub514\uc2a4\ud06c (RAID Level: https:\/\/namu.wiki\/w\/RAID)\/dev\/sdb 500GB\/dev\/sdc 500GB 1.mdadm \uc124\uce58&nbsp; yum -y install mdadm&nbsp; apt -y install mdadm 2.\ub300\uc0c1 \ub514\uc2a4\ud06c \ud30c\ud2f0\uc158 \uc0ad\uc81c&nbsp; dd if=\/dev\/zero of=\/dev\/sdb bs=1024 count=1&nbsp; dd if=\/dev\/zero of=\/dev\/sdc bs=1024 count=1 3.RAID \ud0c0\uc785\uc73c\ub85c \ud30c\ud2f0\uc154\ub2dd&nbsp; # fdisk \/dev\/sdb (\uac19\uc740 \ubc29\ubc95\uc73c\ub85c sdc\ub3c4 \ud30c\ud2f0\uc154\ub2dd) &nbsp; &nbsp; Welcome to fdisk (util-linux 2.32.1).&nbsp; &nbsp; Changes will remain in [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","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":"default","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":"set","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-8155","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\/8155","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=8155"}],"version-history":[{"count":0,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/8155\/revisions"}],"wp:attachment":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8155"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8155"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8155"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}