linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] How to move /usr from LVM back to non-LVM?
@ 2008-04-27 20:52 Charles Marcus
  2008-04-28  4:40 ` Georges Giralt
  0 siblings, 1 reply; 13+ messages in thread
From: Charles Marcus @ 2008-04-27 20:52 UTC (permalink / raw)
  To: LVM general discussion and development

Hello,

Ok, resizing my /var partition was without incident, so thanks much to 
the replies I got for reassurance...

Now, I have another thing I'd like to do, but it is only incidentally 
LVM related...

When this system was first set up - not by me - they put /home, /usr and 
/var on LVM partitions.

I'm fine with /home and /var, but I'd like to put /usr back as part of 
the / partition...

Has anyone ever done something like this before?

I'm thinking something along the lines of:

1. Boot off of livecd

2. mount /

3. Mount /usr

4. cp /usr to /usr2 on /

5. umount /usr

6. mv /usr2 /usr

?

Thanks for any comments/suggestions/how-to pointers...

-- 

Best regards,

Charles

^ permalink raw reply	[flat|nested] 13+ messages in thread
* RE: [linux-lvm] How to move /usr from LVM back to non-LVM?
@ 2008-04-29  9:17 Karl Wagner
  2008-04-29  9:39 ` Georges Giralt
  0 siblings, 1 reply; 13+ messages in thread
From: Karl Wagner @ 2008-04-29  9:17 UTC (permalink / raw)
  To: LVM general discussion and development

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.
_________________________________________________________

 

^ permalink raw reply	[flat|nested] 13+ messages in thread
* RE: [linux-lvm] How to move /usr from LVM back to non-LVM?
@ 2008-04-29 14:11 Karl Wagner
  0 siblings, 0 replies; 13+ messages in thread
From: Karl Wagner @ 2008-04-29 14:11 UTC (permalink / raw)
  To: LVM general discussion and development

Cheers, but this defeats one point of my server... I have a LOT of data.

Currently my data totals nearly 1TB. Some of this I will be removing (as I reorganise my music/videos etc) but that wont be much. So I have 2 choices... buy more HDDs (with no money... not happenning) or use RAID5 across all 4. Of course I am not considering a non-RAID for it coz theres no WAY I am loosing 1TB of data, after spending weeks ripping all my CDs & DVDs, building custom media database, etc...

Karl

-----Original Message-----
From: linux-lvm-bounces@redhat.com [mailto:linux-lvm-bounces@redhat.com] On Behalf Of Georges Giralt
Sent: 29 April 2008 10:39
To: LVM general discussion and development
Subject: 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/
>


-- 

_______________________________________________
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/

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2008-04-29 14:12 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-27 20:52 [linux-lvm] How to move /usr from LVM back to non-LVM? Charles Marcus
2008-04-28  4:40 ` Georges Giralt
2008-04-28 16:25   ` Charles Marcus
2008-04-28 16:43     ` Stuart D. Gathman
2008-04-28 16:49       ` Charles Marcus
2008-04-28 17:09     ` Mark H. Wood
2008-04-28 18:02       ` Stuart D. Gathman
2008-04-28 17:15     ` Georges Giralt
2008-04-28 17:24       ` Bryn M. Reeves
2008-04-28 18:35       ` Charles Marcus
  -- strict thread matches above, loose matches on Subject: below --
2008-04-29  9:17 Karl Wagner
2008-04-29  9:39 ` Georges Giralt
2008-04-29 14:11 Karl Wagner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).