You are on page 1of 6

Configurando um novo mirror no HP-UX 11i v3

rx3600 [/] #ioscan -m lun


Class I Lun H/W Path Driver S/W State H/W Type Health Description
======================================================================
disk 4 64000/0xfa00/0x0 esdisk CLAIMED DEVICE online HP
DG072A9BB7
0/4/1/0.0x500000e016e23982.0x0
/dev/disk/disk4 /dev/rdisk/disk4

Criar estrutura de Partições no novo disco, para isso criar um arquivo no tmp com o
conteudo:
3
EFI 500MB
HPUX 100%
HPSP 400MB
Formatar o disco usando o arquivo acima criado /tmp/infile
# idisk -wf /tmp/infile /dev/rdisk/disk4
Criar os device files
# insf -e
Adicionar cabeçalho LVM com informação de boot
# pvcreate -fB /dev/rdisk/disk4_p2
Criar área de boot no disco
# mkboot /dev/rdisk/disk4_p2
Extender o vg00
# vgextend vg00 /dev/disk/disk4_p2
Criar o mirror de todos os lvols seguindo a sequencia:
for lv in 1 2 3 4 5 6 7 8
do
lvextend -m 1 /dev/vg00/lvol$lv
done
Alterar a string de boot para desabilitar o Quorum
# mkboot -a "boot vmunix -lq" /dev/rdisk/disk4_p2
# mkboot -a "boot vmunix -lq" /dev/rdisk/disk5_p2
rx3600 [/] #strings /etc/lvmtab
/dev/vg00
/dev/disk/disk5_p2

rx3600 [/] #ioscan -funC disk


Class I H/W Path Driver S/W State H/W Type Description
===============================================================================
disk 1 0/0/2/1.0.16 UsbScsiAdaptor CLAIMED DEVICE USB SCSI St
ack Adaptor
/dev/deviceFileSystem/Usb/MassStorage/dsk/disk@hp-1008
+294=A60020000001
/dev/deviceFileSystem/Usb/MassStorage/rdsk/disk@hp-100
8+294=A60020000001
disk 3 0/4/1/0.0.0.0.0 sdisk CLAIMED DEVICE HP
DG072ABAB3
/dev/dsk/c0t0d0 /dev/dsk/c0t0d0s2 /dev/rdsk/c0t0
d0 /dev/rdsk/c0t0d0s2
/dev/dsk/c0t0d0s1 /dev/dsk/c0t0d0s3 /dev/rdsk/c0t0
d0s1 /dev/rdsk/c0t0d0s3
disk 2 0/4/1/0.0.0.1.0 sdisk CLAIMED DEVICE HP
DG072A9BB7
/dev/dsk/c0t1d0 /dev/rdsk/c0t1d0
rx3600 [/] #ioscan -m lun
Class I Lun H/W Path Driver S/W State H/W Type Health Description
======================================================================
disk 4 64000/0xfa00/0x0 esdisk CLAIMED DEVICE online HP
DG072A9BB7
0/4/1/0.0x500000e016e23982.0x0
/dev/disk/disk4 /dev/rdisk/disk4
disk 5 64000/0xfa00/0x1 esdisk CLAIMED DEVICE online HP
DG072ABAB3
0/4/1/0.0x5000c500053f1a3d.0x0
/dev/disk/disk5 /dev/disk/disk5_p2 /dev/rdisk/disk5
/dev/rdisk/disk5_p2
/dev/disk/disk5_p1 /dev/disk/disk5_p3 /dev/rdisk/disk5
_p1 /dev/rdisk/disk5_p3
rx3600 [/] #cat /tmp/infile
3
EFI 500MB
HPUX 100%
HPSP 400MB

