Chinaunix首页 | 论坛 | 博客
  • 博客访问: 259669
  • 博文数量: 70
  • 博客积分: 2120
  • 博客等级: 大尉
  • 技术积分: 820
  • 用 户 组: 普通用户
  • 注册时间: 2008-01-16 10:52
文章分类

全部博文(70)

文章存档

2012年(2)

2011年(53)

2010年(6)

2009年(1)

2008年(8)

我的朋友

分类:

2011-12-27 11:25:32

一、知识准备
HPUX 11.23与11.22版本配置根盘镜像的最大的不同:
1. 新增加了HPSP分区;
11.22系统根盘只划分了两个分区EFI/HP-UX,在11.23系统中,划分了3个分区,分别为EFI/HP-UX/HPSP.相应在使用idisk命令划分硬盘分区时使用的/tmp/partitionfile 文件中的内容也做了相应调整.
2. EFI分区大小从原先的100M,增加到500M


二、实验目的
对一台HP rx8640机器的2号分区根盘(146GB)镜像;

三、操作过程
1. From HPUX, use vgdisplay to identify the disk that is in vg00. Use ioscan to find the spare disk.
# vgdisplay -v --> vg00 is on /dev/dsk/c0t6d0s2
# ioscan -efunC disk --> c2t6d0
Class     I  H/W Path        Driver   S/W State   H/W Type     Description
========================================================================
disk      1  0/0/0/2/0.6.0   sdisk    CLAIMED     DEVICE       HP 146 GST3146855LC
                            /dev/dsk/c0t6d0     /dev/rdsk/c0t6d0 
                            /dev/dsk/c0t6d0s1   /dev/rdsk/c0t6d0s1
                            /dev/dsk/c0t6d0s2   /dev/rdsk/c0t6d0s2
                            /dev/dsk/c0t6d0s3   /dev/rdsk/c0t6d0s3
Acpi(HWP0002,PNP0A03,0)/Pci(2|0)/Scsi(Pun6,Lun0)/HD(Part1,Sig0E481F42-F04C-11DC-8002-D6217B60E588)/\EFI\HPUX\HPUX.EFI
disk      0  0/0/0/2/1.2.0   sdisk    CLAIMED     DEVICE       Optiarc DVD RW AD-5170A
                            /dev/dsk/c1t2d0   /dev/rdsk/c1t2d0
disk      2  0/0/0/3/0.6.0   sdisk    CLAIMED     DEVICE       HP 146 GST3146855LC
                            /dev/dsk/c2t6d0   /dev/rdsk/c2t6d0

2. Create the system, OS, and service partitions.
# vi /tmp/partitionfile
   3
   EFI 500MB
   HPUX 100%
   HPSP 400MB
# idisk -wf /tmp/partitionfile /dev/rdsk/c2t6d0
idisk version: 1.31
********************** WARNING ***********************
If you continue you may destroy all data on this disk.
Do you wish to continue(yes/no)? yes <-- Answer "yes" and not "y"
 
3. Create device files needed for the new partitions.
# insf -eC disk
insf: Installing special files for sdisk instance 1 address 0/0/0/2/0.6.0
insf: Installing special files for sdisk instance 0 address 0/0/0/2/1.2.0
insf: Installing special files for sdisk instance 2 address 0/0/0/3/0.6.0
insf: Installing special files for sdisk instance 3 address 0/0/12/1/0/4/1.0.0
insf: Installing special files for sdisk instance 4 address 0/0/12/1/0/4/1.1.0
insf: Installing special files for sdisk instance 5 address 0/0/12/1/0/4/1.2.0
insf: Installing special files for sdisk instance 6 address 0/0/12/1/0/4/1.3.0
insf: Installing special files for sdisk instance 7 address 0/0/14/1/0/4/1.0.0
insf: Installing special files for sdisk instance 8 address 0/0/14/1/0/4/1.1.0
insf: Installing special files for sdisk instance 9 address 0/0/14/1/0/4/1.2.0
insf: Installing special files for sdisk instance 10 address 0/0/14/1/0/4/1.3.0

