Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Mar 2013 01:30:50 -0500
From:      J David <j.david.lists@gmail.com>
To:        Cody Ritts <cr@caltel.com>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: Aligning MBR for ZFS boot help
Message-ID:  <CABXB=RRds2bU%2B3LhykkzV=tt4_PSgqPEZnLFeeptMRpy7Hz3zw@mail.gmail.com>
In-Reply-To: <CABXB=RRE3%2Bnq9RioVi4Er4kRP_=Tbonoh=rnh91Ew=3hzYapbw@mail.gmail.com>
References:  <513C1629.50501@caltel.com> <CABXB=RRE3%2Bnq9RioVi4Er4kRP_=Tbonoh=rnh91Ew=3hzYapbw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Just to check myself, I ran this real quick on a virstor:

# truncate -s 1G deleteme
# mdconfig -a -t vnode -f deleteme
md0
# gvirstor label -s 62522712k fakessd md0
Resizing virtual size to be a multiple of chunk size.
New virtual size: 61056 MB
Resizing virtual size to fit virstor structures.
New virtual size: 61184 MB (32 new chunks)
# gpart create -s gpt /dev/virstor/fakessd
virstor/fakessd created
# gpart add -t freebsd-boot -b 34 -s 128 /dev/virstor/fakessd
virstor/fakessdp1 added
# gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 /dev/virstor/fakessd
bootcode written to virstor/fakessd
# gpart add -b 2048 -s 51G -l zroot -t freebsd-zfs /dev/virstor/fakessd
virstor/fakessdp2 added
# gpart add -t freebsd-swap /dev/virstor/fakessd  # no -s = use all space
left
virstor/fakessdp3 added
# gpart show /dev/virstor/fakessd
=>       34  125304765  virstor/fakessd  GPT  (59G)
         34        128                1  freebsd-boot  (64k)
        162       1886                   - free -  (943k)
       2048  106954752                2  freebsd-zfs  (51G)
  106956800   18347999                3  freebsd-swap  (8.8G)
# zpool create zroot /dev/gpt/zroot
# zpool status
  pool: zroot
 state: ONLINE
  scan: none requested
config:

NAME         STATE     READ WRITE CKSUM
zroot        ONLINE       0     0     0
  gpt/zroot  ONLINE       0     0     0

errors: No known data errors


I won't have much luck booting a virstor to test this :) but it sure looks
pretty, so hopefully it will work for you.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABXB=RRds2bU%2B3LhykkzV=tt4_PSgqPEZnLFeeptMRpy7Hz3zw>