Operating System - HP-UX
1838228 Members
5360 Online
110125 Solutions
New Discussion

Re: Mirror mounted with mistake.

 
SOLVED
Go to solution
Eberno
Regular Advisor

Mirror mounted with mistake.

My friends,

I mounted a mirror, but the same had an error. I didn´t mount in order of the LVM. What doing for fix of the same?
23 REPLIES 23
Torsten.
Acclaimed Contributor

Re: Mirror mounted with mistake.

Please give more information like error messages etc.

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!   
RAC_1
Honored Contributor

Re: Mirror mounted with mistake.

Explain in details. What exactly you are trying to do and what errors?
There is no substitute to HARDWORK
Eberno
Regular Advisor

Re: Mirror mounted with mistake.

I want to undo the mirror and I remake it, therefore don´t I mounted lvm in the order of 1 2 3 4 5.

Is this a problem?

The command setboot -a 1/0/0/1/0, this error:

#setboot -a 0/1/1/0.0.0
setboot: error accessing boot path - Invalid argument
Torsten.
Acclaimed Contributor

Re: Mirror mounted with mistake.

I guess I don't get it.

You have mirrored your boot disk and now you want to remove the mirror?

Your reason is, that you don't mirrored lvol1, lvol2 and lvol3 first?

Please confirm!

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!   
Eberno
Regular Advisor

Re: Mirror mounted with mistake.



Yes, I didn´t do in order.
Torsten.
Acclaimed Contributor

Re: Mirror mounted with mistake.

Forget "setoot" for this moment.

With you system running, you have to "lvreduce" every LVOL first. You need to know what disk device you want to remove:

(e.g. remove /dev/dsk/c0t1d0)

# lvremove -m 0 /dev/vg00/lvol1 /dev/dsk/c0t1d0

(for every LVOL)

Now "lxextend" again in a proper order.

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!   
Torsten.
Acclaimed Contributor

Re: Mirror mounted with mistake.

BTW, if you check your disks, it should look like this:

# pvdisplay -v /dev/dsk/c0t6d0 | more

--- Physical volumes ---
PV Name /dev/dsk/c0t6d0
VG Name /dev/vg00
PV Status available
Allocatable yes
VGDA 2
Cur LV 8
PE Size (Mbytes) 4
Total PE 2168
Free PE 105
Allocated PE 2063
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On

--- Distribution of physical volume ---
LV Name LE of LV PE for LV
/dev/vg00/lvol1 75 75
/dev/vg00/lvol2 96 96
/dev/vg00/lvol3 50 50
/dev/vg00/lvol4 50 50
/dev/vg00/lvol5 125 125
/dev/vg00/lvol6 853 853
/dev/vg00/lvol7 558 558
/dev/vg00/lvol8 256 256

--- Physical extents ---
PE Status LV LE
00000 current /dev/vg00/lvol1 00000
00001 current /dev/vg00/lvol1 00001
00002 current /dev/vg00/lvol1 00002
00003 current /dev/vg00/lvol1 00003
00004 current /dev/vg00/lvol1 00004
00005 current /dev/vg00/lvol1 00005
....
lvol2
lvol3
...
now the sequence doesn't matter (for lvol4, 5 ...).

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!   
Eberno
Regular Advisor

Re: Mirror mounted with mistake.

My friend,

This is a message, after command.
#lvremove -m 0 /dev/vg00/lvol5 /dev/dsk/c2t0d0
Usage: lvremove
[-f]
[-A Autobackup]
LogicalVolumePath...
"m": Illegal option.
James R. Ferguson
Acclaimed Contributor

Re: Mirror mounted with mistake.

Hi:

That's *not* 'lvremove'. It's 'lvreduce':

# lvreduce -m 0 /dev/vg00/lvol5 /dev/dsk/c2t0d0

You can do:

# for X in 1 2 3 4 5 6 7 8
> do
> lvreduce -m 0 /dev/vg00/lvol${X} /dev/dsk/c2t0d0
> done

# for X in 1 2 3 4 5 6 7 8
> do
> lvextend -m 1 /dev/vg00/lvol${X} /dev/dsk/c2t0d0
> done

Regards!

...JRF...
Torsten.
Acclaimed Contributor

Re: Mirror mounted with mistake.

Sorry, my mistake (a wrong example).

of course it is

