Friday, April 17, 2009

Access a Tape Drive Device From a non-global Zone

A couple days ago, I had a friend who wanted to know how to access a tape device from his Solaris 10 non-global zone.

Here is an example on how to add a device to an existing non-global zone. By the way, the commands below are ran from the global zone, and you will have to reboot the non-global zone.

# zoneadm list
mysysad-global

# zonecfg -z sysad
zonecfg:sysad> add device
zonecfg:sysad:device> set match=/dev/rmt/0n
zonecfg:sysad:device> end
zonecfg:sysad> verify
zonecfg:sysad> commit
zonecfg:sysad> exit

# zoneadm -z sysad reboot

After the reboot, you should be able to access the tape drive from the non-global zone.

1 comment:

Unknown said...

I know I'm giving a comment to an old post, but the post allowed me to do what I wanted, so I just wanted to say thanks.