陈奇网络工作室

HP-UX11.31磁盘镜像(RX2660)

建设工作站服务器

1、显示磁盘设备名称、硬件路径、vg00内的当前磁盘

root@rx2660 [/]ioscan -m dsf

永久dsflegacydsf ( s ) )。

================================================

/dev/rdisk/disk2/dev/rdsk/c0t0d 0

/dev/rdisk/disk3/dev/rdsk/c0t1d 0

/dev/rdisk/disk3_ P1/dev/rdsk/c0 t1 d0s 1

/dev/rdisk/disk3_ p2/dev/rdsk/c0 t1 d0s 2

/dev/rdisk/disk3_ P3/dev/rdsk/c0 t1 d0s 3

/dev/pt/pt4 /dev/rscsi/c2t0d0

/dev/rscsi/c4t0d0

/dev/rscsi/c8t0d0

/dev/rscsi/c6t0d0

/dev/rdisk/disk5/dev/rdsk/c1t0d 0

/dev/rdisk/disk 18/dev/rdsk/c3t0d 1

/dev/rdsk/c5t0d1

/dev/rdsk/c9t0d1

/dev/rdsk/c7t0d1

/dev/rdisk/disk 19/dev/rdsk/c3t0d 2

/dev/rdsk/c5t0d2

/dev/rdsk/c9t0d2

/dev/rdsk/c7t0d2

/dev/rdisk/disk 20/dev/rdsk/c3t0d 3

/dev/rdsk/c5t0d3

/dev/rdsk/c9t0d3

/dev/rdsk/c7t0d3

此命令是11.31操作系统中唯一的,在正常操作时看不到任何好处。 有多路径的时候好处就会显现出来。 例如,如果添加了HP EVA的存储器,则设备名称/dev/rdsk/c3t0d1将对应于/dev/rdsk/c5t0d1所在的磁盘。 在11.23下添加VR0D1时,在11.31下存在多路径映射,因此以/dev/rdisk/diskXX的形式显示,通过支持这两个设备,将会非常清晰。

root@rx2660 [/]ioscan -funC disk

等级

I H/W Path Driver S/W State H/W Type

描述

=========================================================================================

磁盘

000/1/1/0.0.0.0 sdisk

CLAIMED DEVICE HP

EG0600FBDBU

/dev/dsk/c0t0d0/dev/rdsk/c0t0d 0

磁盘

1 0/1/1/0.0.0.1.0 sdisk

CLAIMED DEVICE HP

EG0600FBDBU

/dev/dsk/c0t1d0/dev/dsk/c0t1 d0s2/dev/rdsk/c0t1d0/dev/rdsk/c0t1 d0s 2

/dev/dsk/c0t1 d0s1/dev/dsk/c0t1 d0s3/dev/rdsk/c0t1 d0s1/dev/rdsk/c0t1 d0s 3

磁盘

9 0/5/1/0.1.2.0.0.0.1 sdisk

claimed设备主页

HSV300

/dev/dsk/c3t0d1/dev/rdsk/c3t0d 1

磁盘

10 0/5/1/0.1.2.0.0.0.2 sdisk

CLAIMED DEVICE HP

HSV300

/dev/dsk/c3t0d2/dev/rdsk/c3t0d 2

磁盘

11 0/5/1/0.1.2.0.0.0.3 sdisk

CLAIMED DEVICE HP

HSV300

/dev/dsk/c3t0d3/dev/rdsk/c3t0d 3

磁盘

6 0/5/1/0.1.3.0.0.0.1 sdisk

claimed设备主页

HSV300

/dev/dsk/c9t0d1/dev/rdsk/c9t0d 1

磁盘

7 0/5/1/0.1.3.0.0.0.2 sdisk

claimed设备主页

HSV300

/dev/dsk/c9t0d2/dev/rdsk/c9t0d 2

磁盘

8 0/5/1/0.1.3.0.0.0.3 sdisk

claimed设备主页

HSV300

/dev/dsk/c9t0d3/dev/rdsk/c9t0d 3

磁盘

12 0/5/1/1.1.2.0.0.0.1 sdisk

claimed设备主页

HSV300

/dev/dsk/c5t0d1/dev/rdsk/c5t0d 1

磁盘

13 0/5/1/1.1.2.0.0.0.2 sdisk

CLAIMED DEVICE HP

HSV300

/dev/dsk/c5t0d2/dev/rdsk/c5t0d 2

磁盘

14 0/5/1/1.1.2.0.0.0.3 sdisk

CLAIMED DEVICE HP

HSV300

/dev/dsk/c5t0d3/dev/rdsk/c5t0d 3

磁盘

15 0/5/1/1.1.3.0.0.0.1 sdisk

CLAIMED DEVICE HP

HSV300

/dev/dsk/c7t0d1/dev/rdsk/c7t0d 1

磁盘

16 0/5/1/1.1.3.0.0.0.2 sdisk

CLAIMED DEVICE HP

HSV300

/dev/dsk/c7t0d2/dev/rdsk/c7t0d 2

磁盘

