Chapter 3. OS/400 operations 99
You could also use the Linux name:
ixsdev -unlock /dev/scd0
The status of OPT01 shows as UNLOCKED.
3. On an OS/400 command line, follow these steps:
a. Use the following CL command to check that the optical drive is still varied on:
WRKCFGSTS *DEV *OPT
b. On the Work with Configuration Status display, find the optical device you previously
unlocked. Its status should be VARIED ON. If not, type 1 next to the device and press
Enter.
You can now use the optical drive from OS/400.
3.8.3 Restricting iSeries tape and optical drives
You can prevent a Linux server from using a particular tape or optical device by specifying the
tape or optical device as a restricted resource in the server’s NWSD. Tape and optical drives
that are not to be made available to integrated Linux servers can only be specified after
installation has been completed.
Restricting iSeries tape and optical drives from iSeries Navigator
At the time of writing, this function was not supported using iSeries Navigator.
Restricting iSeries tape and optical drives using CL commands
To restrict devices, follow these steps:
1. Shut down the integrated Linux server. Refer to 3.6.2, “Shutting down Linux servers using
CL commands” on page 73.
2. Type WRKNWSD on the OS/400 command line. Press Enter. The Work with Network Server
Descriptions display appears. Type 2 in the Opt column next to the NWSD that you want
to change. Press Enter. The Change Network Server Desc display appears.
3. Alternatively, you can type CHGNWSD on the command line. Press Enter. The Change
Network Server Desc display appears. Enter the name of the NWSD. Press Enter.
4. Scroll down to the Restricted device resources parameter (RSTDEVRSC) and list the
devices that are not to be made available, as shown in Figure 3-48 on page 100. To
specify more than two resources, type a + in the + for more values field and press Enter.
After you have entered your resources press Enter. Here is an example:
CHGNWSD NWSD(nwsd-name) RSTDDEVRSC(OPT01 TAP02)

Get Implementing Linux on Integrated xSeries Solutions for iSeries now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.