Operating System - HP-UX
1826138 Members
4746 Online
109690 Solutions
New Discussion

problem with extending and wrong mirror

 
SOLVED
Go to solution
LCA_1
New Member

problem with extending and wrong mirror

Hi all

This is the scenario:
I have a server, which for some reason has one internal root disk and one external both of completely different sizes. I need to extend /var, the internal root disk is full so even though loads of space on the external disk because vg00 is mirrored, of course I couldn't extend. I found the other internal disk and because we have no other solution I have had to use that.

I pvcreated the disk and vgextended it into vg00. Then I lvextended using the new disk name and it didn't work, so I tried lvextending using both the new disk and the external - figuring it must need both specified in order to create the mirror copy. Problem is I've just checked in lvdisplay -v and my new extents are the wrong way around, so the mirror copy is on the new disk not the external. Not sure what to do! Don't think I can pvmove them because I have no other disks to move to... Bit worried about using lvreduce. I have online jfs and could do without shutting down the box if possible because I have users on it.

Any quick solutions/advise would be greatly appreciated!
8 REPLIES 8
Borislav Perkov
Respected Contributor

Re: problem with extending and wrong mirror

Hi,
First split the mirror.
Than see what is the situation with lvdisplay.
After that try to reconfigure the logical volumes.
Regards,
Borislav
RAC_1
Honored Contributor

Re: problem with extending and wrong mirror

That posts look very confusing. As I understand, you have full /var FS. Before you start with extending it, why not check what is causig the problem? Check if are there any files that are causing it to be 100%.

du -kx /var | sort -nk1

Post results.
There is no substitute to HARDWORK
Robert-Jan Goossens
Honored Contributor

Re: problem with extending and wrong mirror

LCA,

could you post or attach

# bdf
# vgdisplay -v vg00
# lvdisplay -v /dev/vg00/lvol7

Regards,
Robert-Jan
LCA_1
New Member

Re: problem with extending and wrong mirror

To clarify - I am trying to migrate the contents of another server which hosts ignite-ux onto this server, hence I don't have enough space on /var.

With this is mind, here is the other info requested:
vgdisplay:
LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 1500
Current LE 375
Allocated PE 750
Used PV 3

--- Physical volumes ---
PV name /dev/dsk/c0t6d0
PV Status available
Total PE 1023
Free PE 9
Autoswitch On

PV name /dev/dsk/c10t4d1
PV Status available
Total PE 2231
Free PE 992
Autoswitch On

PVName /dev/dsk/c0t5d0
PV Status available
Total PE 250
Free PE 25
Autoswitch On

bdf /var
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol6 614400 586902 26331 96% /var

As you can see from above I haven't extended it using onlinejfs yet.

lvdisplay /dev/vg00/lvol6
--- Logical volumes ---
LV Name /dev/vg00/lvol6
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 1500
Current LE 375
Allocated PE 750
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default

Thanks for the speedy replies...
Chan 007
Honored Contributor

Re: problem with extending and wrong mirror

Hi LCA,

You bdf shows nothing has been extended as per your posting, so you can do a lvreduce and do it correctly.

Hope this helps

Chan
Albert_31
Trusted Contributor

Re: problem with extending and wrong mirror

Hello LCA,

Can you send us the following to understand what the current issue is

# strings /etc/lvmtab
# vgdisplay -v vg00
# lvdisplay -v /dev/vg00/ (having issue and one not having issue)
# bdf

regards

albert
Ninad_1
Honored Contributor
Solution

Re: problem with extending and wrong mirror

As Chan pointed out - it seems you did a lventend but have not yet done extendfs - good.
So now you can
1. lvreduce to original size
2. reduce mirror to remove mirrored vol from external disk
3. extend volume to required size on 2nd internal disk
4. lvextend to mirror volume on external disk.

Regards,
Ninad
LCA_1
New Member

Re: problem with extending and wrong mirror

Thanks Ninad, thats just the answer I was looking for.