Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command "zpool online -e" doesn't work #788

Closed
bitloggerig opened this issue Jun 16, 2012 · 3 comments
Closed

Command "zpool online -e" doesn't work #788

bitloggerig opened this issue Jun 16, 2012 · 3 comments
Milestone

Comments

@bitloggerig
Copy link

I'm trying to expand raidz zpool after replacing a drive with a bigger one:

# zpool status storage
  pool: storage
 state: ONLINE
 scan: scrub repaired 0 in 6h43m with 0 errors on Sat Jun  9 09:56:23 2012
config:

        NAME                                 STATE     READ WRITE CKSUM
        storage                              ONLINE       0     0     0
          -0                                 ONLINE       0     0     0
            ata-ST2000DL003-9VT166_5YD0WD7H  ONLINE       0     0     0
            ata-ST2000DL003-9VT166_5YD0WEGB  ONLINE       0     0     0
            ata-ST2000DL003-9VT166_5YD0WEVK  ONLINE       0     0     0

errors: No known data errors

# zpool online -e storage /dev/disk/by-id/ata-ST2000DL003-9VT166_5YD0WD7H
▒M▒: cannot relabel 'disk/by-id/ata-ST2000DL003-9VT166_5YD0WD7H-part1': unable to open device
@behlendorf
Copy link
Contributor

Thanks, this one looks pretty straight forward. ZFS is simply not creating the needed partition tables on the new device. It simply assumes the device already has one and attempts to expand it. See zpool_do_online->zpool_vdev_online()->zpool_relabel_disk(). If you were to manually create the devices partition table with something like parted you should be able to avoid this issue for now.

@dechamps
Copy link
Contributor

This is probably a duplicate of #808. Or rather, #808 is a duplicate of this one, sorry about that.

@behlendorf
Copy link
Contributor

Closing as a duplicate of #808 which has been fixed.

pcd1193182 pushed a commit to pcd1193182/zfs that referenced this issue Sep 26, 2023
Bumps [enum-map](https://github.com/xfix/enum-map) from 2.4.2 to 2.5.0.
- [Release notes](https://github.com/xfix/enum-map/releases)
- [Changelog](https://github.com/xfix/enum-map/blob/master/CHANGELOG.md)
- [Commits](KamilaBorowska/enum-map@v2.4.2...v2.5.0)

---
updated-dependencies:
- dependency-name: enum-map
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants