Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

HP-UX 11.31 Root disk Image (RX2660)

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

1. View the disk device name, hardware path, and the current disk in vg00

Root@rx2660 [/] ioscan-m dsf

Persistent DSF Legacy DSF (s)

= =

/ dev/rdisk/disk2 / dev/rdsk/c0t0d0

/ dev/rdisk/disk3 / dev/rdsk/c0t1d0

/ dev/rdisk/disk3_p1 / dev/rdsk/c0t1d0s1

/ dev/rdisk/disk3_p2 / dev/rdsk/c0t1d0s2

/ dev/rdisk/disk3_p3 / dev/rdsk/c0t1d0s3

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

/ dev/rscsi/c4t0d0

/ dev/rscsi/c8t0d0

/ dev/rscsi/c6t0d0

/ dev/rdisk/disk5 / dev/rdsk/c1t0d0

/ dev/rdisk/disk18 / dev/rdsk/c3t0d1

/ dev/rdsk/c5t0d1

/ dev/rdsk/c9t0d1

/ dev/rdsk/c7t0d1

/ dev/rdisk/disk19 / dev/rdsk/c3t0d2

/ dev/rdsk/c5t0d2

/ dev/rdsk/c9t0d2

/ dev/rdsk/c7t0d2

/ dev/rdisk/disk20 / dev/rdsk/c3t0d3

/ dev/rdsk/c5t0d3

/ dev/rdsk/c9t0d3

/ dev/rdsk/c7t0d3

This command is unique to the 11.31 operating system. There is no benefit in ordinary operation. The advantage is shown when there are multiple paths. For example, the storage of HP EVA is added. The device name / dev/rdsk/c3t0d1 and / dev/rdsk/c5t0d1 correspond to the same disk. Under 11.23, if you want to add both device names to vg, you must add both device names. Under 11.31, because of the multipath mapping, it will be displayed in the form of / dev/rdisk/diskXX, corresponding to these two devices, so it is very clear.

Root@rx2660 [/] ioscan-funC disk

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

=

Disk 00 / 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/rdsk/c3t0d1

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/rdsk/c9t0d1

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/rdsk/c5t0d1

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/rdsk/c7t0d1

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

Root@rx2660 [/] ioscan-kfNC diskClass I Hachet W Path Driver Sachet W State Hachet W Type Description=disk 2 64000/0xfa00/0x0 esdisk CLAIMED DEVICE HP EG0600FBDBUdisk 3 64000/0xfa00/0x1 esdisk CLAIMED DEVICE HP EG0600FBDBUdisk 5 64000/0xfa00/0x2 esdisk CLAIMED DEVICE TEAC DVD-ROM DW-224EVdisk 18 64000/0xfa00/0x7 esdisk CLAIMED DEVICE HP HSV300disk 19 64000/0xfa00/0x8 esdisk CLAIMED DEVICE HP HSV300disk 20 64000/0xfa00/0x9 esdisk CLAIMED DEVICE HP HSV300

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 1

Act PV 1

Max PE per PV 4474

VGDA 2

PE Size (Mbytes) 128

Total PE 4464

Alloc PE 333

Free PE 4131

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 14

Used PV 1

LV Name / dev/vg00/lvol2

LV Status available/syncd

LV Size (Mbytes) 8192

Current LE 64

Allocated PE 64

Used PV 1

LV Name / dev/vg00/lvol3

LV Status available/syncd

LV Size (Mbytes) 1024

Current LE 8

Allocated PE 8

Used PV 1

LV Name / dev/vg00/lvol4

LV Status available/syncd

LV Size (Mbytes) 128

Current LE 1

Allocated PE 1

Used PV 1

LV Name / dev/vg00/lvol5

LV Status available/syncd

LV Size (Mbytes) 13952

Current LE 109

Allocated PE 109

Used PV 1

LV Name / dev/vg00/lvol6

LV Status available/syncd

LV Size (Mbytes) 512

Current LE 4

Allocated PE 4

Used PV 1

LV Name / dev/vg00/lvol7

