With the help of several knowledgeable contributors and some googling of my own at the end, I recently resolved the by-product of a bsdinstall bug on my raidz array.
While resolving an issue where a disk member during the OS install created an out of place pool member freebsd-10-1-p6-with-zfs-on-root-with-raidz-one-disk-member-was-created-oddly
I discovered I didn't have the partitions 4k aligned with
I thought it made more sense to make this a separate post on how to convert an existing pool hot to 4k, assuming this is possible of course.
My initial guess here that maybe I can remove one pool member at a time, convert it and put it back until they are all done.
Would this work? Is this in any possible?
Any pointers would be helpful.
Upon completion, I would like to post a nice how to on the topic.
Here are some specific details:
BTW, yes I know the pool is resilvering now. I will wait till that completes before tackling this.
While resolving an issue where a disk member during the OS install created an out of place pool member freebsd-10-1-p6-with-zfs-on-root-with-raidz-one-disk-member-was-created-oddly
I discovered I didn't have the partitions 4k aligned with
gpart show as pointed out by gkontos.I thought it made more sense to make this a separate post on how to convert an existing pool hot to 4k, assuming this is possible of course.
My initial guess here that maybe I can remove one pool member at a time, convert it and put it back until they are all done.
Would this work? Is this in any possible?
Any pointers would be helpful.
Upon completion, I would like to post a nice how to on the topic.
Here are some specific details:
Code:
# zpool status
pool: Datastore
state: DEGRADED
status: One or more devices is currently being resilvered. The pool will
continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
scan: resilver in progress since Tue Apr 28 20:33:17 2015
63.7G scanned out of 625G at 350M/s, 0h27m to go
12.6G resilvered, 10.18% done
config:
NAME STATE READ WRITE CKSUM
Datastore DEGRADED 0 0 0
raidz1-0 DEGRADED 0 0 0
gpt/zfs0 ONLINE 0 0 0
replacing-1 OFFLINE 0 0 0
6091044272226804680 OFFLINE 0 0 0 was /dev/diskid/DISK-YFG89PPAp3
gpt/zfs1 ONLINE 0 0 0 (resilvering)
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
BTW, yes I know the pool is resilvering now. I will wait till that completes before tackling this.
Code:
# gpart show
=> 34 250069613 ada0 GPT (119G)
34 2014 - free - (1.0M)
2048 16777216 1 freebsd-zfs (8.0G)
16779264 233290376 2 freebsd-zfs (111G)
250069640 7 - free - (3.5K)
=> 34 3907029101 ada1 GPT (1.8T)
34 1024 1 freebsd-boot (512K)
1058 12582912 2 freebsd-swap (6.0G)
12583970 3894445165 3 freebsd-zfs (1.8T)
=> 34 3907029101 ada3 GPT (1.8T)
34 1024 1 freebsd-boot (512K)
1058 12582912 2 freebsd-swap (6.0G)
12583970 3894445165 3 freebsd-zfs (1.8T)
=> 34 3907029101 ada4 GPT (1.8T)
34 1024 1 freebsd-boot (512K)
1058 12582912 2 freebsd-swap (6.0G)
12583970 3894445165 3 freebsd-zfs (1.8T)
=> 34 3907029101 ada5 GPT (1.8T)
34 1024 1 freebsd-boot (512K)
1058 12582912 2 freebsd-swap (6.0G)
12583970 3894445165 3 freebsd-zfs (1.8T)
=> 34 234441581 ada6 GPT (112G)
34 2014 - free - (1.0M)
2048 16777216 1 freebsd-zfs (8.0G)
16779264 217662344 2 freebsd-zfs (104G)
234441608 7 - free - (3.5K)
=> 34 15633341 da0 GPT (7.5G)
34 1024 1 bios-boot (512K)
1058 6 - free - (3.0K)
1064 15632304 2 freebsd-zfs (7.5G)
15633368 7 - free - (3.5K)
=> 34 15633341 diskid/DISK-4C530013510724112284 GPT (7.5G)
34 1024 1 bios-boot (512K)
1058 6 - free - (3.0K)
1064 15632304 2 freebsd-zfs (7.5G)
15633368 7 - free - (3.5K)
=> 34 3907029097 da1 GPT (1.8T)
34 6 - free - (3.0K)
40 409600 1 efi (200M)
409640 3906357344 2 apple-hfs (1.8T)
3906766984 262147 - free - (128M)
=> 34 3907029097 diskid/DISK-000000000024 GPT (1.8T)
34 6 - free - (3.0K)
40 409600 1 efi (200M)
409640 3906357344 2 apple-hfs (1.8T)
3906766984 262147 - free - (128M)
=> 34 3907029101 diskid/DISK-YFG89PPA GPT (1.8T)
34 1024 1 freebsd-boot (512K)
1058 12582912 2 freebsd-swap (6.0G)
12583970 3894445165 3 freebsd-zfs (1.8T)