17 0/5/1/1.1.3.0.0.0.3 sdisk

CLAIMED DEVICE HP

HSV300

/dev/dsk/c7t0d3/dev/rdsk/c7t0d 3

磁盘

4 255/1/0.0.0 sdisk

claimed设备主题

DVD-ROM DW-224EV

/dev/dsk/c1t0d0/dev/rdsk/c1t0d 0

root @ rx 2660 [/] ioscan-kfnc磁盘

classih/wpath drivers/wstateh/wtype description

=========================================================================================

disk 264000/0x fa00/0x0esdiskclaimeddevicehpeg 0600 FB dbu

disk 364000/0x fa00/0x1esdiskclaimeddevicehpeg 0600 FB dbu

disk 564000/0x fa00/0x2esdiskclaimeddeviceteacdvd-rom dw-224 ev

disk 1864000/0x fa00/0x7esdiskclaimeddevicehphsv 300

disk 1964000/0x fa00/0x8esdiskclaimeddevicehphsv 300

disk 2064000/0x fa00/0x9esdiskclaimeddevicehphsv 300

root@rx2660 [/]vgdisplay -v vg00

—卷组—

VG Name /dev/vg00

VG write access读/写

VG状态可用

Max LV 255

Cur LV 8

Open LV 8

Max PV 16

Cur PV 1

Act PV 1

Max PE per PV 4474

VGDA 2

esize(Mbytes ) 128

Total PE 4464

Alloc PE 333

Free PE 4131

Total PVG 0

总空间PVS 0

Total Spare PVs in use 0

VG Version

1.0

VG Max Size 8948g

VG Max Extents 71584

-

逻辑卷—

LV

Name /dev/vg00/lvol1

LV

状态

可用/同步

LV

size(Mbytes ) 1792

目前le

14

分配PE

14

使用

PV 1

LV

Name /dev/vg00/lvol2

LV

状态

可用/同步

LV

Size(Mbytes ) 8192

目前le

64

分配PE

64

使用

PV 1

LV

Name /dev/vg00/lvol3

LV

状态

可用/同步

LV

size(mbytes ) 1024

目前le 8

分配PE 8

使用

PV 1

LV

Name /dev/vg00/lvol4

LV

状态

可用/同步

LV

size(Mbytes ) 128

目前le 1

分配PE 1

使用

PV 1

LV

Name /dev/vg00/lvol5

LV

状态

可用/同步

LV

size(Mbytes ) 13952

目前le

109

分配PE

109

使用

PV 1

LV

Name /dev/vg00/lvol6

LV

状态

可用/同步

LV

Size(Mbytes ) 512

目前le 4

分配的PE 4

使用

PV 1

LV

Name /dev/vg00/lvol7

LV

状态

可用/同步

LV

size(Mbytes ) 8320

目前le 65

分配PE

65

使用

PV 1

LV

Name /dev/vg00/lvol8

LV

状态

可用/同步

LV

size(Mbytes ) 8704

目前le

68

分配PE

68

使用

PV 1

-

物理体积

PV Name /dev/disk/disk3_p2

PV状态可用

Total PE 4464

Free PE 4131

自动开关on

主动轮询开启

root@rx2660 [/]lvlnboot -v

bootdefinitionsforvolumegroup/dev/vg00 :

physicalvolumesbelonginrootvolumegroup :

/dev/disk/disk3_p2 -- Boot Disk

boot:lvol1on:/dev/disk/disk3_ p2

root:lvol3on:/dev/disk/disk3_ p2

swap:lvo l2on:/dev/disk/disk3_ p2

dump:lvo l2on:/dev/disk/disk3_ p2,0

2、制作光盘的table文件( table文件的路径由自己指定) )。

root @ rx 2660 [/] VI/tmp/mirror/table

3 //创建三个分区

EFI 500M //第一个EFI,500MB大小,用于使用EFI

HPUX 100% //表示第二分区已拥有用于创建vg的所有剩余空间

HPSP 200M //第二个分区的名称和大小、用途不明

(注意:其中使用vi编辑table文件时出现错误: Idon\\& quot; tknowwhatkindofterminalyouareonallihaveis\& amp; quot; Linux\_ ) .请参见

3、将表文件的分区信息写入磁盘

root @ rx 2660 [/] idisk-wf/tmp/mirror/table/dev/rdisk/disk 18

idisk version: 1.44

* * * * * * * * * * * warning * * * * * * * * * * * * * * * * * * * * * * * * * warning

ifyoucontinueyoumaydestroyalldataonthisdisk。

doyouwishtocontinue(yes/no )? 是

EFI主标题:

Signature=EFI PART

Revision=0x10000

HeaderSize=0x5c

HeaderCRC32=0xc1bf4de2

MyLbaLo=0x1

MyLbaHi=0x0

AlternateLbaLo=0x18ffffff

AlternateLbaHi=0x0

FirstUsableLbaLo=0x40

FirstUsableLbaHi=0x0

LastUsableLbaLo=0x18ffffbf

LastUsableLbaHi=0x0

