Is It Possible To Move Logical Volumes?
Dave Bacon
dbacon at mail.owls.lib.wi.us
Wed Aug 26 16:08:09 UTC 2009
Thank you for your prompt reply Chris. I fully understand and agree
with your /var suggestion. Would it be possible, or even wise, to just
move /var/spool/mail to /dev/sdb? This is the directory in /var I was
most concerned about.
Your detailed instructions are very much appreciated.
Dave Bacon - OWLS
_________________________________________
Dave G. Bacon
Computer Network Manager
Outagamie Waupaca Library System
225 N. Oneida St., Appleton, WI 54911
920/832-6193(voice), 920/832-6422(FAX)
dbacon at mail.owls.lib.wi.us
http://www.owlsweb.info
_________________________________________
Chris Adams wrote:
> Once upon a time, Dave Bacon <dbacon at mail.owls.lib.wi.us> said:
>
>> This new server will primarily be an eMail server. So I was thinking
>> about moving /var and /home to /dev/sdb which has more space. This will
>> also place most of the data on the RAID5 drives and keep it separate
>> from the OS RAID 1 drives.
>>
>
> I'd personally probably leave /var with the rest of the OS (if /var
> isn't there, the OS is pretty much screwed anyway). Also, /var/log gets
> a lot of writes, especially on a mail server, so RAID 5 could be a
> performance issue). That's all just IMHO though.
>
>
>> Could you please help answer my questions?
>>
>> 1. Is it possible to relocate /var and /home to /dev/sdb using the LVM?
>>
>
> If the filesystems are on LVM already, then yes, this is easy and fairly
> straight-forward. I've never used the GUI tools, but the CLI tool
> workflow would be something like:
>
> - fdisk /dev/sdb
> make a single partition that covers the disk (type 8e for "Linux LVM")
>
> - lvm
> 1. pvcreate /dev/sdb
> makes /dev/sdb an LVM physical volume
> 2. vgextend <VGName> /dev/sdb
> adds the new PV to your existing volume group
> 3. pvmove -n <LVName> /dev/sdb
> moves the specified logical volume to the specified PV
> this step takes a while
> 4. lvextend -L <newsize> <LVName> /dev/sdb
> increases the space allocated to the specified LV
> (repeat steps 3 and 4 for each additional LV)
>
> - resize2fs -p /dev/<VGName></LVName>
> increases the size of the filesystem to use all of the LV
> (repeat for each additional filesystem)
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/redhat-sysadmin-list/attachments/20090826/da6f540a/attachment.htm>
More information about the redhat-sysadmin-list
mailing list