02.01.2016 Views

Linux

linux_admin_text-1.0.0_2

linux_admin_text-1.0.0_2

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4 <br />

# umount /mnt/LVMtest/<br />

/dev/Volume00/LogVol01 fsck <br />

-f <br />

# fsck -f /dev/Volume00/LogVol01<br />

fsck from util-linux-ng 2.17.2<br />

e2fsck 1.41.12 (17-May-2010)<br />

Pass 1: Checking inodes, blocks, and sizes<br />

Pass 2: Checking directory structure<br />

Pass 3: Checking directory connectivity<br />

Pass 4: Checking reference counts<br />

Pass 5: Checking group summary information<br />

/dev/mapper/Volume00-LogVol01: 11/131072 files (0.0% non-contiguous),<br />

16812/524288 blocks<br />

resize2fs 1GB <br />

# resize2fs /dev/Volume00/LogVol01 1G<br />

resize2fs 1.41.12 (17-May-2010)<br />

Resizing the filesystem on /dev/Volume00/LogVol01 to 262144 (4k) blocks.<br />

The filesystem on /dev/Volume00/LogVol01 is now 262144 blocks long.<br />

lvreduce /dev/Volume00/LogVol01 <br />

# lvreduce -L 1G /dev/Volume00/LogVol01<br />

WARNING: Reducing active logical volume to 1.00 GiB<br />

THIS MAY DESTROY YOUR DATA (filesystem etc.)<br />

Do you really want to reduce LogVol01? [y/n]: y y <br />

Size of logical volume Volume00/LogVol01 changed from 2.00 GiB (512 extent<br />

s) to 1.00 GiB (256 extents).<br />

Logical volume LogVol01 successfully resized<br />

/mnt/LVMtest <br />

# mount -t ext4 /dev/Volume00/LogVol01 /mnt/LVMtest/<br />

# df /mnt/LVMtest/<br />

Filesystem 1K-blocks Used Available Use% Mounted on<br />

/dev/mapper/Volume00-LogVol01<br />

999320 1284 945616 1% /mnt/LVMtest<br />

www.lpi.or.jp 131 (C) LPI-Japan

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!