Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: add lvm for hp9k

...

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.

(warning) 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:


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

(warning) 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


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

3Create logical volume.

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

# lvcreate -L size-MB -n myname vg01

4Create filesystem on logical volume.

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

# newfs -F vxfs /dev/vg01/rmyname

5Mount 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


Div
classpagebreak



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
classpagebreak



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:

...