System information

Sharing and maintaining SLES 10 SP2 Linux under z/VM 59
5. Run the LINKED EXEC again to see the change:
==> linked
S10ROGLD LINKS: TEST
S10GOLD LINKS: GOLD 1
LNX227 LNX242
S10GOLD2 LINKS: [[GOLD 2]]
The two read-only Linux systems are still linked to S10GOLD, but note that the double
brackets are now around GOLD 2. This shows that S10GOLD2 contains the latest golden
image.
Now the golden image has been updated and its read-only contents copied to S10GOLD2. The
current system still exists and is running on S10GOLD.
Updating the directory of one read-only Linux
The LNX242 user ID can now be migrated to the updated golden read-only image. This is done
by using the S10DFLT2 profile which links the read-only disks on S10GOLD2. Logon to MAINT and
modify the directory entry of LNX242:
USER LNX242 PASSWD 256M 1G G
INCLUDE S10DFLT2
OPTION APPLMON
MDISK 01B4 3390 6678 550 DM63CD MR PASSWD PASSWD PASSWD
MDISK 01B5 3390 7228 100 DM63CD MR PASSWD PASSWD PASSWD
MDISK 01B6 3390 7328 1019 DM63CD MR PASSWD PASSWD PASSWD
Bring the directory change online with the appropriate command.
Testing the updated golden image
Start or return to an SSH session with LNX242. Try the locate command:
# locate foo
-bash: locate: command not found
It does not work because the system is still pointing to the gold disks on S10GOLD. In order for
the new directory entry to be used, the system must be logged off and back on again. Shut
the system down:
# shutdown -h now
Broadcast message from root (pts/0) (Sat Jun 27 11:49:08 2009):
The system is going down for system halt NOW!
The user ID should be logged off automatically. Start a 3270 session and boot Linux. When
the system comes up, start an SSH session and try the locate command:
# locate foo | head -1
locate: /var/lib/locatedb: No such file or directory
The locate command was found, however, the locate database was not. This is expected
because the command is found under /usr/ which is read-only, but the locate database is
found under /var/ which is read-write. So LNX242 has been updated to point to the new
read-only disks, however, its read-write disks are unaffected.
The locate database is updated by means of the updatedb command and now the locate
command works.