Partitioning with fdasd

If you have assigned previously unused DASDs to the Linux VM, the installation program is sometimes unable to determine the size and geometry of this DASD. In such cases you may see a message similar to: Unable to determine geometry of file/device. You should not use Parted unless you REALLY know what you're doing! This message is presented just for your information. Press Ignore to continue with the installation process. The DASD will then be initialized using the dasdfmt program.

Before you partition your DASD device(s), you may need to initialize the DASD device(s) first. You will only see these screens if the installation program does not find a valid partition table on your DASD device(s), or the DASD device has not been already initialized w/ the Compatible Disk Layout (CDL).

Figure 2-3. Selecting Your DASD Device to be Initalized

Once you choose to initialize the DASD device, you will see a progress bar while the initalization process takes place.

Figure 2-4. Intializing Your DASD Device

To use fdasd, you must first select a drive to partition using fdasd. Once you have chosen which drive to partition, you will be presented with the fdasd command screen. If you do not know what command to use, type [m] at the prompt for help.

Figure 2-5. Selecting a Drive for Partitioning

The following table provides the most common fdasd commands.

Table 2-1. fdasd commands

CommandWhat it Does
mdisplays help
pdisplays the current partition table
ncreates a new partition
ddeletes a partition
vchanges the volume serial
tsets the type of partition
rrecreates the VTOC
sshows the mapping between partition numbers in the device node and the z/OS data set name
qquits fdasd
wwrites the partition table to disk

You will need to be aware of a few issues regarding partitioning with fdasd. First, Linux fdasd creates partitions of type linux by default. The partition type for any given partition may be specified by using the t command in fdasd. The three (3) partition types available are:

Table 2-2. Available Partition Types

Type IDType Name (Description)
1Linux Native
2Linux Swap
3Linux RAID

RAID partitions and swap partitions need to be marked as such using fdasd at this stage of installation.

Red Hat Linux for S/390 supports the Compatible Disk Layout (CDL) for DASDs. CDL supports up to three (3) partitions (and is z/OS compatible). We suggest taking a note of which partitions (e.g. /dev/dasda2) are intended for which mount points (e.g. /usr) as you create partitions in fdasd.

When you are finished making partitions, type [w] to save your changes and quit. You will be taken back to the original fdasd screen where you can choose to partition another drive or continue with your installation.

Figure 2-6. Partitioning with fdasd

NoteNote
 

None of the changes you make take effect until you save them and exit fdasd using the w command. You can quit fdasd at any time without saving changes using the q command.

After you have partitioned your drive(s), click Next. You will need to use Disk Druid to assign mount points to the partitions you just created with fdasd.

You will not be able to add new partitions using Disk Druid, but you will be able to assign mount points for the partitions you have already created. For each partition created with fdasd, click on the Edit button, choose the appropriate mount point for that partition from the pulldown menu, and click on OK.