Subject: | |
From: | |
Reply To: | |
Date: | Fri, 1 Sep 2006 14:01:01 +0300 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Based on the following information from Alex Finch I managed to reduce the size of the
LogVol00 to 70GB, leaving a free space total of 4.41 GB on the dev/hdc hard disk.
Since the swap file occupied space on /dev/hdf, I removed it via lvremove
/dev/VolGroup00/LogVol01.
There is a new question now. How can I create and activate a swap file on VolGroup00?
Alex Finch wrote:
>
> If you look in the LVM howto, you find this>>
>
> 11.10. Reducing a logical volume
>
> Logical volumes can be reduced in size as well as increased. However, it
> is very important to remember to reduce the size of the file system or
> whatever is residing in the volume before shrinking the volume itself,
> otherwise you risk losing data.
>
>
>
> If you prefer to do this manually you must know the new size of
> the volume in blocks and use the following commands:
>
> # umount /home
> # resize2fs /dev/myvg/homevol 524288
> # lvreduce -L-1G /dev/myvg/homevol
> # mount /home
>
>
> In order to do this you need to boot from a live cd,
>
> I guess you need
> resize2fs /dev/mapper/VolGroup00-LogVol00 80G
> and
> lvreduce -L80G /dev/mapper/VolGroup00-LogVol00
>
> not sure what your /dev/VolGroup00/LogVol01 is for though. You may be
> able to remove it (lvremove /dev/VolGroup00/LogVol01)
>
> if you get it right when you do vgdisplay -v it will show /dev/hdf1 has
> Free PE = Total PE = 894, so you know it is safe to remove it.
|
|
|