반응형
### 현재 LV 확인
# lvs
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
lv_isbyeon vg_isbyeon -wi-a- 10.00g
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
lv_isbyeon vg_isbyeon -wi-a- 10.00g
### 8G로 감소
# lvreduce -L 8G /dev/vg_isbyeon/lv_isbyeon or # lvreduce -L-2G /dev/vg_isbyeon/lv_isbyeon
WARNING: Reducing active logical volume to 8.00 GiB
THIS MAY DESTROY YOUR DATA (filesystem etc.)
Do you really want to reduce lv_isbyeon? [y/n]: y
Reducing logical volume lv_isbyeon to 8.00 GiB
Logical volume lv_isbyeon successfully resized
WARNING: Reducing active logical volume to 8.00 GiB
THIS MAY DESTROY YOUR DATA (filesystem etc.)
Do you really want to reduce lv_isbyeon? [y/n]: y
Reducing logical volume lv_isbyeon to 8.00 GiB
Logical volume lv_isbyeon successfully resized
### 감소된 LV 확인
# lvs
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
lv_isbyeon vg_isbyeon -wi-a- 8.00g
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
lv_isbyeon vg_isbyeon -wi-a- 8.00g
### LV 삭제
# lvremove /dev/vg_isbyeon/lv_isbyeon
Do you really want to remove active logical volume lv_isbyeon? [y/n]: y
Logical volume "lv_isbyeon" successfully removed
Do you really want to remove active logical volume lv_isbyeon? [y/n]: y
Logical volume "lv_isbyeon" successfully removed
반응형
최근댓글