4. Verify the partition table.
# idisk /dev/rdsk/c2t6d0
idisk version: 1.32
EFI Primary Header:
        Signature                 = EFI PART
        Revision                  = 0x10000
        HeaderSize                = 0x5c
        HeaderCRC32               = 0xe51d545d
        MyLbaLo                   = 0x1
        MyLbaHi                   = 0x0
        AlternateLbaLo            = 0x1117732f
        AlternateLbaHi            = 0x0
        FirstUsableLbaLo          = 0x22
        FirstUsableLbaHi          = 0x0
        LastUsableLbaLo           = 0x1117730c
        LastUsableLbaHi           = 0x0
        Disk GUID                 = 711f04da-2190-11dd-8001-d6217b60e588
        PartitionEntryLbaLo       = 0x2
        PartitionEntryLbaHi       = 0x0
        NumberOfPartitionEntries  = 0xc
        SizeOfPartitionEntry      = 0x80
        PartitionEntryArrayCRC32  = 0x280b786c
  Primary Partition Table (in 512 byte blocks):
    Partition 1 (EFI):
        Partition Type GUID       = c12a7328-f81f-11d2-ba4b-00a0c93ec93b
        Unique Partition GUID     = 711f066a-2190-11dd-8002-d6217b60e588
        Starting Lba Lo            = 0x22
        Starting Lba Hi            = 0x0
        Ending Lba Lo              = 0xfa021
        Ending Lba Hi              = 0x0
    Partition 2 (HP-UX):
        Partition Type GUID       = 75894c1e-3aeb-11d3-b7c1-7b03a0000000
        Unique Partition GUID     = 711f0688-2190-11dd-8003-d6217b60e588
        Starting Lba Lo            = 0xfa022
        Starting Lba Hi            = 0x0
        Ending Lba Lo              = 0x110af30b
        Ending Lba Hi              = 0x0
    Partition 3 (HPSP):
        Partition Type GUID       = e2a1e728-32e3-11d6-a682-7b03a0000000
        Unique Partition GUID     = 711f06a6-2190-11dd-8004-d6217b60e588
        Starting Lba Lo            = 0x110af30c
        Starting Lba Hi            = 0x0
        Ending Lba Lo              = 0x1117730b
        Ending Lba Hi              = 0x0
EFI Alternate Header:
        Signature                 = EFI PART
        Revision                  = 0x10000
        HeaderSize                = 0x5c
        HeaderCRC32               = 0xac871e6f
        MyLbaLo                   = 0x1117732f
        MyLbaHi                   = 0x0
        AlternateLbaLo            = 0x1
        AlternateLbaHi            = 0x0
        FirstUsableLbaLo          = 0x22
        FirstUsableLbaHi          = 0x0
        LastUsableLbaLo           = 0x1117730c
        LastUsableLbaHi           = 0x0
        Disk GUID                 = 711f04da-2190-11dd-8001-d6217b60e588
        PartitionEntryLbaLo       = 0x1117730e
        PartitionEntryLbaHi       = 0x0
        NumberOfPartitionEntries  = 0xc
        SizeOfPartitionEntry      = 0x80
        PartitionEntryArrayCRC32  = 0x280b786c
  Alternate Partition Table (in 512 byte blocks):
    Partition 1 (EFI):
        Partition Type GUID       = c12a7328-f81f-11d2-ba4b-00a0c93ec93b
        Unique Partition GUID     = 711f066a-2190-11dd-8002-d6217b60e588
        Starting Lba Lo            = 0x22
        Starting Lba Hi            = 0x0
        Ending Lba Lo              = 0xfa021
        Ending Lba Hi              = 0x0
    Partition 2 (HP-UX):
        Partition Type GUID       = 75894c1e-3aeb-11d3-b7c1-7b03a0000000
        Unique Partition GUID     = 711f0688-2190-11dd-8003-d6217b60e588
        Starting Lba Lo            = 0xfa022
        Starting Lba Hi            = 0x0
        Ending Lba Lo              = 0x110af30b
        Ending Lba Hi              = 0x0
    Partition 3 (HPSP):
        Partition Type GUID       = e2a1e728-32e3-11d6-a682-7b03a0000000
        Unique Partition GUID     = 711f06a6-2190-11dd-8004-d6217b60e588
        Starting Lba Lo            = 0x110af30c
        Starting Lba Hi            = 0x0
        Ending Lba Lo              = 0x1117730b
        Ending Lba Hi              = 0x0
Legacy MBR (MBR Signatures in little endian):
   MBR Signature = 0x6c041f71
Protective MBR
 
5. Verify that the device files were created properly.
# ioscan -efnC disk --> c2t6d0 is 0/0/0/3/0.6.0
 
6. Populate the /efi/hpux/ directory in the new EFI system partition.
# mkboot -e -l /dev/rdsk/c2t6d0
 
7. Change the auto file for the mirror to boot without quorum.
NOTE: Using "s1"
# echo "boot vmunix -lq" > /tmp/AUTO.lq
# efi_cp -d /dev/rdsk/c2t6d0s1 /tmp/AUTO.lq /EFI/HPUX/AUTO
NOTE: We assume that if we boot from the primary, the mirror is fully
functional and therefore we don't need to override quorum. Your site might
require that both disks override quorum.
 
8. Verify the contents of the auto file on the primary and the mirror.
NOTE: Using "s1"
# efi_cp -d /dev/rdsk/c0t6d0s1 -u /EFI/HPUX/AUTO /tmp/AUTO.pri
# efi_cp -d /dev/rdsk/c2t6d0s1 -u /EFI/HPUX/AUTO /tmp/AUTO.alt
# cat /tmp/AUTO.pri
boot vmunix
# cat /tmp/AUTO.alt
boot vmunix -lq
阅读(585) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~