dear friends, i m preparing for the RHCE Exams, kindly guide me with following queries. i m using RHES 4
1) i need to reduce the lvm size (lvmreduce -- wich reduces the size of the lv but mount point shows old size until it is formated) 2) how can i configure dovecot to use hosts.deny (as it is not compiled with libwrape) i want to block pop3 access using tcp wrappers
thanks in advance
On 26 Sep 2005 16:08:32 -0000, dhaval thakar dpthakar@rediffmail.com wrote:
- i need to reduce the lvm size (lvmreduce -- wich reduces the size of the lv but mount point shows old size until it is formated)
In LVM, you first need to resize the filesystem and then change the size of the volume, while reducing. Say for example if you're using ext3, use resize2fs to change the filesystem size and then change the logical volume size if you're reducing it. While expanding, first change the logical volume size and then resize the filesystem. You don't need to format.
A suggestion: Always keep your initial size of the logical volume as small as possible. Reason being, it is very easy to expand a filesystem than to reduce it. The whole point of using LVM is to not have to lose the data when moving the partitions around. If you're formatting a partition after resizing the volume, it's pointless to use LVM!
I think you better read the LVM HOWTO on TLDP. It's small but quite adequate to get you enough knowledge on using LVM properly.
-- |----------------------------------------------------------------------- | Mrugesh Karnik | Registered Linux User #375243 |-----------------------------------------------------------------------