Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: new color scheme; replace emoticons with text

...

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.

(info) 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
1Change to the directory where you store your virtual disks.

Example:

# cd /data/Stromasys/host1/Data/Disk/

2Create 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):

# dd if=/dev/zero of=mydiskname.dsk bs=1G count=20

...

The new virtual disk must be added to the configuration file of the Charon-PAR instance. This requires two commands:


StepConfiguration file entry
1Load the SCSI device.load DKXnnn
2Link device with disk container file.DKXnnn.image="/path/to/disk-container-file"

...

After booting the emulated system with the new disk added to the configuration file, check if HP-UX did recognize it:

CommandExample

To list all known disks on the system, enter the following command:

# ioscan -C disk

The disk with device path 0/0/1/0.2.0 (DKA200) is the new disk:

...

On HP-UX disks are typically used as part of LVM volume groups. Alternatively, a disk can be formatted using the traditional HFS filesysstem. 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.

(warning) Please Please refer to your system's documentation and the man-pages for detailed information about the commands used in the examples.

...

The following example, which shows how to create a filesystem and mount the disk, will use HFS on a standalone disk:


StepCommand
1Create 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:

# newfs -F hfs /dev/rdsk/c0t2d0

2Mount the disk to a mount point (create mount point first if it does not exist yet).

Example to mount DKA200 on /mnt:

# mount /dev/dsk/c0t2d0 /mnt

LVM volume group with JFS file system


StepCommand
1Create a physical (non-bootable) volume.# pvcreate -f /dev/rdsk/c0t0d0
2Create the volume group file structure.

Example to create structure for volume group 1:

# mkdir /dev/vg01

# mknod /dev/vg01/group c 64 0x010000

0xNN0000 is the minor device number.
To identify all minor device numbers already used, run the command
# ll /dev/*/group

3Create volume group.

Example to create volume group 1 with physical volume created above:

# vgcreate vg01 /dev/dsk/c0t0d0

4Create logical volume.

Example to create a logical volume named myname of size-MB megabytes:

# lvcreate -L size-MB -n myname vg01

5Create filesystem on logical volume.

Example to create a JFS (vxfs) filesystem on logical volume myname:

# newfs -F vxfs /dev/vg01/rmyname

6Mount filesystem to a mount point (create mount point first if it does not exist yet).

Example to mount the new filesystem on /mnt:

# mount -F vxfs /dev/vg01/myname /mnt

...

This example shows one way to add LDEV 2:


StepCommands
1Log in to Manager.sys.:HELLO MANAGER.SYS
2Start sysgen.:SYSGEN
3Enter 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>
4Exit sysgen.sysgen> exit
5Activate the configuration.:DOIONOW

...

The following example shows how to add a new LDev 2 named MEMBER2 to the System Volume Set:


StepCommand
1Start volutil.:VOLUTIL
2At 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
3Exit volutil.volutil: exit

The following example shows how to create a new volume set with LDev 2 as the master:


StepCommand
1Start volutil.:VOLUTIL
2At the voltutil prompt create a new volume set with the new disk as the master volume.volutil: newset USERSET MASTER 2 100 100
3Exit volutil.volutil: exit

...