disk guid=e1a 7b 9e6- 86 a9-11 D1-8000-d 6217 b 60 e 588

PartitionEntryLbaLo=0x2

PartitionEntryLbaHi=0x0

NumberOfPartitionEntries=0xc

SizeOfPartitionEntry=0x80

partitionentryarraycrc 32=0x 6a0e1f 6

primarypartitiontable ( in 512 byte blocks ) :

partition1(EFI ) :

partitiontypeguid=c12a 7328-f81f-11 D2-ba4b-00 a0c 93 EC 93 b

uniquepartitionguid=e1a7bc 16-86 a9-11 D1-8000-d 6217 b 60 e 588

Starting Lba Lo=0x40

Starting Lba Hi=0x0

Ending Lba Lo=0xf9fff

Ending Lba Hi=0x0

partition2(HP-UX ) :

partitiontypeguid=75894 c1e-3 AE B-11d3- b7c1- 7b03a 000000

uniquepartitionguid=e1a7bc 20-86 a9-11 D1-8000-d 6217 b 60 e 588

Starting Lba Lo=0xfa000

Starting Lba Hi=0x0

Ending Lba Lo=0x18f37fff

Ending Lba Hi=0x0

partition3(hpsp ) :

partitiontypeguid=e2a1e 728-32 E3-11d6- a682-7b03a 0000000

uniquepartitionguid=e1a7bc 34-86 a9-11 D1-8000-d 6217 b 60 e 588

Starting Lba Lo=0x18f38000

Starting Lba Hi=0x0

Ending Lba Lo=0x18ffffbf

Ending Lba Hi=0x0

EFI备用标题:

Signature=EFI PART

Revision=0x10000

HeaderSize=0x5c

HeaderCRC32=0x289e4477

MyLbaLo=0x18ffffff

MyLbaHi=0x0

AlternateLbaLo=0x1

AlternateLbaHi=0x0

FirstUsableLbaLo=0x40

FirstUsableLbaHi=0x0

LastUsableLbaLo=0x18ffffbf

LastUsableLbaHi=0x0

disk guid=e1a 7b 9e6- 86 a9-11 D1-8000-d 6217 b 60 e 588

PartitionEntryLbaLo=0x18ffffdf

PartitionEntryLbaHi=0x0

NumberOfPartitionEntries=0xc

SizeOfPartitionEntry=0x80

partitionentryarraycrc 32=0x 6a0e1f 6

alternatepartitiontable ( in 512 byte blocks ) :

partition1(EFI ) :

partitiontypeguid=c12a 7328-f81f-11 D2-ba4b-00 a0c 93 EC 93 b

uniquepartitionguid=e1a7bc 16-86 a9-11 D1-8000-d 6217 b 60 e 588

Starting Lba Lo=0x40

Starting Lba Hi=0x0

Ending Lba Lo=0xf9fff

Ending Lba Hi=0x0

partition2(HP-UX ) :

partitiontypeguid=75894 c1e-3 AE B-11d3- b7c1- 7b03a 000000

uniquepartitionguid=e1a7bc 20-86 a9-11 D1-8000-d 6217 b 60 e 588

Starting Lba Lo=0xfa000

Starting Lba Hi=0x0

Ending Lba Lo=0x18f37fff

Ending Lba Hi=0x0

partition3(hpsp ) :

partitiontypeguid=e2a1e 728-32 E3-11d6- a682-7b03a 0000000

uniquepartitionguid=e1a7bc 34-86 a9-11 D1-8000-d 6217 b 60 e 588

Starting Lba Lo=0x18f38000

Starting Lba Hi=0x0

Ending Lba Lo=0x18ffffbf

Ending Lba Hi=0x0

legacy MBR ( mbrsignaturesinlittleendian ) :

MBR Signature=0x96b9a7e1

4、检查部署是否成功

root @ rx 2660 [/] idisk/dev/rdisk/disk 18

idisk version: 1.44

EFI主标题:

Signature=EFI PART

Revision=0x10000

HeaderSize=0x5c

HeaderCRC32=0xc1bf4de2

MyLbaLo=0x1

MyLbaHi=0x0

AlternateLbaLo=0x18ffffff

AlternateLbaHi=0x0

FirstUsableLbaLo=0x40

FirstUsableLbaHi=0x0

LastUsableLbaLo=0x18ffffbf

LastUsableLbaHi=0x0

disk guid=e1a 7b 9e6- 86 a9-11 D1-8000-d 6217 b 60 e 588

PartitionEntryLbaLo=0x2

PartitionEntryLbaHi=0x0

NumberOfPartitionEntries=0xc

SizeOfPartitionEntry=0x80

partitionentryarraycrc 32=0x 6a0e1f 6

primarypartitiontable ( in 512 byte blocks ) :

partition1(EFI ) :

partitiontypeguid=c12a 7328-f81f-11 D2-ba4b-00 a0c 93 EC 93 b

uniquepartitionguid=e1a7bc 16-86 a9-11 D1-8000-d 6217 b 60 e 588

Starting Lba Lo=0x40

Starting Lba Hi=0x0

