[Ocfs2-users] Local mount in 1.4?

Sunil Mushran sunil.mushran at oracle.com
Thu Feb 12 10:21:43 PST 2009


Do:

$ dmesg -n8
$ debugfs.ocfs2 -l ENTRY EXIT SUPER allow
$ strace -ff -o /tmp/mm mount /dev/sdb1 /u01
$ debugfs.ocfs2 -l ENTRY EXIT deny SUPER off

dmesg may be set up to ignore KERN_INFO messages. Let's
explicitly enable that. Also zip up the straces /tmp/mm.*.


Bruce MacDonald wrote:
> Hi Sunil,
>
> OK, I've done a fresh install to test this.  I'm using Sun VirtualBox 
> by the way.
>
> Here's what I do:
>
> [root at OELTEST ~]# mkfs.ocfs2 -T datafiles -N 1 -M local -L "Data" 
> /dev/sdb1
> mkfs.ocfs2 1.4.1
> Filesystem Type of datafiles
> Filesystem label=Data
> Block size=4096 (bits=12)
> Cluster size=262144 (bits=18)
> Volume size=85899083776 (327679 clusters) (20971456 blocks)
> 11 cluster groups (tail covers 5119 clusters, rest cover 32256 clusters)
> Journal size=33554432
> Initial number of node slots: 1
> Creating bitmaps: done
> Initializing superblock: done
> Writing system files: done
> Writing superblock: done
> Writing backup superblock: 4 block(s)
> Formatting Journals: done
> Formatting slot map: done
> Writing lost+found: done
> mkfs.ocfs2 successful
>
> [root at OELTEST ~]# mkdir /u01
> [root at OELTEST ~]# mount /dev/sdb1 /u01
> mount.ocfs2: No such device while mounting /dev/sdb1 on /u01. Check 
> 'dmesg' for more information on this error.
>
> I can't see ANY errors in /var/log/messages, even with tracing turned on!
>
> [root at OELTEST ~]# date
> Thu Feb 12 00:02:39 PST 2009
> [root at OELTEST ~]# tail -3 /var/log/messages
> Feb 11 23:37:13 OELTEST kernel: sdb: Write Protect is off
> Feb 11 23:37:13 OELTEST kernel: SCSI device sdb: drive cache: write back
> Feb 11 23:37:13 OELTEST kernel:  sdb: sdb1
> [root at OELTEST ~]# debugfs.ocfs2 -l ENTRY EXIT SUPER allow;
> [root at OELTEST ~]# mount /dev/sdb1 /u01
> mount.ocfs2: No such device while mounting /dev/sdb1 on /u01. Check 
> 'dmesg' for more information on this error.
> [root at OELTEST ~]# debugfs.ocfs2 -l ENTRY EXIT deny SUPER off;
> [root at OELTEST ~]# tail -3 /var/log/messages
> Feb 11 23:37:13 OELTEST kernel: sdb: Write Protect is off
> Feb 11 23:37:13 OELTEST kernel: SCSI device sdb: drive cache: write back
> Feb 11 23:37:13 OELTEST kernel:  sdb: sdb1
>
> Any ideas?  As I said before, this works fine with the version of 
> OCFS2 1.2 that comes on the DVD.
>
> Cheers,
>                Bruce
>
> Sunil Mushran wrote:
>> I hope the tools are 1.4.
>>
>> Enable some tracing. Do:
>> $ debugfs.ocfs2 -l ENTRY EXIT SUPER allow;
>> $ mount ...
>> $ debugfs.ocfs2 -l ENTRY EXIT deny SUPER off;
>>
>> The logs will be in /var/log/messages.
>>
>> Bruce MacDonald wrote:
>>> Thanks for replying Sunil.  No, nothing in dmesg.
>>>
>>> On 9-Feb-09, at 13:41, Sunil Mushran <sunil.mushran at oracle.com> wrote:
>>>
>>>> Bruce MacDonald wrote:
>>>>> I'm playing around with OCFS2 as a local filesystem, as an 
>>>>> alternative to using XFS for a multi-terabyte database.  Using OEL 
>>>>> 5.2 from the demo DVD, I download the latest OCFS2 1.4 packages 
>>>>> and format the filesystem, but when I try to mount it, I get a 
>>>>> "file not found" error, as if "/u01" doesn't exist (which it does).
>>>>>
>>>>> If I do the same thing but install OCFS2 1.2 from the DVD, this 
>>>>> works without problem.
>>>>>
>>>>> Should 1.4 work as a local filesystem, or am I missing something?
>>>>
>>>> Support for local mounts is in OCFS2 1.4. Does dmesg say anything?
>>
>>




More information about the Ocfs2-users mailing list