Operating System - HP-UX
1847394 Members
3329 Online
110264 Solutions
New Discussion

Re: Disk Structure In LVM

 
SOLVED
Go to solution
rajasekar.m
Advisor

Disk Structure In LVM

# ioscan -funC disk
Class I H/W Path Driver S/W State H/W Type Description
============================================================================
disk 0 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-B
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 146 GMAP3147NC
disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 146 GMAX3147NC
disk 3 0/1/1/1.2.0 sdisk CLAIMED DEVICE HP 146 GMAP3147NC
[rx260-09]/stand
# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c2t1d0s2

iam unable to the find the c#t#d# in ioscan output.

please tel me the commands to findout, in which disk lvm is cionfigured, what is the concept behind this.

explain me in detail
thanks
16 REPLIES 16
SKR_1
Trusted Contributor

Re: Disk Structure In LVM

Do

insf -eC disk
ioscan -fnC disk

Thanks

SKR
Torsten.
Acclaimed Contributor

Re: Disk Structure In LVM

What is your OS version?

# uname -a

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
rajasekar.m
Advisor

Re: Disk Structure In LVM

# insf -eC disk
insf: Installing special files for sdisk instance 0 address 0/0/2/0.0.0.0
insf: Installing special files for sdisk instance 1 address 0/1/1/0.0.0
insf: Installing special files for sdisk instance 2 address 0/1/1/0.1.0
insf: Installing special files for sdisk instance 3 address 0/1/1/1.2.0
[rx260-09]/stand
# ioscan -funC disk
Class I H/W Path Driver S/W State H/W Type Description
============================================================================
disk 0 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-B
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 146 GMAP3147NC
disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 146 GMAX3147NC
disk 3 0/1/1/1.2.0 sdisk CLAIMED DEVICE HP 146 GMAP3147NC
[rx260-09]/stand
# uname -a
HP-UX rx260-09 B.11.23 U ia64 2666161903 unlimited-user license
[rx260-09]/stand
SKR_1
Trusted Contributor

Re: Disk Structure In LVM

Paste the output

idisk /dev/rdsk/c2t1d0s2

Thanks

SKR
SKR_1
Trusted Contributor

Re: Disk Structure In LVM

sorry for the first command

Please run below command

idisk /dev/rdsk/c2t1d0

Thanks

SKR
Steve Reynolds
Frequent Advisor

Re: Disk Structure In LVM

Are you trying to create a mirror disk
for vg00?
Torsten.
Acclaimed Contributor

Re: Disk Structure In LVM

I have always doubts about the "u" switch - what result do you get from

# ioscan -fn

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
rajasekar.m
Advisor

Re: Disk Structure In LVM

# idisk /dev/rdsk/c2t1d0
idisk version: 1.32

EFI Primary Header:
Signature = EFI PART
Revision = 0x10000
HeaderSize = 0x5c
HeaderCRC32 = 0x96ff86ee
MyLbaLo = 0x1
MyLbaHi = 0x0
AlternateLbaLo = 0x1117732f
AlternateLbaHi = 0x0
FirstUsableLbaLo = 0x22
FirstUsableLbaHi = 0x0
LastUsableLbaLo = 0x1117730c
LastUsableLbaHi = 0x0
Disk GUID = 0a348b54-731c-11dd-8001-d6217b60e588
PartitionEntryLbaLo = 0x2
PartitionEntryLbaHi = 0x0
NumberOfPartitionEntries = 0xc
SizeOfPartitionEntry = 0x80
PartitionEntryArrayCRC32 = 0xcbf15180

Primary Partition Table (in 512 byte blocks):
Partition 1 (EFI):
Partition Type GUID = c12a7328-f81f-11d2-ba4b-00a0c93ec93b
Unique Partition GUID = 0a348d0c-731c-11dd-8002-d6217b60e588
Starting Lba Lo = 0x22
Starting Lba Hi = 0x0
Ending Lba Lo = 0xfa021
Ending Lba Hi = 0x0
Partition 2 (HP-UX):
Partition Type GUID = 75894c1e-3aeb-11d3-b7c1-7b03a0000000
Unique Partition GUID = 0a348d2a-731c-11dd-8003-d6217b60e588
Starting Lba Lo = 0xfa022
Starting Lba Hi = 0x0
Ending Lba Lo = 0x110af021
Ending Lba Hi = 0x0
Partition 3 (HPSP):
Partition Type GUID = e2a1e728-32e3-11d6-a682-7b03a0000000
Unique Partition GUID = 0a348d48-731c-11dd-8004-d6217b60e588
Starting Lba Lo = 0x110af022
Starting Lba Hi = 0x0
Ending Lba Lo = 0x11177021
Ending Lba Hi = 0x0

EFI Alternate Header:
Signature = EFI PART
Revision = 0x10000
HeaderSize = 0x5c
HeaderCRC32 = 0xdf65ccdc
MyLbaLo = 0x1117732f
MyLbaHi = 0x0
AlternateLbaLo = 0x1
AlternateLbaHi = 0x0
FirstUsableLbaLo = 0x22
FirstUsableLbaHi = 0x0
LastUsableLbaLo = 0x1117730c
LastUsableLbaHi = 0x0
Disk GUID = 0a348b54-731c-11dd-8001-d6217b60e588
PartitionEntryLbaLo = 0x1117730e
PartitionEntryLbaHi = 0x0
NumberOfPartitionEntries = 0xc
SizeOfPartitionEntry = 0x80
PartitionEntryArrayCRC32 = 0xcbf15180