# lvreduce -m 0 /dev/vg00/lvol1 /dev/dsk/c0t1d0

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!   
Eberno
Regular Advisor

Re: Mirror mounted with mistake.

My friends,

This process is OK, Thanks.
But I have the problem of the setboot , that not active the "Alternat bootpath" in mirror disk.
Please did you can help me.
Florian Heigl (new acc)
Honored Contributor

Re: Mirror mounted with mistake.

can You show us the output of the following two commands?

lvlnboot -v
setboot

with that data we can both see Your problem and give You instructions on how to fix it.
yesterday I stood at the edge. Today I'm one step ahead.
Eberno
Regular Advisor

Re: Mirror mounted with mistake.


#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/c2t0d0 (0/1/1/0.0.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c2t1d0s2
/dev/dsk/c2t0d0
Root: lvol3 on: /dev/dsk/c2t1d0s2
/dev/dsk/c2t0d0
Swap: lvol2 on: /dev/dsk/c2t1d0s2
/dev/dsk/c2t0d0
Dump: lvol2 on: /dev/dsk/c2t1d0s2, 0

# setboot
Primary bootpath : 0/1/1/0.1.0
HA Alternate bootpath : 0/1/2/1
Alternate bootpath : 0/0/2/0.0.0.0

Autoboot is ON (enabled)
Torsten.
Acclaimed Contributor

Re: Mirror mounted with mistake.

This is an Integrity system, isn't it.

You need to follow the Integrity procedure.

Remember your thread from yesterday.

The mirror won't ever boot!

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!   
Torsten.
Acclaimed Contributor

Re: Mirror mounted with mistake.

Please remove the mirror again and vgreduce the disk. We have to start over, since this is an Integrity system.
Please confirm this.

The procedure is here:

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000082066576

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!   
Eberno
Regular Advisor

Re: Mirror mounted with mistake.

My friend,
I did begin this process indicated , I executed lvreduce and vgreduce. Now I did go there beginning other process that you indicated me , in the site of the HP.
Eberno
Regular Advisor

Re: Mirror mounted with mistake.

My friends,

The mirror of the my server it´s OK.

Thank you very much.
Torsten.
Acclaimed Contributor

Re: Mirror mounted with mistake.

Eberno,

the output you posted indicates an Integrity server:

/dev/dsk/c2t1d0s2 (0/1/1/0.1.0) -- Boot Disk
/dev/dsk/c2t0d0 (0/1/1/0.0.0) -- Boot Disk

The difference is the little "s2" in the first line. The bootdisk has to be partitioned, first for the boot area, second for the OS, third for utilities.

Your mirror disk has only 1 partition for the OS. This means, there is *NO* boot area. If your primary disk fails, your mirror will *NEVER EVER* boot!

Please confirm you have a Itanium system and run

# model

and

# efi_ls -d /dev/rdsk/c2t1d0s1

and post the results.

That's all for 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!   
Eberno
Regular Advisor

Re: Mirror mounted with mistake.

model

ia64 hp server rx4640

# efi_ls -d /dev/rdsk/c2t1d0s1
FileName Last Modified Size
EFI/ 1/31/2006 0
STARTUP.NSH 1/31/2006 296

total space 523251712 bytes, free space 519962624 bytes
Torsten.
Acclaimed Contributor

Re: Mirror mounted with mistake.

OK, your system is an Integrity server.

The bootarea of your original disk c2t1d0 (boot area is section 1 - s1 in c2t1d0s1) contains the EFI shell and the startup binary.

The second disk /dev/dsk/c2t0d0s1 must contain the same, otherwise it cannot boot.

Until now, you have a nice mirror of your OS, but only 1 bootable disk.

Solution:
lvreduce the lvols,
vgreduce the disk,
remove the special device files for it,

mirror the disk by following the steps in the document posted above.

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!   
Eberno
Regular Advisor

Re: Mirror mounted with mistake.

Ok,

I do this, It´s OK now.

#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
Torsten.
Acclaimed Contributor

Re: Mirror mounted with mistake.


Looks perfectly! Well done.



If your question is answered, consider to assign some points ;-)

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!   
Torsten.
Acclaimed Contributor
Solution

Re: Mirror mounted with mistake.


Looks perfectly! Well done.



If your question is answered, consider to assign some points ;-)

Have fun!

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!