{"id":481,"date":"2014-05-13T13:59:21","date_gmt":"2014-05-13T04:59:21","guid":{"rendered":"https:\/\/blog.id774.net\/entry\/?p=481"},"modified":"2014-05-15T16:15:12","modified_gmt":"2014-05-15T07:15:12","slug":"%e6%97%a2%e5%ad%98%e3%81%ae-lvm-%e3%81%ab%e6%9a%97%e5%8f%b7%e5%8c%96%e3%81%95%e3%82%8c%e3%81%9f-lvm-%e3%82%92%e8%bf%bd%e5%8a%a0%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/blog.id774.net\/entry\/2014\/05\/13\/481\/","title":{"rendered":"\u65e2\u5b58\u306e LVM \u306b\u6697\u53f7\u5316\u3055\u308c\u305f LVM \u3092\u8ffd\u52a0\u3059\u308b"},"content":{"rendered":"<p><a href=\"https:\/\/blog.id774.net\/entry\/2014\/05\/10\/480\/\">\u5148\u65e5\u30d1\u30bd\u30b3\u30f3\u3092\u8cb7\u3063\u305f<\/a>\u308f\u3051\u3060\u304c\u3053\u308c\u306f SSD 120GB + HDD 2TB \u3068\u3044\u3046\u30b9\u30c8\u30ec\u30fc\u30b8\u69cb\u6210\u3002\u666e\u901a\u306b\u8003\u3048\u3066 SSD \u306b OS \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u308f\u3051\u3060\u304c <a href=\"https:\/\/blog.id774.net\/entry\/2013\/12\/27\/444\/\">Debian \u3092\u6700\u5c0f\u306e\u624b\u4f5c\u696d\u304b\u3064\u6c4e\u7528\u7684\u306a\u624b\u6bb5\u3067\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b\u3068\u3044\u3046\u8a18\u4e8b<\/a>\u3067\u3082\u66f8\u3044\u305f\u901a\u308a\u500b\u4eba\u7684\u306b\u81ea\u5206\u306e\u30c7\u30fc\u30bf\u3092\u7f6e\u304f\u3042\u3089\u3086\u308b\u30b9\u30c8\u30ec\u30fc\u30b8\u306f\u5fc5\u305a\u6697\u53f7\u5316\u3059\u308b\u3068\u3044\u3046\u30dd\u30ea\u30b7\u30fc\u304c\u3042\u308b\u3002\u305d\u3053\u3067 SSD \u306b\u306f GNU\/Linux \u306b\u5099\u308f\u3063\u3066\u3044\u308b\u6697\u53f7\u5316 LVM \u3092\u6709\u52b9\u306b\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002\u3055\u3066\u3053\u3053\u3067\u554f\u984c\u306b\u306a\u308b\u306e\u304c HDD \u3067\u3042\u308a\u3001\u3053\u308c\u3082\u6697\u53f7\u5316\u3057\u305f\u4e0a\u3067 LVM \u306b\u8ffd\u52a0\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u65e2\u5b58\u306e\u6697\u53f7\u5316\u6e08\u307f LVM \u306b\u65b0\u3057\u304f\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u6697\u53f7\u5316\u3057\u3066\u8ffd\u52a0\u3055\u305b\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8a18\u8ff0\u3059\u308b\u3002\u306a\u304a\u65b0\u3057\u3044\u30b9\u30c8\u30ec\u30fc\u30b8\u306f \/dev\/sdb \u3068\u3057\u3066\u8a8d\u8b58\u3055\u308c\u3066\u3044\u308b\u524d\u63d0\u3067\u66f8\u304f\u3002<\/p>\n<p><strong>\u6697\u53f7\u5316\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306e\u4f5c\u6210<\/strong><\/p>\n<p>\u3053\u308c\u306f\u57fa\u672c\u7684\u306b<a href=\"http:\/\/d.hatena.ne.jp\/quox\/20080311\/p1\">\u3053\u3061\u3089\u306e\u8a18\u4e8b<\/a>\u306e\u901a\u308a\u3067\u3042\u308b\u3002<\/p>\n<p>\u307e\u305a\u306f\u30dc\u30ea\u30e5\u30fc\u30e0\u3092\u4e71\u6570\u3067\u57cb\u3081\u308b\u3002\u3053\u308c\u306f\u4ed6\u306b\u3082\u3084\u308a\u65b9\u304c\u3042\u308b\u3057\u3001\u3060\u3044\u305f\u3044\u5143\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u304c\u4ee5\u524d\u304b\u3089\u6697\u53f7\u5316\u3055\u308c\u3066\u3044\u308b\u306a\u3089\u8aad\u307f\u53d6\u308a\u4e0d\u53ef\u306a\u306e\u3067\u305d\u306e\u307e\u307e\u4f7f\u3048\u308b\u3068\u3044\u3046\u3053\u3068\u3082\u6709\u308a\u5f97\u308b\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">shred -n 1 -v \/dev\/sdb<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>\u6b21\u306b\u9375\u3092\u751f\u6210\u3059\u308b\u3002 256 \u30d3\u30c3\u30c8\u9577\u306a\u306e\u3067 32 \u30d0\u30a4\u30c8\u3092\u6307\u5b9a\u3002\u751f\u6210\u3057\u305f\u9375\u306f root \u3060\u3051\u8aad\u307f\u53d6\u308c\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304f\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">dd if=\/dev\/random of=\/etc\/lvm\/lvm.seckey bs=1 count=32<br \/>\nchmod 400 \/etc\/lvm\/lvm.seckey<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>\u6b21\u306b LUKS \u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306e\u4f5c\u6210\u3092\u3059\u308b\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/>4<br \/>5<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">cryptsetup --cipher aes-cbc-essiv:sha256 --key-size 256 luksFormat \/dev\/sdb<br \/>\n# \u5927\u6587\u5b57\u3067 YES \u3092\u56de\u7b54\u3059\u308b<br \/>\n# \u30d1\u30b9\u30d5\u30ec\u30fc\u30ba\u3092 2 \u56de\u5165\u529b\u3059\u308b<br \/>\ncryptsetup luksAddKey \/dev\/sdb \/etc\/lvm\/lvm.seckey<br \/>\n# \u30d1\u30b9\u30d5\u30ec\u30fc\u30ba\u3092 1 \u56de\u5165\u529b\u3059\u308b<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>\u3053\u308c\u3067\u6697\u53f7\u5316\u3055\u308c\u305f\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u304c\u4f5c\u6210\u3055\u308c\u305f\u3002\u6b21\u306e\u3088\u3046\u306b\u78ba\u8a8d\u3059\u308b\u3002 UUID \u3092\u78ba\u8a8d\u3057\u3066\u304a\u304f\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/>4<br \/>5<br \/>6<br \/>7<br \/>8<br \/>9<br \/>10<br \/>11<br \/>12<br \/>13<br \/>14<br \/>15<br \/>16<br \/>17<br \/>18<br \/>19<br \/>20<br \/>21<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\"># cryptsetup luksDump \/dev\/sdb<br \/>\nLUKS header information for \/dev\/sdb<br \/>\n<br \/>\nVersion: &nbsp; &nbsp; &nbsp; &nbsp;1<br \/>\nCipher name: &nbsp; &nbsp;aes<br \/>\nCipher mode: &nbsp; &nbsp;cbc-essiv:sha256<br \/>\nHash spec: &nbsp; &nbsp; &nbsp;sha1<br \/>\nPayload offset: 4096<br \/>\nMK bits: &nbsp; &nbsp; &nbsp; &nbsp;256<br \/>\n\u301c \u7701\u7565 \u301c<br \/>\nMK iterations: &nbsp;77500<br \/>\nUUID: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 8553a6e4-4f0f-4230-8ddb-ec2f4b68e4eb<br \/>\n\u301c \u7701\u7565 \u301c<br \/>\nKey Slot 0: ENABLED<br \/>\n\u301c \u7701\u7565 \u301c<br \/>\nKey Slot 2: DISABLED<br \/>\nKey Slot 3: DISABLED<br \/>\nKey Slot 4: DISABLED<br \/>\nKey Slot 5: DISABLED<br \/>\nKey Slot 6: DISABLED<br \/>\nKey Slot 7: DISABLED<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>dm-crypt \u30c7\u30d0\u30a4\u30b9\u306e\u4f5c\u6210\u3092\u3059\u308b\u3002 sdb_crypt \u306e\u90e8\u5206\u306f\u597d\u304d\u306a\u540d\u524d\u3067\u826f\u3044\u3002\u65e2\u5b58\u306e LVM \u3068\u63c3\u3048\u3066\u308f\u304b\u308a\u3084\u3059\u304f\u3059\u308b\u3068\u826f\u3044\u3060\u308d\u3046\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">cryptsetup --key-file \/etc\/lvm\/lvm.seckey luksOpen \/dev\/sdb sdb_crypt<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p><strong>LVM \u3078\u306e\u8ffd\u52a0\u3068\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u4f5c\u6210<\/strong><\/p>\n<p>\u3053\u308c\u3082\u57fa\u672c\u7684\u306b\u306f<a href=\"http:\/\/qiita.com\/g_maeda\/items\/3602dc2f7af3f711f9c4\">\u3053\u3061\u3089\u306e\u8a18\u4e8b<\/a>\u306e\u901a\u308a\u3002<\/p>\n<p>dm-crypt \u30c7\u30d0\u30a4\u30b9\u306b PV \u3092\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">pvcreate \/dev\/mapper\/sdb_crypt<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>\u4f5c\u6210\u3057\u305f PV \u3092\u65e2\u5b58\u306e VG \u306b\u53c2\u52a0\u3055\u305b\u308b\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">vgextend raytrek-vg \/dev\/mapper\/sdb_crypt<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>\u6210\u529f\u3057\u305f\u3089 vgscan \u3084 pvscan \u3067\u72b6\u6cc1\u3092\u78ba\u8a8d\u3059\u308b\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/>4<br \/>5<br \/>6<br \/>7<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\"># vgscan<br \/>\n&nbsp; Reading all physical volumes. &nbsp;This may take a while...<br \/>\n&nbsp; Found volume group &quot;raytrek-vg&quot; using metadata type lvm2<br \/>\n# pvscan<br \/>\n&nbsp; PV \/dev\/mapper\/sda5_crypt &nbsp; VG raytrek-vg &nbsp; lvm2 [119.00 GiB \/ 0 &nbsp; &nbsp;free]<br \/>\n&nbsp; PV \/dev\/mapper\/sdb_crypt &nbsp; &nbsp;VG raytrek-vg &nbsp; lvm2 [1.82 TiB \/ 0 &nbsp; &nbsp;free]<br \/>\n&nbsp; Total: 2 [1.94 TiB] \/ in use: 2 [1.94 TiB] \/ in no VG: 0 [0 &nbsp; ]<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>\u307e\u305f pvdisplay \u3067\u62e1\u5f35\u53ef\u80fd\u306a\u30a8\u30af\u30b9\u30c6\u30f3\u30c8\u6570\u3092\u78ba\u8a8d\u3057\u3066\u304a\u304f\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/>4<br \/>5<br \/>6<br \/>7<br \/>8<br \/>9<br \/>10<br \/>11<br \/>12<br \/>13<br \/>14<br \/>15<br \/>16<br \/>17<br \/>18<br \/>19<br \/>20<br \/>21<br \/>22<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\"># pvdisplay <br \/>\n&nbsp; --- Physical volume ---<br \/>\n&nbsp; PV Name &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/dev\/mapper\/sda5_crypt<br \/>\n&nbsp; VG Name &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; raytrek-vg<br \/>\n&nbsp; PV Size &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 119.00 GiB \/ not usable 0 &nbsp; <br \/>\n&nbsp; Allocatable &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; yes (but full)<br \/>\n&nbsp; PE Size &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4.00 MiB<br \/>\n&nbsp; Total PE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;30464<br \/>\n&nbsp; Free PE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0<br \/>\n&nbsp; Allocated PE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;30464<br \/>\n&nbsp; PV UUID &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Sho5wy-eiSd-TZEU-y7Xs-7vTY-JaX6-i3dwe1<br \/>\n&nbsp; &nbsp;<br \/>\n&nbsp; --- Physical volume ---<br \/>\n&nbsp; PV Name &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/dev\/mapper\/sdb_crypt<br \/>\n&nbsp; VG Name &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; raytrek-vg<br \/>\n&nbsp; PV Size &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1.82 TiB \/ not usable 3.09 MiB<br \/>\n&nbsp; Allocatable &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; yes<br \/>\n&nbsp; PE Size &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4.00 MiB<br \/>\n&nbsp; Total PE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;476931<br \/>\n&nbsp; Free PE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 476931<br \/>\n&nbsp; Allocated PE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0<br \/>\n&nbsp; PV UUID &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; YqLai4-8IS3-IH6J-AVhC-aT8J-K6Bx-NhsPYV<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>\u4e0a\u306e\u4f8b\u3067\u306f 476931 \u304c\u62e1\u5f35\u53ef\u80fd\u3067\u3042\u308b\u3068\u308f\u304b\u308b\u3002\u3053\u308c\u3092\u3082\u3068\u306b VG \u306b\u8ffd\u52a0\u3055\u308c\u305f PV \u4e0a\u306b LV \u3092\u4f5c\u6210\u3059\u308b\u3002\u9818\u57df\u306e\u7121\u99c4\u306e\u306a\u3044\u3088\u3046\u306b\u30a8\u30af\u30b9\u30c6\u30f3\u30c8\u6570\u3092\u5f15\u6570\u306b\u6307\u5b9a\u3059\u308b\u306e\u304c\u63a8\u5968\u3067\u3042\u308b\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">lvcreate -l 476931 --name data raytrek-vg<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>\u3053\u308c\u3067 LV \u304c\u3067\u304d\u305f\u306e\u3067\u3001 LV \u4e0a\u306b\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3092\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">mkfs -t ext4 \/dev\/raytrek-vg\/data<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>mount \u30b3\u30de\u30f3\u30c9\u3092\u767a\u884c\u3057\u3066\u30de\u30a6\u30f3\u30c8\u304c\u3067\u304d\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">mkdir \/data<br \/>\nmount \/dev\/raytrek-vg\/data \/data<br \/>\ndf -T -h<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>\u6210\u529f\u3057\u305f\u306a\u3089\u4e00\u65e6 umount \u3057\u3066\u304a\u304f\u3002<\/p>\n<p><strong>\u81ea\u52d5\u30de\u30a6\u30f3\u30c8\u306e\u8a2d\u5b9a<\/strong><\/p>\n<p>\u6700\u5f8c\u306b\u8d77\u52d5\u6642\u306b\u81ea\u52d5\u30de\u30a6\u30f3\u30c8\u3055\u308c\u308b\u3088\u3046\u5404\u7a2e\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3059\u308b\u3002\u30c7\u30d0\u30a4\u30b9\u540d\u306f\u306a\u308b\u3079\u304f UUID \u3067\u6307\u5b9a\u3059\u308b\u306e\u304c\u63a8\u5968\u3067\u3042\u308b\u3002<\/p>\n<p>\u307e\u305a \/etc\/fstab \u3092\u7de8\u96c6\u3059\u308b\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">\/dev\/mapper\/raytrek--vg-root \/ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ext4 &nbsp; &nbsp;relatime,errors=remount-ro 0 &nbsp; &nbsp; &nbsp; 1<br \/>\n\/dev\/mapper\/raytrek--vg-data \/data &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ext4 &nbsp; &nbsp;relatime,errors=remount-ro 0 &nbsp; &nbsp; &nbsp; 1<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>\u307e\u305f \/etc\/crypttab \u306b\u6b21\u306e\u4e00\u884c\u3092\u8ffd\u52a0\u3059\u308b\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">sdb_crypt UUID=8553a6e4-4f0f-4230-8ddb-ec2f4b68e4eb \/etc\/lvm\/lvm.seckey luks<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>mount -a \u3059\u308c\u3070\u81ea\u52d5\u7684\u306b\u30de\u30a6\u30f3\u30c8\u3055\u308c\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u308b\u306f\u305a\u3067\u3042\u308b\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/>4<br \/>5<br \/>6<br \/>7<br \/>8<br \/>9<br \/>10<br \/>11<br \/>12<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\"># mount -a<br \/>\n# df -T -h<br \/>\nFilesystem &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Type &nbsp; &nbsp; &nbsp;Size &nbsp;Used Avail Use% Mounted on<br \/>\n\/dev\/mapper\/raytrek--vg-root ext4 &nbsp; &nbsp; &nbsp; 86G &nbsp; 49G &nbsp; 36G &nbsp;58% \/<br \/>\nnone &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tmpfs &nbsp; &nbsp; 4.0K &nbsp; &nbsp; 0 &nbsp;4.0K &nbsp; 0% \/sys\/fs\/cgroup<br \/>\nudev &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; devtmpfs &nbsp; 16G &nbsp;4.0K &nbsp; 16G &nbsp; 1% \/dev<br \/>\ntmpfs &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;tmpfs &nbsp; &nbsp; 3.2G &nbsp;1.2M &nbsp;3.2G &nbsp; 1% \/run<br \/>\nnone &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tmpfs &nbsp; &nbsp; 5.0M &nbsp; &nbsp; 0 &nbsp;5.0M &nbsp; 0% \/run\/lock<br \/>\nnone &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tmpfs &nbsp; &nbsp; &nbsp;16G &nbsp;156K &nbsp; 16G &nbsp; 1% \/run\/shm<br \/>\nnone &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tmpfs &nbsp; &nbsp; 100M &nbsp; 28K &nbsp;100M &nbsp; 1% \/run\/user<br \/>\n\/dev\/sda1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ext4 &nbsp; &nbsp; &nbsp;232M &nbsp; 46M &nbsp;180M &nbsp;21% \/boot<br \/>\n\/dev\/mapper\/raytrek--vg-data ext4 &nbsp; &nbsp; &nbsp;1.8T &nbsp; 68M &nbsp;1.7T &nbsp; 1% \/data<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>\u3053\u308c\u3067 \/data \u3092\u30c7\u30fc\u30bf\u9818\u57df\u3068\u3057\u3066\u81ea\u7531\u306b\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5148\u65e5\u30d1\u30bd\u30b3\u30f3\u3092\u8cb7\u3063\u305f\u308f\u3051\u3060\u304c\u3053\u308c\u306f SSD 120GB + HDD 2TB \u3068\u3044\u3046\u30b9\u30c8\u30ec\u30fc\u30b8\u69cb\u6210\u3002\u666e\u901a\u306b\u8003\u3048\u3066 SSD \u306b OS \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u308f\u3051\u3060\u304c Debian \u3092\u6700\u5c0f\u306e\u624b\u4f5c\u696d\u304b\u3064\u6c4e\u7528\u7684\u306a\u624b\u6bb5\u3067\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b &#8230; <a title=\"\u65e2\u5b58\u306e LVM \u306b\u6697\u53f7\u5316\u3055\u308c\u305f LVM \u3092\u8ffd\u52a0\u3059\u308b\" class=\"read-more\" href=\"https:\/\/blog.id774.net\/entry\/2014\/05\/13\/481\/\" aria-label=\"\u65e2\u5b58\u306e LVM \u306b\u6697\u53f7\u5316\u3055\u308c\u305f LVM \u3092\u8ffd\u52a0\u3059\u308b \u306b\u3064\u3044\u3066\u3055\u3089\u306b\u8aad\u3080\">\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-481","post","type-post","status-publish","format-standard","hentry","category-tech"],"_links":{"self":[{"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/posts\/481","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/comments?post=481"}],"version-history":[{"count":0,"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/posts\/481\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/media?parent=481"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/categories?post=481"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/tags?post=481"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}