HPUX 11.23下根盘镜像全过程(上)

、知识准备
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

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
为了在HP-UX操作系统上监控使用Zabbix,你可以执行以下步骤: 1. 下载并安装Zabbix Server:从Zabbix官方网站上下载所需的Zabbix版本,并按照官方文档中的说明进行安装和配置。 2. 安装Zabbix Agent:下载适用于HP-UX操作系统的Zabbix Agent,并按照官方文档中的指示进行安装。确保在安装过程中正确配置Zabbix Agent的主机名和访问权限。 3. 配置Zabbix Server:编辑Zabbix Server的配置文件,添加HP-UX主机的配置项。指定HP-UX主机的IP地址和Zabbix Agent的端口号。保存并重启Zabbix Server以使配置生效。 4. 添加HP-UX主机到Zabbix Server:登录到Zabbix Web界面,导航到"Configuration"->"Hosts",并点击"Create Host"按钮。填写主机的名称、可见名称和IP地址。选择在步骤2中配置的Zabbix Agent模板。保存配置并等待主机的状态显示为"Monitored"。 5. 监控HP-UX主机:在Zabbix Web界面上,导航到"Monitoring"->"Latest data"。在搜索框中输入主机名,并选择对应的主机。您将能够看到针对HP-UX主机的各种监控项,例如CPU使用率、磁盘空间、内存使用率等。 请注意,在执行上述步骤之前,确保HP-UX操作系统上已经安装了Zabbix Agent,并且网络设置正确,以便Zabbix Server可以与Zabbix Agent进行通信。此外,还可以根据需要进行其他配置,例如添加更多的监控项或设置警报规则,以满足您的监控需求。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值