Rudolf Kutina
2009-Jun-11 18:00 UTC
[zfs-discuss] Help, I need a simple way how to update zpool label "devid and phys_path"
Hello ZDB Experts,
To be able move virtual disks with OpenSolaris between Virtualization platforms
in automated way
I need to be able update zpool label devid, phys_path without need to do actual
"import" on target
platform as I describe it in:
Bug 5785] Document procedure how to FIX boot of OpenSolaris manually for P2V or
V2V
http://defect.opensolaris.org/bz/show_bug.cgi?id=5785
So I need a Fast Fix in form of this functionality:
1. Get zpool devid and phys_path, its easy (I can even store this info
for later us in file)
zdb -e rpool -l | egrep "devid|phys_path"
devid=''id1,sd at
SATA_____SEAGATE_ST32500N____________9QE6B3FF/a''
phys_path=''/pci at 0,0/pci108e,534b at 5/disk at
0,0:a''
2. Update devid and phys_path on concrete zpool (even on imported one !?)
zpool_update_label rpool ''/pci at 0,0/pci108e,534b at 5/disk at
0,0:a'' \
''id1,sd at SATA_____SEAGATE_ST32500N____________9QE6B3FF/a''
Notes:
- In some case like USB disks phys_path can be empty.
- For simplicity simplicity zpool with one disk will be supported, if
mirror or so on will be detected , command will ail with no modifications
So what can provide me a magical "zpool_update_label" functionality ?
Nice
Rudolf (VirtualGuru)