Ending Lba Lo=0xf9fff

Ending Lba Hi=0x0

partition2(HP-UX ) :

partitiontypeguid=75894 c1e-3 AE B-11d3- b7c1- 7b03a 000000

uniquepartitionguid=e1a7bc 20-86 a9-11 D1-8000-d 6217 b 60 e 588

Starting Lba Lo=0xfa000

Starting Lba Hi=0x0

Ending Lba Lo=0x18f37fff

Ending Lba Hi=0x0

partition3(hpsp ) :

partitiontypeguid=e2a1e 728-32 E3-11d6- a682-7b03a 0000000

uniquepartitionguid=e1a7bc 34-86 a9-11 D1-8000-d 6217 b 60 e 588

Starting Lba Lo=0x18f38000

Starting Lba Hi=0x0

Ending Lba Lo=0x18ffffbf

Ending Lba Hi=0x0

EFI备用标题:

Signature=EFI PART

Revision=0x10000

HeaderSize=0x5c

HeaderCRC32=0x289e4477

MyLbaLo=0x18ffffff

MyLbaHi=0x0

AlternateLbaLo=0x1

AlternateLbaHi=0x0

FirstUsableLbaLo=0x40

FirstUsableLbaHi=0x0

LastUsableLbaLo=0x18ffffbf

LastUsableLbaHi=0x0

disk guid=e1a 7b 9e6- 86 a9-11 D1-8000-d 6217 b 60 e 588

PartitionEntryLbaLo=0x18ffffdf

PartitionEntryLbaHi=0x0

NumberOfPartitionEntries=0xc

SizeOfPartitionEntry=0x80

partitionentryarraycrc 32=0x 6a0e1f 6

alternatepartitiontable ( in 512 byte blocks ) :

partition1(EFI ) :

partitiontypeguid=c12a 7328-f81f-11 D2-ba4b-00 a0c 93 EC 93 b

uniquepartitionguid=e1a7bc 16-86 a9-11 D1-8000-d 6217 b 60 e 588

Starting Lba Lo=0x40

Starting Lba Hi=0x0

Ending Lba Lo=0xf9fff

Ending Lba Hi=0x0

partition2(HP-UX ) :

partitiontypeguid=75894 c1e-3 AE B-11d3- b7c1- 7b03a 000000

uniquepartitionguid=e1a7bc 20-86 a9-11 D1-8000-d 6217 b 60 e 588

Starting Lba Lo=0xfa000

Starting Lba Hi=0x0

Ending Lba Lo=0x18f37fff

Ending Lba Hi=0x0

partition3(hpsp ) :

partitiontypeguid=e2a1e 728-32 E3-11d6- a682-7b03a 0000000

uniquepartitionguid=e1a7bc 34-86 a9-11 D1-8000-d 6217 b 60 e 588

Starting Lba Lo=0x18f38000

Starting Lba Hi=0x0

Ending Lba Lo=0x18ffffbf

Ending Lba Hi=0x0

p>

Legacy MBR (MBR Signatures in little endian):

   MBR Signature = 0x96b9a7e1

 

Protective MBR

 

5、生成分好区的磁盘设备文件

root@rx2660 [/]insf -eCdisk

insf: Installing special files for sdisk instance 0 address 0/1/1/0.0.0.0.0

insf: Installing special files for sdisk instance 1 address 0/1/1/0.0.0.1.0

insf: Installing special files for sdisk instance 9 address 0/5/1/0.1.2.0.0.0.1

insf: Installing special files for sdisk instance 10 address 0/5/1/0.1.2.0.0.0.2

insf: Installing special files for sdisk instance 11 address 0/5/1/0.1.2.0.0.0.3

insf: Installing special files for sdisk instance 6 address 0/5/1/0.1.3.0.0.0.1

insf: Installing special files for sdisk instance 7 address 0/5/1/0.1.3.0.0.0.2

insf: Installing special files for sdisk instance 8 address 0/5/1/0.1.3.0.0.0.3

insf: Installing special files for sdisk instance 12 address 0/5/1/1.1.2.0.0.0.1

insf: Installing special files for sdisk instance 13 address 0/5/1/1.1.2.0.0.0.2

insf: Installing special files for sdisk instance 14 address 0/5/1/1.1.2.0.0.0.3

insf: Installing special files for sdisk instance 15 address 0/5/1/1.1.3.0.0.0.1

insf: Installing special files for sdisk instance 16 address 0/5/1/1.1.3.0.0.0.2

insf: Installing special files for sdisk instance 17 address 0/5/1/1.1.3.0.0.0.3

insf: Installing special files for sdisk instance 4 address 255/1/0.0.0

insf: Installing special files for esdisk instance 2 address 64000/0xfa00/0x0

insf: Installing special files for esdisk instance 3 address 64000/0xfa00/0x1

insf: Installing special files for esdisk instance 5 address 64000/0xfa00/0x2

insf: Installing special files for esdisk instance 18 address 64000/0xfa00/0x7

insf: Installing special files for esdisk instance 19 address 64000/0xfa00/0x8

