204 z/VM and Linux on IBM System z: The Virtualization Cookbook for Red Hat Enterprise Linux 6.0
13.1 Adding DASD
The process in this section describes how to add an additional DASD to a Linux guest. The
overall steps are:
“Adding minidisks to a virtual machine” on page 204
“Making new minidisks available to RHEL 6” on page 204
“Creating a logical volume and file system” on page 206
“Updating the file system table” on page 209
13.1.1 Adding minidisks to a virtual machine
Here are the high level steps that you perform to add two new 3390-3-sized minidisks to
LINUX02:
1. Determine the volume or volumes that will be added. In this example, a 3390-3 at real
device address 6339 is added. Its space is split in half.
2. Add minidisk statements to define minidisks. In this example, two minidisks at virtual
addresses 102 and 103 are defined at a size of 1669 cylinders to the LINUX02 user ID.
3. Create the USER DISKMAP file to verify the disk layout
4. Bring the changes online by using the DIRECTXA command.
5. Shut down the Linux system
6. Log off the user ID
7. Log back on to it and perform an IPL of Linux.
Here is the updated directory entry:
USER LINUX02 LNX4VM 256M 1G G
INCLUDE LNXDFLT
OPTION APPLMON
MDISK 100 3390 0001 3338 UM63AA MR LNX4VM LNX4VM LNX4VM
MDISK 101 3390 3339 3338 UM63AA MR LNX4VM LNX4VM LNX4VM
MDISK 102 3390 0001 1669 UM6339 MR LNX4VM LNX4VM LNX4VM
MDISK 103 3390 1670 1669 UM6339 MR LNX4VM LNX4VM LNX4VM
13.1.2 Making new minidisks available to RHEL 6
To make the new minidisks available, perform the following steps:
1. When your system comes back up, start an SSH session to it. Use the lsdasd command to
verify that the new minidisks are not seen yet:
# lsdasd
Bus-ID Status Name Device Type BlkSz Size Blocks
==============================================================================
0.0.0100 active dasda 94:0 ECKD 4096 2347MB 600840
0.0.0101 active dasdb 94:4 ECKD 4096 2347MB 600840
0.0.0300 active dasdc 94:8 FBA 512 256MB 524288
0.0.0301 active dasdd 94:12 FBA 512 512MB 1048576
2. Enable the disks with the chccwdev -e command:
# chccwdev -e 102 103
Setting device 0.0.0102 online
Done
Komentarze do niniejszej Instrukcji