[Linux] Losetup and raw devices
Kevin Hrim
linux@flux.org
Tue, 1 Jan 2008 18:57:00 -0800
Just do the same steps but include the commands in rc.local.
This way all of the steps will be repeated with each reboot. (don't
include the dd command in the script unless you want to start with
empty devices with each reboot).
The only problem I've experienced with this type of setup is that the
shutdown script doesn't always unmont the loopback devices cleanly.
You end up with a message about / not being unmounted cleanly.
ASMlib should work, just omit the "raw" step after the losetup.
(ASMlib is an Oracle specific replacement for raw)
On 1/1/08, Frost Jack <sannmateo@yahoo.com> wrote:
> 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
>
>
> ____________________________________________________________________________________
> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>
> _______________________________________________
> Linux mailing list
> Linux@flux.org
> http://www.flux.org/mailman/listinfo/linux
>
--
-- Kevin Hrim
/*
"Now and then it's good to pause in our pursuit of happiness and just be happy."
Lucky numbers: 9,19,24,30,40,47
*/