- 论坛徽章:
- 0
|
# strings /etc/lvmtab
/dev/vg00
/dev/disk/disk3_p2
# ioscan -funC disk
Class
I
H/W Path
Driver S/W State
H/W Type
Description
=======================================================================
disk
2
0/0/2/0.0.0.0
sdisk
CLAIMED
DEVICE
TEAC
DV-28E-C
/dev/dsk/c0t0d0
/dev/rdsk/c0t0d0
disk
0
0/1/1/0.0.0
sdisk
CLAIMED
DEVICE
SEAGATE ST373207LSUN72G
/dev/dsk/c2t0d0
/dev/dsk/c2t0d0s2
/dev/rdsk/c2t0d0
/dev/rdsk/c2t0d0s2
/dev/dsk/c2t0d0s1
/dev/dsk/c2t0d0s3
/dev/rdsk/c2t0d0s1
/dev/rdsk/c2t0d0s3
disk
1
0/1/1/1.2.0
sdisk
CLAIMED
DEVICE
SEAGATE ST373207LSUN72G
/dev/dsk/c3t2d0
/dev/dsk/c3t2d0s2
/dev/rdsk/c3t2d0
/dev/rdsk/c3t2d0s2
/dev/dsk/c3t2d0s1
/dev/dsk/c3t2d0s3
/dev/rdsk/c3t2d0s1
/dev/rdsk/c3t2d0s3
# more /stand/bootconf
l
/dev/disk/disk3_p2
# touch /tmp/partitionfile
# vi /tmp/partitionfile
\"/tmp/partitionfile\" 4 lines, 33characters
# idisk -wf /tmp/partitionfile/dev/rdsk/c3t2d0
idisk version: 1.44
********************** WARNING***********************
If you continue you may destroy all data onthis disk.
Do you wish to continue(yes/no)? yes
EFI Primary Header:
Signature
= EFIPART
Revision
=0x10000
HeaderSize
= 0x5c
HeaderCRC32
=0xf091d90f
MyLbaLo
= 0x1
MyLbaHi
= 0x0
AlternateLbaLo
=0x88bb991
AlternateLbaHi
= 0x0
FirstUsableLbaLo
= 0x40
FirstUsableLbaHi
= 0x0
LastUsableLbaLo
= 0x88bb93f
LastUsableLbaHi
= 0x0
Disk GUID
=e7cacbe2-d02a-11de-8000-d6217b60e588
PartitionEntryLbaLo
= 0x2
PartitionEntryLbaHi
= 0x0
NumberOfPartitionEntries
= 0xc
SizeOfPartitionEntry
= 0x80
PartitionEntryArrayCRC32
= 0x23091c33
Primary Partition Table (in 512 byte blocks):
Partition 1 (EFI):
Partition Type GUID
= c12a7328-f81f-11d2-ba4b-00a0c93ec93b
Unique Partition GUID
= e7cad092-d02a-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
= e7cad0a6-d02a-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
= e7cad0c4-d02a-11de-8000-d6217b60e588
Starting Lba Lo
= 0x87f4000
Starting Lba Hi
= 0x0
Ending Lba Lo
=0x88bb93f
Ending Lba Hi
= 0x0
EFI Alternate Header:
Signature
= EFIPART
Revision
=0x10000
HeaderSize
= 0x5c
HeaderCRC32
=0xa28d5adc
MyLbaLo
=0x88bb991
MyLbaHi
= 0x0
AlternateLbaLo
= 0x1
AlternateLbaHi
= 0x0
FirstUsableLbaLo
= 0x40
FirstUsableLbaHi
= 0x0
LastUsableLbaLo
= 0x88bb93f
LastUsableLbaHi
= 0x0
Disk GUID
=e7cacbe2-d02a-11de-8000-d6217b60e588
PartitionEntryLbaLo
= 0x88bb971
PartitionEntryLbaHi
= 0x0
NumberOfPartitionEntries
= 0xc
SizeOfPartitionEntry
= 0x80
PartitionEntryArrayCRC32
= 0x23091c33
Alternate Partition Table (in 512 byte blocks):
Partition 1 (EFI):
Partition Type GUID
= c12a7328-f81f-11d2-ba4b-00a0c93ec93b
Unique Partition GUID
=e7cad092-d02a-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
= e7cad0a6-d02a-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
= e7cad0c4-d02a-11de-8000-d6217b60e588
Starting Lba Lo
= 0x87f4000
Starting Lba Hi
= 0x0
Ending Lba Lo
=0x88bb93f
Ending Lba Hi
= 0x0
Legacy MBR (MBR Signatures in littleendian):
MBR Signature = 0x74cbcae7
Protective MBR
# insf -e
insf: Installing special files for sdiskinstance 2 address 0/0/2/0.0.0.0
insf: Installing special files for sdiskinstance 0 address 0/1/1/0.0.0
insf: Installing special files for sdiskinstance 1 address 0/1/1/1.2.0
insf: Installing special files for asio0instance 0 address 0/6/1/0
insf: Installing special files for asio0instance 1 address 0/6/1/1
insf: Installing special files for ipmiinstance 0 address 250/0
insf: Installing special files for asio0instance 2 address 250/1
insf: Installing special files for asio0instance 3 address 250/2
insf: Installing special files for sideinstance 0 address 0/0/2/0.0
insf: Installing special files for sideinstance 1 address 0/0/2/0.1
insf: Installing special files for mptinstance 2 address 0/1/1/0
insf: Installing special files for mptinstance 3 address 0/1/1/1
insf: Installing special files for esdiskinstance 3 address 64000/0xfa00/0x0
insf: Installing special files for esdiskinstance 4 address 64000/0xfa00/0x1
insf: Installing special files for esdiskinstance 5 address 64000/0xfa00/0x2
insf: Installing special files for pseudodriver cn
insf: Installing special files for pseudodriver mm
insf: Installing special files for pseudo driverarp
insf: Installing special files for pseudodriver ptym
insf: Installing special files for pseudodriver ptys
insf: Installing special files for pseudodriver devkrs
insf: Installing special files for pseudodriver dmem
insf: Installing special files for pseudodriver ip
insf: Installing special files for pseudodriver dev_config
insf: Installing special files for pseudodriver strlog
insf: Installing special files for pseudodriver sad
insf: Installing special files for pseudodriver nuls
insf: Installing special files for pseudodriver rawip
insf: Installing special files for pseudodriver stcpmap
insf: Installing special files for pseudodriver tcp
insf: Installing special files for pseudodriver asyncdsk
insf: Installing special files for pseudo drivertelm
insf: Installing special files for pseudodriver tels
insf: Installing special files for pseudodriver tlclts
insf: Installing special files for pseudodriver echo
insf: Installing special files for pseudodriver tlcots
insf: Installing special files for pseudodriver tlcotsod
insf: Installing special files for pseudodriver dlpi
insf: Installing special files for pseudodriver udp
insf: Installing special files for pseudodriver ptm
insf: Installing special files for pseudodriver pts
insf: Installing special files for pseudodriver beep
insf: Installing special files for pseudodriver framebuf
insf: Installing special files for pseudodriver klog
insf: Installing special files for pseudodriver sy
insf: Installing special files for pseudodriver kepd
insf: Installing special files for pseudodriver diag2
insf: Installing special files for pseudodriver root
insf: Installing special files for pseudodriver escsi
# pvcreate -B /dev/rdsk/c3t2d0s2
pvcreate: The physical volume alreadybelongs to a volume group
# pvcreate -fB /dev/rdsk/c3t2d0s2
Creating \"/etc/lvmtab_p\".
Physical volume\"/dev/rdsk/c3t2d0s2\" has been successfully created.
# mkboot -e -l /dev/dsk/c3t2d0
# vgextend /dev/vg00 /dev/dsk/c3t2d0s2
Volume group \"/dev/vg00\" has beensuccessfully extended.
Volume Group configuration for /dev/vg00has been saved in /etc/lvmconf/vg00.conf
# strings /etc/lvmtab
/dev/vg00
/dev/disk/disk3_p2
/dev/dsk/c3t2d0s2
# bdf
Filesystem
kbytes
used
avail %used Mounted on
/dev/vg00/lvol3
1048576
166104
875648
16% /
/dev/vg00/lvol1
1835008
313648 1509576
17% /stand
/dev/vg00/lvol8
8912896 1026472 7824896
12% /var
/dev/vg00/lvol7
3883008 3037984
838488
78% /usr
/dev/vg00/lvol4
524288
21280
499216
4% /tmp
/dev/vg00/lvol6
6160384 4856688 1293584
79% /opt
/dev/vg00/lvol5
114688
5792
108056
5% /home
DevFS
3
3
0
100% /dev/deviceFileSystem
# lvextend -m 1 /dev/vg00/lvol1/dev/dsk/c3t2d0s2
The newly allocated mirrors are now beingsynchronized. This operation will
take some time. Please wait ....
Logical volume \"/dev/vg00/lvol1\"has been successfully extended.
Volume Group configuration for /dev/vg00has been saved in /etc/lvmconf/vg00.conf
# lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c3t2d0s2
The newly allocated mirrors are now beingsynchronized. This operation will
take some time. Please wait ....
Logical volume \"/dev/vg00/lvol3\"has been successfully extended.
Volume Group configuration for /dev/vg00has been saved in /etc/lvmconf/vg00.conf
# lvextend -m 1 /dev/vg00/lvol4/dev/dsk/c3t2d0s2
The newly allocated mirrors are now beingsynchronized. This operation will
take some time. Please wait ....
Logical volume \"/dev/vg00/lvol4\"has been successfully extended.
Volume Group configuration for /dev/vg00has been saved in /etc/lvmconf/vg00.conf
# lvextend -m 1 /dev/vg00/lvol5/dev/dsk/c3t2d0s2
The newly allocated mirrors are now beingsynchronized. This operation will
take some time. Please wait ....
Logical volume \"/dev/vg00/lvol5\"has been successfully extended.
Volume Group configuration for /dev/vg00has been saved in /etc/lvmconf/vg00.conf
# lvextend -m 1 /dev/vg00/lvol6/dev/dsk/c3t2d0s2
The newly allocated mirrors are now beingsynchronized. This operation will
take some time. Please wait ....
Logical volume \"/dev/vg00/lvol6\"has been successfully extended.
Volume Group configuration for /dev/vg00has been saved in /etc/lvmconf/vg00.conf
# lvextend -m 1 /dev/vg00/lvol7/dev/dsk/c3t2d0s2
The newly allocated mirrors are now beingsynchronized. This operation will
take some time. Please wait ....
Logical volume \"/dev/vg00/lvol7\"has been successfully extended.
Volume Group configuration for /dev/vg00has been saved in /etc/lvmconf/vg00.conf
# lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c3t2d0s2
The newly allocated mirrors are now beingsynchronized. This operation will
take some time. Please wait ....
Logical volume \"/dev/vg00/lvol8\"has been successfully extended.
Volume Group configuration for /dev/vg00has been saved in /etc/lvmconf/vg00.conf
# lvlnboot -Rv
Boot Definitions for Volume Group/dev/vg00:
Physical Volumes belonging in Root VolumeGroup:
/dev/disk/disk3_p2 -- Boot Disk
/dev/dsk/c3t2d0s2 -- Boot Disk
Boot: lvol1
on:
/dev/disk/disk3_p2
/dev/dsk/c3t2d0s2
Root: lvol3
on:
/dev/disk/disk3_p2
/dev/dsk/c3t2d0s2
Swap: lvol2
on:
/dev/disk/disk3_p2
Dump: lvol2
on:
/dev/disk/disk3_p2, 0
Volume Group configuration for /dev/vg00has been saved in /etc/lvmconf/vg00.conf
# vi /stand/bootconf
\"/stand/bootconf\" 2 lines, 43characters
# more /stand/bootconf
l
/dev/disk/disk3_p2
l
/dev/dsk/c3t2d0s2
# efi_ls -d /dev/rdsk/c3t2d0s1
FileName
Last Modified
Size
EFI/
11/11/2009
0
startup.nsh
11/13/2009
296
total space 523218944 bytes, free space520212480 bytes
# efi_cp -d /dev/rdsk/c3t2d0s1 -u/EFI/HPUX/AUTO /tmp/AUTO
# vi /tmp/AUTO
\"/tmp/AUTO\" 1 line, 16 characters
# more /tmp/AUTO
boot vmunix -lq
# ioscan -funC disk
Class
I
H/W Path
Driver S/W State
H/W Type
Description
=======================================================================
disk
2
0/0/2/0.0.0.0
sdisk
CLAIMED
DEVICE
TEAC
DV-28E-C
/dev/dsk/c0t0d0
/dev/rdsk/c0t0d0
disk
0
0/1/1/0.0.0
sdisk
CLAIMED
DEVICE
SEAGATE ST373207LSUN72G
/dev/dsk/c2t0d0
/dev/dsk/c2t0d0s2
/dev/rdsk/c2t0d0
/dev/rdsk/c2t0d0s2
/dev/dsk/c2t0d0s1
/dev/dsk/c2t0d0s3
/dev/rdsk/c2t0d0s1
/dev/rdsk/c2t0d0s3
disk
1
0/1/1/1.2.0
sdisk
CLAIMED
DEVICE
SEAGATE ST373207LSUN72G
/dev/dsk/c3t2d0
/dev/dsk/c3t2d0s2
/dev/rdsk/c3t2d0
/dev/rdsk/c3t2d0s2
/dev/dsk/c3t2d0s1
/dev/dsk/c3t2d0s3
/dev/rdsk/c3t2d0s1
/dev/rdsk/c3t2d0s3
# efi_cp -d /dev/rdsk/c2t0d0s1 /tmp/AUTO/EFI/HPUX/AUTO
# efi_cp -d /dev/rdsk/c3t2d0s1 /tmp/AUTO/EFI/HPUX/AUTO
# setboot -a 0/1/1/0.0.0
# setboot -b on
# setboot
Primary bootpath : 0/1/1/0.0x0.0x0(/dev/rdisk/disk3)
HA Alternate bootpath : 0/0/2/0.0.0x0.0x0(/dev/rdisk/disk5)
Alternate bootpath : 0/1/1/0.0x0.0x0(/dev/rdisk/disk3)
Autoboot is ON (enabled)
# reboot
Shutdown at 16:44 (in 0 minutes)
*** FINAL System shutdown message (rx26) *** |
|