insf: Installing special files for esdisk instance 20 address 64000/0xfa00/0x9

 

 

(此步骤执行完成之后,最好重新扫描一下磁盘设备)

root@rx2660 [/]ioscan -kfnCdisk

Class     I  H/W Path     Driver S/W State   H/W Type     Description

=====================================================================

disk      0  0/1/1/0.0.0.0.0      sdisk   CLAIMED     DEVICE       HP      EG0600FBDBU

                         /dev/dsk/c0t0d0   /dev/rdsk/c0t0d0

disk      1  0/1/1/0.0.0.1.0      sdisk   CLAIMED     DEVICE       HP      EG0600FBDBU

                         /dev/dsk/c0t1d0     /dev/dsk/c0t1d0s2   /dev/rdsk/c0t1d0    /dev/rdsk/c0t1d0s2

                         /dev/dsk/c0t1d0s1   /dev/dsk/c0t1d0s3   /dev/rdsk/c0t1d0s1  /dev/rdsk/c0t1d0s3

disk      9  0/5/1/0.1.2.0.0.0.1  sdisk   CLAIMED     DEVICE       HP      HSV300

                         /dev/dsk/c3t0d1     /dev/dsk/c3t0d1s2   /dev/rdsk/c3t0d1    /dev/rdsk/c3t0d1s2

                         /dev/dsk/c3t0d1s1   /dev/dsk/c3t0d1s3   /dev/rdsk/c3t0d1s1  /dev/rdsk/c3t0d1s3

disk     10  0/5/1/0.1.2.0.0.0.2  sdisk   CLAIMED     DEVICE       HP      HSV300

                         /dev/dsk/c3t0d2   /dev/rdsk/c3t0d2

disk     11  0/5/1/0.1.2.0.0.0.3  sdisk   CLAIMED     DEVICE       HP      HSV300

                         /dev/dsk/c3t0d3   /dev/rdsk/c3t0d3

disk      6  0/5/1/0.1.3.0.0.0.1  sdisk   CLAIMED     DEVICE       HP      HSV300

                         /dev/dsk/c9t0d1     /dev/dsk/c9t0d1s2   /dev/rdsk/c9t0d1    /dev/rdsk/c9t0d1s2

                         /dev/dsk/c9t0d1s1   /dev/dsk/c9t0d1s3   /dev/rdsk/c9t0d1s1  /dev/rdsk/c9t0d1s3

disk      7  0/5/1/0.1.3.0.0.0.2  sdisk   CLAIMED     DEVICE       HP      HSV300

                         /dev/dsk/c9t0d2   /dev/rdsk/c9t0d2

disk      8  0/5/1/0.1.3.0.0.0.3  sdisk   CLAIMED     DEVICE       HP      HSV300

                         /dev/dsk/c9t0d3   /dev/rdsk/c9t0d3

disk     12  0/5/1/1.1.2.0.0.0.1  sdisk   CLAIMED     DEVICE       HP      HSV300

                         /dev/dsk/c5t0d1     /dev/dsk/c5t0d1s2   /dev/rdsk/c5t0d1    /dev/rdsk/c5t0d1s2

                         /dev/dsk/c5t0d1s1   /dev/dsk/c5t0d1s3   /dev/rdsk/c5t0d1s1  /dev/rdsk/c5t0d1s3

disk     13  0/5/1/1.1.2.0.0.0.2  sdisk   CLAIMED     DEVICE       HP      HSV300

                         /dev/dsk/c5t0d2   /dev/rdsk/c5t0d2

disk     14  0/5/1/1.1.2.0.0.0.3  sdisk   CLAIMED     DEVICE       HP      HSV300

                         /dev/dsk/c5t0d3   /dev/rdsk/c5t0d3

disk     15  0/5/1/1.1.3.0.0.0.1  sdisk   CLAIMED     DEVICE       HP      HSV300

                         /dev/dsk/c7t0d1     /dev/dsk/c7t0d1s2   /dev/rdsk/c7t0d1    /dev/rdsk/c7t0d1s2

                         /dev/dsk/c7t0d1s1   /dev/dsk/c7t0d1s3   /dev/rdsk/c7t0d1s1  /dev/rdsk/c7t0d1s3

disk     16  0/5/1/1.1.3.0.0.0.2  sdisk   CLAIMED     DEVICE       HP      HSV300

                         /dev/dsk/c7t0d2   /dev/rdsk/c7t0d2

disk     17  0/5/1/1.1.3.0.0.0.3  sdisk   CLAIMED     DEVICE       HP      HSV300

                         /dev/dsk/c7t0d3   /dev/rdsk/c7t0d3

disk      4  255/1/0.0.0  sdisk   CLAIMED     DEVICE       TEAC    DVD-ROM DW-224EV

                         /dev/dsk/c1t0d0   /dev/rdsk/c1t0d0

 

6、将新磁盘制作成引导磁盘,需要注意的是要使用字符设备

root@rx2660 [/]mkboot -e -l /dev/rdisk/disk18

(此步骤执行完成之后,可以通过efi_ls -d /dev/rdisk/disk18 /efi/hpux

命令查看上条命令是否执行成功)

 

