← Back to team overview

maas-devel team mailing list archive

Re: curtin custom partitions

 

Kyle,

See comments inline below:


On Fri, Aug 8, 2014 at 5:34 AM, Kyle O'Donnell <kyleo@xxxxxxx> wrote:

> looks like I have found a bug in the common script which creates the
> partition
>
> 1) it says the default is gpt but without any options specified it is
> executing pt_mbr)
>

In trunk, line 210 for common has the format set to "gpt" by default.  What
version of curtin do you have?


>
> 2) there are params passed to the command executed within pt_mbr,
> specifically the size of the partition, which does not work, see some debug
> output below:
>
> starting COMMON KYLE
> ending common KYLE
> I AM EXECUTING pt_mbr
> 1 disk is larger than max for mbr (2TB)
> target /dev/sda size 2997752954880 end  maxend  pt1size 107372134
> 1 sfdisking with: echo '2048,107374182,L,*' | sfdisk --no-reread --force
> --Linux --unit S /dev/sda
>
> i over changed the value of pt1size to the desired size, and the command
> which is executed confirms that the command is passed that value.  the
> problem is sfdisk seems to ignore this and still create the

partition of the max size based n the 2TB limit.
>

You should file a bug report for this.

>
>
>
>
>
> ----- Original Message -----
> From: "Newell Jensen" <newell.jensen@xxxxxxxxxxxxx>
> To: "Kyle O'Donnell" <kyleo@xxxxxxx>
> Cc: "maas-devel" <maas-devel@xxxxxxxxxxxxxxxxxxx>
> Sent: Thursday, August 7, 2014 8:48:04 PM
> Subject: Re: [Maas-devel] curtin custom partitions
>
> Kyle,
>
> Looks like me email updated me with your new email after I sent
> mine...weird.
>
> In any event, the default partition function that is called in that shell
> script is pt_gpt, not pt_mbr.  The reason there is a cap on pt_mbr is due
> to the size limitation that MBR has:
>
> "The organization of the partition table in the MBR limits the maximum
> addressable storage space of a disk to 2 TB
> <http://en.wikipedia.org/wiki/Tebibyte> (232 × 512 bytes)."
>
>
>
>
>
> On Thu, Aug 7, 2014 at 5:34 PM, Kyle O'Donnell <kyleo@xxxxxxx> wrote:
>
> > I *think* I found it:
> >
> > /usr/lib/curtin/helpers/common
> >
> > specifically the pt_mbr function:
> >
> >     local start="2048" pt1size="" maxsize="4294967296"
> >
> > Which corresponds to the partition it creates:
> > /dev/sda1   *        2048  4294967295  2147482624   83  Linux
> >
> >
> > ----- Original Message -----
> > From: "Kyle O'Donnell" <kyleo@xxxxxxx>
> > To: "Newell Jensen" <newell.jensen@xxxxxxxxxxxxx>
> > Cc: "maas-devel" <maas-devel@xxxxxxxxxxxxxxxxxxx>
> > Sent: Thursday, August 7, 2014 7:22:02 PM
> > Subject: Re: [Maas-devel] curtin custom partitions
> >
> >
> >
> > How does it determine its going to create a single 2TB root filesystem?
> > What code can i change to do this?
> > On Aug 7, 2014 7:17 PM, Newell Jensen <newell.jensen@xxxxxxxxxxxxx>
> wrote:
> >
> > Kyle,
> >
> > Currently there is no support for creating a custom partition table using
> > the fastpath installer. This would be a nice feature.
> >
> > Newell
> >
> >
> > On Thu, Aug 7, 2014 at 1:35 PM, Kyle O'Donnell < kyleo@xxxxxxx > wrote:
> >
> >
> > Hi,
> >
> > I am trying to figure out how to create a custom partition table using
> the
> > fastpath installer. Has anyone done this before?
> >
> > I have ~2.7TB of usable drive space, the default install creates one 2TB
> > partition of root and nothing else. I'd like to be able to configure lvm,
> > but I would settle for being able to set the root partition size.
> >
> > Thanks,
> > Kyle
> >
> > --
> > Mailing list: https://launchpad.net/~maas-devel
> > Post to : maas-devel@xxxxxxxxxxxxxxxxxxx
> > Unsubscribe : https://launchpad.net/~maas-devel
> > More help : https://help.launchpad.net/ListHelp
> >
> >
> > --
> > Mailing list: https://launchpad.net/~maas-devel
> > Post to     : maas-devel@xxxxxxxxxxxxxxxxxxx
> > Unsubscribe : https://launchpad.net/~maas-devel
> > More help   : https://help.launchpad.net/ListHelp
> >
>

Follow ups

References