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,s...@sata_____seagate_st32500n____________9qe6b3ff/a'
              phys_path='/p...@0,0/pci108e,5...@5/d...@0,0:a'

2. Update devid and phys_path on concrete zpool (even on imported one !?)

zpool_update_label rpool '/p...@0,0/pci108e,5...@5/d...@0,0:a' \
'id1,s...@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)




_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to