[Ocfs2-users] mounting ocfs2 partitions on boot

Sunil Mushran Sunil.Mushran at oracle.com
Tue Jul 12 15:48:04 CDT 2005


So, there appears to be no rc.local equivalent on SLES9.

We'll look into writing a script to automount ocfs2 volumes on boot.

Jan Schmidt wrote:

> As far as I know, there's nothing like rc.local (I think it's 
> available on Redhat) on SLES/SuSE.
> Replacement should be boot.local but its executed to early on boot.
>
>> Sorry, I meant rc.local.
>>
>> Jan Schmidt wrote:
>>
>>> This doesn't work. boot.local is executed from init before going to 
>>> the first runlevel.
>>> o2cb is executed as S13.
>>>
>>> At 20:46 27.06.2005, Sunil Mushran wrote:
>>>
>>>> SLES does not appear to have the script to support mounting
>>>> _netdev devices on boot.
>>>>
>>>> So, add the command(s) in /etc/init.d/boot.local to explicitly
>>>> mount the volume(s) on bootup.
>>>>
>>>> mount -t ocfs2 /dev/sdX /dir
>>>>
>>>> Jan Schmidt wrote:
>>>>
>>>>>
>>>>> It seems, that the volumes are not mounted automatically on SLES9. 
>>>>> Are there any
>>>>> further requirements to make this work? After adding _netdev at 
>>>>> fstab I can boot the
>>>>> system without mount errors, but the volumes are not mounted after 
>>>>> ocfs2 is available
>>>>> and before the OCM, database etc. are started.
>>>>>
>>>>> At 00:24 25.06.2005, Sunil Mushran wrote:
>>>>>
>>>>>> 1. Specify load on boot in o2cb configure.
>>>>>> 2. Specify device as _netdev in /etc/fstab.
>>>>>>
>>>>>> /dev/sdc1              /ocfs                   ocfs2
>>>>>> _netdev,defaults        0       0
>>>>>>
>>>>>> It works.
>>>>>>
>>>>>> Jan Schmidt wrote:
>>>>>>
>>>>>>> Hi list,
>>>>>>>
>>>>>>> today, I installed a two node Oracle 10g RAC system on SLES9 SP2 
>>>>>>> RC2 which shares
>>>>>>> (via a SAN) a database volume and a quorum (ocr and voting). 
>>>>>>> This volumes are formated
>>>>>>> with ocfs2 - so far no problem.
>>>>>>> At the moment I'm stuck with the mounting of these volumes at 
>>>>>>> boot time. The user-guide
>>>>>>> of ocfs2-tools mentions to add the corresponding lines to fstab 
>>>>>>> - but at the time when
>>>>>>> fstab is processed the ocfs2 cluster isn't available (it will be 
>>>>>>> started later).
>>>>>>> Is there any way (without hacking rc scripts etc.) to load this 
>>>>>>> volumes as boot time?
>>>>>>>
>>>>>>> Thanks
>>>>>>> Jan Schmidt
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Ocfs2-users mailing list
>>>>>>> Ocfs2-users at oss.oracle.com
>>>>>>> http://oss.oracle.com/mailman/listinfo/ocfs2-users
>>>>>>
>>>>>
>>>>> ---------------------------------------------------------------
>>>>> AG Anwendungen/Multimedia Rechenzentrum Universität Greifswald
>>>>> http://www.multimedia.uni-greifswald.de/
>>>>> Tel: +49 3834 861416 Fax: +49 3834 8680016
>>>>>
>>>>> _______________________________________________
>>>>> Ocfs2-users mailing list
>>>>> Ocfs2-users at oss.oracle.com
>>>>> http://oss.oracle.com/mailman/listinfo/ocfs2-users
>>>>
>>>
>>> ---------------------------------------------------------------
>>> AG Anwendungen/Multimedia Rechenzentrum Universität Greifswald
>>> http://www.multimedia.uni-greifswald.de/
>>> Tel: +49 3834 861416 Fax: +49 3834 8680016
>>>
>>> _______________________________________________
>>> Ocfs2-users mailing list
>>> Ocfs2-users at oss.oracle.com
>>> http://oss.oracle.com/mailman/listinfo/ocfs2-users
>>
>
> ---------------------------------------------------------------
> AG Anwendungen/Multimedia Rechenzentrum Universität Greifswald
> http://www.multimedia.uni-greifswald.de/
> Tel: +49 3834 861416 Fax: +49 3834 8680016
>
> _______________________________________________
> Ocfs2-users mailing list
> Ocfs2-users at oss.oracle.com
> http://oss.oracle.com/mailman/listinfo/ocfs2-users



More information about the Ocfs2-users mailing list