{"id":632,"date":"2023-03-28T20:27:28","date_gmt":"2023-03-28T11:27:28","guid":{"rendered":"https:\/\/deskplate.net\/blog\/?p=632"},"modified":"2023-03-28T20:30:05","modified_gmt":"2023-03-28T11:30:05","slug":"linux-%e5%a4%96%e4%bb%98%e3%81%91hdd-%e3%83%9e%e3%82%a6%e3%83%b3%e3%83%88%e3%80%80%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%83%a1%e3%83%a2","status":"publish","type":"post","link":"https:\/\/deskplate.net\/blog\/archives\/632","title":{"rendered":"Linux \u5916\u4ed8\u3051HDD \u30de\u30a6\u30f3\u30c8\u3000\u30b3\u30de\u30f3\u30c9\u30e1\u30e2"},"content":{"rendered":"<pre>lvscan<br>\r\n\u30c7\u30d0\u30a4\u30b9\u3092\u30b9\u30ad\u30e3\u30f3\u3057\u3066\u8ad6\u7406\u30dc\u30ea\u30e5\u30fc\u30e0\u3092\u4e00\u89a7\u8868\u793a\u3059\u308b<\/pre>\n<p>[root@localhost ~]# lvscan<br \/>\n  ACTIVE            &#8216;\/dev\/almalinux\/swap&#8217; [29.80 GiB] inherit<br \/>\n  ACTIVE            &#8216;\/dev\/almalinux\/home&#8217; [372.53 GiB] inherit<br \/>\n  ACTIVE            &#8216;\/dev\/almalinux\/root&#8217; [490.98 GiB] inherit<br \/>\n  ACTIVE            &#8216;\/dev\/cl\/swap&#8217; [14.90 GiB] inherit<br \/>\n  ACTIVE            &#8216;\/dev\/cl\/home&#8217; [186.26 GiB] inherit<br \/>\n  ACTIVE            &#8216;\/dev\/cl\/root&#8217; [<244.45 GiB] inherit\n\n\n\n<pre>\r\nvgscan<br>\u30c7\u30d0\u30a4\u30b9\u3092\u30b9\u30ad\u30e3\u30f3\u3057\u3066\u30dc\u30ea\u30e5\u30fc\u30e0\u30b0\u30eb\u30fc\u30d7\u3092\u4e00\u89a7\u8868\u793a\u3059\u308b<\/pre>\n<p>[root@localhost ~]# vgscan &#8211;mknodes<br \/>\n  Found volume group &#8220;almalinux&#8221; using metadata type lvm2<br \/>\n  Found volume group &#8220;cl&#8221; using metadata type lvm2<\/p>\n<pre>\r\nvgdisplay<br>\u30dc\u30ea\u30e5\u30fc\u30e0\u30b0\u30eb\u30fc\u30d7\u306e\u8a73\u7d30\u60c5\u5831\u3092\u8868\u793a\u3059\u308b<\/pre>\n<pre>\r\nvgrename <br>\u30b3\u30de\u30f3\u30c9\u2015\u2015\u30dc\u30ea\u30e5\u30fc\u30e0\u30b0\u30eb\u30fc\u30d7\u306e\u540d\u524d\u3092\u5909\u66f4\u3059\u308b<\/pre>\n<p>[root@localhost ~]# vgrename 55ETGD-KeWV-0kjk-rpoE-5sgc-abTa-9At8Yx almalinux<\/p>\n<pre>\r\nvgchange<br>\u30dc\u30ea\u30e5\u30fc\u30e0\u30b0\u30eb\u30fc\u30d7\u306e\u30a2\u30af\u30c6\u30a3\u30d6\u5316\u3068\u975e\u30a2\u30af\u30c6\u30a3\u30d6\u5316<\/pre>\n<p>[root@localhost ~]# vgchange -ay<br \/>\n  3 logical volume(s) in volume group &#8220;almalinux&#8221; now active<br \/>\n  3 logical volume(s) in volume group &#8220;cl&#8221; now active<\/p>\n<pre>lsblk <br>Linux\u3067\u63a5\u7d9a\u3055\u308c\u3066\u3044\u308b\u30cf\u30fc\u30c9\u30c7\u30a3\u30b9\u30af\u306e\u4e00\u89a7\u3092\u53d6\u5f97<\/pre>\n<p>[root@localhost ~]# lsblk<br \/>\nNAME               MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT<br \/>\nsda                  8:0    0 447.1G  0 disk<br \/>\n\u251c\u2500sda1               8:1    0   572M  0 part \/boot\/efi<br \/>\n\u251c\u2500sda2               8:2    0   976M  0 part \/boot<br \/>\n\u2514\u2500sda3               8:3    0 445.6G  0 part<br \/>\n  \u251c\u2500cl-root        253:0    0 244.5G  0 lvm  \/<br \/>\n  \u251c\u2500cl-swap        253:1    0  14.9G  0 lvm  [SWAP]<br \/>\n  \u2514\u2500cl-home        253:2    0 186.3G  0 lvm  \/home<br \/>\nsdb                  8:16   0   3.7T  0 disk \/mnt\/usb-hdd<br \/>\nsdc                  8:32   0 894.3G  0 disk<br \/>\n\u251c\u2500sdc1               8:33   0   953M  0 part<br \/>\n\u2514\u2500sdc2               8:34   0 893.3G  0 part<br \/>\n  \u251c\u2500almalinux-swap 253:3    0  29.8G  0 lvm<br \/>\n  \u251c\u2500almalinux-home 253:4    0 372.5G  0 lvm  \/mnt\/usb-tmp<br \/>\n  \u2514\u2500almalinux-root 253:5    0   491G  0 lvm  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>lvscan \u30c7\u30d0\u30a4\u30b9\u3092\u30b9\u30ad\u30e3\u30f3\u3057\u3066\u8ad6\u7406<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[40,6],"tags":[],"class_list":["post-632","post","type-post","status-publish","format-standard","hentry","category-centos-8","category-linux"],"_links":{"self":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts\/632","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/comments?post=632"}],"version-history":[{"count":5,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts\/632\/revisions"}],"predecessor-version":[{"id":637,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts\/632\/revisions\/637"}],"wp:attachment":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/media?parent=632"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/categories?post=632"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/tags?post=632"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}