From: Georges Giralt <georges.giralt@free.fr>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] How to move /usr from LVM back to non-LVM?
Date: Mon, 28 Apr 2008 06:40:31 +0200 [thread overview]
Message-ID: <4815553F.5030806@free.fr> (raw)
In-Reply-To: <4814E782.9080805@Media-Brokers.com>
Charles Marcus a �crit :
> 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...
>
Hi !
As file rights and protection are important on /usr,
Consider replacing #4 with :
(cd /usr && tar cf - . ) | (cd /usr2 && tar xpf -) as root
or if you prefer
still as root
dump 0uaf - /usr | (cd /usr2 && restore -rf -)
In this second way, you do not need to mount the original /usr (but in
this case you've to give the device file to dump instead of /usr)
But some people will question the reason you will move from LVM to plain
filesystem/partitioning....
--
Ce message est constitu� d'au moins 50 % d'�lectrons recycl�s.
S'il vous pla�t, aidez nous � conserver nos ressources,
recyclez vos �lectrons !
next prev parent reply other threads:[~2008-04-28 4:40 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4815553F.5030806@free.fr \
--to=georges.giralt@free.fr \
--cc=linux-lvm@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).