Solaris on Intel physical disk device


  • Fri 13 January 2017
  • misc

In SmartOS (and modern Solaris on Intel in general), the "whole physical disk" device is the "p0" suffix. I keep having to search for this whenever I go to rewrite a SmartOS boot device (usb thumb drive) without physically swapping the media, so I'm putting it here.

So, this works:

{% raw %} [root@f4-ce-46-bc-29-92 /zones/rs]# diskinfo TYPE DISK VID PID SIZE RMV SSD USB c0t0d0 SanDisk - 3.73 GiB no no UNKNOWN c1t0d0 WDC WD30EFRX-68EUZN0 2794.52 GiB no no UNKNOWN c1t1d0 WDC WD30EFRX-68EUZN0 2794.52 GiB no no UNKNOWN c1t2d0 WDC WD30EFRX-68EUZN0 2794.52 GiB no no UNKNOWN c1t3d0 WDC WD30EFRX-68EUZN0 2794.52 GiB no no [root@f4-ce-46-bc-29-92 /zones/rs]# time bunzip2 < smartos-20170105T024017Z-USB.img.bz2 | dd of=/dev/dsk/c0t0d0p0 bs=512k 0+252422 records in 0+252422 records out 2000000000 bytes transferred in 744.783529 secs (2685344 bytes/sec)

real       12m24.771s
user       1m9.163s
sys    0m9.393s
[root@f4-ce-46-bc-29-92 /zones/rs]#

{% endraw %}

and after that of course, "init 6" when the coast is clear and it won't surprise anyone to have dozens of VMs suddenly cry out in terror, and be suddenly silenced.