Hi,
I'm a long time user of FreeBSD, and used zfs from the very beginning. I'm facing a slight problem : I've replaced a faulted disk (pool has been created by installer), but
(note my mistake, I didn't provide slice number) takes the whole disk :
Th problem is that this configuration, though functionning perfectly, garbages the GPT header of the disk, leaving me without (I presume) boot partition, which is my point.
gpart show shows me the two other disks, but not the first, and if I offline the disk, the GPT is corrupt :
I even tried to format at disk level
then recreated with gpart the GPT table and the three partitions, with no success :
My main concern is that if I have to replace the two other disks (which is intended to extend my pool to 3*1TB) this way, there will be no more boot code at all.
Apologies for this long post, and thanks for any help
Xavier
I'm a long time user of FreeBSD, and used zfs from the very beginning. I'm facing a slight problem : I've replaced a faulted disk (pool has been created by installer), but
Code:
zpool replace <faulted-disk> ada0
Code:
[root@numenor ~]# zpool status
pool: zroot
state: ONLINE
scan: resilvered 4.90M in 0h0m with 0 errors on Sat Nov 18 16:58:02 2017
config:
NAME STATE READ WRITE CKSUM
zroot ONLINE 0 0 0
raidz1-0 ONLINE 0 0 0
ada0 ONLINE 0 0 0
ada1p3 ONLINE 0 0 0
ada2p3 ONLINE 0 0 0
cache
ada3 ONLINE 0 0 0
errors: No known data errors
Th problem is that this configuration, though functionning perfectly, garbages the GPT header of the disk, leaving me without (I presume) boot partition, which is my point.
gpart show shows me the two other disks, but not the first, and if I offline the disk, the GPT is corrupt :
Code:
[root@numenor ~]# gpart show
=> 40 1465149088 ada1 GPT (699G)
40 1024 1 freebsd-boot (512K)
1064 984 - free - (492K)
2048 12582912 2 freebsd-swap (6.0G)
12584960 1452562432 3 freebsd-zfs (693G)
1465147392 1736 - free - (868K)
=> 40 1465149088 ada2 GPT (699G)
40 1024 1 freebsd-boot (512K)
1064 984 - free - (492K)
2048 12582912 2 freebsd-swap (6.0G)
12584960 1452562432 3 freebsd-zfs (693G)
1465147392 1736 - free - (868K)
[root@numenor ~]# zpool offline zroot ada0
[root@numenor ~]# gpart show
=> 40 1465149088 ada1 GPT (699G)
40 1024 1 freebsd-boot (512K)
1064 984 - free - (492K)
2048 12582912 2 freebsd-swap (6.0G)
12584960 1452562432 3 freebsd-zfs (693G)
1465147392 1736 - free - (868K)
=> 40 1465149088 ada2 GPT (699G)
40 1024 1 freebsd-boot (512K)
1064 984 - free - (492K)
2048 12582912 2 freebsd-swap (6.0G)
12584960 1452562432 3 freebsd-zfs (693G)
1465147392 1736 - free - (868K)
=> 40 1953525088 ada0 GPT (932G) [CORRUPT]
40 472 1 freebsd-boot (236K)
512 12582912 2 freebsd-swap (6.0G)
12583424 1940941704 3 freebsd-zfs (926G)
I even tried to format at disk level
Code:
dd if=/dev/zero of=/dev/ada0 bs=1m count=10
Code:
zpool replace -f zroot ada0 ada0p3
invalid vdev specification
/dev/ada0p3 is part of active pool 'zroot'
My main concern is that if I have to replace the two other disks (which is intended to extend my pool to 3*1TB) this way, there will be no more boot code at all.
Apologies for this long post, and thanks for any help
Xavier