1752775 Members
5807 Online
108789 Solutions
New Discussion юеВ

mirror problem?

 
SOLVED
Go to solution
YAQUB_1
Respected Contributor

mirror problem?

Hi,

I have created mirror my physical boot disk, my systems info rp3440 & OS EOE ver. 11.23. Please see the below command what I have done:

----------------------------------------------
root@wctdibkp [/]
# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 589824 320304 267496 54% /
/dev/vg00/lvol1 314736 78272 204984 28% /stand
/dev/vg00/lvol8 4718592 2010856 2686640 43% /var
/dev/vg00/lvol11 131072 64985 61961 51% /var/opt/perf/datafiles
/dev/vg00/lvol10 4194304 2457983 1627819 60% /var/opt/omni
/dev/vg00/lvol9 2097152 16982 1950167 1% /var/adm/crash
/dev/vg00/lvol7 4194304 1705240 2469648 41% /usr
/dev/vg00/lvol4 524288 108352 412760 21% /tmp
/dev/vg00/lvol6 4194304 2614544 1567424 63% /opt
/dev/vg00/lvol12 2097152 843935 1174899 42% /opt/omni
/dev/vg00/lvol5 229376 8744 218968 4% /home
/dev/vg00/lvolappl 52428800 12469662 37461695 25% /appl

root@wctdibkp [/]
# vgdisplay -v vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 13
Open LV 13
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4384
VGDA 4
PE Size (Mbytes) 32
Total PE 8748
Alloc PE 2823
Free PE 5925
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 320
Current LE 10
Allocated PE 10
Used PV 1

LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 16384
Current LE 512
Allocated PE 512
Used PV 1

LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 576
Current LE 18
Allocated PE 18
Used PV 1

LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 512
Current LE 16
Allocated PE 16
Used PV 1

LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 224
Current LE 7
Allocated PE 7
Used PV 1

LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 4096
Current LE 128
Allocated PE 128
Used PV 1

LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 4096
Current LE 128
Allocated PE 128
Used PV 1

LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 4608
Current LE 144
Allocated PE 144
Used PV 1

LV Name /dev/vg00/lvol9
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 64
Allocated PE 64
Used PV 1

LV Name /dev/vg00/lvol10
LV Status available/syncd
LV Size (Mbytes) 4096
Current LE 128
Allocated PE 128
Used PV 1

LV Name /dev/vg00/lvol11
LV Status available/syncd
LV Size (Mbytes) 128
Current LE 4
Allocated PE 4
Used PV 1

LV Name /dev/vg00/lvol12
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 64
Allocated PE 64
Used PV 1

LV Name /dev/vg00/lvolappl
LV Status available/syncd
LV Size (Mbytes) 51200
Current LE 1600
Allocated PE 1600
Used PV 1


--- Physical volumes ---
PV Name /dev/dsk/c2t1d0
PV Status available
Total PE 4374
Free PE 1551
Autoswitch On

PV Name /dev/dsk/c2t0d0
PV Status available
Total PE 4374
Free PE 4374
Autoswitch On



root@wctdibkp [/]
# ioscan -fnC 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-N
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 146 GST3146707LC
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 146 GST3146707LC
/dev/dsk/c2t1d0 /dev/rdsk/c2t1d0

root@wctdibkp [/]
# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c2t1d0
/dev/dsk/c2t0d0

root@wctdibkp [/]
# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c2t1d0 (0/1/1/0.1.0) -- Boot Disk
/dev/dsk/c2t0d0 (0/1/1/0.0.0)
Boot: lvol1 on: /dev/dsk/c2t1d0
Root: lvol3 on: /dev/dsk/c2t1d0
Swap: lvol2 on: /dev/dsk/c2t1d0
Dump: lvol2 on: /dev/dsk/c2t1d0, 0

root@wctdibkp [/]
# pvcreate -B /dev/rdsk/c2t0d0
pvcreate: The physical volume already belongs to a volume group

root@wctdibkp [/]
# vgextend /dev/vg00 /dev/dsk/c2t0d0
vgextend: The physical volume "/dev/dsk/c2t0d0" is already recorded in the "/etc/lvmtab" file.

root@wctdibkp [/]
# mkboot -a "hpux -lq (0/1/1/0.1.0;0)/stand/vmunix" /dev/rdsk/c2t1d0

root@wctdibkp [/]
# mkboot -a "hpux -lq (0/1/1/0.0.0;0)/stand/vmunix" /dev/rdsk/c2t0d0
-a specified but no current boot area on /dev/rdsk/c2t0d0

root@wctdibkp [/]
#
----------------------------------------------

Can you any one help me, how can I resolve above problem.

Thanks--Yaqub.
8 REPLIES 8
Jollyjet
Valued Contributor

Re: mirror problem?

Hi,
Your both the disk's are used for vg00 in this case you can't create a mirror disk.
confirm first what is the space you required for your logical volumes and try to create all the logical volume in the same disk then you can proceed to create a mirror disk.

Your step's are right to create a mirror disk .
Matti_Kurkela
Honored Contributor
Solution

Re: mirror problem?

/dev/dsk/c2t0d0 is already a member of volume group vg00.

The problem is: when /dev/rdsk/c2t0d0 was pvcreate'd the first time, it was done with "pvcreate /dev/rdsk/c2t0d0", not "pvcreate -B /dev/rdsk/c2t0d0". So there is no space for boot area in the beginning of c2t0d0, and mkboot cannot do anything about it.

The PV status of c2t0d0 shows it's still not used, i.e. Total PE and Free PE are equal:
PV Name /dev/dsk/c2t0d0
PV Status available
Total PE 4374
Free PE 4374
Autoswitch On

This means you can undo everything that's done to /dev/dsk/c2t0d0 so far without losing any data.

vgreduce /dev/vg00 /dev/dsk/c2t0d0
pvremove /dev/rdsk/c2t0d0

Now you can start over using your procedure.
MK
Asif Sharif
Honored Contributor

Re: mirror problem?

Assalam-O-Alaiakum Yaqub,

I agreed with matti,

this is "/dev/dsk/c2t1d0" having your OS, but the disk"/dev/dsk/c2t0d0" is still free.
--- Physical volumes ---
PV Name /dev/dsk/c2t1d0
PV Status available
Total PE 4374
Free PE 1551
Autoswitch On

PV Name /dev/dsk/c2t0d0
PV Status available
Total PE 4374
Free PE 4374
Autoswitch On

So you can use vgreduce,pvremove commands to free this from VG00 and then add it according to what you are doing.

Thanks and regards,
Asif Sharif
Regards,
Asif Sharif
Akram Shaik
Frequent Advisor

Re: mirror problem?

# vgreduce /dev/vg00 /dev/dsk/c2t0d0
# pvcreate -fB /dev/rdsk/c2t0d0
# vgextend /dev/vg00 /dev/dsk/c2t0d0
# mkboot "hpux -lq" /dev/dsk/c2t0d0

This will do.
when everyting is coming your way then you are in the wrong lane
YAQUB_1
Respected Contributor

Re: mirror problem?

Hi All,

Thanks all of your reply, I have resolve this issue following this command:

# mkboot /dev/rdsk/c2t0d0

# mkboot -a "hpux (0/1/1/0.1.0.0.0.0;0)/stand/vmunix" /dev/rdsk/c2t0d0

But, now I am facing another problem, when I have executed below this command show the error massage:

# lifcp /dev/dsk/c2t0d0
lifcp: AUTO does not exist.

Many thanks; I appreciate if anyone can answer my question.

Regards-Yaqub.
Jollyjet
Valued Contributor

Re: mirror problem?

Hi,
what is the boot string of the boot disk?

Check with the command:

lifcp /dev/rdsk/cXtXdX:AUTO -

Also post the output of command:

lvlnboot -v

setboot
Jarle Bjorgeengen
Trusted Contributor

Re: mirror problem?

Don't forget to actually mirror your logical volumes too :-) with

for i in (all lvols)
do
lvextend -m 1 ${i} /dev/dsk/c2t0d0
done



YAQUB_1
Respected Contributor

Re: mirror problem?

Hi All,

Thanks for all of your's contribution.

Have a Nice Time,

Regards-Yaqub