rx3600 [/] #idisk -wf /tmp/infile /dev/rdisk/disk4


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 = 0x36c6f092
MyLbaLo = 0x1
MyLbaHi = 0x0
AlternateLbaLo = 0x88bb991
AlternateLbaHi = 0x0
FirstUsableLbaLo = 0x40
FirstUsableLbaHi = 0x0
LastUsableLbaLo = 0x88bb93f
LastUsableLbaHi = 0x0
Disk GUID = 85b0e8b6-6a5d-11de-8000-d6217b60e588
PartitionEntryLbaLo = 0x2
PartitionEntryLbaHi = 0x0
NumberOfPartitionEntries = 0xc
SizeOfPartitionEntry = 0x80
PartitionEntryArrayCRC32 = 0x3936001b
Primary Partition Table (in 512 byte blocks):
Partition 1 (EFI):
Partition Type GUID = c12a7328-f81f-11d2-ba4b-00a0c93ec93b
Unique Partition GUID = 85b0ea78-6a5d-11de-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 = 85b0ea96-6a5d-11de-8000-d6217b60e588
Starting Lba Lo = 0xfa000
Starting Lba Hi = 0x0
Ending Lba Lo = 0x87f3fff
Ending Lba Hi = 0x0
Partition 3 (HPSP):
Partition Type GUID = e2a1e728-32e3-11d6-a682-7b03a0000000
Unique Partition GUID = 85b0eaaa-6a5d-11de-8000-d6217b60e588
Starting Lba Lo = 0x87f4000
Starting Lba Hi = 0x0
Ending Lba Lo = 0x88bb93f
Ending Lba Hi = 0x0
EFI Alternate Header:
Signature = EFI PART
Revision = 0x10000
HeaderSize = 0x5c
HeaderCRC32 = 0x64da7341
MyLbaLo = 0x88bb991
MyLbaHi = 0x0
AlternateLbaLo = 0x1
AlternateLbaHi = 0x0
FirstUsableLbaLo = 0x40
FirstUsableLbaHi = 0x0
LastUsableLbaLo = 0x88bb93f
LastUsableLbaHi = 0x0
Disk GUID = 85b0e8b6-6a5d-11de-8000-d6217b60e588
PartitionEntryLbaLo = 0x88bb971
PartitionEntryLbaHi = 0x0
NumberOfPartitionEntries = 0xc
SizeOfPartitionEntry = 0x80
PartitionEntryArrayCRC32 = 0x3936001b
Alternate Partition Table (in 512 byte blocks):
Partition 1 (EFI):
Partition Type GUID = c12a7328-f81f-11d2-ba4b-00a0c93ec93b
Unique Partition GUID = 85b0ea78-6a5d-11de-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 = 85b0ea96-6a5d-11de-8000-d6217b60e588
Starting Lba Lo = 0xfa000
Starting Lba Hi = 0x0
Ending Lba Lo = 0x87f3fff
Ending Lba Hi = 0x0
Partition 3 (HPSP):
Partition Type GUID = e2a1e728-32e3-11d6-a682-7b03a0000000
Unique Partition GUID = 85b0eaaa-6a5d-11de-8000-d6217b60e588
Starting Lba Lo = 0x87f4000
Starting Lba Hi = 0x0
Ending Lba Lo = 0x88bb93f
Ending Lba Hi = 0x0
Legacy MBR (MBR Signatures in little endian):
MBR Signature = 0x5ce8b085
Protective MBR

rx3600 [/] #ioscan -m lun


