Bug 763 - cannot mount with dmapi
: cannot mount with dmapi
Status: RESOLVED INVALID
Product: XFS
Classification: Unclassified
Component: dmapi
: unspecified
: PC Linux
: P2 normal
: ---
Assigned To: XFS power people
:
:
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-07-30 07:01 CDT by Joachim Reichelt
Modified: 2007-08-06 17:51 CDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joachim Reichelt 2007-07-30 07:01:42 CDT
in fstab is:
 /dev/sdb1                     /galaxy         xfs            
rw,noauto,dmapi,mtpt=/galaxy    0 0

and in messages i got:
XFS: unknown mount option [dmapi].
Comment 1 Vlad Apostolov 2007-07-30 16:57:26 CDT
(In reply to comment #0)
> in fstab is:
>  /dev/sdb1                     /galaxy         xfs            
> rw,noauto,dmapi,mtpt=/galaxy    0 0
> 
> and in messages i got:
> XFS: unknown mount option [dmapi].

Do you have
DMAPI_PROBE="yes"
in your /etc/sysconfig/sysctl

Regards,
Vlad 
Comment 2 Joachim Reichelt 2007-07-30 23:55:39 CDT
It was not there. So I changed:
## Path:        System/Kernel
## Type:        yesno
## Default:     no
#
# Enable dmapi module probe for the xfs filesystem driver
# (yes/no)
#
# DMAPI_PROBE="no"
DMAPI_PROBE="yes"

BUT:
where is a dmapi.ko in 2.6.22.1
even e 
# grep -ri dmapi /usr/src/linux-2.6.22.2
 did not give any usefull results.

And we really need mapi to use the galaxy SW to migrate old files to the server
Comment 3 Vlad Apostolov 2007-07-31 00:23:27 CDT
> BUT:
> where is a dmapi.ko in 2.6.22.1
> even e 
> # grep -ri dmapi /usr/src/linux-2.6.22.2
>  did not give any usefull results.

If you run SuSE it is part of the distribution. Any other distribution, you
need to build a patched kernel and configure DMAPI.

Regards,
Vlad
Comment 4 Vlad Apostolov 2007-07-31 00:34:05 CDT
(
> BUT:
> where is a dmapi.ko in 2.6.22.1
> even e 
> # grep -ri dmapi /usr/src/linux-2.6.22.2
>  did not give any usefull results.
> 

The kernel part is under:
fs/dmapi
fs/xfs/dmapi

The user space is under the XFS source tree dmapi.
Comment 5 Joachim Reichelt 2007-07-31 00:48:50 CDT
Yes, It is Suse, but
OpenSUSE 10.2 
and I'm missing the dmapi directory in my kernel.
Both, OpenSUSE and kernel.org does not have any file/directory
called dmapi
# find . -name '*dmapi*'
is empty here.

So I would be glad to see, how to patch the kernel.
That was, what I've been looking for, before opening this bug.
Comment 6 Vlad Apostolov 2007-07-31 16:30:59 CDT
We don't maintain OpenSUSE and I don't know why DMAPI isn't there. You should
open your bug against OpenSUSE not here. About the DMAPI source code and
patches please check our CVS here: 
http://oss.sgi.com/projects/xfs/source.html

Regards,
Vlad
Comment 7 Joachim Reichelt 2007-07-31 23:52:18 CDT
That is why I installed the native kernel.
But the dmapi stuff is not in 2.6.22.1 as seen in
the SUSE Enterprise system kernel. (linux-2.6.16.21-0.25)
So the problem ist:
There is no dmapi directory any longer in the native kernel.
Comment 8 Vlad Apostolov 2007-08-01 00:51:20 CDT
(In reply to comment #7)
> That is why I installed the native kernel.
> But the dmapi stuff is not in 2.6.22.1 as seen in
> the SUSE Enterprise system kernel. (linux-2.6.16.21-0.25)
> So the problem ist:
> There is no dmapi directory any longer in the native kernel.

If you suspect there is a problem with the SuSE release, please
open a bug with SuSE.

Regards,
Vlad
Comment 9 Joachim Reichelt 2007-08-01 01:05:51 CDT
I'm sorry,

all I whish is to get a patch for nativ linux
to get the ../fs/dmapi/ tree
It whould be nice to get a patch for the 2.6 kernels.
All I found is a dmapi-enable patch, but the related directory is missing
in all new kernels.
This is not a suse problem. It is kernel only.
Comment 10 Vlad Apostolov 2007-08-01 17:00:29 CDT
(In reply to comment #9)
> I'm sorry,
> 
> all I whish is to get a patch for nativ linux
> to get the ../fs/dmapi/ tree
> It whould be nice to get a patch for the 2.6 kernels.
> All I found is a dmapi-enable patch, but the related directory is missing
> in all new kernels.
> This is not a suse problem. It is kernel only.

Here is again the link to the DMAPI patched Linux source code:
http://oss.sgi.com/cgi-bin/cvsweb.cgi/#dirlist

Here is the /fs/dmapi/ source code:
http://oss.sgi.com/cgi-bin/cvsweb.cgi/linux-2.6-xfs/fs/dmapi/#dirlist

and the DMAPI kernel patch:
http://oss.sgi.com/cgi-bin/cvsweb.cgi/linux-2.6-xfs/fs/dmapi/PATCHES/2.6.9-rc1-patches/

Regards,
Vlad

Comment 11 Joachim Reichelt 2007-08-02 05:46:08 CDT
Using the kernel from oss.sgi.com dmapi is o.k.
That nice.
Using a pathed 2.6.18 kern I see:
SGI XFS with ACLs, security attributes, realtime, large block numbers, dmapi
support, no debug enabled
SGI XFS Quota Management subsystem
XFS mounting filesystem sdb1
Ending clean XFS mount for filesystem: sdb1

but there is no real dmapi support in it, 
/proc/fs/dmapi_d/fsreg/
is empty, as I cannot mount using dmapi 
Comment 12 Vlad Apostolov 2007-08-02 18:55:32 CDT
Joachim,

I would start with getting the full kernel source from OSS and trying
to configure, build and run it. This is the tree we are using here
and it seams to work fine for us.

Regards,
Vlad
Comment 13 Joachim Reichelt 2007-08-06 05:35:42 CDT
I think, I found a way to get the best of the oss.sgi.com kernel by using
fs/xfs and fs/dmapi and the reste from kernel.org.
There are only 4 remaining changes. And I believe you know how to get these two
parts really stable. 
Comment 14 Vlad Apostolov 2007-08-06 15:51:25 CDT
(In reply to comment #13)
> I think, I found a way to get the best of the oss.sgi.com kernel by using
> fs/xfs and fs/dmapi and the reste from kernel.org.
great

> There are only 4 remaining changes. And I believe you know how to get these two
> parts really stable. 
Not sure what you are talking about.

Regards,
Vlad