Difference between revisions of "Device names"

From OpenZFS on OS X
Jump to: navigation, search
(Created page with "Device Names Changing the device names on an existing pool can be done by simply exporting the pool and re-importing it with the -d option to specify which new names should b...")
 
Line 1: Line 1:
Device Names
 
 
 
Changing the device names on an existing pool can be done by simply exporting the pool and re-importing it with the -d option to specify which new names should be used.
 
Changing the device names on an existing pool can be done by simply exporting the pool and re-importing it with the -d option to specify which new names should be used.
  

Revision as of 23:13, 21 October 2015

Changing the device names on an existing pool can be done by simply exporting the pool and re-importing it with the -d option to specify which new names should be used.

To use the names in /var/run/disk/by-id,

$ sudo zpool export tank
$ sudo zpool import -d /var/run/disk/by-id tank

To use the names in /var/run/disk/by-serial,

$ sudo zpool export tank
$ sudo zpool import -d /var/run/disk/by-serial tank

To use the names in /var/run/disk/by-path,

$ sudo zpool export tank
$ sudo zpool import -d /var/run/disk/by-path tank

To use the less safe (because they vary) BSD disk names in /dev,

$ sudo zpool export tank
$ sudo zpool import -d /dev tank

Even if you are using invariant paths (by-id, by-serial, or by-path), you can reveal the "normal" BSD disk names at any time,

$ zpool status -L tank