{"id":225,"date":"2016-10-26T16:23:12","date_gmt":"2016-10-26T07:23:12","guid":{"rendered":"http:\/\/jook.pe.kr\/?p=225"},"modified":"2016-10-26T16:23:12","modified_gmt":"2016-10-26T07:23:12","slug":"dmsetup-%eb%aa%85%eb%a0%b9","status":"publish","type":"post","link":"http:\/\/jook.pe.kr\/?p=225","title":{"rendered":"dmsetup \uba85\ub839"},"content":{"rendered":"<p>\ub9ac\ub205\uc2a4\uc5d0\uc11c multipath(mpathX)\ub098 LVM\uc744 \uc0ac\uc6a9\ud560 \uacbd\uc6b0,\u00a0\uc2e4\uc81c\ub85c \ub9e4\ud551\ub418\uc5b4 \uc788\ub294 device\ub294\u00a0dm-X \uc774\ub2e4.<\/p>\n<p>\uc544\ub798\uc640 \uac19\uc774 dmsetup \uba85\ub839\uc774\ub098 \/sys\/block\/dm-X\/\u00a0\ub514\ub809\ud1a0\ub9ac\uc5d0\uc11c \uc2e4\uc7ac \ub9e4\ud551\ub418\uc5b4\u00a0\uc788\ub294 device \uc7a5\uce58 \uc815\ubcf4\ub97c \ud655\uc778 \ud560 \uc218 \uc788\ub2e4.<\/p>\n<p>[root@localhost ~]# <strong>dmsetup info<br \/>\n<\/strong>Name:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 VG01-data<br \/>\nState:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ACTIVE<br \/>\nRead Ahead:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 256<br \/>\nTables present:\u00a0\u00a0\u00a0 LIVE<br \/>\nOpen count:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1<br \/>\nEvent number:\u00a0\u00a0\u00a0\u00a0\u00a0 0<br \/>\nMajor, minor:\u00a0\u00a0\u00a0\u00a0\u00a0 253, 0<br \/>\nNumber of targets: 1<br \/>\nUUID: LVM-ydGdXL5tyRFxBhV13vkZOGamct4q5KgoUIvn7uKeSbnGXf8bEY5u3TEvcVXqKwG3<\/p>\n<p>[root@localhost ~]# <strong>cd \/sys\/block\/dm-0\/slaves\/<\/strong><br \/>\n[root@localhost slaves]# ls -al<br \/>\ntotal\u00a00<br \/>\ndrwxr-xr-x 2 root root 0 May 19 15:33 .<br \/>\ndrwxr-xr-x 4 root root 0 Jun 26 09:30 ..<br \/>\nlrwxrwxrwx 1 root root 0 May 19 15:33 sda8 -&gt; ..\/..\/..\/block\/sda\/sda8<\/p>\n<p>&nbsp;<\/p>\n<p>\uac04\ud639 mkfs\ub85c \ud30c\uc77c\uc2dc\uc2a4\ud15c\uc744 \uc0dd\uc131\ud560 \ub54c, \uc544\ub798\uc640 \uac19\uc740 \uc624\ub958\ub97c \uc811\ud558\ub294 \uacbd\uc6b0\uac00 \uc788\ub2e4.<\/p>\n<p>\uc774\ub7f0 \uacbd\uc6b0\ub294,\u00a0multipath \ub098 LVM\uc5d0 \ub9e4\ud551\ub418\uc5b4 \uc788\ub358 \uc815\ubcf4\uac00 \uae68\ub057\ud558\uac8c clear \ub418\uc9c0\u00a0\uc54a\uc544\uc11c \ubc1c\uc0dd\ud558\ub294 \uac83\uc73c\ub85c \ucd94\uc815(?)\ub418\ub294\ub370.. ^^<\/p>\n<p>\uc544\ub798\uc640 \uac19\uc774 dmsetup\u00a0\uba85\ub839\uc73c\ub85c\u00a0clear \uc2dc\ud0a4\uba74\u00a0\ub2e4\uc2dc\u00a0\ud30c\uc77c\uc2dc\uc2a4\ud15c \uc0dd\uc131\uc774 \uac00\ub2a5\ud558\ub2e4.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>dmsetup remove [-f|&#8211;force] device_name<br \/>\ndmsetup remove_all [-f|&#8211;force]<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>[root@localhost ~]# mkfs -t ext3 \/dev\/sdb1<br \/>\nmke2fs 1.39 (29-May-2006)<br \/>\n\/dev\/sdb1 is apparently in use by the system; will not make a filesystem here!<br \/>\n[root@localhost ~]# \/sbin\/dmsetup status<br \/>\nddf1_OS: 0 976494592 linear<br \/>\n[root@localhost ~]# <strong>\/sbin\/dmsetup remove_all<br \/>\n<\/strong>[root@localhost ~]# mkfs -t ext3 \/dev\/sdb1<br \/>\nmke2fs 1.39 (29-May-2006)<br \/>\nFilesystem label=<br \/>\nOS type: Linux<br \/>\nBlock size=4096 (log=2)<br \/>\nFragment size=4096 (log=2)<br \/>\n61063168 inodes, 122096000 blocks<br \/>\n6104800 blocks (5.00%) reserved for the super user<br \/>\nFirst data block=0<br \/>\nMaximum filesystem blocks=4294967296<br \/>\n3727 block groups<br \/>\n32768 blocks per group, 32768 fragments per group<br \/>\n16384 inodes per group<br \/>\nSuperblock backups stored on blocks:<br \/>\n32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,<br \/>\n4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,<br \/>\n102400000<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ub9ac\ub205\uc2a4\uc5d0\uc11c multipath(mpathX)\ub098 LVM\uc744 \uc0ac\uc6a9\ud560 \uacbd\uc6b0,\u00a0\uc2e4\uc81c\ub85c \ub9e4\ud551\ub418\uc5b4 \uc788\ub294 device\ub294\u00a0dm-X \uc774\ub2e4. \uc544\ub798\uc640 \uac19\uc774 dmsetup \uba85\ub839\uc774\ub098 \/sys\/block\/dm-X\/\u00a0\ub514\ub809\ud1a0\ub9ac\uc5d0\uc11c \uc2e4\uc7ac \ub9e4\ud551\ub418\uc5b4\u00a0\uc788\ub294 device \uc7a5\uce58 \uc815\ubcf4\ub97c \ud655\uc778<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,7],"tags":[],"_links":{"self":[{"href":"http:\/\/jook.pe.kr\/index.php?rest_route=\/wp\/v2\/posts\/225"}],"collection":[{"href":"http:\/\/jook.pe.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/jook.pe.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/jook.pe.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/jook.pe.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=225"}],"version-history":[{"count":0,"href":"http:\/\/jook.pe.kr\/index.php?rest_route=\/wp\/v2\/posts\/225\/revisions"}],"wp:attachment":[{"href":"http:\/\/jook.pe.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/jook.pe.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=225"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/jook.pe.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}