{"id":105,"date":"2023-12-08T08:14:08","date_gmt":"2023-12-08T00:14:08","guid":{"rendered":"https:\/\/simon.ice.com.tw\/?p=105"},"modified":"2024-12-15T06:46:34","modified_gmt":"2024-12-14T22:46:34","slug":"proxmox-%e7%9a%84%e9%82%a3%e4%ba%9b%e4%ba%8b","status":"publish","type":"post","link":"https:\/\/simon.ice.com.tw\/?p=105","title":{"rendered":"Proxmox \u7684\u90a3\u4e9b\u4e8b"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" style=\"font-size:19px\"><\/h2>\n\n\n\n<pre class=\"wp-block-code has-very-light-gray-to-cyan-bluish-gray-gradient-background has-background\"><code><strong>\u9650\u5236 zfs \u8a18\u61b6\u9ad4<\/strong>\n# nano \/etc\/modprobe.d\/zfs.conf\n     4GB:\n                options zfs zfs_arc_max=4294967296\n     6GB:\n                options zfs zfs_arc_max=6442450944\n     8GB:\n                options zfs zfs_arc_max=8589934592\n     10GB:\n                options zfs zfs_arc_max=10737418240\n\n# update-initramfs -u -k all\n\n<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\"><\/h5>\n\n\n\n<pre class=\"wp-block-code has-very-light-gray-to-cyan-bluish-gray-gradient-background has-background\"><code><strong>\u7121\u6cd5Mount SMB\/CIFS<\/strong>\n\u5148\u5f37\u5236 unmount.\n#umount -f -l \/mnt\/pve\/backup-45\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:19px\"><\/h2>\n\n\n\n<pre class=\"wp-block-code has-background\" style=\"background-color:#ebe9e9\"><code><strong>\u4ee5mdadm\u5efa\u7acbraid5<\/strong>\n#mdadm --create --verbose \/dev\/md1 --level=5 --raid-devices=3 \/dev\/nvme0n1 \/dev\/nvme1n1 \/dev\/nvme2n1\n\u91cd\u555f\n#reboot\n\u5229\u7528parted\u6307\u4ee4\u5efa\u7acbGPT\u5206\u5272\u8868\n  #parted \/dev\/md127\n      $(parted) mklabel gpt\n      $(parted) mkpart primary ext4 0GB 100%\n      $(parted) print\n      $(parted) quit\n\u5efa\u7acbLVM PV\n  #pvcreate \/dev\/md127\n\n\u5efa\u7acbLVM VG name\n  #vgcreate vg-md127 \/dev\/md127p1\n   Volume group \"data\" successfully created\n\u5efa\u7acbLVM LV \u7d66 proxmox mount lvm-thin\n# lvcreate -T -n lv-md127 -l 100%FREE vg-md127 -Zn\n\u5230proxmox 8006 &#91;\u8cc7\u6599\u4e2d\u5fc3]-->&#91;\u5132\u5b58] \u52a0\u5165 local-md<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/forum.proxmox.com\/threads\/add-ssd-zfs-pool-with-vms-to-new-proxmox-server.116569\/\" data-type=\"link\" data-id=\"https:\/\/forum.proxmox.com\/threads\/add-ssd-zfs-pool-with-vms-to-new-proxmox-server.116569\/\" target=\"_blank\" rel=\"noreferrer noopener\">Import zfs<\/a><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-105","post","type-post","status-publish","format-standard","hentry","category-proxmox"],"_links":{"self":[{"href":"https:\/\/simon.ice.com.tw\/index.php?rest_route=\/wp\/v2\/posts\/105","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/simon.ice.com.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/simon.ice.com.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/simon.ice.com.tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/simon.ice.com.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=105"}],"version-history":[{"count":13,"href":"https:\/\/simon.ice.com.tw\/index.php?rest_route=\/wp\/v2\/posts\/105\/revisions"}],"predecessor-version":[{"id":200,"href":"https:\/\/simon.ice.com.tw\/index.php?rest_route=\/wp\/v2\/posts\/105\/revisions\/200"}],"wp:attachment":[{"href":"https:\/\/simon.ice.com.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/simon.ice.com.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/simon.ice.com.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}