Dear all,
thanks for this opensource software.
I have the following structure in my zfs pool setup
I would like to configure the existing (ada2) disk 777f4001-b125-11ea-9083-9cb6540be2a7 to a mirror. The disk has the following layout
I have thus prepared the new disk (ada3) as follows:
It now looks like so
I then try to add the new disk to the existing one, which returns an error as seen below.
In my understanding gptid/777f4001-b125-11ea-9083-9cb6540be2a7 is a top-level disk. Any hints on how to proceed are highly appreciated.
Best regards
Sebastian
P.s.:
Alternatively I would like to replace the disk gptid/f71774ae-e73a-11eb-8971-b47af13d7670 (ada0) in the existing mirror with the larger disk.
thanks for this opensource software.
I have the following structure in my zfs pool setup
root@freenas:~ # zpool status
pool: STORAGE
state: ONLINE
status: One or more devices are configured to use a non-native block size.
Expect reduced performance.
action: Replace affected devices with devices that support the
configured block size, or migrate data to a properly configured
pool.
scan: scrub repaired 0B in 15:04:09 with 0 errors on Sun May 8 15:04:13 2022
config:
NAME STATE READ WRITE CKSUM
STORAGE ONLINE 0 0 0
gptid/777f4001-b125-11ea-9083-9cb6540be2a7 ONLINE 0 0 0 block size: 512B configured, 4096B native
mirror-1 ONLINE 0 0 0
gptid/f71774ae-e73a-11eb-8971-b47af13d7670 ONLINE 0 0 0
gptid/f732fa8b-e73a-11eb-8971-b47af13d7670 ONLINE 0 0 0
errors: No known data errors
I would like to configure the existing (ada2) disk 777f4001-b125-11ea-9083-9cb6540be2a7 to a mirror. The disk has the following layout
root@freenas:~ # gpart list ada2
Geom name: ada2
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 15628053134
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: ada2p1
Mediasize: 2147483648 (2.0G)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r1w1e1
efimedia: HD(1,GPT,776d0fa2-b125-11ea-9083-9cb6540be2a7,0x80,0x400000)
rawuuid: 776d0fa2-b125-11ea-9083-9cb6540be2a7
rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
label: (null)
length: 2147483648
offset: 65536
type: freebsd-swap
index: 1
end: 4194431
start: 128
2. Name: ada2p2
Mediasize: 7999415652352 (7.3T)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r1w1e2
efimedia: HD(2,GPT,777f4001-b125-11ea-9083-9cb6540be2a7,0x400080,0x3a3412a08)
rawuuid: 777f4001-b125-11ea-9083-9cb6540be2a7
rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
label: (null)
length: 7999415652352
offset: 2147549184
type: freebsd-zfs
index: 2
end: 15628053127
start: 4194432
Consumers:
1. Name: ada2
Mediasize: 8001563222016 (7.3T)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r2w2e5
I have thus prepared the new disk (ada3) as follows:
gpart add -t freebsd-swap -s 2G ada3
gpart add -t freebsd-zfs ada3
It now looks like so
root@freenas:~ # gpart list ada3
Geom name: ada3
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 31251759063
first: 40
entries: 128
scheme: GPT
Providers:
1. Name: ada3p1
Mediasize: 2147483648 (2.0G)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
efimedia: HD(1,GPT,1b61fc5b-d74b-11ec-8b39-b47af13d7670,0x28,0x400000)
rawuuid: 1b61fc5b-d74b-11ec-8b39-b47af13d7670
rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
label: (null)
length: 2147483648
offset: 20480
type: freebsd-swap
index: 1
end: 4194343
start: 40
2. Name: ada3p2
Mediasize: 15998753136640 (15T)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
efimedia: HD(2,GPT,6fc5e237-d74c-11ec-8b39-b47af13d7670,0x400028,0x7467fffb0)
rawuuid: 6fc5e237-d74c-11ec-8b39-b47af13d7670
rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
label: (null)
length: 15998753136640
offset: 2147504128
type: freebsd-zfs
index: 2
end: 31251759063
start: 4194344
Consumers:
1. Name: ada3
Mediasize: 16000900661248 (15T)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
I then try to add the new disk to the existing one, which returns an error as seen below.
root@freenas:~ # zpool attach STORAGE gptid/777f4001-b125-11ea-9083-9cb6540be2a7 gptid/6fc5e237-d74c-11ec-8b39-b47af13d7670
cannot attach gptid/6fc5e237-d74c-11ec-8b39-b47af13d7670 to gptid/777f4001-b125-11ea-9083-9cb6540be2a7: can only attach to mirrors and top-level disks
In my understanding gptid/777f4001-b125-11ea-9083-9cb6540be2a7 is a top-level disk. Any hints on how to proceed are highly appreciated.
Best regards
Sebastian
P.s.:
Alternatively I would like to replace the disk gptid/f71774ae-e73a-11eb-8971-b47af13d7670 (ada0) in the existing mirror with the larger disk.