Chapter 9. Configuring RHEL 6 for cloning 157
9.2 Defining a new user ID for a virtual server
In this section, you define a new user ID, LINUX01, in z/VM and clone the golden image to it.
To do so, perform the following steps:
1. Logon to MAINT and edit the USER DIRECT file to add more Linux IDs:
==> x user direct c
2. Go to the bottom of the file and add the following five lines. In this example, the user ID is
LINUX01 with a password of LNX4VM. It defaults to 256 MB of memory, but can be set up
to 1 GB. It has only G (General user) privileges. It has two 3338 cylinder (about 2.2 GB
each) minidisks. In this example, they are located at the 63A9 device address, which was
formatted and given a label of UM63A9:
USER LINUX01 LNX4VM 256M 1G G
INCLUDE LNXDFLT
OPTION APPLMON
MDISK 100 3390 3339 3338 UM63A9 MR LNX4VM LNX4VM LNX4VM
MDISK 101 3390 6677 3338 UM63A9 MR LNX4VM LNX4VM LNX4VM
3. You might need to add the new volumes to the $ALLOC$ user ID so cylinder 0 will not
show up in the disk map as a gap.
4. Again, check for gaps and overlaps. You can use the ALL subcommand with the logical
OR operator “|” to check for both strings. You should see only one 501 cylinder gap.
==> diskmap user
==> x user diskmap
====> all /gap/|/overlap/
-------------------- 4 line(s) not displayed --------------------
0 500 501 GAP
-------------------- 368 line(s) not displayed --------------------
====> quit
5. Bring the changes online using the DIRECTXA command:
==> directxa user
z/VM USER DIRECTORY CREATION PROGRAM - VERSION 5 RELEASE 3.0
EOJ DIRECTORY UPDATED AND ON LINE
The new Linux user ID has now been defined.
9.2.1 Adding LINUX01 to AUTOLOG1’s PROFILE EXEC
The new Linux ID you defined needs access to the VSWITCH. A SET VSWITCH command
with the GRANT parameter can be added to AUTOLOG1 PROFILE EXEC to accomplish this
task. Also, an XAUTOLOG statement can be added if the user ID is automatically logged on
at z/VM IPL time.
Link and access the AUTOLOG1 191 disk in read/write mode and edit the PROFILE EXEC file.
Add LINUX01 to the sections that grant access to the VSWITCH and that use XAUTOLOG on
the Linux user IDs:
==> link autolog1 191 1191 mr
==> acc 1191 f
==> x profile exec f // add two lines
/***************************/
/* Autolog1 Profile Exec */
/***************************/
Commenti su questo manuale