| Author |
Message |
inkleined
Joined: 27 Apr 2008
Posts: 6
|
| Posted: Sun Apr 27, 2008 3:01 pm Post subject: Partitioning? |
|
|
| I am running opensuse on my linode and I purposely created the disk image smaller so I could create a separate partition for some other stuff. Then I realized that that sets the size of the "disk", not a root partition (So I can't access the free space). So, how do I create a disk image with free space inside for additional partitions? |
|
| Back to top |
|
inkleined
Joined: 27 Apr 2008
Posts: 6
|
| Posted: Sun Apr 27, 2008 3:18 pm Post subject: |
|
|
| Update: I tried creating a larger disk image, and then resizing the root partition. Unfortunately, there doesn't seem to be one. So I tried creating a /home partition from /dev/xvda, but yast says it can't be mounted because it's already in use by the system. So, now I have two "drives" (/dev/xvda and /dev/xvdb) and one partition (xvda1) that can't be mounted but is already in use? I am a little confused. |
|
| Back to top |
|
inkleined
Joined: 27 Apr 2008
Posts: 6
|
| Posted: Sun Apr 27, 2008 3:20 pm Post subject: |
|
|
| I am getting a more confused. How does partitioning, lvms, etc work on virtual machines? I am rather new at this... |
|
| Back to top |
|
SteveG
Joined: 30 Nov 2003
Posts: 220
|
| Posted: Sun Apr 27, 2008 10:47 pm Post subject: |
|
|
| After a little investigation, it looks like it's best to think of the "disk images" as partitions. But, one of the disk image file system types is "raw", which might let you work with it using fdisk/cfdisk/sfdisk inside the linode. But I didn't try that... |
|
| Back to top |
|
bdonlan
Joined: 22 Jan 2008
Posts: 70
|
| Posted: Mon Apr 28, 2008 6:15 pm Post subject: |
|
|
| It's probably easiest to just treat each disk image in the linode panel as a partition. If you want to use lvm from within your linode, you'll need either an initrd or a small root filesystem image to set up lvm, and a raw image to act as the actual LVM PV. I wouldn't recommend trying to use traditional fdisk - LVM is more featureful. |
|
| Back to top |
|
Xan
Joined: 08 Feb 2004
Posts: 310
Location: Austin
|
| Posted: Mon Apr 28, 2008 11:36 pm Post subject: |
|
|
I can't think of a good reason (although there may be one) to worry about partitioning within a Linode. Manipulating disk images at the "machine" (Web interface) level gives you all the advantages of LVM, and you have all the simplicity of basic file systems within the Linode.
I'd create all my filesystems via the Web interface. Okay, there's one exception: I've created one raw so that I could use reiserfs for a maildb store (a lot of small files). But still didn't bother to LVM-ize it, because all that's done outside the system. |
|
| Back to top |
|
| |