Dell Compellent Confidential HP-UX Best Practices 11i v2 and 11i v1
Page|15
b. It is good to note at this juncture the difference between the two device files. The major
number 64 represents an LVM 1.x Volume Group (HP-UX 11i v2 or v1 Volume Groups), while the
major number of 128 represents an LVM 2.x Volume Group (HP-UX 11i v3 Volume Groups).
Also, with LVM 1.x, the first two minor numbers (as shown in RED above) represent the Volume
Group number; with LVM 2.x, we use the first three. As an example, we will create a Volume
Group called “vgdemo”. First, create a directory with the same name in /dev with the
following command.
Type: mkdir –p /dev/vgdemo
c. Next, create the device file you want to use to identify the Volume Group. As you see in RED
above, both 00 and 001 are in use. We will thus choose 0x02000 (LVM 1.x) as the next Volume
Group ID/number. To do this, issue the command.
Type: mknod /dev/vgdemo/group c 64 0x020000
Type: ls -la /dev/*/group
crw-r----- 1 root sys 64 0x000000 Aug 13 03:10 /dev/vg00/group
crw-rw-rw- 1 root sys 128 0x001000 Dec 2 13:38 /dev/vg01/group
crw-rw-rw- 1 root sys 64 0x020000 Dec 3 14:43 /dev/vgdemo/group
d. Once complete, you can now issue the vgcreate command (as outlined above) to create the
Volume Group.
Type: vgcreate –s 16 /dev/vgdemo /dev/dsk/c27t0d0
(where –s: use 16MB PE size)
Increased the number of physical extents per physical volume to 1919.
Volume group "/dev/vgdemo" has been successfully created.
Volume Group configuration for /dev/vgdemo has been saved in /etc/lvmconf/vgdemo.conf
Regardless of the method used above, issue the following command to validate the creation of the new
Volume Group.
Type: vgdisplay –v /dev/vgdemo
--- Volume groups ---
VG Name /dev/vgdemo
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 0
Open LV 0
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 1919
Kommentare zu diesen Handbüchern