cannot extend lv
My idea was not to make a 4 stripe set with 4 PV, but a 2 stripe set:
stripe1: aaaaaaaaabbbbbb
stripe2: cccccccccdddddd
so if PV a and c are full, PV b and d are used.
I would create a new lv as you suggested, but drives a and c are two times bigger than b and d, so I thought about the above solution.
Rainer
Quoted 21 lines
Quoted 2 lines
I have a vg (data) with four drives /dev/sd[b-e]1
I created a 2 stripes lv (data1) with sd[bc]1^^^^^^^You cannot extend striped lvs onto new pvs. Even on the same physical hardware. Once you have striped it, you are tied to the pvs used.
If you think about it, this makes sense, as otherwise you have some stripes containing more data than others. In fact, as soon as the smallest pv is full, you will not be able to extend the lv, even if there is room in the other pvs.
If you want to have the filesystem striped over all the disks, you will need to create a new lv which is striped across them all, transfer the data to it, delete the old lv and then extend the new one.
Backups highly recommended.
Michael
Quoted 6 lines · On Sun, Jan 19, 2003 at 10:16:04AM +0000…
My idea was not to make a 4 stripe set with 4 PV, but a 2 stripe set:
stripe1: aaaaaaaaabbbbbb
stripe2: cccccccccddddddso if PV a and c are full, PV b and d are used.
Striping doesn't work that way. It stripes across all pvs EVENLY to improve access speeds (the whole reason to stripe). The only way to do what you want would have been to use kernel RAID to combine the physical devices into a single logical device before creating the stripe set.
Quoted 2 lines
I would create a new lv as you suggested, but drives a and c are two times bigger than b and d, so I thought about the above solution.
I understand, I went through the same exercise two months ago. I borrowed a disk from a friend, moved all of the data to it, and rebuilt my whole VG setup. It was a major pain in the neck.
Michael
Signature · 2 lines
Think Locally, Act Globally: "It's cold in here ... I'd better release a few million tons of CFCs!"
Quoted 4 lines · On Sun, Jan 19, 2003 at 12:07:53PM -0600, [email protected] wrote:
The only
way to do what you want would have been to use kernel RAID to combine the physical devices into a single logical device before creating the stripe set.
Or try out LVM2 which no longer imposes these restrictions when extending striped volumes. (You can vary the number of stripes and the stripesize.)
Alasdair
Signature · 1 line
[email protected]
Quoted 3 lines
I understand, I went through the same exercise two months ago. I borrowed a disk from a friend, moved all of the data to it, and rebuilt my whole VG setup. It was a major pain in the neck.
But it's the only way. This is not unique to Sistina's implementation. Once the filesystem has been striped at a low level (vs. lvextending it to alternate disks at the extent level) there isn't any good way to move the sripes around.
I'd suggest picking up a backup device, though, instead of a diskdrive. The last thing you need is for a borrowed drive to croak while you're re-arranging the PV's.
--
Steven Lembark 2930 W. Palmer
Workhorse Computing Chicago, IL 60647
+1 773 252 1080