Class I Lun H/W Path Driver S/W State H/W Type Health Description
======================================================================
disk 4 64000/0xfa00/0x0 esdisk CLAIMED DEVICE online HP
DG072A9BB7
0/4/1/0.0x500000e016e23982.0x0
/dev/disk/disk4 /dev/rdisk/disk4
disk 5 64000/0xfa00/0x1 esdisk CLAIMED DEVICE online HP
DG072ABAB3
0/4/1/0.0x5000c500053f1a3d.0x0
/dev/disk/disk5 /dev/disk/disk5_p2 /dev/rdisk/disk5
/dev/rdisk/disk5_p2
/dev/disk/disk5_p1 /dev/disk/disk5_p3 /dev/rdisk/disk5
_p1 /dev/rdisk/disk5_p3
rx3600 [/] #ioscan -m dsf
Persistent DSF Legacy DSF(s)
========================================
/dev/rdisk/disk4 /dev/rdsk/c0t1d0
/dev/rdisk/disk4_p1 /dev/rdsk/c0t1d0s1
/dev/rdisk/disk4_p2 /dev/rdsk/c0t1d0s2
/dev/rdisk/disk4_p3 /dev/rdsk/c0t1d0s3
/dev/rdisk/disk5 /dev/rdsk/c0t0d0
/dev/rdisk/disk5_p1 /dev/rdsk/c0t0d0s1
/dev/rdisk/disk5_p2 /dev/rdsk/c0t0d0s2
/dev/rdisk/disk5_p3 /dev/rdsk/c0t0d0s3

rx3600 [/] #insf -e


insf: Installing special files for asio0 instance 2 address 0/0/1/2
insf: Installing special files for sdisk instance 3 address 0/4/1/0.0.0.0.0
insf: Installing special files for sdisk instance 2 address 0/4/1/0.0.0.1.0
insf: Installing special files for ipmi instance 0 address 250/0
insf: Installing special files for asio0 instance 3 address 250/1
insf: Installing special files for fcd instance 0 address 0/3/1/0/4/0
insf: Installing special files for sasd instance 0 address 0/4/1/0
insf: Installing special files for fcd instance 1 address 0/7/1/0/4/0
insf: Installing special files for esdisk instance 4 address 64000/0xfa00/0x0
insf: Installing special files for esdisk instance 5 address 64000/0xfa00/0x1
insf: Installing special files for pseudo driver cn
insf: Installing special files for pseudo driver mm
insf: Installing special files for pseudo driver arp
insf: Installing special files for pseudo driver ptym
insf: Installing special files for pseudo driver ptys
insf: Installing special files for pseudo driver devkrs
insf: Installing special files for pseudo driver dmem
insf: Installing special files for pseudo driver ip
insf: Installing special files for pseudo driver nuls
insf: Installing special files for pseudo driver rawip
insf: Installing special files for pseudo driver dev_config
insf: Installing special files for pseudo driver strlog
insf: Installing special files for pseudo driver sad
insf: Installing special files for pseudo driver stcpmap
insf: Installing special files for pseudo driver tcp
insf: Installing special files for pseudo driver telm
insf: Installing special files for pseudo driver asyncdsk
insf: Installing special files for pseudo driver tels
insf: Installing special files for pseudo driver tlclts
insf: Installing special files for pseudo driver tlcots
insf: Installing special files for pseudo driver tlcotsod
insf: Installing special files for pseudo driver echo
insf: Installing special files for pseudo driver udp
insf: Installing special files for pseudo driver dlpi
insf: Installing special files for pseudo driver vols
insf: Installing special files for pseudo driver dmp
insf: Installing special files for pseudo driver ptm
insf: Installing special files for pseudo driver pts
insf: Installing special files for pseudo driver beep
insf: Installing special files for pseudo driver klog
insf: Installing special files for pseudo driver sy
insf: Installing special files for pseudo driver kepd
insf: Installing special files for pseudo driver diag2
insf: Installing special files for pseudo driver root
insf: Installing special files for pseudo driver escsi

rx3600 [/] #pvcreate -fB /dev/rdisk/disk4_p2


Physical volume "/dev/rdisk/disk4_p2" has been successfully created.

rx3600 [/] #mkboot /dev/rdisk/disk4_p2

rx3600 [/] #vgextend vg00 /dev/disk/disk4_p2


Volume group "vg00" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.con
f
rx3600 [/] # for lv in 1 2 3 4 5 6 7 8
> do
> lvextend -m 1 /dev/vg00/lvol$lv
> 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.

mkboot -a "boot vmunix -lq" /dev/rdisk/disk4_p2


mkboot -a "boot vmunix -lq" /dev/rdisk/disk5_p2

You might also like