[Linux] Losetup and raw devices
Frost Jack
linux@flux.org
Tue, 1 Jan 2008 22:40:06 -0800 (PST)
Kwan,
I thought about the LVM approach but where does the
partition show in /dev so I can point
/etc/init.d/oracleasm createdisk to it. As you know in
my previous scenario I am pointing it to /dev/loop#?
Regards,
Matt
--- kwan@digitalhermit.com wrote:
> Quoting Frost Jack <sannmateo@yahoo.com>:
>
> > Hello All,
> >
> > I have a test box (Centos) which i am trying to
> set up
> > Oracle ASM using raw devices. I only have one disk
> so
> > I have created virtual disks using dd if=/dev/zero
> > of=/asmdisks/_file_disk1, etc, etc.. Once the file
> is
> > created I am using losetup to associate it to a
> > loopback device. Then lastly I am binding the
> files
> > raw devices using 'raw'. Here is my issue, after I
> > reboot all is lost. The raw directory is gone. So
> then
> > I tried using ASMLib which entails the steps above
> > except the 'raw' step. But every time I reboot
> > /dev/oracleasm/disks shows no contents.
> >
> > Any assistance would be great.
> >
> > Matt
>
> Matt:
> As Kevin informed, you'll need to perform the
> steps on bootup to
> associate the file to the loopback. However, keep in
> mind that
> loopback performance is quite a bit slower than
> carving out an LVM
> volume. I ran a few tests to verify this by
> creating a 50M LVM volume
> and a 50M loopback volume. For a 25M write, the LV
> averages were
> bouncing between 60-100M/s, where the loopback is
> running 30-50M/s.
> I'll run some proper tests later, but it does appear
> that there's
> siginificantly more overhead on the loopback.
>
> KL
>
>
>
>
> _______________________________________________
> Linux mailing list
> Linux@flux.org
> http://www.flux.org/mailman/listinfo/linux
>
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping