Swap/DB devices
I'm in the process of re-jigging all the file systems to sit in volume groups.
Two questions :-
a) Can I setup swap to run from a volume group is it a good idea?
b) I have database devices running in cooked file systems for Oracle, Sybase and Informix.
Vendor recommendations for sybase and Informix are normally raw, here we carve our database devices from HP volume groups is this a good idea for linux?
Anybody done this?
mja
Hi,
Quoted 4 lines · On Thu, 15 Apr 1999 09:18:49 +0100, [email protected] said:
I'm in the process of re-jigging all the file systems to sit in volume groups.
a) Can I setup swap to run from a volume group is it a good idea?
Should work OK.
Quoted 6 lines
b) I have database devices running in cooked file systems for Oracle, Sybase and Informix.
Vendor recommendations for sybase and Informix are normally raw, here we carve our database devices from HP volume groups is this a good idea for linux?
We have raw IO under development: look on
ftp://ftp.uk.linux.org/pub/linux/sct/fs
for my latest snapshots. This should be usable by any of the commercial databases, and we have Linus's approval in principle for this mechanism of implementing the raw transfers.
--Stephen
Quoted 7 lines
I'm in the process of re-jigging all the file systems to sit in volume groups.
Two questions :-
a) Can I setup swap to run from a volume group is it a good idea?
Yes.
It's as good as partition based swap (very low LVM driver overhead).
Please take i/o amounts into consideration and avoid to allocate swap LVs and other i/o intensive LVs on the same PVs.
Quoted 7 lines
b) I have database devices running in cooked file systems for Oracle, Sybase and Informix.
Vendor recommendations for sybase and Informix are normally raw, here we carve our database devices from HP volume groups is this a good idea for linux?
There is a raw device patch available by Stephen Tweedie. IIRC it will make it into the 2.3 kernel (what do you say Stephen?).
LVM has to be enhanced a little bit to support that patch.
Quoted 3 lines
Anybody done this?
Yes, i did successfull tests with a lot of swap LVs. Anybody out there with (big) database installations on LVM?
BTW: you can have performance boosts by setting up striped LVs
if your hardware setup is o.k. (enough i/o bandwith on scsi busses, several busses ...)
Regards,
Heinz
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Systemmanagement C/S Deutsche Telekom AG
Entwicklungszentrum Darmstadt
Heinz Mauelshagen Otto-Roehm-Strasse 71c
Senior Systems Engineer Postfach 10 05 41
64205 Darmstadt [email protected] Germany +49 6151 886-425 FAX-386
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Hi,
Quoted 2 lines · Heinz Mauelshagen
There is a raw device patch available by Stephen Tweedie. IIRC it will make it into the 2.3 kernel (what do you say Stephen?).
That's the plan; Linus has approved it in principle.
Quoted 1 line
LVM has to be enhanced a little bit to support that patch.
I'm curious: why? I would have thought that LVM should support any requests coming in through ll_rw_block already.
--Stephen
Quoted 7 lines
Quoted 2 lines · Heinz Mauelshagen
There is a raw device patch available by Stephen Tweedie. IIRC it will make it into the 2.3 kernel (what do you say Stephen?).
Quoted 8 lines · Stephen Tweedie
That's the plan; Linus has approved it in principle.
Quoted 1 line
LVM has to be enhanced a little bit to support that patch.
I'm curious: why? I would have thought that LVM should support any requests coming in through
ll_rw_blockalready.
It's simply a matter of userland (lv_create_node() and friends in lvmlib) to create the LVM 'raw' device specials.
Only regular buffer cached device specials are created up to 0.6.
Regards,
Heinz
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Systemmanagement C/S Deutsche Telekom AG
Entwicklungszentrum Darmstadt
Heinz Mauelshagen Otto-Roehm-Strasse 71c
Senior Systems Engineer Postfach 10 05 41
64205 Darmstadt [email protected] Germany +49 6151 886-425 FAX-386
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Hi,
Quoted 6 lines · Heinz Mauelshagen
Quoted 2 lines
I'm curious: why? I would have thought that LVM should support any requests coming in through
ll_rw_blockalready.It's simply a matter of userland (
lv_create_node()and friends in lvmlib) to create the LVM 'raw' device specials.
Only regular buffer cached device specials are created up to 0.6.
You won't need to. The raw device patches create one single new major number, and let you bind the minor numbers to any block devices you want. You can access _any_ block device driver without modification.
--Stephen