how i locate swap area - HP UX

This is a discussion on how i locate swap area - HP UX ; Hi, i've a hp-ux 11i with 2 disk /dev/dsk/c0t0d0 and /dev/dsk/c0t1d0, i configured it with one volume group (vg00) and some logical volume. I've created the swap device area on /dev/vg00/lvol2 (2Gb) . Now i have read on the Hp-Ux ...

+ Reply to Thread
Results 1 to 5 of 5

Thread: how i locate swap area

  1. how i locate swap area

    Hi,
    i've a hp-ux 11i with 2 disk /dev/dsk/c0t0d0 and /dev/dsk/c0t1d0, i
    configured it with one volume group (vg00) and some logical volume.
    I've created the swap device area on /dev/vg00/lvol2 (2Gb) .
    Now i have read on the Hp-Ux administrators paper that:
    "don't create a separate device swap area on the disk containing the
    primary swap area, because this causes excessive head movement on that
    disk and slows the system down."

    By default, the paper explain that the primary swap area is on the
    root disk (in my case root / is on /dev/vg00/lvol3)
    Therefore, how i know if the secondary swap area (lvol2) is on the
    same disk of the primary swap ? In detail, how i can see where is the
    logical volume device, in which of two disk ?

    thank very much for your support.

    bye
    Andrea


  2. Re: how i locate swap area

    In article <1186476410.723706.124770@b79g2000hse.googlegroups. com>,
    Andrea writes:
    > Hi,
    > i've a hp-ux 11i with 2 disk /dev/dsk/c0t0d0 and /dev/dsk/c0t1d0, i
    > configured it with one volume group (vg00) and some logical volume.
    > I've created the swap device area on /dev/vg00/lvol2 (2Gb) .
    > Now i have read on the Hp-Ux administrators paper that:
    > "don't create a separate device swap area on the disk containing the
    > primary swap area, because this causes excessive head movement on that
    > disk and slows the system down."
    >
    > By default, the paper explain that the primary swap area is on the
    > root disk (in my case root / is on /dev/vg00/lvol3)
    > Therefore, how i know if the secondary swap area (lvol2) is on the
    > same disk of the primary swap ? In detail, how i can see where is the
    > logical volume device, in which of two disk ?
    >
    > thank very much for your support.
    >
    > bye
    > Andrea
    >

    Hello Andrea,

    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.

    Yours, Hans Martin

  3. Re: how i locate swap area

    >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!


  4. Re: how i locate swap area

    In article <1186488770.418168.107050@r34g2000hsd.googlegroups. com>,
    Andrea 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 On

    PV Name /dev/dsk/c2t0d0s2
    PV Status available
    Total PE 4318
    Free PE 2692
    Autoswitch On


    #lvdisplay –v /dev/vg00/lvol1
    ..
    ..
    --- Distribution of logical volume ---
    PV Name LE on PV PE on PV
    /dev/dsk/c2t1d0s2 19 19
    /dev/dsk/c2t0d0s2 19 19

    --- Logical extents ---
    LE PV1 PE1 Status 1 PV2 PE2 Status 2
    00000 /dev/dsk/c2t1d0s2 00000 current /dev/dsk/c2t0d0s2 00000 current
    00001 /dev/dsk/c2t1d0s2 00001 current /dev/dsk/c2t0d0s2 00001 current
    00002 /dev/dsk/c2t1d0s2 00002 current /dev/dsk/c2t0d0s2 00002 current
    00003 /dev/dsk/c2t1d0s2 00003 current /dev/dsk/c2t0d0s2 00003 current
    00004 /dev/dsk/c2t1d0s2 00004 current /dev/dsk/c2t0d0s2 00004 current





    13. check the content of LABEL file

    #lvlnboot -v
    Boot Definitions for Volume Group /dev/vg00:
    Physical Volumes belonging in Root Volume Group:
    /dev/dsk/c2t1d0s2 (0/1/1/0.1.0) -- Boot Disk
    /dev/dsk/c2t0d0s2 (0/1/1/0.0.0) -- Boot Disk
    Boot: lvol1 on: /dev/dsk/c2t1d0s2
    /dev/dsk/c2t0d0s2
    Root: lvol3 on: /dev/dsk/c2t1d0s2
    /dev/dsk/c2t0d0s2
    Swap: lvol2 on: /dev/dsk/c2t1d0s2
    /dev/dsk/c2t0d0s2
    Dump: lvol2 on: /dev/dsk/c2t1d0s2, 0



    14. edit the /stand/bootconfig for the new boot disk

    #vi /stand/bootconf
    l /dev/dsk/c2t1d0s2
    l /dev/dsk/c2t0d0s2



    15. specify the mirrored disk as "HA Alternate bootpath"

    #setboot -p 0/1/1/0.1.0 --> primary boot path
    #setboot -h 0/1/1/0.0.0 --> HA alternate bootpath
    #setboot -a 0/1/1/0.0.0 --> alternate boot path



    16. check if setboot sequence is correct

    #setboot
    Primary bootpath : 0/1/1/0.1.0
    HA Alternate bootpath : 0/1/1/0.0.0
    Alternate bootpath : 0/1/1/0.0.0

    Autoboot is ON (enabled)



    Test the new mirror by booting off of it.

    #shutdown -r 0



    17. Select "HP-UX HA Alternate Boot" to test the mirror.

    EFI Boot Manager ver 1.10 [14.61] Firmware ver 2.21 [4334]
    Please select a boot option
    HP-UX Primary Boot: 0/1/1/0.1.0
    HP-UX HA Alternate Boot: 0/1/1/0.0.0
    EFI Shell [Built-in]


    18. Verify which disk/kernel you booted from.

    #grep "Boot device" /var/adm/syslog/syslog.log
    vmunix: Boot device's HP-UX HW path is: 0/1/1/0.0.0



  5. Re: how i locate swap area

    On 7 Ago, 15:02, r...@heron.bfi.admin.ch (root) wrote:
    > In article <1186488770.418168.107...@r34g2000hsd.googlegroups. com>,
    > Andrea 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!



+ Reply to Thread