[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: [linux-lvm] How to move /usr from LVM back to non-LVM?



Hi Karl,
If I may,
As you've 4 HDD here what I would do :
Get 2 for system files :
2 part on each of them
1) small 200 MB
2) the remaining.
Set up MD raid on the 2 first partition, use as /boot
Set un md raid partition of the 2 other, us as LVM onto which you put
 lv 1 /
 lv2 /tmp
 lv3 /usr
 lv4 /var
LV5 swap

Get the 2 remaining disks and set only one partition on them,
MD mirror the 2 partiton and set up a LVM on the md.
create lv as needed for /home, database storage area, whatever is needed.

If ons disk dies on you, you can use the remaing for the whole function during
repair time.
When the disk has been replaced, you've only to re-sync the md 's it was
supporting and "everithing's fine".
As LVM is concerned, the software mirror is transparent and goes unnoticed.
If the whole server crash, you can get the user data disks onto another server
and import the LVM to make the data availlable again. This may be planned by
exporting the LVM data in advance (if you've similar servers (same tools, but
maybe different application) )
Hope this helps.
Selon Karl Wagner <kwagner zetex com>:

> At work, I'm stuck with the static partitions on the current servers, till I
> do a rebuild on new hardware at least ;)
>
> My own home server uses 4xHDD with the same partition layout.
> sdX1: MD RAID1, 1GB /boot
> sdX2: MD RAID10, 5GB /
> sdX3: MD RAID10, 20GB LVM for;
> 		/usr
> 		/var
> sdX5: 50GB LVM for;
> 		/tmp (striped)
> 		Some exported AoE and iSCSI volumes
> sdX6: rest of disk, MD RAID5, dm-crypt and LVM for data (including /home)
>
> I know it's convoluted, but it works. I wish I had done dm-crypt on top of
> the LV's now rather than LVM on dm-crypt. It is not too slow, but I don't
> need encryption for everything on there and I can't do anything about it now
> (Think save up to replce them all with 1TB drives, now only £100 on Ebuyer :D
> )
>
> -----Original Message-----
> From: linux-lvm-bounces redhat com [mailto:linux-lvm-bounces redhat com] On
> Behalf Of Charles Marcus
> Sent: 28 April 2008 19:36
> To: LVM general discussion and development
> Subject: Re: [linux-lvm] How to move /usr from LVM back to non-LVM?
>
> On 4/28/2008, Georges Giralt (georges giralt free fr) wrote:
> > The fisrt one,  small will be used for /boot
> > The second one for everything else using LVM.
>
> Actually, I should have gone ahead and mention how I usually do it...
>
> /boot (100MB)
> / (10GB - I know, but disks are cheap these days)
> swap (1GB)
> /tmp (1GB)
>
> Then LVM for:
>
> /home
> /var
>
> --
>
> Best regards,
>
> Charles
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm redhat com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
>
>  This has been checked by www.blackspider.com
>
>
> _________________________________________________________
>
> Zetex Semiconductors - Solutions for an analog world.
>
> http://www.zetex.com
> http://www.zetex.cn
>
> E-MAILS are susceptible to interference.  You should not assume that
> the contents originated from the sender or the Zetex Group or that they
> have been accurately reproduced from their original form.
> Zetex accepts no responsibility for information, errors or omissions in
> this e-mail nor for its use or misuse nor for any act committed or
> omitted in connection with this communication.
> If in doubt, please verify the authenticity with the sender.
> _________________________________________________________
>
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm redhat com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>


-- 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]