Hi,
I currently have the following zpool
The disks are partitioned as follows:
I have another 2 matching disks which I want to add as another mirror to give me another ~6TB of space.
I want to confirm that the following steps are correct to partition and set up the new drives:
I currently have the following zpool
Code:
# zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
zroot 10.9T 10.3T 646G - - 43% 94% 82.65x ONLINE -
# zpool status
pool: zroot
state: ONLINE
config:
NAME STATE READ WRITE CKSUM
zroot ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
da0p3 ONLINE 0 0 0
da1p3 ONLINE 0 0 0
mirror-1 ONLINE 0 0 0
da2p3 ONLINE 0 0 0
da3p3 ONLINE 0 0 0
cache
nvd0 ONLINE 0 0 0
The disks are partitioned as follows:
Code:
# gpart show
=> 40 11721045088 da0 GPT (5.5T)
40 532480 1 efi (260M)
532520 1024 2 freebsd-boot (512K)
533544 984 - free - (492K)
534528 11720509440 3 freebsd-zfs (5.5T)
11721043968 1160 - free - (580K)
=> 40 11721045088 da1 GPT (5.5T)
40 532480 1 efi (260M)
532520 1024 2 freebsd-boot (512K)
533544 984 - free - (492K)
534528 11720509440 3 freebsd-zfs (5.5T)
11721043968 1160 - free - (580K)
=> 40 11721045088 da2 GPT (5.5T)
40 532480 1 efi (260M)
532520 1024 2 freebsd-boot (512K)
533544 984 - free - (492K)
534528 11720509440 3 freebsd-zfs (5.5T)
11721043968 1160 - free - (580K)
=> 40 11721045088 da3 GPT (5.5T)
40 532480 1 efi (260M)
532520 1024 2 freebsd-boot (512K)
533544 984 - free - (492K)
534528 11720509440 3 freebsd-zfs (5.5T)
11721043968 1160 - free - (580K)
I have another 2 matching disks which I want to add as another mirror to give me another ~6TB of space.
I want to confirm that the following steps are correct to partition and set up the new drives:
Code:
gpart add -a 4k -s 532480 -t efi /dev/da4
gpart add -a 4k -s 532480 -t efi /dev/da5
gpart add -a 4k -s 1024 -t freebsd-boot /dev/da4
gpart add -a 4k -s 1024 -t freebsd-boot /dev/da5
gpart add -a 4k -t freebsd-zfs /dev/da4
gpart add -a 4k -t freebsd-zfs /dev/da5
newfs_msdos -F 32 -c 1 /dev/da4p1
newfs_msdos -F 32 -c 1 /dev/da5p1
mount -t msdosfs /dev/da0p1 /mnt/temp
mkdir -p /mnt/temp/EFI/BOOT
cp /boot/loader.efi /mnt/temp/EFI/BOOT/BOOTx64.efi
umount /mnt/temp
mount -t msdosfs /dev/da5p1 /mnt/temp
mkdir -p /mnt/temp/EFI/BOOT
cp /boot/loader.efi /mnt/temp/EFI/BOOT/BOOTx64.efi
umount /mnt/temp
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 2 /dev/da4
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 2 /dev/da5
zpool add zroot mirror /dev/da4p3 /dev/da5p3
Code:
# freebsd-version
13.4-RELEASE-p3
I'll be upgrading after this...