...
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. |
|
Adding a Virtual Disk to the Configuration File
...
- Block device file:
/dev/dsk/c<number of card>t<SCSI target ID>d<device-LUN>
- Charater 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 lunLUN. The lun LUN is 0 for the majority of devices. An example for a disk at controller 0, target 2, lun LUN 0, is /dev/dsk/c0t2d0.
A disk is usually divided into file systems, areas that can hold files, or raw data areas such as swap. File systems are created in disk partitions or logical volumes. To view the size of the drive to be configured use the command, diskinfo.
...
On HP-UX you can use a disk standalone or as part of a volume group (LVM). You can create a traditional hfs HFS filesysstem on a disk, or you can create a JFS filesystem. JFS is HP's version of the Veritas journaled journaling filesystem . The following example, which shows how to create a filesystem and mount the disk, will use hfs 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:
|
...
The command :VOLUTIL should be used to create and initialize new volumes, and also (if needed) new volume sets, as shown in the following example. You will need to be logged in as MANAGER.SYS .
The following exmple example shows how to add a new LDev 2 named MEMBER2 to the System Volume Set:
...
To display the status of the volumes, us use the dstat command as shown below:
...