...
Adding disk space to the Charon-HPA emulated HP3000 or HP9000 system PAR emulated guest systems systems is a process consisting of several steps:
- Build disk container files in the Linux host file system.
- Link these disk container files with the corresponding HP3000 or HP9000 emulator configuration paths in the Charon configuration file.
- Enable the disk for use by the guest operating system.
- For HP3000Charon-PAR/PA3:
- Define virtual disk devices using SYSGEN on the virtual HP3000MPE/iX.
- Create the virtual volume using VOLUTIL on the virtual HP3000MPE/iX.
There is no direct correspondence between the number of virtual disks that are added to the emulated system and the number of Linux disks on which they reside. The storage on the host system just must provide enough capacity to store the disk containers used as virtual disks by the emulated system.
Please note: it is not recommended to place emulator storage devices (in particular vdisks) on NFS as this will have a significant impact on performance. However, if any of the storage (e.g., ISO files or vdisks) is on an NFS share, NFS locking must be enabled and all intermediate firewalls between client and server must allow the port used by the lockd and statd. Failure to do so will cause the emulator to hang at startup.
The sections below describe the process in more detail.
...
The disk container files are created using the dd
command. This command takes an input file name, an output file name, a block size, and a count as parameters. When instructed to read from /dev/zero , the command creates the output file and fills it with (block-size * count) zero bytes. Each file may be built as large as needed.
The Please note: The maximum disk size supported by MPE/iX is 512GB. The maximum size for HP-UX is 2TB.
Use the following steps to create a new disk container file:
Step | Command | |
---|---|---|
1 | Change to the directory where you store your virtual disks. | Example:
|
2 | Create an empty disk container. Note that the actual size of the disk will depend on the requirements of your emulated system. | Example virtual disk creation (size 20GB):
|
...
The new virtual disk must be added to the configuration file of the Charon-HPA PAR instance. This requires two commands:
Step | Configuration file entry | |
---|---|---|
1 | Load the SCSI device. | load DKXnnn |
2 | Link device with disk container file. |
|
...
After booting the emulated system with the new disk added to the configuration file, check if HP-UX did recognize it:
Command | Example |
---|---|
To list all known disks on the system, enter the following command:
| The disk with device path 0/0/1/0.2.0 (DKA200) is the new disk: |
HP-UX Device Nodes
During HP-UX boot-up, /sbin/insf is executed to create the character and block device special /dev files that allow communication with the disk. HP-UX uses the following device file naming system. For each disk device, the following special files are created:
- Block device file:
/dev/dsk/c<number-of-card>t<SCSI-target-ID>d<device-LUN>
- Character device file:
/dev/rdsk/c<number-of-card>t<SCSI-target-ID>d<device-LUN>
Where card is the (SCSI) controller number, target is the SCSI ID number, and device is the logical unit number, or LUN. The LUN is 0 for the majority of devices. An example for a disk at controller 0, target 2, LUN 0, is /dev/dsk/c0t2d0.
...
Creating and Mounting a Filesystem on the new Disk
On HP-UX you can use a disk standalone or disks are typically used as part of a volume group (LVM). You can create a traditional HFS filesysstem on a disk, or you can create a JFS filesystemLVM volume groups. Alternatively, a disk can be formatted using the traditional HFS filesystem. LVM logical volumes can be used with HFS or JFS filesystems. JFS is HP's version of the Veritas journaling filesystem. Below, two samples show the two different approaches.
Please refer to your system's documentation and the man-pages for detailed information about the commands used in the examples.
HFS filesystem on standalone disk
The following example, which shows how to create a filesystem and mount the disk, will use HFS on a standalone disk:
Step | Command | |
---|---|---|
1 | Create a filesystem on the new disk. Please note: LVM is now the preferred method to use disks on HP-UX. This example uses a traditional filesystem for simplicity. | Example to create a hfs filesystem on DKA200:
|
2 | Mount the disk to a mount point (create mount point first if it does not exist yet). | Example to mount DKA200 on /mnt:
|
Please refer to your system's documentation and the man-pages for detailed information about the above commands.
LVM volume group with JFS file system
Step | Command | |
---|---|---|
1 | Create a physical (non-bootable) volume. | # pvcreate -f /dev/rdsk/c0t0d0 |
2 | Create the volume group file structure. | Example to create structure for volume group 1:
0xNN0000 is the minor device number. |
3 | Create volume group. | Example to create volume group 1 with physical volume created above:
|
4 | Create logical volume. | Example to create a logical volume named myname of size-MB megabytes:
|
5 | Create filesystem on logical volume. | Example to create a JFS (vxfs) filesystem on logical volume myname:
|
6 | Mount filesystem to a mount point (create mount point first if it does not exist yet). | Example to mount the new filesystem on /mnt:
|
Div | ||
---|---|---|
| ||
Enable a Disk for Use by MPE/iX
...
Adding the Device via Sysgen
After booting the virtual HP3000MPE/iX guest system in the emulator, add the device using SYSGEN; specify ID=ST19171N and the path that you specified in the configuration file load command in the previous step. For example:
PATH=0/0/1/0.1.0
for LDEV 2 (specified by "load DKA100" in hp3kpa3.cfg )PATH=0/0/1/0.2.0
for LDEV 3 (specified by "load DKA200" in hp3kpa3.cfg ), etc.
This example shows one way to add LDEV 2:
Step | Commands | |
---|---|---|
1 | Log in to Manager.sys. | :HELLO MANAGER.SYS |
2 | Start sysgen. | :SYSGEN |
3 | Enter the following commands. | sysgen> io io> adev 2 id=ST19171N path=0/0/1/0.1.0 io> hold io> exit sysgen> keep keeping to group CONFIG.SYS Purge old configuration (yes/no)? yes sysgen> |
4 | Exit sysgen. | sysgen> exit |
5 | Activate the configuration. | :DOIONOW |
...
You do not need to indicate to SYSGEN how large a disk is. Use the ST19171N device ID whatever size your disk image is; MPE will automatically detect (and use) the size of the physical disk image file.
Div | ||
---|---|---|
| ||
Creating an MPE Volume
The final stage involves creating the MPE volume (and, if needed, volume set) and initializing the disk. When assigning new volume names, using one of these conventions is recommended:
...
The following example shows how to add a new LDev 2 named MEMBER2 to the System Volume Set:
Step | Command | |
---|---|---|
1 | Start volutil. | :VOLUTIL |
2 | At the voltutil prompt add the new disk as a volume to the system volume set. | volutil: newvol MPEXL_SYSTEM_VOLUME_SET:MEMBER2 2 100 100 |
3 | Exit volutil. | volutil: exit |
The following example shows how to create a new volume set with LDev 2 as the master:
Step | Command | |
---|---|---|
1 | Start volutil. | :VOLUTIL |
2 | At the voltutil prompt create a new volume set with the new disk as the master volume. | volutil: newset USERSET MASTER 2 100 100 |
3 | Exit volutil. | volutil: exit |
To display the status of the volumes, use the dstat command as shown below:
...
Include Page | ||||
---|---|---|---|---|
|