...
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 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.
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:
|
3 | Create logical volume. | Example to create a logical volume named myname of size-MB megabytes:
|
4 | Create filesystem on logical volume. | Example to create a JFS (vxfs) filesystem on logical volume myname:
|
5 | 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
...
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:
...