差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
linux:lvm [2012/07/14 01:47] – [LV(論理ボリューム) の縮小] ともやんlinux:lvm [2019/05/18 02:23] (現在) – 外部編集 非ログインユーザー
行 203: 行 203:
 resize2fs 1.41.12 (17-May-2010) resize2fs 1.41.12 (17-May-2010)
 Resizing the filesystem on /dev/mapper/vg_monster-lv_home to 949764608 (4k) blocks. Resizing the filesystem on /dev/mapper/vg_monster-lv_home to 949764608 (4k) blocks.
- +The filesystem on /dev/mapper/vg_monster-lv_home is now 949764608 blocks long. 
-# lvreduce -L -10G /dev/vg_monster/lv_root +# lvreduce -L3710018M /dev/mapper/vg_monster-lv_home 
-  WARNING: Reducing active and open logical volume to 205.00 GB+  Rounding up size to full physical extent 3.54 TiB 
 +  WARNING: Reducing active logical volume to 3.54 TiB
   THIS MAY DESTROY YOUR DATA (filesystem etc.)   THIS MAY DESTROY YOUR DATA (filesystem etc.)
-Do you really want to reduce lv_root? [y/n]: y +Do you really want to reduce lv_home? [y/n]: y 
-  Reducing logical volume lv_root to 205.00 GB +  Reducing logical volume lv_home to 3.54 TiB 
-  Logical volume lv_root successfully resized+  Logical volume lv_home successfully resized 
 +</code> 
 + 
 +===== 他で使用していたディスクのLVMを認識させる ===== 
 +<code> 
 +$ sudo lvscan 
 +  inactive          '/dev/vg_hoge/lv_swap' [4.00 GiB] inherit 
 +  inactive          '/dev/vg_hoge/lv_root' [144.53 GiB] inherit 
 +  ACTIVE            '/dev/vg_thecircle-fc/lv_swap' [3.94 GiB] inherit 
 +  ACTIVE            '/dev/vg_thecircle-fc/lv_home' [201.56 GiB] inherit 
 +  ACTIVE            '/dev/vg_thecircle-fc/lv_root' [50.00 GiB] inherit 
 +</code> 
 + 
 +<code> 
 +$ sudo vgchange -ay vg_hoge 
 +  2 logical volume(s) in volume group "vg_hoge" now active 
 +</code> 
 + 
 +<code> 
 +$ sudo vgchange -an vg_hoge 
 +  0 logical volume(s) in volume group "vg_hoge" now active 
 +</code> 
 + 
 +<code> 
 +$ sudo lvscan 
 +  inactive          '/dev/vg_hoge/lv_swap' [2.00 GiB] inherit 
 +  inactive          '/dev/vg_hoge/lv_root' [124.00 GiB] inherit 
 +  ACTIVE            '/dev/vg_thecircle-fc/lv_swap' [3.94 GiB] inherit 
 +  ACTIVE            '/dev/vg_thecircle-fc/lv_home' [201.56 GiB] inherit 
 +  ACTIVE            '/dev/vg_thecircle-fc/lv_root' [50.00 GiB] inherit
 </code> </code>
  • linux/lvm.1342198049.txt.gz
  • 最終更新: 2019/05/18 02:23
  • (外部編集)