I have an OpenSolaris server with a zpool backupz
comprised of four SCSI drives:
-bash-3.2# zpool status backupz
pool: backupz
state: ONLINE
scrub: none requested
config:
NAME STATE READ WRITE CKSUM
backupz ONLINE 0 0 0
raidz1 ONLINE 0 0 0
c7t0d0 ONLINE 0 0 0
c7t1d0 ONLINE 0 0 0
c7t2d0 ONLINE 0 0 0
c7t3d0 ONLINE 0 0 0
errors: No known data errors
I want to add a fifth drive... but zpool add backupz raidz c7t4d0
isn't working...
-bash-3.2# zpool add backupz raidz c7t4d0
invalid vdev specification: raidz requires at least 2 devices
Can I not have a raidz config with 5 devices? Do I have to add two devices at once? or am I doing something incorrect altogether here?
Answer
You can't expand an existing raidz vdev, you have to blow it away and create it again with the new drive(s). See the other answer for better details.
Side note: Someone actually worked out that it's technically possibly to add drives to a raidz, but the functionality hasn't been implemented. The same is true of removing a disk.
No comments:
Post a Comment