7、修改两块磁盘的引导模式

-lq不进行quorum检查。当一个vg只有少于等于50%%u7684硬盘可以正常访问时,默认情况下就不能被激活,加上这个参数以后,就可以强行激活,在配置了根盘镜像的情况下经常会用到这个参数;

root@rx2660 [/]mkboot -a boot vmunix -lq /dev/rdisk/disk3

root@rx2660 [/]mkboot -a boot vmunix -lq /dev/rdisk/disk18

 

 

8、查看上面的修改命令是否执行成功

root@rx2660 [/]efi_cp -d /dev/rdisk/disk3_p1 -u /EFI/HPUX/AUTO /dev/tty

boot vmunix -lq

root@rx2660 [/]efi_cp -d /dev/rdisk/disk18_p1 -u /EFI/HPUX/AUTO /dev/tty

boot vmunix -lq

 

 

9、查看磁盘对应的disk号

root@rx2660 [/]ioscan -fnNCdisk

Class     I  H/W Path  Driver S/W State   H/W Type     Description

===================================================================

disk      2  64000/0xfa00/0x0  esdisk   CLAIMED     DEVICE       HP      EG0600FBDBU

                      /dev/disk/disk2   /dev/rdisk/disk2

disk      3  64000/0xfa00/0x1  esdisk   CLAIMED     DEVICE       HP      EG0600FBDBU

                      /dev/disk/disk3      /dev/disk/disk3_p2   /dev/rdisk/disk3     /dev/rdisk/disk3_p2

                      /dev/disk/disk3_p1   /dev/disk/disk3_p3   /dev/rdisk/disk3_p1  /dev/rdisk/disk3_p3

disk      5  64000/0xfa00/0x2  esdisk   CLAIMED     DEVICE       TEAC    DVD-ROM DW-224EV

                      /dev/disk/disk5   /dev/rdisk/disk5

disk     18  64000/0xfa00/0x7  esdisk   CLAIMED     DEVICE       HP      HSV300

                      /dev/disk/disk18      /dev/disk/disk18_p2   /dev/rdisk/disk18     /dev/rdisk/disk18_p2

                      /dev/disk/disk18_p1   /dev/disk/disk18_p3   /dev/rdisk/disk18_p1  /dev/rdisk/disk18_p3

disk     19  64000/0xfa00/0x8  esdisk   CLAIMED     DEVICE       HP      HSV300

                      /dev/disk/disk19   /dev/rdisk/disk19

disk     20  64000/0xfa00/0x9  esdisk   CLAIMED     DEVICE       HP      HSV300

                      /dev/disk/disk20   /dev/rdisk/disk20

 

 

10、将新盘的p2分区格式化成PV

root@rx2660 [/]pvcreate -fB /dev/rdisk/disk18_p2

 

 

11、将新磁盘p2分区加入的卷组vg00中

root@rx2660 [/]vgextend vg00 /dev/disk/disk18_p2

Volume group vg00 has been successfully extended.

Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

 

 

12、查看卷组的相关信息

root@rx2660 [/]strings /etc/lvmtab

/dev/vg00

/dev/disk/disk3_p2

/dev/disk/disk18_p2

 

root@rx2660 [/]vgdisplay -v vg00

--- Volume groups ---

VG Name                     /dev/vg00

VG Write Access             read/write    

VG Status                   available                

Max LV                      255   

Cur LV                      8     

Open LV                     8     

Max PV                      16    

Cur PV                      2     

Act PV                      2     

Max PE per PV               4474         

VGDA                        4  

PE Size (Mbytes)            128            

Total PE                    6056   

Alloc PE                    666    

Free PE                     5390   

Total PVG                   0       

Total Spare PVs             0             

Total Spare PVs in use      0                    

VG Version                  1.0      

VG Max Size                 8948g     

VG Max Extents              71584        

 

   --- Logical volumes ---

   LV Name                     /dev/vg00/lvol1

   LV Status                   available/syncd          

   LV Size (Mbytes)            1792           

   Current LE                  14       

   Allocated PE                28         

   Used PV                     2      

 

   LV Name                     /dev/vg00/lvol2

   LV Status                   available/syncd          

   LV Size (Mbytes)            8192           

   Current LE                  64       

   Allocated PE                128         

   Used PV                     2      

 

   LV Name                     /dev/vg00/lvol3

   LV Status                   available/syncd          

   LV Size (Mbytes)            1024           

   Current LE                  8        

   Allocated PE                16         

   Used PV                     2      

 

   LV Name                     /dev/vg00/lvol4

   LV Status                   available/syncd          

   LV Size (Mbytes)            128            

   Current LE                  1        

   Allocated PE                2          

   Used PV                     2      

 

   LV Name                     /dev/vg00/lvol5

   LV Status                   available/syncd          

   LV Size (Mbytes)            13952          

   Current LE                  109      

   Allocated PE                218        

   Used PV                     2      

 

   LV Name                     /dev/vg00/lvol6

   LV Status                   available/syncd          

   LV Size (Mbytes)            512            

   Current LE                  4        

   Allocated PE                8          

   Used PV                     2      

 

   LV Name                     /dev/vg00/lvol7

   LV Status                   available/syncd          

   LV Size (Mbytes)            8320           

   Current LE                  65       

   Allocated PE                130        

   Used PV                     2      

 

   LV Name                     /dev/vg00/lvol8

   LV Status                   available/syncd          

   LV Size (Mbytes)            8704           

   Current LE                  68       

   Allocated PE                136        

   Used PV                     2      

 

 

   --- Physical volumes ---

   PV Name                     /dev/disk/disk3_p2

   PV Status                   available               

   Total PE                    4464   

   Free PE                     4131   

   Autoswitch                  On       

   Proactive Polling           On              

 

   PV Name                     /dev/disk/disk18_p2

   PV Status                   available               

   Total PE                    1592   

   Free PE                     1259   

   Autoswitch                  On       

   Proactive Polling           On

 

 

