Multiplay Labs

tech hits and tips from Multiplay

Archive for November 3rd, 2012

Updating zpool label info after physical device re-order

without comments

I was trying to use zdb to query details of the pool on one of our test machines but it was failing for the pool I knew was working, the OS was running off it, the error was

zdb tank
zdb: can't open 'tank': No such file or directory

Printing the config via zdb -C was working but the path and phys_path details where wrong as the device has been moved in the chassis.

After much digging I found the following command quickly and easily updates the pool label information including vdev path and physpath information which fixes zdb

zpool reguid <pool>

Written by Dilbert

November 3rd, 2012 at 12:04 am

Posted in FreeBSD,ZFS