bsdinstall, zfs booting, gpt partition order suitable for volume expansion

Adam McDougall mcdouga9 at egr.msu.edu
Wed Dec 18 16:31:54 UTC 2013


On Wed, Dec 18, 2013 at 03:48:37PM +0000, Teske, Devin wrote:

  
  On Dec 18, 2013, at 5:53 AM, Adam McDougall wrote:
  
  > On Mon, Dec 16, 2013 at 08:18:14PM +0000, Teske, Devin wrote:
  > 
  > 
[snip]
  >  Alrighty-then... time to share...
  > 
  >  Here's the commit that does what you want...
  > 
  > [snip]
  > I did my testing in virtualbox with 4 5g disk images.
  
  I'm skeptical that 5g is big enough. Without knowing much more
  about your setup (GPT v MBR; SWAP v No-SWAP; GELI v No-GELI),
  I'd just like to say that there are a couple combinations that would
  overflow that...
  
  E.g., GPT + GELI + SWAP by default would be better at 6GB per disk.
  E.g., MBR + SWAP would similarly work better at 6GB per disk.

I have not tried GELI or MBR in the new installer, but initially when I had
2gb virtual disks, the install could complete fine if I reduced the swap size.
I was just being stingy with virtual disk space since it was a test :)  Figured
2x4 = 8GB minus some room for swap ought to be enough.
  
  While there is code to make sure you don't use disks that are too small,
  I can't say whether it catches every edge-case.
  
  NB: The nature of the error doesn't look to be based on using disks that
  are too small; I just thought I would mention it because 5G looks too small
  to me for some layouts.
  
  
  >  Whether or not the
  > installer continues, it does seem to partition the disks as discussed.
  > 
  > When I hit F3 I see:
  > DEBUG: zfs_create_boot: Creating root pool...
  > DEBUG: zfs_create_boot: zpool create -o altroot=/mnt -m none -f "zroot" ada0p3.nop ada1p3.nopzpool create ada2p3.nop ""
  > DEBUG: zfs_create_boot: retval=1 <output below>
  > cannot open 'ada1p3.nopzpool': no such GEOM provider
  
  
  If you send me the entire log, I can likely pinpoint the issue. That data
  displayed on Alt-F3 is saved in /tmp/bsdinstall_log
  -- 
  Devin
  
I have posted /tmp/bsdinstall_log at: http://p.bsd-unix.net/ps9qmfqc2

The corresponding procedure:

Virtualbox, created VM with 4 2.0TB virtual hard disks
Install
Continue with default keymap 
Hostname: test
Distribution Select: OK    
Partitioning: ZFS
Pool Type/Disks: stripe, select ada0-3 and hit OK
Install
Last Chance! YES

Thanks!


More information about the freebsd-stable mailing list