1. 디스크 확인
#ioscan -fknNC disk
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
disk 1 64000/0xfa00/0x0 esdisk CLAIMED DEVICE HP IR Volume
/dev/disk/disk1 /dev/disk/disk1_p2 /dev/rdisk/disk1 /dev/rdisk/disk1_p2
/dev/disk/disk1_p1 /dev/disk/disk1_p3 /dev/rdisk/disk1_p1 /dev/rdisk/disk1_p3
disk 3 64000/0xfa00/0x1 esdisk CLAIMED DEVICE TEAC DV-28E-V
/dev/disk/disk3 /dev/rdisk/disk3
disk 49 64000/0xfa00/0x1f esdisk CLAIMED DEVICE HP EG0450FBDSQ
/dev/disk/disk49 /dev/disk/disk49_p2 /dev/rdisk/disk49 /dev/rdisk/disk49_p2
/dev/disk/disk49_p1 /dev/disk/disk49_p3 /dev/rdisk/disk49_p1 /dev/rdisk/disk49_p3
disk 115 64000/0xfa00/0x4b esdisk CLAIMED DEVICE SEAGATE ST9600204SS
/dev/disk/disk115 /dev/rdisk/disk115
disk 116 64000/0xfa00/0x4c esdisk CLAIMED DEVICE SEAGATE ST9600204SS
/dev/disk/disk116 /dev/rdisk/disk116
disk 118 64000/0xfa00/0x4d esdisk CLAIMED DEVICE SEAGATE ST9600204SS
/dev/disk/disk118 /dev/rdisk/disk118
disk 122 64000/0xfa00/0x4f esdisk CLAIMED DEVICE HP IR Volume
/dev/disk/disk122 /dev/rdisk/disk122
2. 파티션(슬라이스) 분할을 위해 파일 생성
#echo "3" > partition.ascii
#echo "EFI 500MB" >> partition.ascii
#echo "HPUX 100%" >> partition.ascii
#echo "HPSP 100MB" >> partition.ascii
#cat partition.ascii
3
EFI 500MB
HPUX 100%
HPSP 100MB
또는
#vi partition.ascii
3
EFI 500MB
HPUX 100%
HPSP 100MB
:wq!
3. 혹시 모를 기존정보 삭제
#idisk -wR /dev/rdisk/disk122
idisk: Write mode requires description file
idisk version: 1.44
********************** WARNING ***********************
If you continue you will destroy all partition data on this disk.
Do you wish to continue(yes/no)? yes
4. 파티션(슬라이스) 분할
#idisk -wf partition.ascii /dev/rdisk/disk122
********************** 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 = 0x5a0e9a66
MyLbaLo = 0x1
MyLbaHi = 0x0
AlternateLbaLo = 0x45d7ffff
AlternateLbaHi = 0x0
FirstUsableLbaLo = 0x40
FirstUsableLbaHi = 0x0
LastUsableLbaLo = 0x45d7ffbf
LastUsableLbaHi = 0x0
Disk GUID = 7b32b838-f87f-11e7-8000-d6217b60e588
PartitionEntryLbaLo = 0x2
PartitionEntryLbaHi = 0x0
NumberOfPartitionEntries = 0xc
SizeOfPartitionEntry = 0x80
PartitionEntryArrayCRC32 = 0xb0a5de40
Primary Partition Table (in 512 byte blocks):
Partition 1 (EFI):
Partition Type GUID = c12a7328-f81f-11d2-ba4b-00a0c93ec93b
Unique Partition GUID = 7b32ba40-f87f-11e7-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 = 7b32ba4a-f87f-11e7-8000-d6217b60e588
Starting Lba Lo = 0xfa000
Starting Lba Hi = 0x0
Ending Lba Lo = 0x45d4dfff
Ending Lba Hi = 0x0
Partition 3 (HPSP):
Partition Type GUID = e2a1e728-32e3-11d6-a682-7b03a0000000
Unique Partition GUID = 7b32ba5e-f87f-11e7-8000-d6217b60e588
Starting Lba Lo = 0x45d4e000
Starting Lba Hi = 0x0
Ending Lba Lo = 0x45d7ffbf
Ending Lba Hi = 0x0
EFI Alternate Header:
Signature = EFI PART
Revision = 0x10000
HeaderSize = 0x5c
HeaderCRC32 = 0xab97a9f7
MyLbaLo = 0x45d7ffff
MyLbaHi = 0x0
AlternateLbaLo = 0x1
AlternateLbaHi = 0x0
FirstUsableLbaLo = 0x40
FirstUsableLbaHi = 0x0
LastUsableLbaLo = 0x45d7ffbf
LastUsableLbaHi = 0x0
Disk GUID = 7b32b838-f87f-11e7-8000-d6217b60e588
PartitionEntryLbaLo = 0x45d7ffdf
PartitionEntryLbaHi = 0x0
NumberOfPartitionEntries = 0xc
SizeOfPartitionEntry = 0x80
PartitionEntryArrayCRC32 = 0xb0a5de40
Alternate Partition Table (in 512 byte blocks):
Partition 1 (EFI):
Partition Type GUID = c12a7328-f81f-11d2-ba4b-00a0c93ec93b
Unique Partition GUID = 7b32ba40-f87f-11e7-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 = 7b32ba4a-f87f-11e7-8000-d6217b60e588
Starting Lba Lo = 0xfa000
Starting Lba Hi = 0x0
Ending Lba Lo = 0x45d4dfff
Ending Lba Hi = 0x0
Partition 3 (HPSP):
Partition Type GUID = e2a1e728-32e3-11d6-a682-7b03a0000000
Unique Partition GUID = 7b32ba5e-f87f-11e7-8000-d6217b60e588
Starting Lba Lo = 0x45d4e000
Starting Lba Hi = 0x0
Ending Lba Lo = 0x45d7ffbf
Ending Lba Hi = 0x0
Legacy MBR (MBR Signatures in little endian):
MBR Signature = 0xcab7327b
Protective MBR
#ioscan -fknNC disk
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
disk 1 64000/0xfa00/0x0 esdisk CLAIMED DEVICE HP IR Volume
/dev/disk/disk1 /dev/disk/disk1_p2 /dev/rdisk/disk1 /dev/rdisk/disk1_p2
/dev/disk/disk1_p1 /dev/disk/disk1_p3 /dev/rdisk/disk1_p1 /dev/rdisk/disk1_p3
disk 3 64000/0xfa00/0x1 esdisk CLAIMED DEVICE TEAC DV-28E-V
/dev/disk/disk3 /dev/rdisk/disk3
disk 49 64000/0xfa00/0x1f esdisk CLAIMED DEVICE HP EG0450FBDSQ
/dev/disk/disk49 /dev/disk/disk49_p2 /dev/rdisk/disk49 /dev/rdisk/disk49_p2
/dev/disk/disk49_p1 /dev/disk/disk49_p3 /dev/rdisk/disk49_p1 /dev/rdisk/disk49_p3
disk 115 64000/0xfa00/0x4b esdisk CLAIMED DEVICE SEAGATE ST9600204SS
/dev/disk/disk115 /dev/rdisk/disk115
disk 116 64000/0xfa00/0x4c esdisk CLAIMED DEVICE SEAGATE ST9600204SS
/dev/disk/disk116 /dev/rdisk/disk116
disk 118 64000/0xfa00/0x4d esdisk CLAIMED DEVICE SEAGATE ST9600204SS
/dev/disk/disk118 /dev/rdisk/disk118
disk 122 64000/0xfa00/0x4f esdisk CLAIMED DEVICE HP IR Volume
/dev/disk/disk122 /dev/disk/disk122_p2 /dev/rdisk/disk122 /dev/rdisk/disk122_p2
/dev/disk/disk122_p1 /dev/disk/disk122_p3 /dev/rdisk/disk122_p1 /dev/rdisk/disk122_p3
5. EFI Filesystem header write & install boot program
#efi_fsinit -d /dev/rdisk/disk122_p1
#efi_ls -d /dev/rdisk/disk122_p1
FileName Last Modified Size
total space 523218944 bytes, free space 523198464 bytes
volume ISL10 data size 7984 directory size 8 13/01/22 03:23:09
filename type start size implement created
===============================================================
ISL -12800 584 242 0 13/01/22 03:23:09
AUTO -12289 832 1 0 13/01/22 03:23:09
HPUX -12928 840 1024 0 13/01/22 03:23:09
PAD -12290 1864 1468 0 13/01/22 03:23:09
LABEL BIN 3336 8 0 18/01/13 09:53:31
6. Mirror 생성
#pvcreate -f -B /dev/rdisk/disk122_p2
Physical volume "/dev/rdisk/disk122_p2" has been successfully created.
#vgextend /dev/vg00 /dev/disk/disk122_p2
Volume group "/dev/vg00" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
#for i in 1 2 3 4
> do
> lvextend -m 1 /dev/vg00/lvol$i /dev/disk/disk122_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
#vgdisplay -v vg00
--- 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) 33024
Current LE 258
Allocated PE 516
Used PV 2
LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 50048
Current LE 391
Allocated PE 782
Used PV 2
--- Physical volumes ---
PV Name /dev/disk/disk1_p2
PV Status available
Total PE 4463
Free PE 3736
Autoswitch On
Proactive Polling On
PV Name /dev/disk/disk122_p2
PV Status available
Total PE 4465
Free PE 3738
Autoswitch On
Proactive Polling On
7. lvboot 및 Alternate Path 지정
#lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/disk/disk1_p2 -- Boot Disk
/dev/disk/disk122_p2 -- Boot Disk
Boot: lvol1 on: /dev/disk/disk1_p2
/dev/disk/disk122_p2
Root: lvol3 on: /dev/disk/disk1_p2
/dev/disk/disk122_p2
Swap: lvol2 on: /dev/disk/disk1_p2
/dev/disk/disk122_p2
Dump: lvol2 on: /dev/disk/disk1_p2, 0
#setboot
Primary bootpath : 0/4/1/0.0x4c21db93a441081.0x0 (/dev/rdisk/disk1)
HA Alternate bootpath :
Alternate bootpath : 0/4/2/0 (No dsf found)
Autoboot is ON (enabled)
Hyperthreading : OFF
: OFF (next boot)
'IT > HP-UX' 카테고리의 다른 글
[HP-UX] sasmgr 명령어를 이용한 IR Volume 생성 (0) | 2017.12.30 |
---|---|
[HP-UX] Hostname 변경 및 프롬프트 설정 (0) | 2016.12.28 |
HP-UX Ignite Backup/Recovery 백업 (0) | 2016.09.19 |
HP-UX DAT160 Tape I/O 테스트 및 관련 명령어 (0) | 2016.08.04 |