Operating System - HP-UX
1753787 Members
7527 Online
108799 Solutions
New Discussion юеВ

Re: making lv up with one sub-mirror

 
SOLVED
Go to solution
Madhu_17
Regular Advisor

making lv up with one sub-mirror

Hello Gurus,

I found that the one filesystem was missing. Further investigation showed that one disk was unrecognizable at all.

this LV is in mirror. I would like to make the filesystem up using other sub-mirror.

Can anybody give me the steps to make this filesystem up, like how to remove the failed sub-mirror and making the working sub-mirror up?

Thanks
9 REPLIES 9
RAC_1
Honored Contributor

Re: making lv up with one sub-mirror

If the disk has failed and lv was mirrored, the lvol should have got mounted automatically. What does lvdisplay and vgdisplay say??

As far as replacement is concerned, it is easy.

replace the disk (if not hot swappable, shutdown and replace)
vgcfgrestore -n /dev/vgxx /dev/rdsk/cxtxdx
vgchange -a y vgxx
vgsync

There is no substitute to HARDWORK
Torsten.
Acclaimed Contributor
Solution

Re: making lv up with one sub-mirror

Hi Madhu,

if you VG consists of 2 disks and one is failed, it doesn't met the quorum requirements.
check, if the VG is active

vgdisplay -v

activate it:

vgchange -a y -q n

Replace the bad disk ASAP!

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

Re: making lv up with one sub-mirror

mount /fileystem is howing the below error

"/dev/vg*/lv*: no such device or address"

could you pls provide me the steps to unmirror and mount a fs with working sub-mirror.

Thanks
RAC_1
Honored Contributor

Re: making lv up with one sub-mirror

Unless you figure out the disk has died, why you want to go ahead with unmirror?? And unmirror what?? As said earlier, if the lvol was mirroed, it should have got mounted without problems.

So what does lvdisplay/vgdisplay /syslog.log and dmesg say??

ll /dev/vgxx

Are all lvols there??
There is no substitute to HARDWORK
Madhu_17
Regular Advisor

Re: making lv up with one sub-mirror

Torsten,

It did the trick.. but my lvdisplay is showing the failed disk with stale. i will try to break the mirror witha pvkey and let you know if i face any problem. Thanks for ur help
Madhu_17
Regular Advisor

Re: making lv up with one sub-mirror

i could able to break the mirror successfully and the lvdisplay is showing current. but when i try to mount the filesystem it's showing the fs needs cleaning.

"vxfs mount: /dev/vg*/lv* is corrupted. needs checking"

any suggestions?
RAC_1
Honored Contributor

Re: making lv up with one sub-mirror

fsck /dev/vgxx/lvolx and mount
There is no substitute to HARDWORK
Madhu_17
Regular Advisor

Re: making lv up with one sub-mirror

Thanks all. I could able to mount filesystem. I will open a ticket with vednor and will replace the faulty disk.
Madhu_17
Regular Advisor

Re: making lv up with one sub-mirror

found the required commands