1753604 Members
6533 Online
108797 Solutions
New Discussion юеВ

lvm guru's

 
SOLVED
Go to solution
Donny Jekels
Respected Contributor

lvm guru's

we have a large volume that is striped at 32k over 4 disks. I am not sure if pvremove will do the trick. or lvreduce.

but can anyone please let me know how I can safely remove one of the disk from the volume without taking the thing offline? we have adv jfs.
"Vision, is the art of seeing the invisible"
14 REPLIES 14
Pete Randall
Outstanding Contributor
Solution

Re: lvm guru's

Donny,

I can't even begin to imagine how you could remove one of the disks without destroying the striped lvol. I honestly don't think there is a way without recreating the whole thing.


Pete


Pete
Stefan Farrelly
Honored Contributor

Re: lvm guru's

If its mirrored then you can remove one of the drives without taking the volume online, if its NOT mirrored then NO you cant.

If you have a spare disk of the same PE size as the one you want to remove then you CAN use pvmove to move the old disk to the new one, then you can vgreduce the old disk and physically pull it. We use pvmove all the time, its nice and safe.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Donny Jekels
Respected Contributor

Re: lvm guru's

one of the many reasons why I hate lvm stiping.

thanx, just wanted to make 100% sure.
"Vision, is the art of seeing the invisible"
Donny Jekels
Respected Contributor

Re: lvm guru's

stephen,

please explain how you can mirror a striped volume with lvm?

"Vision, is the art of seeing the invisible"
Pete Randall
Outstanding Contributor

Re: lvm guru's

Donny,

I hate to speak for Stefan, but I believe he's referring to mirroring using the MirrorDisk/UX product. LVM provides no mirroring capabilities on its own.


Pete


Pete
A. Clay Stephenson
Acclaimed Contributor

Re: lvm guru's

Look at the man pages for lvcreate: specifically at the section that refers to EXTENT-BASED MIRRORED STRIPES. It will explain how to set these up. There is very little performance benefit to be gained from these because the smallest possible PE (1MB) is far too large to be a good stripe size.
If it ain't broke, I can fix that.
Stefan Farrelly
Honored Contributor

Re: lvm guru's

Pete,

True, you need Mirrorux to pull one on the fly, but you dont need it, you can use pvmove anytime as long as you have a spare disk of the same PE size to add to your VG.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Donny Jekels
Respected Contributor

Re: lvm guru's

we have mirrordisk/ux. except extent base mirror'ing - I don't think you can mirror a striped volume even with mirrordisk/ux.

that will be a raid 0+1 which is not supported by lvm.
"Vision, is the art of seeing the invisible"
Pete Randall
Outstanding Contributor

Re: lvm guru's

Stefan,

Thanks, I'm still trying to digest that concept.

To my way of thinking, if you've got a file system striped over 4 physical disks and you pull one of them out, your file system is going to have issues, isn't it? Granted you can pvmove the fourth disk, but this would have to be done before pulling said fourth disk, wouldn't it?


Pete


Pete