13、镜像卷组vg00中所有的逻辑卷lv

root@rx2660 [/] for lv in /dev/vg00/lvol* > do > lvextend -m 1 $lv /dev/disk/disk18_p2; > done

The newly allocated mirrors are now being synchronized. This operation will

take some time. Please wait ....

Logical volume /dev/vg00/lvol1 has been successfully extended.

Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

The newly allocated mirrors are now being synchronized. This operation will

take some time. Please wait ....

Logical volume /dev/vg00/lvol2 has been successfully extended.

Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

The newly allocated mirrors are now being synchronized. This operation will

take some time. Please wait ....

Logical volume /dev/vg00/lvol3 has been successfully extended.

Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

The newly allocated mirrors are now being synchronized. This operation will

take some time. Please wait ....

Logical volume /dev/vg00/lvol4 has been successfully extended.

Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

The newly allocated mirrors are now being synchronized. This operation will

take some time. Please wait ....

Logical volume /dev/vg00/lvol5 has been successfully extended.

Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

The newly allocated mirrors are now being synchronized. This operation will

take some time. Please wait ....

Logical volume /dev/vg00/lvol6 has been successfully extended.

Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

The newly allocated mirrors are now being synchronized. This operation will

take some time. Please wait ....

Logical volume /dev/vg00/lvol7 has been successfully extended.

Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

The newly allocated mirrors are now being synchronized. This operation will

take some time. Please wait ....

Logical volume /dev/vg00/lvol8 has been successfully extended.

Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

 

 

14、恢复所有的BDRA信息

root@rx2660 [/]lvlnboot -b /dev/vg00/lvol1

Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

 

root@rx2660 [/]lvlnboot -s /dev/vg00/lvol2

Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

 

root@rx2660 [/]lvlnboot -d /dev/vg00/lvol2

Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

 

root@rx2660 [/]lvlnboot -r /dev/vg00/lvol3

Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

 

root@rx2660 [/]lvlnboot -R

Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

 

15、查看镜像信息

root@rx2660 [/]lvlnboot -v

Boot Definitions for Volume Group /dev/vg00:

Physical Volumes belonging in Root Volume Group:

        /dev/disk/disk3_p2 -- Boot Disk

        /dev/disk/disk18_p2 -- Boot Disk

Boot: lvol1     on:     /dev/disk/disk3_p2

                        /dev/disk/disk18_p2

Root: lvol3     on:     /dev/disk/disk3_p2

                        /dev/disk/disk18_p2

Swap: lvol2     on:     /dev/disk/disk3_p2

                        /dev/disk/disk18_p2

Dump: lvol2     on:     /dev/disk/disk3_p2, 0

 

 

16、修改引导配置文件

root@rx2660 [/]vi /stand/bootconf

l  /dev/disk/disk3_p2

2  /dev/disk/disk18_p2

 

 

17、设置系统引导的设备及启动顺序

root@rx2660 [/]ioscan -fnNCdisk

Class     I  H/W Path  Driver S/W State   H/W Type     Description

===================================================================

disk      2  64000/0xfa00/0x0  esdisk   CLAIMED     DEVICE       HP      EG0600FBDBU

                      /dev/disk/disk2   /dev/rdisk/disk2

disk      3  64000/0xfa00/0x1  esdisk   CLAIMED     DEVICE       HP      EG0600FBDBU

                      /dev/disk/disk3      /dev/disk/disk3_p2   /dev/rdisk/disk3     /dev/rdisk/disk3_p2

                      /dev/disk/disk3_p1   /dev/disk/disk3_p3   /dev/rdisk/disk3_p1  /dev/rdisk/disk3_p3

disk      5  64000/0xfa00/0x2  esdisk   CLAIMED     DEVICE       TEAC    DVD-ROM DW-224EV

                      /dev/disk/disk5   /dev/rdisk/disk5

disk     18  64000/0xfa00/0x7  esdisk   CLAIMED     DEVICE       HP      HSV300

                      /dev/disk/disk18      /dev/disk/disk18_p2   /dev/rdisk/disk18     /dev/rdisk/disk18_p2

                      /dev/disk/disk18_p1   /dev/disk/disk18_p3   /dev/rdisk/disk18_p1  /dev/rdisk/disk18_p3

