Re: how i locate swap area
- From: Andrea <netsecurity@xxxxxxxxxx>
- Date: Wed, 08 Aug 2007 00:41:45 -0700
On 7 Ago, 15:02, r...@xxxxxxxxxxxxxxxxxx (root) wrote:
In article <1186488770.418168.107...@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Andrea <netsecur...@xxxxxxxxxx> writes:
If you have two disks, I assume you have them mirrored. You can see
what you have with the command 'vgdisplay -v vg00'. This should you show
all logical volumes for your root volume group vg00, amomg them
lvol3 (root /), lvol1 (/stand) and lvol2 (primary swap). At the bottom
of the output you should see which disks are in this volume group (vg00).
Note that if your disks are mirrored, then all your logical volumes including
the swap should be mirrored.
Only if you need
more swap space and create another swap logical volume (say lvol9) then
it is recommended to put it on another disk if possible (if you have only
2 disks which are mirrored, you have no choice of course and must create it
nevertheless on the same disks). Hope this helps clarify the situation a bit.
thanks for your answer.
But now i have some doubts for mirroring, because if i try this:
/dev/dsk $ lvdisplay -v /dev/vg00/lvol3 (my root /)
--- Logical volumes ---
LV Name /dev/vg00/lvol3
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0 <----------------- why 0 ?
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 4096
Current LE 128
Allocated PE 128
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation strict/contiguous
IO Timeout (Seconds) default
--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/disk/disk3_p2 128 128
Why Mirror Copies is 0? this is for all logical volumes.
And also, what type of device is /dev/disk/disk3 ?
thanks very much!
Hello Andreas,
ok, appearantly you have already HP-UX 11.31. There you have
hardwarepath-independent disk naming, i.e disk3 instead of /dev/dsk/c0t6d0
for example.
And yes, it seems that you have no disk mirroring.
Either you make a root disk mirror with the second disk, or else you can
use it for another use (appl data, more swap, ...).
I append a "cookbook" for mirroring below.
Yours, Hans Martin.
--
How to mirror the root disk [IA64/Itanium with 11.23]
1. check if the secondary root disk is available:
#ioscan -e -fnkC disk | more
Class I H/W Path Driver S/W State H/W Type Description
============================================================================
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 73.4GST373454
LC
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
/dev/dsk/c2t0d0s1 /dev/rdsk/c2t0d0s1
/dev/dsk/c2t0d0s2 /dev/rdsk/c2t0d0s2
/dev/dsk/c2t0d0s3 /dev/rdsk/c2t0d0s3
Acpi(HWP0002,100)/Pci(1|0)/Scsi(Pun0,Lun0)/HD(Part1,Sig1E38911E-E82A-11D
B-8002-D6217B60E588)/\EFI\HPUX\HPUX.EFI
disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 73.4GST373454
LC
/dev/dsk/c2t1d0 /dev/rdsk/c2t1d0
/dev/dsk/c2t1d0s1 /dev/rdsk/c2t1d0s1
/dev/dsk/c2t1d0s2 /dev/rdsk/c2t1d0s2
/dev/dsk/c2t1d0s3 /dev/rdsk/c2t1d0s3
Acpi(HWP0002,100)/Pci(1|0)/Scsi(Pun1,Lun0)/HD(Part1,Sig59320248-E28D-11D
B-8002-D6217B60E588)/\EFI\HPUX\HPUX.EFI
#vgdisplay -v vg00
.
.
--- Physical volumes ---
PV Name /dev/dsk/c2t1d0s2
PV Status available
Total PE 4318
Free PE 2692
Autoswitch On
--> this is the current working root disk, so /dev/dsk/c2t0d0 is the one we
need for mirroring!
2. create a partiotion discription file:
#vi /tmp/partitionfile
3
EFI 500MB
HPUX 100%
HPSP 400MB
3. partition the disk
# idisk -wf /tmp/partitionfile /dev/rdsk/c2t0d0
idisk version: 1.31
********************** 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 = 0x9c7b2d82
MyLbaLo = 0x1
AlternateLbaLo = 0x88bb991
FirstUsableLbaLo = 0x22
LastUsableLbaLo = 0x88bb96e
Disk GUID = cc9c30f0-e8d7-11db-8001-d6217b60e588
PartitionEntryLbaLo = 0x2
NumberOfPartitionEntries = 0xc
SizeOfPartitionEntry = 0x80
PartitionEntryArrayCRC32 = 0x5c2e384b
Primary Partition Table (in 512 byte blocks):
Partition 1 (EFI):
Partition Type GUID = c12a7328-f81f-11d2-ba4b-00a0c93ec93b
Unique Partition GUID = cc9c3370-e8d7-11db-8002-d6217b60e588
Starting Lba = 0x22
Ending Lba = 0xfa021
Partition 2 (HP-UX):
Partition Type GUID = 75894c1e-3aeb-11d3-b7c1-7b03a0000000
Unique Partition GUID = cc9c338e-e8d7-11db-8003-d6217b60e588
Starting Lba = 0xfa022
Ending Lba = 0x87f396d
Partition 3 (HPSP):
Partition Type GUID = e2a1e728-32e3-11d6-a682-7b03a0000000
Unique Partition GUID = cc9c33ac-e8d7-11db-8004-d6217b60e588
Starting Lba = 0x87f396e
Ending Lba = 0x88bb96d
EFI Alternate Header:
Signature = EFI PART
Revision = 0x10000
HeaderSize = 0x5c
HeaderCRC32 = 0xab009517
MyLbaLo = 0x88bb991
AlternateLbaLo = 0x1
FirstUsableLbaLo = 0x22
LastUsableLbaLo = 0x88bb96e
Disk GUID = cc9c30f0-e8d7-11db-8001-d6217b60e588
PartitionEntryLbaLo = 0x88bb970
NumberOfPartitionEntries = 0xc
SizeOfPartitionEntry = 0x80
PartitionEntryArrayCRC32 = 0x5c2e384b
Alternate Partition Table (in 512 byte blocks):
Partition 1 (EFI):
Partition Type GUID = c12a7328-f81f-11d2-ba4b-00a0c93ec93b
Unique Partition GUID = cc9c3370-e8d7-11db-8002-d6217b60e588
Starting Lba = 0x22
Ending Lba = 0xfa021
Partition 2 (HP-UX):
Partition Type GUID = 75894c1e-3aeb-11d3-b7c1-7b03a0000000
Unique Partition GUID = cc9c338e-e8d7-11db-8003-d6217b60e588
Starting Lba = 0xfa022
Ending Lba = 0x87f396d
Partition 3 (HPSP):
Partition Type GUID = e2a1e728-32e3-11d6-a682-7b03a0000000
Unique Partition GUID = cc9c33ac-e8d7-11db-8004-d6217b60e588
Starting Lba = 0x87f396e
Ending Lba = 0x88bb96d
Legacy MBR (MBR Signatures in little endian):
MBR Signature = 0x64309ccc
Protective MBR
4. create new device files
# insf -e -Cdisk
5. initialize FAT Filesystem for EFI Partition
#efi_fsinit -d /dev/rdsk/c2t0d0s1
6. use mkboot to format EFI Partition and check it
#mkboot -e -l /dev/rdsk/c2t0d0
#efi_ls -d /dev/rdsk/c2t0d0s1
FileName Last Modified Size
EFI/ 4/12/2007 0
STARTUP.NSH 4/12/2007 296
total space 523251712 bytes, free space 519856128 bytes
#lifls -l /dev/rdsk/c2t0d0s2
volume ISL10 data size 7984 directory size 8 06/04/19 14:02:34
filename type start size implement created
===============================================================
ISL -12800 584 242 0 06/04/19 14:02:34
AUTO -12289 832 1 0 06/04/19 14:02:34
HPUX -12928 840 1024 0 06/04/19 14:02:34
PAD -12290 1864 1468 0 06/04/19 14:02:34
LABEL BIN 3336 8 0 07/04/12 11:33:00
7. check the content of AUTO file on EFI partition:
#efi_cp -d /dev/rdsk/c2t0d0s1 -u /EFI/HPUX/AUTO /tmp/x; cat /tmp/x
boot vmunix
8. specify the -lq option that systenm boots up without interruption in case of disk failure
#mkboot -a "boot vmunix -lq" /dev/rdsk/c2t0d0
#mkboot -a "boot vmunix -lq" /dev/rdsk/c2t1d0
9. copy the HP service partition
#dd if=/dev/rdsk/c2t1d0s3 of=/dev/rdsk/c2t0d0s3 bs=1024k
400+0 records in
400+0 records out
10. initialize the LVM partition (s2) and add it to vg00
#pvcreate (-f) -B /dev/rdsk/c2t0d0s2
Physical volume "/dev/rdsk/c2t0d0s2" has been successfully created.
#vgextend vg00 /dev/dsk/c2t0d0s2
Volume group "vg00" has been successfully extended.
11. mirror the LV's to the s2 partition
(important to preserve the numerical classification)
#for i in lvol1 lvol2 lvol3 lvol4 lvol5 lvol6 lvol7 lvol8> do lvextend -m 1 /dev/vg00/$i /dev/dsk/c2t0d0s2
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.
.
.
.
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
12. Verify that the new disk was added to vg00, and the lv's are in sync
# vgdisplay -v vg00
.
.
--- Physical volumes ---
PV Name /dev/dsk/c2t1d0s2
PV Status available
Total PE 4318
Free PE 2692
Autoswitch
...
leggi tutto
thanks very much!
.
- References:
- how i locate swap area
- From: Andrea
- Re: how i locate swap area
- From: root
- Re: how i locate swap area
- From: Andrea
- Re: how i locate swap area
- From: root
- how i locate swap area
- Prev by Date: Re: HP-UX CMW
- Next by Date: Q: HP-UX 11.11 SCSI "lbolt"
- Previous by thread: Re: how i locate swap area
- Next by thread: shared memory reguion
- Index(es):
Relevant Pages
|
Loading