7446 zpool create should support efi system partition

Review Request #219 - Created Sept. 24, 2016 and submitted

Information
Toomas Soome
illumos-gate
7446
9e9ea61...
Reviewers
general

7446 zpool create should support efi system partition

root@test:~# zpool create -B tank c0t1d0s0
create boot partition can only be used with wholedisk: c0t1d0s0
root@test:~# zpool create -B -o bootsize= tank c0t1d0s0
bad boot partition size '': bad numeric value ''
root@test:~# zpool create -B -o bootsize=asd tank c0t1d0s0
bad boot partition size 'asd': bad numeric value 'asd'
root@test:~# zpool create -B -o bootsize=a1 tank c0t1d0s0
bad boot partition size 'a1': bad numeric value 'a1'
root@test:~# zpool create -B -o bootsize=1a tank c0t1d0s0
bad boot partition size '1a': invalid numeric suffix 'a'
root@test:~# zpool create -B -o bootsize=1m tank c0t1d0s0
create boot partition can only be used with wholedisk: c0t1d0s0
root@test:~# zpool create -B -o bootsize=1m tank c0t1d0
Warning: EFI System partition size 1M is not allowing to create FAT32 file
system, which may result in unbootable system.
root@test:~#

root@test:~# zpool get bootsize tank
NAME PROPERTY VALUE SOURCE
tank bootsize 1M local
root@test:~#

root@test:~# zpool set bootsize=2M tank
cannot set property for 'tank': property 'bootsize' can only be set during pool creation
root@test:~#

root@test:~# zpool destroy tank
root@test:~# zpool create tank c0t1d0
root@test:~# zpool get bootsize tank
NAME PROPERTY VALUE SOURCE
tank bootsize - default
root@test:~#

root@test:~# zpool destroy tank
root@test:~# zpool create -B tank c0t1d0
root@test:~# zpool get bootsize tank
NAME PROPERTY VALUE SOURCE
tank bootsize 256M local
root@test:~#

format> ver

Volume name = < >
ascii name = <lofi-test-1.0-2.00GB>
bytes/sector = 512
sectors = 4194303
accessible sectors = 4194270
Part Tag Flag First Sector Size Last Sector
0 system wm 256 256.00MB 524543
1 usr wm 524544 1.74GB 4177886
2 unassigned wm 0 0 0
3 unassigned wm 0 0 0
4 unassigned wm 0 0 0
5 unassigned wm 0 0 0
6 unassigned wm 0 0 0
8 reserved wm 4177887 8.00MB 4194270

format>

sample setup with mirror:
tsoome@uefi-oi:~$ zpool get bootsize
NAME PROPERTY VALUE SOURCE
rpool bootsize 256M local
tsoome@uefi-oi:~$ zpool list
NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
rpool 15,6G 5,93G 9,70G - 26% 37% 1.00x ONLINE -
tsoome@uefi-oi:~$ zpool status
pool: rpool
state: ONLINE
scan: resilvered 4,51G in 0h1m with 0 errors on Tue Nov 22 23:19:50 2016
config:

    NAME        STATE     READ WRITE CKSUM
    rpool       ONLINE       0     0     0
      mirror-0  ONLINE       0     0     0
        c3t0d0  ONLINE       0     0     0
        c3t1d0  ONLINE       0     0     0

errors: No known data errors
tsoome@uefi-oi:~$

and with raidz1:

root@beastie:~# zpool get bootsize rpool
NAME PROPERTY VALUE SOURCE
rpool bootsize 256M local
root@beastie:~# zpool list
NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
rpool 14,5T 60,6G 14,4T - 0% 0% 1.00x ONLINE -
root@beastie:~# zpool status
pool: rpool
state: ONLINE
scan: none requested
config:

    NAME        STATE     READ WRITE CKSUM
    rpool       ONLINE       0     0     0
      raidz1-0  ONLINE       0     0     0
        c3t0d0  ONLINE       0     0     0
        c3t1d0  ONLINE       0     0     0
        c3t3d0  ONLINE       0     0     0
        c3t4d0  ONLINE       0     0     0

errors: No known data errors
root@beastie:~#

Issues

  • 0
  • 5
  • 6
  • 11
Description From Last Updated
Matthew Ahrens
Toomas Soome
Toomas Soome
Toomas Soome
Toomas Soome
Yuri Pankov
Yuri Pankov
Toomas Soome
Toomas Soome
George Wilson
Andrew Stormont
Yuri Pankov
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...