LV Status available/syncd

LV Size (Mbytes) 8320

Current LE 65

Allocated PE 65

Used PV 1

LV Name / dev/vg00/lvol8

LV Status available/syncd

LV Size (Mbytes) 8704

Current LE 68

Allocated PE 68

Used PV 1

-Physical volumes

PV Name / dev/disk/disk3_p2

PV Status available

Total PE 4464

Free PE 4131

Autoswitch On

Proactive Polling On

Root@rx2660 [/] lvlnboot-vBoot Definitions for Volume Group / dev/vg00:Physical Volumes belonging in Root Volume Group: / dev/disk/disk3_p2-- Boot DiskBoot: lvol1 on: / dev/disk/disk3_p2Root: lvol3 on: / dev/disk/disk3_p2Swap: lvol2 on: / dev/disk/disk3_p2Dump: lvol2 on: / dev/disk/disk3_p2, 0

2. Write the table file on disk (the path of the table file is specified by yourself)

Root@rx2660 [/] vi / tmp/mirror/table 3 / / create 3 partitions EFI 500m / / the first EFI, the size of which is 500MB, the use of HPUX 100% / / for EFI means that all the remaining space is given to the second partition, the name and size of the third partition of HPSP 200m / / used to create vg, the purpose is unknown

(note: if you encounter an error when editing a table file using vi: I don't know what kind of terminal you are on-all I have is' linux'. Please refer to: SecureCRT access HPUX cannot use vi)

3. Write the partition information in the table file to disk

Root@rx2660 [/] idisk-wf / tmp/mirror/table / dev/rdisk/disk18 idisk version: 1.44 * WARNING * * If you continue you may destroy all data on this disk.Do you wish to continue (yes/no)? Yes EFI Primary Header: 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 = e1a7b9e6-86a9-11d1-8000-d6217b60e588 PartitionEntryLbaLo = 0x2 PartitionEntryLbaHi = 0x0 NumberOfPartitionEntries = 0xc SizeOfPartitionEntry = 0x80 PartitionEntryArrayCRC32 = 0x6a0e1f6 Primary Partition Table (in 512 byte blocks): Partition 1 (EFI): Partition Type GUID = c12a7328-f81f-11d2-ba4b-00a0c93ec93b Unique Partition GUID = e1a7bc16-86a9-11d1-8000-d6217b60e588 Starting Lba Lo = 0x40 Starting Lba Hi = 0x0 Ending Lba Lo = 0xf9fff Ending Lba Hi = 0x0 Partition 2 (HP-UX): Partition Type GUID = 75894c1e-3aeb-11d3-b7c1-7b03a0000000 Unique Partition GUID = e1a7bc20-86a9-11d1-8000-d6217b60e588 Starting Lba Lo = 0xfa000 Starting Lba Hi = 0x0 Ending Lba Lo = 0x18f37fff Ending Lba Hi = 0x0 Partition 3 (HPSP): Partition Type GUID = e2a1e728-32e3-11d6-a682-7b03a0000000 Unique Partition GUID = e1a7bc34-86a9-11d1-8000-d6217b60e588 Starting Lba Lo = 0x18f38000 Starting Lba Hi = 0x0 Ending LbaLo = 0x18ffffbf Ending Lba Hi = 0x0 EFI Alternate Header: 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 = e1a7b9e6-86a9-11d1-8000-d6217b60e588 PartitionEntryLbaLo = 0x18ffffdf PartitionEntryLbaHi = 0x0 NumberOfPartitionEntries = 0xc SizeOfPartitionEntry = 0x80 PartitionEntryArrayCRC32 = 0x6a0e1f6 Alternate Partition Table (in 512byte blocks): Partition 1 (EFI): Partition Type GUID = c12a7328-f81f-11d2-ba4b-00a0c93ec93b Unique Partition GUID = e1a7bc16-86a9-11d1-8000-d6217b60e588 Starting Lba Lo = 0x40 Starting Lba Hi = 0x0 Ending Lba Lo = 0xf9fff Ending Lba Hi = 0x0 Partition 2 (HP-UX): Partition Type GUID = 75894c1e-3aeb-11d3-b7c1-7b03a0000000 Unique Partition GUID = e1a7bc20-86a9-11d1-8000-d6217b60e588 Starting Lba Lo = 0xfa000 Starting Lba Hi = 0x0 Ending Lba Lo = 0x18f37fff Ending Lba Hi = 0x0 Partition 3 (HPSP) : Partition Type GUID = e2a1e728-32e3-11d6-a682-7b03a0000000 Unique Partition GUID = e1a7bc34-86a9-11d1-8000-d6217b60e588 Starting Lba Lo = 0x18f38000 Starting Lba Hi = 0x0 Ending Lba Lo = 0x18ffffbf Ending Lba Hi = 0x0 Legacy MBR (MBR Signatures in little endian): MBR Signature = 0x96b9a7e1

4. Check whether the import is successful

Root@rx2660 [/] idisk / dev/rdisk/disk18idisk version: 1.44 EFI Primary Header: 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 = e1a7b9e6-86a9-11d1-8000-d6217b60e588 PartitionEntryLbaLo = 0x2 PartitionEntryLbaHi = 0x0 NumberOfPartitionEntries = 0xc SizeOfPartitionEntry = 0x80 PartitionEntryArrayCRC32 = 0x6a0e1f6 Primary Partition Table (in 512 Byte blocks): Partition 1 (EFI): Partition Type GUID = c12a7328-f81f-11d2-ba4b-00a0c93ec93b Unique Partition GUID = e1a7bc16-86a9-11d1-8000-d6217b60e588 Starting Lba Lo = 0x40 Starting Lba Hi = 0x0 Ending Lba Lo = 0xf9fff Ending Lba Hi = 0x0 Partition 2 (HP-UX): Partition Type GUID = 75894c1e-3aeb-11d3-b7c1-7b03a0000000 Unique Partition GUID = e1a7bc20-86a9-11d1-8000-d6217b60e588 Starting Lba Lo = 0xfa000 Starting Lba Hi = 0x0 Ending Lba Lo = 0x18f37fff Ending Lba Hi = 0x0 Partition 3 (HPSP): Partition Type GUID = e2a1e728-32e3-11d6-a682-7b03a0000000 Unique Partition GUID = e1a7bc34-86a9-11d1-8000-d6217b60e588 Starting Lba Lo = 0x18f38000 Starting Lba Hi = 0x0 Ending Lba Lo = 0x18ffffbf Ending Lba Hi = 0x0 EFI Alternate Header: 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 = e1a7b9e6-86a9-11d1-8000- D6217b60e588 PartitionEntryLbaLo = 0x18ffffdf PartitionEntryLbaHi = 0x0 NumberOfPartitionEntries = 0xc SizeOfPartitionEntry = 0x80 PartitionEntryArrayCRC32 = 0x6a0e1f6 Alternate Partition Table (in 512byte blocks): Partition 1 (EFI): Partition Type GUID = c12a7328-f81f-11d2-ba4b-00a0c93ec93b Unique Partition GUID = e1a7bc16-86a9-11d1-8000-d6217b60e588 Starting LbaLo = 0x40 Starting LbaHi = 0x0 Ending Lba Lo = 0xf9fff Ending Lba Hi = 0x0 Partition 2 (HP-UX): Partition Type GUID = 75894c1e-3aeb-11d3-b7c1-7b03a0000000 Unique Partition GUID = e1a7bc20-86a9-11d1-8000-d6217b60e588 Starting Lba Lo = 0xfa000 Starting Lba Hi = 0x0 Ending Lba Lo = 0x18f37fff Ending Lba Hi = 0x0 Partition 3 (HPSP): Partition Type GUID = e2a1e728-32e3-11d6-a682-7b03a0000000 Unique Partition GUID = e1a7bc34-86a9-11d1-8000-d6217b60e588 Starting Lba Lo = 0x18f38000 Starting Lba Hi = 0x0 Ending Lba Lo = 0x18ffffbf Ending Lba Hi = 0x0 Legacy MBR (MBR Signatures in little endian): MBR Signature = 0x96b9a7e1 Protective MBR

5. Generate disk device files divided into areas

Root@rx2660 [/] insf-eCdiskinsf: Installing special files for sdisk instance 0 address 0/1/1/0.0.0.0.0insf: Installing special files for sdisk instance 1 address 0/1/1/0.0.0.1.0insf: Installing special files for sdisk instance 9 address 0/5/1/0.1.2.0.0.0.1insf: Installing special files for sdisk instance 10 address 0/5/1/0.1.2.0.0.0.2insf: Installing special files for sdisk instance 11 address 0/5/1/0.1.2.0.0.0.3insf: Installing special files for sdisk instance 6 address 0/5/1/0.1.3.0.0.0.1insf: Installing special files for sdisk instance 7 address 0/5/1/0.1.3.0.0.0.2insf: Installing special files for sdisk instance 8 address 0/5/1/0.1.3.0.0.0.3insf: Installing special files for sdisk instance 12 address 0/5/1/ 1.1.2.0.0.0.1insf: Installing special files for sdisk instance 13 address 0/5/1/1.1.2.0.0.0.2insf: Installing special files for sdisk instance 14 address 0/5/1/1.1.2.0.0.0.3insf: Installing special files for sdisk instance 15 address 0/5/1/1.1.3.0.0.0.1insf: Installing special files for sdisk instance 16 address 0/5/1/1.1.3.0. 0.0.2insf: Installing special files for sdisk instance 17 address 0/5/1/1.1.3.0.0.0.3insf: Installing special files for sdisk instance 4 address 255/1/0.0.0insf: Installing special files for esdisk instance 2 address 64000/0xfa00/0x0insf: Installing special files for esdisk instance 3 address 64000/0xfa00/0x1insf: Installing special files for esdisk instance 5 address 64000/0xfa00/0x2insf: Installing special files for esdisk instance 18 address 64000/0xfa00/0x7insf: Installing special files for esdisk instance 19 address 64000/0xfa00/ 0x8insf: Installing special files for esdisk instance 20 address 64000/0xfa00/0x9

(after this step is completed, it is best to rescan the disk device.)

Root@rx2660 [/] ioscan-kfnCdiskClass I kfnCdiskClass W Path Driver S Unix W State Type Description====disk 00 / 1 dev/dsk/c0t0d0 0.0.0.0.0 sdisk CLAIMED DEVICE HP EG0600FBDBU / dev/dsk/c0t0d0 / dev/rdsk/c0t0d0disk 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/c0t1d0s3disk 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/c3t0d1s3disk 10 0/5/1/0.1.2.0.0.0.2 sdisk CLAIMED DEVICE HP HSV300 / dev/dsk/c3t0d2 / dev/rdsk/c3t0d2disk 11 0/5/1/0.1.2.0.0.0.3 sdisk CLAIMED DEVICE HP HSV300 / dev/dsk/c3t0d3 / dev/rdsk/c3t0d3disk 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/c9t0d1s3disk 7 0/5/1/0.1.3.0.0.0.2 sdisk CLAIMED DEVICE HP HSV300 / Dev/dsk/c9t0d2 / dev/rdsk/c9t0d2disk 8 0/5/1/0.1.3.0.0.0.3 sdisk CLAIMED DEVICE HP HSV300 / dev/dsk/c9t0d3 / dev/rdsk/c9t0d3disk 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/c5t0d1s3disk 13 0/5/1/1.1.2.0.0.0.2 sdisk CLAIMED DEVICE HP HSV300 / dev/dsk/c5t0d2 / dev/rdsk/c5t0d2disk 14 0/5/1/1.1.2.0.0.0.3 sdisk CLAIMED DEVICE HP HSV300 / dev/dsk/c5t0d3 / dev/rdsk/c5t0d3disk 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/c7t0d1s3disk 16 0/5/1/1.1.3.0.0.0.2 sdisk CLAIMED DEVICE HP HSV300 / dev/dsk/c7t0d2 / dev/rdsk / c7t0d2disk 17 0/5/1/1.1.3.0.0.0.3 sdisk CLAIMED DEVICE HP HSV300 / dev/dsk/c7t0d3 / dev/rdsk/c7t0d3disk 4 255/1/0.0.0 sdisk CLAIMED DEVICE TEAC DVD-ROM DW-224EV / dev/dsk/c1t0d0 / dev/rdsk/c1t0d0

6. when making a new disk into a boot disk, you should pay attention to the use of character devices

Root@rx2660 [/] mkboot-e-l / dev/rdisk/disk18 (after this step is completed, you can use efi_ls-d / dev/rdisk/disk18 / efi/hpux

Command to see if the previous command was executed successfully)

7. Modify the boot mode of the two disks

-lq does not perform quorum check. When only 50% or less of a vg disk can be accessed normally, it cannot be activated by default. When this parameter is added, it can be forcibly activated. This parameter is often used when the root disk image is configured.

Root@rx2660 [/] mkboot-a "boot vmunix-lq" / dev/rdisk/disk3root@rx2660 [/] mkboot-a "boot vmunix-lq" / dev/rdisk/disk18

8. Check whether the above modification command is executed successfully

Root@rx2660 [/] efi_cp-d / dev/rdisk/disk3_p1-u / EFI/HPUX/AUTO / dev/ttyboot vmunix-lqroot@rx2660 [/] efi_cp-d / dev/rdisk/disk18_p1-u / EFI/HPUX/AUTO / dev/ttyboot vmunix-lq

9. Check the disk number of the disk.

Root@rx2660 [/] ioscan-fnNCdiskClass I 64000/0xfa00/0x1 esdisk CLAIMED DEVICE HP EG0600FBDBU W Path Driver S dev/disk/ W State H shock W Type Description=disk 2 64000/0xfa00/0x0 esdisk CLAIMED DEVICE HP EG0600FBDBU / dev/disk/disk2 / dev/rdisk/disk2disk 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_p3disk 5 64000/0xfa00/0x2 esdisk CLAIMED DEVICE TEAC DVD-ROM DW-224EV / dev/disk/disk5 / dev/rdisk/disk5disk 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_p3disk 19 64000/0xfa00/0x8 esdisk CLAIMED DEVICE HP HSV300 / dev/disk/disk19 / dev/rdisk/disk19disk 20 64000/0xfa00/0x9 esdisk CLAIMED DEVICE HP HSV300 / dev/disk/disk20 / dev/rdisk/disk20

10. Format the p2 partition of the new disk into PV

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

11. Add the new disk p2 partition to the volume group vg00

Root@rx2660 [/] vgextend vg00 / dev/disk/disk18_p2Volume group "vg00" has been successfully extended.Volume Group configuration for / dev/vg00 has been saved in / etc/lvmconf/vg00.conf

12. View information about volume groups

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/vg00VG Write Access read/write VG Status available Max LV 255Cur 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. Lv of all logical volumes in the mirror volume group vg00

Root@rx2660 [/] for lv in / dev/vg00/lvol* > do > lvextend-m 1$ lv / dev/disk/disk18_p2; > doneThe 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.confThe 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.confThe 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.confThe 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.confThe 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.confThe 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.confThe 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.confThe 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. Recover all BDRA information

Root@rx2660 [/] lvlnboot-b / dev/vg00/lvol1Volume Group configuration for / dev/vg00 has been saved in / etc/lvmconf/vg00.conf root@rx2660 [/] lvlnboot-s / dev/vg00/lvol2Volume Group configuration for / dev/vg00 has been saved in / etc/lvmconf/vg00.conf root@rx2660 [/] lvlnboot-d / dev/vg00/lvol2Volume Group configuration for / dev/vg00 has been saved in / etc/lvmconf/vg00.conf root@rx2660 [/] lvlnboot-r / dev/vg00/lvol3Volume Group configuration for / dev/vg00 has been saved in / etc/lvmconf/vg00.confroot@rx2660 [/] lvlnboot-RVolume Group configuration for / dev/vg00 has been saved in / etc/lvmconf/vg00.conf 15, Check the image information root@rx2660 [/] lvlnboot-vBoot Definitions for Volume Group / dev/vg00:Physical Volumes belonging in Root Volume Group: / dev/disk/disk3_p2-- Boot Disk / dev/disk/disk18_p2-- Boot DiskBoot: lvol1 on: / dev/disk/disk3_p2 / dev/disk/disk18_p2Root: lvol3 on: / dev/disk/disk3_p2 / dev/disk/disk18_p2Swap: lvol2 on: / dev/disk/disk3_p2 / dev/disk/disk18_p2Dump: lvol2 on: / dev/disk/disk3_p2 0

16. Modify the boot configuration file

Root@rx2660 [/] vi / stand/bootconfl / dev/disk/disk3_p22 / dev/disk/disk18_p2

17. Set up the booting device and boot sequence of the system

Root@rx2660 [/] ioscan-fnNCdiskClass I 64000/0xfa00/0x1 esdisk CLAIMED DEVICE HP EG0600FBDBU W Path Driver S dev/disk/ W State H shock W Type Description=disk 2 64000/0xfa00/0x0 esdisk CLAIMED DEVICE HP EG0600FBDBU / dev/disk/disk2 / dev/rdisk/disk2disk 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_p3disk 5 64000/0xfa00/0x2 esdisk CLAIMED DEVICE TEAC DVD-ROM DW-224EV / dev/disk/disk5 / dev/rdisk/disk5disk 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_p3disk 19 64000/0xfa00/0x8 esdisk CLAIMED DEVICE HP HSV300 / dev/disk/disk19 / dev/rdisk/disk19disk 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 Hmax W Path Driver Signor W State Hannan 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/disk18Class I Lun Hmax W Path Driver S Unix W State Happer 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 Greg 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 [/] SetbootPrimary bootpath: 0/1/1/0.0x5000cca02503b829.0x0 (/ dev/rdisk/disk3) HA Alternate bootpath: Alternate bootpath: 0 ON 1 LAN Interface) Autoboot is ON (enabled) Hyperthreading: ON: ON (next boot) root@rx2660 [/] setboot-p / dev/rdisk/disk18Primary bootpath set to 0/5/1/1.0x50014380013be3fc.0x4001000000000000 (/ dev/rdisk/disk18) root@rx2660 [/] setboot-h / dev/rdisk/disk3HA Alternate bootpath set to 0/1/1/0.0x5000cca02503b829.0x0 (/ dev/rdisk/disk3) root@rx2660 [/ tmp/mirror]

