[Leaplist] gparted and KVM quetjuns'
Whit Hansell
skipper44 at comcast.net
Sun Mar 28 09:28:11 EDT 2010
Hi Kevin,
Thanks for the reply. Maybe we're having a terminology problem here. I
have in the past taken 250M from /dev/sda9(/home) and moved it all the
way down to /dev/sda1 (/) because in the past, after I had set up the
system, I was doing dist-upgrades and there were security changes to the
kernel and the original setup did not give me enough room on /(root) to
set up the new/changed kernel. So had to make it bigger. I used
gparted 0.3.4.x at the time and it worked fine. I'm just trying to
remember just how I did it. Whether I took the needed space from sda9
and set it to unallocated between sda8 and sda9 and then hit "apply"
and then allocated the unallocated to sda8 and hit "apply". Or set up
instructions for gparted to "move" the space from 9 to 8 and then hit
"apply".
As I said, I have done it before and it worked. Just don't remember how.
As to LVM and your recommendation. Unfortunately, I don't have the
time to go thru all that. I do have my box set up to dual boot two
drives, one Debian and one XP. I was just thinking of having it all on
one drive and using it w/o rebooting.
I had looked at using wine but figured the new virtualization was/is the
way to go now so wanted to take a shot at it.
Anyway, thanks a bunch for your recommendation. Maybe at a later date
or on another drive, I'll try to set it up and learn it then. Again,
thanks.
Whit
Kevin Korb wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> First off what you want is LVM2 not gparted or any other partitioning
> system. It is not possible to simply take part of one partition and put
> it onto another partition however it is possible to do so with logical
> volumes (which are often all stored on a single real partition).
>
> With the setup you have I would keep / as /dev/sda1 but then make a
> /dev/sdb2 for the entire rest of the disk. On /dev/sdb2 you make your
> LVM2 setup with logical volumes for each of the listed filesystems as
> well as swap which you didn't mention.
>
> Unfortunately this pretty much means a backup and restore of your system
> since this conversion will require a reformat of everything other than
> /dev/sda1 but then so would rearranging the partition table as you asked.
>
> The procedure (after the backup of course) would be something like
> partition the disk for sda1 as is and sda2 as the rest of the disk
> pvcreate /dev/sdb2
> vgcreate vg /dev/sdb2
> lvcreate --name=usr --size=4G vg
> lvcreate --name=var --size=512M vg
> lvcreate --name=tmp --size=384M vg
> lvcreate --name=home --size=50G vg
> lvcreate --name=swap --size=1G vg (I am guessing at the size here)
>
> Then you format and mount /dev/vg/usr, /dev/vg/var, /dev/vg/tmp, etc....
> You can later increase the sizes as needed with lvextend and resize2fs.
>
> More information: http://sunoano.name/ws/public_xhtml/lvm.html
>
> Also, yell at your distro for not setting it up this way in the first place.
>
> On 03/27/10 21:32, Whit Hansell wrote: <snip>
>
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the Leaplist
mailing list