HP-UX 11.31根盤映象(RX2660)
1、檢視磁碟裝置名,硬體路徑,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
這個命令是11.31作業系統裡面所獨有的,普通操作的時候看不出有什麼好處,在有多路徑的時候優勢就顯示出來了,比如說新增了HP EVA的儲存,裝置名/dev/rdsk/c3t0d1跟/dev/rdsk/c5t0d1對應的是同一塊磁碟,在11.23下面如果要加入到vg裡面必須把兩個裝置名都加進去,而在11.31下面因為有了多路徑對映,會顯示為/dev/rdisk/diskXX的形式,對應這兩個裝置,這樣就非常的清晰了。
root@rx2660 [/]ioscan -funC disk
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/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 disk
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
disk 2 64000/0xfa00/0x0 esdisk CLAIMED DEVICE HP EG0600FBDBU
disk 3 64000/0xfa00/0x1 esdisk CLAIMED DEVICE HP EG0600FBDBU
disk 5 64000/0xfa00/0x2 esdisk CLAIMED DEVICE TEAC DVD-ROM DW-224EV
disk 18 64000/0xfa00/0x7 esdisk CLAIMED DEVICE HP HSV300
disk 19 64000/0xfa00/0x8 esdisk CLAIMED DEVICE HP HSV300
disk 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 -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/disk/disk3_p2 -- Boot Disk
Boot: lvol1 on: /dev/disk/disk3_p2
Root: lvol3 on: /dev/disk/disk3_p2
Swap: lvol2 on: /dev/disk/disk3_p2
Dump: lvol2 on: /dev/disk/disk3_p2, 0
2、編寫磁碟的table檔案(table檔案的路徑自己指定)
root@rx2660 [/]vi /tmp/mirror/table
3 //建立3個分割槽
EFI 500M //第一個EFI,大小為500MB, 用於EFI的使用
HPUX 100% //表示剩餘空間全部給第二分割槽,用於建立vg的
HPSP 200M //第三個分割槽的名稱和大小,用途不明
(注意:在這裡如果遇到使用vi編輯table檔案出現報錯:I don't know what kind of terminal you are on - all I have is 'linux'.請參考:SecureCRT訪問HPUX無法使用vi )
3、給table檔案中的分割槽資訊寫入磁碟
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 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 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
Legacy MBR (MBR Signatures in little endian):
MBR Signature = 0x96b9a7e1
4、檢查是否匯入成功
root@rx2660 [/]idisk /dev/rdisk/disk18
idisk 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 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
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%的硬碟可以正常訪問時,預設情況下就不能被啟用,加上這個引數以後,就可以強行啟用,在配置了根盤映象的情況下經常會用到這個引數;
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 [/] 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(苦練七十二變,笑對八十一難)
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31015730/viewspace-2146167/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- HP-UX 11.31安裝bash環境UX
- HPUX中vg00根盤映象配置方法(一)UX
- HP-UX MP管理(RX7620 11.31為例)UX
- HP-UX下做磁碟映象UX
- hp-ux 11.31中線上擴充套件/減小檔案系統UX套件
- 在HP-UX PA-RISC 11.31安裝weblogic報錯解決UXWeb
- HP-UX 11.31 安裝RAC 新增共享磁碟的問題(兩種辦法)UX
- oracle 9.2.0.8在HP-UX 11.31 下的安裝步驟和注意事項OracleUX
- SUSE 11 & RedHat 6.1 & HP-UX B.11.31 NTP時間同步服務實施案例集錦RedhatUX
- 中國開通根域名映象伺服器伺服器
- ICANN 在上海安裝L根映象伺服器伺服器
- centerOs根目錄盤擴容筆記ROS筆記
- hpux11.31的diskUX
- oracle 10g 如何對ocr盤增加映象和刪除映象Oracle 10g
- 自動掛載u盤到根目錄
- 更換HP小型機系統映象故障盤
- Standby 庫, 根盤暴滿,虛驚一場 [zt]
- 怎樣製作win10的iOS映象安裝U盤_製作win10 iso映象安裝U盤教程Win10iOS
- Standby 庫, 根盤暴滿,虛驚一場 [原創]
- 國內開源映象站資訊盤點(建議收藏!)
- 【Docker】Windows將docker下載的映象存放到其他盤DockerWindows
- Solaris 9 Vxvm4.0 封裝、映象系統盤(轉)封裝
- HP-UX KCWEBUXWeb
- hp-ux oracleUXOracle
- HPUX11.31硬體路徑詳解UX
- hp-ux點滴UX
- oracle 10g 中如何新增與刪除votedisk映象盤Oracle 10g
- hp_unix B11.31程式數過多
- 製作u盤linux根檔案系統掛不上!(轉)Linux
- 如何用U盤安裝win10系統_U盤裝win10官方原版映象的方法Win10
- [HP-UX] vgcfgrestore 恢復UXGCREST
- HP-UX之MP管理UX
- hp-ux rman 使用nfsUXNFS
- HP-UX lvm管理UXLVM
- hp-ux system management homepageUX
- HP-UX教材下載UX
- HP-UX常見命令UX
- HP-UX基本常識UX