* [linux-lvm] RHEL: special ownership for lv devices?
@ 2011-09-13 19:18 Klaus Lichtenwalder
2011-09-14 17:15 ` Carlos Eduardo Tavares Terra
0 siblings, 1 reply; 5+ messages in thread
From: Klaus Lichtenwalder @ 2011-09-13 19:18 UTC (permalink / raw)
To: linux-lvm
[-- Attachment #1: Type: text/plain, Size: 1000 bytes --]
Hi,
I just can't find any pointers. Problem is, our database guys want to
use Oracle ASM (which is some kind of raw devices). To not mix things up
between regular volumes and ASM devices, we decided to put them into a
special vg (yes, oracle recommends against it, but you somehow has to
administer the machines. And looking into their shell scripts, it seems
to not being a thing of reason but more the lack of know how of handling
arbitrary block devices).
Anyway, we'd like the devices to end up with owner oracle:dba. There
seems to be no way, as udev does not create the devices but vgchange, to
change the ownership than by using a start script somewhere between
vgchange time and oracle asm start up.
Is there any other, more "canonical" way?
Klaus
--
------------------------------------------------------------------------
Klaus Lichtenwalder, Dipl. Inform., http://www.lichtenwalder.name
PGP Key fingerprint: BF52 72FA 1F5A 1E29 C0F8 498C C4C6 633C 2821 97DA
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 900 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [linux-lvm] RHEL: special ownership for lv devices?
2011-09-13 19:18 [linux-lvm] RHEL: special ownership for lv devices? Klaus Lichtenwalder
@ 2011-09-14 17:15 ` Carlos Eduardo Tavares Terra
2011-09-15 18:00 ` Klaus Lichtenwalder
0 siblings, 1 reply; 5+ messages in thread
From: Carlos Eduardo Tavares Terra @ 2011-09-14 17:15 UTC (permalink / raw)
To: LVM general discussion and development
[-- Attachment #1: Type: text/plain, Size: 1935 bytes --]
Klaus,
Have you tried to use the package oracleasm?
This package installs some binaries to manipulate ASM Disks, creating new
devices (based on the originals /dev/sd*), into /dev/oracleasm/ and changing
the owner of the devices.
Oracle Database does not use raw devices in RHEL anymore, by default. They
recommend installing this package and administrate everything by it.
http://www.oracle.com/technetwork/topics/linux/asmlib/index-101839.html
I hope this helps.
Regards,
On Tue, Sep 13, 2011 at 4:18 PM, Klaus Lichtenwalder <
lichtenwalder@gmail.com> wrote:
> Hi,
>
> I just can't find any pointers. Problem is, our database guys want to
> use Oracle ASM (which is some kind of raw devices). To not mix things up
> between regular volumes and ASM devices, we decided to put them into a
> special vg (yes, oracle recommends against it, but you somehow has to
> administer the machines. And looking into their shell scripts, it seems
> to not being a thing of reason but more the lack of know how of handling
> arbitrary block devices).
> Anyway, we'd like the devices to end up with owner oracle:dba. There
> seems to be no way, as udev does not create the devices but vgchange, to
> change the ownership than by using a start script somewhere between
> vgchange time and oracle asm start up.
>
> Is there any other, more "canonical" way?
>
> Klaus
> --
> ------------------------------------------------------------------------
> Klaus Lichtenwalder, Dipl. Inform., http://www.lichtenwalder.name
> PGP Key fingerprint: BF52 72FA 1F5A 1E29 C0F8 498C C4C6 633C 2821 97DA
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
--
Carlos Eduardo Tavares Terra
Red Hat Certified Engineer
Consultor em Infraestrutura de TI
GNU/Linux #413291 [http://counter.li.org]
[-- Attachment #2: Type: text/html, Size: 2789 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [linux-lvm] RHEL: special ownership for lv devices?
2011-09-14 17:15 ` Carlos Eduardo Tavares Terra
@ 2011-09-15 18:00 ` Klaus Lichtenwalder
2011-09-16 17:19 ` Stuart D. Gathman
0 siblings, 1 reply; 5+ messages in thread
From: Klaus Lichtenwalder @ 2011-09-15 18:00 UTC (permalink / raw)
To: LVM general discussion and development; +Cc: Carlos Eduardo Tavares Terra
[-- Attachment #1: Type: text/plain, Size: 1569 bytes --]
Am 14.09.2011 19:15, schrieb Carlos Eduardo Tavares Terra:
> Klaus,
> Have you tried to use the package oracleasm?
>
> This package installs some binaries to manipulate ASM Disks, creating
> new devices (based on the originals /dev/sd*), into /dev/oracleasm/ and
> changing the owner of the devices.
>
> Oracle Database does not use raw devices in RHEL anymore, by default.
> They recommend installing this package and administrate everything by it.
>
> http://www.oracle.com/technetwork/topics/linux/asmlib/index-101839.html
>
> I hope this helps.
>
Carlos,
actually, oracleasm is the reason I'm asking. Oracle recommends against
using lvs, but in our domain we need to sort disks, so we want to use
different vgs to avoid human error. Checking the shell scripts from
oracle, it is clear why they don't like lvs. Not because probable
performance problems from an additional layer of complexity, but because
they use /proc/partitions to scan for disks. And vg-devices just don't
show up there...
There are versions, though, that honor their ASM_SCANORDER flag and
check the vg-Directory (SCANORDER="/mapper/vg_asm*/"), but different
versions seem to not to do this.
I created a start script that mknods /dev/dm-X from
/dev/mapper/vg_asm--* devices, but I consider this a kludge...
Thanks anyway,
Klaus
--
------------------------------------------------------------------------
Klaus Lichtenwalder, Dipl. Inform., http://www.lichtenwalder.name
PGP Key fingerprint: BF52 72FA 1F5A 1E29 C0F8 498C C4C6 633C 2821 97DA
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 900 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [linux-lvm] RHEL: special ownership for lv devices?
2011-09-15 18:00 ` Klaus Lichtenwalder
@ 2011-09-16 17:19 ` Stuart D. Gathman
2011-09-16 18:55 ` Klaus Lichtenwalder
0 siblings, 1 reply; 5+ messages in thread
From: Stuart D. Gathman @ 2011-09-16 17:19 UTC (permalink / raw)
To: klaus, LVM general discussion and development
Cc: Carlos Eduardo Tavares Terra
On Thu, 15 Sep 2011, Klaus Lichtenwalder wrote:
> I created a start script that mknods /dev/dm-X from
> /dev/mapper/vg_asm--* devices, but I consider this a kludge...
Wouldn't symlinks be safer?
--
Stuart D. Gathman <stuart@bmsi.com>
Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [linux-lvm] RHEL: special ownership for lv devices?
2011-09-16 17:19 ` Stuart D. Gathman
@ 2011-09-16 18:55 ` Klaus Lichtenwalder
0 siblings, 0 replies; 5+ messages in thread
From: Klaus Lichtenwalder @ 2011-09-16 18:55 UTC (permalink / raw)
To: linux-lvm
[-- Attachment #1: Type: text/plain, Size: 660 bytes --]
Am 16.09.2011 19:19, schrieb Stuart D. Gathman:
> On Thu, 15 Sep 2011, Klaus Lichtenwalder wrote:
>
>> I created a start script that mknods /dev/dm-X from
>> /dev/mapper/vg_asm--* devices, but I consider this a kludge...
>
> Wouldn't symlinks be safer?
>
Stuart,
sorry for me being clueless, but why do you think symlinks being safer?
I keep the dm-X X number consisten with the minor number of the device.
Klaus
--
------------------------------------------------------------------------
Klaus Lichtenwalder, Dipl. Inform., http://www.lichtenwalder.name
PGP Key fingerprint: BF52 72FA 1F5A 1E29 C0F8 498C C4C6 633C 2821 97DA
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 900 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-09-16 18:55 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-13 19:18 [linux-lvm] RHEL: special ownership for lv devices? Klaus Lichtenwalder
2011-09-14 17:15 ` Carlos Eduardo Tavares Terra
2011-09-15 18:00 ` Klaus Lichtenwalder
2011-09-16 17:19 ` Stuart D. Gathman
2011-09-16 18:55 ` Klaus Lichtenwalder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).