(note:-p for primary boot device,-h for standby boot device)

Root@rx2660 [/] setbootPrimary 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 Autoboot is ON 1 Autoboot is ON (enabled) Hyperthreading: ON: ON (next boot)

18. Restart the system to see if it is booted from the set disk

Root@rx2660 [/] shutdown-ry 0 SHUTDOWN PROGRAM01/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.logJan 7 02:14:48 rx2660 vmunix: Boot device's HP-UX HW path is: 0/5/1/1.0x50014380013be3fc.0x4001000000000000Jan 7 02:15:34 rx2660 cimserver [2599]: PGS10030: Started HP-UX WBEM Services version A.02.09.04.

At this point, the root disk mirroring of HP-UX 11.31 is done!

*

Expansion: to replace a damaged disk:

1. Unplug the damaged disk and insert the new disk into the original location

2. Scan the newly added disk with the ioscan command

3. Restore the information of vg00 to the newly added disk

Root@rx2660 [/] vgcfgrestore-n vg00 / dev/rdisk/disk18

4. Activate vg00

Root@rx2660 [/] vgchange-a y / dev/vg00

5. Synchronize the information in vg00

Root@rx2660 [/] vgsync / dev/vg00

Author: SEian.G (hard practice changes in 72, but it is difficult to laugh at 81)

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report