Alternate Partition Table (in 512 byte blocks):
Partition 1 (EFI):
Partition Type GUID = c12a7328-f81f-11d2-ba4b-00a0c93ec93b
Unique Partition GUID = 0a348d0c-731c-11dd-8002-d6217b60e588
Starting Lba Lo = 0x22
Starting Lba Hi = 0x0
Ending Lba Lo = 0xfa021
Ending Lba Hi = 0x0
Partition 2 (HP-UX):
Partition Type GUID = 75894c1e-3aeb-11d3-b7c1-7b03a0000000
Unique Partition GUID = 0a348d2a-731c-11dd-8003-d6217b60e588
Starting Lba Lo = 0xfa022
Starting Lba Hi = 0x0
Ending Lba Lo = 0x110af021
Ending Lba Hi = 0x0
Partition 3 (HPSP):
Partition Type GUID = e2a1e728-32e3-11d6-a682-7b03a0000000
Unique Partition GUID = 0a348d48-731c-11dd-8004-d6217b60e588
Starting Lba Lo = 0x110af022
Starting Lba Hi = 0x0
Ending Lba Lo = 0x11177021
Ending Lba Hi = 0x0

Legacy MBR (MBR Signatures in little endian):
MBR Signature = 0xe68a340a

Protective MBR
rajasekar.m
Advisor

Re: Disk Structure In LVM

iam trying to mirror root disk and also creating seprate new VG in another disk..

so iam i need of disk path to create the VG's
Steve Reynolds
Frequent Advisor
Solution

Re: Disk Structure In LVM


How to mirror vg00 using LVM on IA with 11.23
DocId: KBRC00014526 Updated: 1/12/06



NOTE: There are differences in procedure between 11.22 and 11.23.
Please refer to KBRC00011156 for B.11.22.


Create the system, OS, and service partitions.

# cat </tmp/partitionfile
> 3
> EFI 500MB
> HPUX 100%
> HPSP 400MB
> EOF
idisk -wf /partitionfile /dev/rdsk/c3t2d0
idisk version: 1.31
********************** WARNING ***********************
If you continue you may destroy all data on this disk.
Do you wish to continue(yes/no)? yes <-- Answer "yes" and not "y"

3. Create device files needed for the new partitions.
# insf -eC disk

4. Verify the partition table.

# idisk /dev/rdsk/c3t2d0

5. Verify that the device files were created properly.

# ioscan -efnC disk --> c3t2d0 is 0/1/1/1.2.0

6. Initialize the efi partition for use.

# efi_fsinit -d /dev/rdsk/c3t2d0s1

7. Populate the /efi/hpux/ directory in the new EFI system partition.

# mkboot -e -l /dev/rdsk/c3t2d0

8. Change the auto file for the mirror to boot without quorum.
NOTE: Using "s1"

# echo "boot vmunix -lq" > /tmp/AUTO.lq
# efi_cp -d /dev/rdsk/c3t2d0s1 /tmp/AUTO.lq /EFI/HPUX/AUTO


Verify the contents of the auto file on the primary and the mirror.
NOTE: Using "s1"

# efi_cp -d /dev/rdsk/c2t1d0s1 -u /EFI/HPUX/AUTO /tmp/AUTO.pri
# efi_cp -d /dev/rdsk/c3t2d0s1 -u /EFI/HPUX/AUTO /tmp/AUTO.alt
# cat /tmp/AUTO.pri
# cat /tmp/AUTO.alt

10. Add the new partition to vg00.
NOTE: Using "s2"

# pvcreate -fB /dev/rdsk/c3t2d0s2
# vgextend vg00 /dev/dsk/c3t2d0s2

11. Mirror all logical volumes in vg00.
NOTE: Using "s2"

# lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c3t2d0s2
# lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c3t2d0s2
# lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c3t2d0s2
.
.
.
# lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c3t2d0s2

12. Add the new disk to /stand/bootconf.
NOTE: Using "s2"

# echo "l /dev/dsk/c3t2d0s2" >> /stand/bootconf

13. Verify that the new disk was added to vg00, and the lv's are in sync.

# vgdisplay -v vg00

14. Verify that the BDRA was updated properly. Take note of the HW paths for
step 15.

# lvlnboot -v

15. Add EFI primary and high availability boot path menu entries.

# setboot -p 0/1/1/0.1.0 <-- Set primary disk
# setboot -h 0/1/1/1.2.0 <-- Set mirror disk
# setboot -b on <-- Set autoboot on

16. Verify that the primary and mirror boot paths are configured properly.

# setboot

17. Test the new mirror by booting off of it.

# shutdown -r -y 0

18. 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/1.2.0
EFI Shell [Built-in]

20. 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.1.2.0

21. Remove temporary files.

# rm /tmp/partitionfile /tmp/AUTO*



rajasekar.m
Advisor

Re: Disk Structure In LVM

c3t2d0 is 0/1/1/1.2.0

how to find the disk path steve..

also can i have ur gmail id...
Steve Reynolds
Frequent Advisor

Re: Disk Structure In LVM

The c3t2d0 is merely an example.
It does not correspond to your environment.

You have to pick the disk you want to use.
Torsten.
Acclaimed Contributor

Re: Disk Structure In LVM

The "idisk" output looks good - how about the "ioscan -fn" now?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
SKR_1
Trusted Contributor

Re: Disk Structure In LVM

Hi Rajasekar,

From when u r facing this device files problem. Have you tried to take an reboot of the server to resolve this problem?

Main problem is that you are not able to see device files. Also for mirroring purpose you can refer the attached docs

Thanks

SKR
N_M
Occasional Advisor

Re: Disk Structure In LVM

Just try the following commands.

1. ioscan -fnC disk
2. insf -C disk
3. ioscan -fnC disk

Should be able to create device files and would show in ioscan output as well.
SKR_1
Trusted Contributor

Re: Disk Structure In LVM

Paste the output of ioscan -fn

or take an reboot of the server if not tried yet.

Thanks

SKR