Dynamically adding a device to a non-global zone

How can you add a new device to a non-global zone without having

to reboot the zone ? Obviously using zonecfg and then rebooting the

zone works but often rebooting the zone would be very user unfriendly.

In particular we occasionally need to add a new disk mirror in the global

zone and then let the non-global zone have access to it.

[365 byte] By [livercoma] at [2007-11-26 19:58:16]
# 1

So each zone has a /dev tree that's private in <zoneroot>/dev which gets lofs mounted to /dev in the zone. You can mknod a new device in here and it appears instantly in the zone. Use the same major and minor numbers that device has in the global zone. If it's a disk device, make sure to major both the block and character device.

Of course, you want to edit the zone config to make it permanent (though I suspect it may actually be permanent if you mknod the device...)

MichaelMyersa at 2007-7-9 22:53:49 > top of Java-index,Solaris Operating System,Solaris 10 Features...