差分
このページの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 / | Resizing the filesystem on / | ||
- | + | The filesystem on / | |
- | # lvreduce -L -10G /dev/vg_monster/lv_root | + | # lvreduce -L3710018M |
- | WARNING: Reducing active | + | 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 | + | Do you really want to reduce |
- | Reducing logical volume | + | Reducing logical volume |
- | Logical volume | + | Logical volume |
+ | </ | ||
+ | |||
+ | ===== 他で使用していたディスクのLVMを認識させる ===== | ||
+ | < | ||
+ | $ sudo lvscan | ||
+ | inactive | ||
+ | inactive | ||
+ | ACTIVE | ||
+ | ACTIVE | ||
+ | ACTIVE | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | $ sudo vgchange -ay vg_hoge | ||
+ | 2 logical volume(s) in volume group " | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | $ sudo vgchange -an vg_hoge | ||
+ | 0 logical volume(s) in volume group " | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | $ sudo lvscan | ||
+ | inactive | ||
+ | inactive | ||
+ | ACTIVE | ||
+ | ACTIVE | ||
+ | ACTIVE | ||
</ | </ |