disk     19  64000/0xfa00/0x8  esdisk   CLAIMED     DEVICE       HP      HSV300

                      /dev/disk/disk19   /dev/rdisk/disk19

disk     20  64000/0xfa00/0x9  esdisk   CLAIMED     DEVICE       HP      HSV300

                      /dev/disk/disk20   /dev/rdisk/disk20

 

 

root@rx2660 [/]ioscan -m lun /dev/disk/disk3

Class     I  Lun H/W Path  Driver  S/W State   H/W Type     Health  Description

======================================================================

disk      3  64000/0xfa00/0x1   esdisk  CLAIMED     DEVICE       online  HP      EG0600FBDBU      

             0/1/1/0.0x5000cca02503b829.0x0

                      /dev/disk/disk3      /dev/disk/disk3_p2   /dev/rdisk/disk3     /dev/rdisk/disk3_p2

                      /dev/disk/disk3_p1   /dev/disk/disk3_p3   /dev/rdisk/disk3_p1  /dev/rdisk/disk3_p3

 

root@rx2660 [/]ioscan -m lun /dev/disk/disk18

Class     I  Lun H/W Path  Driver  S/W State   H/W Type     Health  Description

======================================================================

disk     18  64000/0xfa00/0x7   esdisk  CLAIMED     DEVICE       online  HP      HSV300           

             0/5/1/0.0x50014380013be3f9.0x4001000000000000

             0/5/1/1.0x50014380013be3f9.0x4001000000000000

             0/5/1/0.0x50014380013be3fc.0x4001000000000000

             0/5/1/1.0x50014380013be3fc.0x4001000000000000

                      /dev/disk/disk18      /dev/disk/disk18_p2   /dev/rdisk/disk18     /dev/rdisk/disk18_p2

                      /dev/disk/disk18_p1   /dev/disk/disk18_p3   /dev/rdisk/disk18_p1  /dev/rdisk/disk18_p3

 

 

root@rx2660 [/]setboot

Primary bootpath : 0/1/1/0.0x5000cca02503b829.0x0 (/dev/rdisk/disk3)

HA Alternate bootpath :

Alternate bootpath : 0/1/2/0 (LAN Interface)

 

Autoboot is ON (enabled)

Hyperthreading : ON

               : ON (next boot)

 

root@rx2660 [/]setboot -p /dev/rdisk/disk18

Primary boot path set to 0/5/1/1.0x50014380013be3fc.0x4001000000000000 (/dev/rdisk/disk18)

 

root@rx2660 [/]setboot -h /dev/rdisk/disk3

HA Alternate boot path set to 0/1/1/0.0x5000cca02503b829.0x0 (/dev/rdisk/disk3)

root@rx2660 [/tmp/mirror]

(备注:-p表示主引导设备,-h表示备用引导设备)

 

root@rx2660 [/]setboot

Primary bootpath : 0/5/1/1.0x50014380013be3fc.0x4001000000000000 (/dev/rdisk/disk18)

HA Alternate bootpath : 0/1/1/0.0x5000cca02503b829.0x0 (/dev/rdisk/disk3)

Alternate bootpath : 0/1/2/0 (LAN Interface)

 

Autoboot is ON (enabled)

Hyperthreading : ON

               : ON (next boot)

18、重新启动系统,查看是否从设置的磁盘进行引导

root@rx2660 [/]shutdown -ry 0

 

SHUTDOWN PROGRAM

01/07/98 02:09:44 EAT

 

Broadcast Message from root (pts/0) Wed Jan  7 02:09:44...

PLEASE LOG OFF NOW ! ! !

        System maintenance about to begin.

All processes will be terminated in 0 seconds.

 

 

root@rx2660 [/]grep HP-UX /var/adm/syslog/syslog.log

Jan  7 02:14:48 rx2660 vmunix: Boot device\\\'s HP-UX HW path is: 0/5/1/1.0x50014380013be3fc.0x4001000000000000

Jan  7 02:15:34 rx2660 cimserver[2599]: PGS10030: Started HP-UX WBEM Services version A.02.09.04.

 

至此,HP-UX 11.31的根盘镜像就做完了!

**************************************************************************************************************************

 

扩展:更换损坏磁盘的步骤:

1、将损坏的磁盘拔出来,将新磁盘插入原来的位置

2、用ioscan命令扫描新添加的磁盘

3、恢复vg00的信息到新加入的磁盘

root@rx2660 [/]vgcfgrestore –n vg00 /dev/rdisk/disk18

4、激活vg00

root@rx2660 [/]vgchange –a y /dev/vg00

5、同步vg00中的信息

root@rx2660 [/]vgsync /dev/vg00

 

 作者:SEian.G(苦练七十二变,笑对八十一难)

 

更多关于云服务器,域名注册,虚拟主机的问题,请访问西部数码官网:www.chenqinet.cn

相关推荐

后台-系统设置-扩展变量-手机广告位-内容页底部广告位3