{"id":7151,"date":"2019-01-30T22:18:08","date_gmt":"2019-01-30T13:18:08","guid":{"rendered":"https:\/\/www.taruki.com\/wp\/?p=7151"},"modified":"2019-01-30T22:37:58","modified_gmt":"2019-01-30T13:37:58","slug":"drbd9%e3%81%a8linstor%e3%81%ae%e3%83%a1%e3%83%a2","status":"publish","type":"post","link":"https:\/\/www.taruki.com\/wp\/?p=7151","title":{"rendered":"DRBD9\u3068linstor\u306e\u30e1\u30e2"},"content":{"rendered":"<p>drbdmanage\u304c\u3059\u3063\u3054\u304f\u4e0d\u5b89\u5b9a\u306a\u306e\u3067\u3001linsotr\u3092\u8a66\u3057\u3066\u307f\u305f\u30e1\u30e2\u3002<br \/>\n\u57fa\u672c\u306f\u3001<a href=\"https:\/\/blog.3ware.co.jp\/drbd-users-guide-9.0\/s-common-administration.html#s-packages\">3Ware\u793e\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u901a\u308a\u3067\u5927\u4e08\u592b\u3060\u3051\u3069\u3001\u30d3\u30eb\u30c9\u90e8\u5206\u3067\u30c9\u30cf\u30de\u30ea\u3057\u305f\u3002<br \/>\n<a href=\"https:\/\/github.com\/LINBIT\/\">LINBIT\u306eGit\u30ea\u30dd\u30b8\u30c8\u30ea<\/a>\u304b\u3089\u3001drbd-9.0,linstor-server,linstor-client,linstor-api-py,drbd-utils\u3092\u53d6\u5f97\u3057\u3066\u3001dpkg-buildpackage -b\u3067\u30d3\u30eb\u30c9\u3002master\u30d6\u30e9\u30f3\u30c1\u304b\u3089\u76f4\u63a5\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3068\u30d3\u30eb\u30c9\u30a8\u30e9\u30fc\u306b\u306a\u308b\u3057\u3001linbit\u793e\u306eDownload\u30da\u30fc\u30b8\u304b\u3089tarball\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3068debian\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u306a\u304f\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u4f5c\u308c\u306a\u3044\u306e\u3067\u3001\u30ea\u30ea\u30fc\u30b9\u30bf\u30b0\u306e\u4ed8\u3044\u3066\u3044\u308b\u30d6\u30e9\u30f3\u30c1\u3092\u53d6\u5f97\u3059\u308b\u3002<br \/>\n(\u3053\u308c\u3067\u3081\u3063\u3061\u3083\u30cf\u30de\u3063\u305f)<br \/>\n\u4f9d\u5b58\u95a2\u4fc2\u306f\u9010\u6b21\u6f70\u3057\u306a\u304c\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u3063\u305f\u6642\u306e\u30ed\u30b0\u3092\u6b8b\u3057\u3066\u306a\u304b\u3063\u305f\u3051\u3069\u3001buster\u306b\u3042\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u3092apt\u3059\u308b\u3060\u3051\u3067\u57fa\u672cOK\u3002<br \/>\n\u30d1\u30c3\u30b1\u30fc\u30b8\u3092apt\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3089\u3001drbd.service, linstor-controller.service, linstor-satellite.service\u304csystemd\u306b\u767b\u9332\u3055\u308c\u308b\u306e\u3067\u3001enable\u5316\u3068start\u3092\u884c\u3046\u3002<br \/>\n<PRE><br \/>\n# VG\u4f5c\u6210<br \/>\nvgcreate drbdpool \/dev\/vdb1<br \/>\n# LV\u4f5c\u6210<br \/>\nlvcreate &#8211;thin -L 15G drbdpool\/thinPool<br \/>\n# node\u767b\u9332<br \/>\nlinstor node create testvm [IP\u30a2\u30c9\u30ec\u30b9]<br \/>\n# Storage Pool\u767b\u9332<br \/>\nlinstor storage-pool create lvmthin testvm testpool drbdpool\/thinPool<br \/>\n# Resource\u767b\u9332(\u78ba\u8a8d\u30b3\u30de\u30f3\u30c9\u306f\u3001resource list\u3058\u3083\u306a\u304f\u3066\u3001resource-definition list)<br \/>\nlinstor resource-definition create testResource<br \/>\n# Volume\u767b\u9332(\u78ba\u8a8d\u30b3\u30de\u30f3\u30c9\u306f\u3001volume list\u3058\u3083\u306a\u304f\u3066\u3001volume-definition list)<br \/>\nlinstor volume-definition create testResource 2G<br \/>\n# \u767b\u9332\u3057\u305fResource\u306e\u4f5c\u6210(&#8211;auto-place 1\u306f\u3001\u5197\u9577\u5316\u306a\u3057)<br \/>\nlinstor resource create testResource &#8211;auto-place 1<br \/>\n<\/PRE><br \/>\n\u305d\u306e\u5f8c\u3001snapshot\u3092\u5b9f\u884c\u3057\u305f\u3089\u30ab\u30fc\u30cd\u30eb\u304c\u523a\u3055\u3063\u305fwww<br \/>\nKernel\u306eLVM\u5468\u308a\u3067\u5b8c\u5168\u306b\u5fdc\u7b54\u304c\u306a\u304f\u306a\u308b\u306e\u3067\u3001buster\u306eKernel\u304bLVM2\u304c\u602a\u3057\u3044\u3088\u3046\u306a\u6c17\u304c\u3059\u308b\u3002<br \/>\nDRBD\u306eSnapshot\u304c\u4e0d\u5b89\u5b9a\u306a\u3089\u3001zfs\u3068\u304bbtrfs\u306eSnapshot\u3067\u5bfe\u5fdc\u3059\u308b\u3057\u304b\u306a\u3044\u304b\u3002<\/p>\n<p>\u4f7f\u3046\u6642\u306f\u3001\u300c\/dev\/drbd\/by-res\/testResource\/0\u300d\u3082\u3057\u304f\u306f\u3001\u300c\/dev\/drbd1000\u300d\u3060\u3051\u3069\u524d\u8005\u306e\u65b9\u304c\u5206\u304b\u308a\u6613\u305d\u3046\u3002<br \/>\n\u5b9f\u969b\u306b\u3001\u30de\u30a6\u30f3\u30c8\u3057\u305f\u308a\u3057\u3066\u4f7f\u7528\u4e2d\u306b\u306a\u3063\u305f\u3089\u3001\u3053\u3093\u306a\u98a8\u306b\u898b\u3048\u308b\u3002<br \/>\n<PRE><br \/>\nlinstor resource list<br \/>\nlqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk<br \/>\nx ResourceName x Node   x Port x Usage x    State x<br \/>\ntqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqu<br \/>\nx testResource x testvm x 7000 x InUse x UpToDate x<br \/>\nmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj<br \/>\ndrbdadm status<br \/>\ntestResource role:Primary<br \/>\n  disk:UpToDate<br \/>\n<\/PRE><\/p>\n","protected":false},"excerpt":{"rendered":"<p>drbdmanage\u304c\u3059\u3063\u3054\u304f\u4e0d\u5b89\u5b9a\u306a\u306e\u3067\u3001linsotr\u3092\u8a66\u3057\u3066\u307f\u305f\u30e1\u30e2\u3002 \u57fa\u672c\u306f\u30013Ware\u793e\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u901a\u308a\u3067\u5927\u4e08\u592b\u3060\u3051\u3069\u3001\u30d3\u30eb\u30c9\u90e8\u5206\u3067\u30c9\u30cf\u30de\u30ea\u3057\u305f\u3002 LINBIT\u306eGit\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u3001drbd-9.0,lin [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[24],"tags":[50,104,49,69],"class_list":["post-7151","post","type-post","status-publish","format-standard","hentry","category-pc","tag-debian","tag-drbd","tag-linux","tag-storage"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.taruki.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/7151","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.taruki.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.taruki.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.taruki.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.taruki.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7151"}],"version-history":[{"count":0,"href":"https:\/\/www.taruki.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/7151\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.taruki.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.taruki.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7151"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.taruki.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}