Here is what I have:
Here is what I would like to accomplish:
You will notice above zfs1 is missing
This anomaly occurred following a very vanilla install of the OS. I expect it would likely happen again if I reinstalled. Additionally, I have substantial and quite complex work into the system as it is, which I why I don't want to attempt a reinstall.
Any help here would be appreciated.
- 5 sata III magnetic disk all same drive model and size
- ada1..5
- 1 pcie ssd drive
- ada0
- 1 SSD drive
- ada6
- Installed FreeBSD 10.1 on real hardware
- Selected guided root on zfs option
- Selected gpt
- Added 5 like sata disk to raidz
- Changed swap to 6GB per disk
- Created logzil mirror from 2 partitions, 1 on the ssd, and other on pcie ssd
- Created l2arc cache on remaining disk space from both ssd
- I have a functioning raidz with logzil and l2arc cache with an anomalous disk member of the raidz pool from the 5 magnetic drives
- Each of the five members except for one appeared in /dev/gtp/zfs<#>
- However one of them was set up as /dev/diskid/DISK-YFG89PPAp3
- Additional each of the 4 disk that are gpt have 3 partitions
- For example
- ada1 - the disk
- ada1p1
- ada1p2
- ada1p3
- ada1p1
- ada1 - the disk
- For example
- For unknown reasons the odd ball disk has ada2 has no partitions
- Besides making the labeling look out of place and setting off my OCD, the swap partition is missing causing an error when the OS attempts to mount the expected swap partition the installer added to /etc/fstab.
Code:
# zpool status -v
pool: Datastore
state: ONLINE
config:
[INDENT]NAME STATE READ WRITE CKSUM
Datastore ONLINE 0 0 0 [/INDENT]
raidz1-0 ONLINE 0 0 0
gpt/zfs0 ONLINE 0 0 0
diskid/DISK-YFG89PPAp3 ONLINE 0 0 0
gpt/zfs2 ONLINE 0 0 0
gpt/zfs3 ONLINE 0 0 0
gpt/zfs4 ONLINE 0 0 0
logs
mirror-1 ONLINE 0 0 0
gpt/log0 ONLINE 0 0 0
gpt/log1 ONLINE 0 0 0
cache
gpt/cache0 ONLINE 0 0 0
gpt/cache1 ONLINE 0 0 0
errors: No known data errors
Code:
ll /dev| grep ada | awk '{print $9}' | sort | uniq | grep ada
ada0
ada0p1
ada0p2
ada1
ada1p1
ada1p2
ada1p3
ada2 - This is the odd ball ???
ada3
ada3p1
ada3p2
ada3p3
ada4
ada4p1
ada4p2
ada4p3
ada5
ada5p1
ada5p2
ada5p3
ada6
ada6p1
ada6p2
- I would like to remove this disk and add it back so that it is configure as gpt with 4K and labeled as a /dev/gpt/zfs1 along with having the same partition layout as the other members of the zpool "Datastore"
Code:
# ll | grep zfs | awk '{print $9}'
zfs0
zfs2
zfs3
zfs4
You will notice above zfs1 is missing
This anomaly occurred following a very vanilla install of the OS. I expect it would likely happen again if I reinstalled. Additionally, I have substantial and quite complex work into the system as it is, which I why I don't want to attempt a reinstall.
Any help here would be appreciated.