Environment to an hdlm device -171 – HP XP P9500 Storage User Manual

Page 239

Advertising
background image

6

.

Create the logical volume.
In the following example, the command creates the logical volume

(lvol1: 100 MB) by using the vg01 volume group:

# lvcreate -L 100M -n lvol1 vg01

Logical volume "lvol1" created

7

.

Create a file system.
The following example shows how to use the mke2fs command to create

a file system on the lvol1 logical volume:

# mke2fs /dev/vg01/lvol1

Filesystem label=

OS type: Linux

Block size=1024 (log=0)

Fragment size=1024 (log=0)

25688 inodes, 102400 blocks

5120 blocks (5.00%) reserved for the super user

First data block=1

13 block groups

8192 blocks per group, 8192 fragments per group

1976 inodes per group

Superblock backups stored on blocks:

8193, 24577, 40961, 57345, 73729

Writing inode tables: done

Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 38 mounts or

180 days, whichever comes first. Use tune2fs -c or -i to

override.

8

.

Create the directory to which the logical volume is to be mounted.
The following example shows how to create the /mnt/lvol1 directory:

# mkdir /mnt/lvol1

9

.

Mount the logical volume.
The following example shows how to mount the logical volume to the /
mnt/lvol1 directory:

# mount /dev/vg01/lvol1 /mnt/lvol1

When Moving a Logical Volume Created on a SCSI Device in a Single-

Path Environment to an HDLM Device

This subsection explains the procedure for moving a logical volume created

on a SCSI device in a single-path environment to an HDLM device in a multi-

path environment. Use the following procedure to configure the environment

in

Figure 3-30 Device Configuration When a Logical Volume on a SCSI Device

Is Moved to an HDLM Device on page 3-172

.

Creating an HDLM Environment

3-171

Hitachi Dynamic Link Manager User Guide (for Linux(R))

Advertising
This manual is related to the following products: