Hi,
I have exactly the same problem. I am looking for solution that let
me export lustre file system without having to specify fsid= in
export options.
I have found in bugzilla bug 10786 that apparently resolves that
problem. Unfortunately I can't find if this patch is available for
1.6.0.1
I also don't know how to apply patch in the following format please
could some one give me some small how-to on that?
? lustre/include/lustre/lustre_build_version.h
Index: lustre/llite/llite_internal.h
===================================================================
RCS file: /cvsroot/cfs/lustre-core/llite/llite_internal.h,v
retrieving revision 1.13.2.12.2.55
diff -u -p -r1.13.2.12.2.55 llite_internal.h
--- lustre/llite/llite_internal.h 17 May 2007 16:31:56 -0000
1.13.2.12.2.55
+++ lustre/llite/llite_internal.h 28 Jun 2007 06:53:33 -0000
@@ -193,6 +193,7 @@ struct ll_sb_info {
struct list_head ll_deathrow; /* inodes to be
destroyed (b1443) */
spinlock_t ll_deathrow_lock;
+ dev_t ll_sdev_orig; /* save s_dev before
assign for clustred nfs*/
};
struct ll_ra_read {
Index: lustre/llite/llite_lib.c
===================================================================
RCS file: /cvsroot/cfs/lustre-core/llite/llite_lib.c,v
retrieving revision 1.20.2.15.2.92
diff -u -p -r1.20.2.15.2.92 llite_lib.c
--- lustre/llite/llite_lib.c 17 May 2007 16:31:56 -0000 1.20.2.15.2.92
+++ lustre/llite/llite_lib.c 28 Jun 2007 06:53:34 -0000
@@ -223,7 +223,7 @@ int lustre_common_fill_super(struct supe
if (data->ocd_connect_flags & OBD_CONNECT_JOIN)
sbi->ll_flags |= LL_SBI_JOIN;
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0))
+ sbi->ll_sdev_orig = sb->s_dev;
/* We set sb->s_dev equal on all lustre clients in order to
support
* NFS export clustering. NFSD requires that the FSID be
the same
* on all clients. */
@@ -231,8 +231,6 @@ int lustre_common_fill_super(struct supe
* only a node-local comparison. */
sb->s_dev = get_uuid2int(sbi2mdc(sbi)->cl_target_uuid.uuid,
strlen(sbi2mdc(sbi)-
>cl_target_uuid.uuid));
-#endif
-
obd = class_name2obd(osc);
if (!obd) {
CERROR("OSC %s: not setup or attached\n", osc);
@@ -547,6 +545,9 @@ void lustre_common_put_super(struct supe
obd_disconnect(sbi->ll_mdc_exp);
lustre_throw_orphan_dentries(sb);
+ /* restore s_dev from changed for clustred NFS*/
+ sb->s_dev = sbi->ll_sdev_orig;
+
EXIT;
}
@@ -1018,7 +1019,6 @@ void lustre_put_super(struct super_block
}
lustre_free_sbi(sb);
-
EXIT;
} /* lustre_put_super */
Index: lustre/llite/super25.c
===================================================================
RCS file: /cvsroot/cfs/lustre-core/llite/super25.c,v
retrieving revision 1.20.32.4.30.8
diff -u -p -r1.20.32.4.30.8 super25.c
--- lustre/llite/super25.c 6 Apr 2007 08:59:13 -0000 1.20.32.4.30.8
+++ lustre/llite/super25.c 28 Jun 2007 06:53:34 -0000
@@ -116,7 +116,7 @@ struct file_system_type lustre_lite_fs_t
.name = "lustre_lite",
.get_sb = ll_get_sb,
.kill_sb = kill_anon_super,
- .fs_flags = FS_BINARY_MOUNTDATA,
+ .fs_flags = FS_BINARY_MOUNTDATA | FS_REQUIRES_DEV,
};
struct file_system_type lustre_fs_type = {
@@ -124,7 +124,7 @@ struct file_system_type lustre_fs_type =
.name = "lustre",
.get_sb = lustre_get_sb,
.kill_sb = kill_anon_super,
- .fs_flags = FS_BINARY_MOUNTDATA,
+ .fs_flags = FS_BINARY_MOUNTDATA | FS_REQUIRES_DEV,
};
static int __init init_lustre_lite(void)
Wojciech
On 29 Jun 2007, at 16:34, Jim McCusker wrote:
I had just done this with 1.4 and had the same problem. You need to
add the "fsid=13" to the export options for /etc/exports. That
makes NFS think that they are exporting a native unix file system.
They don't like to re-export shared file systems by default.
Jim
[EMAIL PROTECTED] wrote:
I'm running Lustre version 1.6.0.1 and I'm trying to export lustre
filesystem over nfs but kept getting "permisison denied". I
wonder if
anyone can help with step-by-step or point me to where the problem
should
be. I'm really appreciated.
Regards,
Anhvu Q. Le
ExxonMobil Global Services Company
IT Division, High Performance Computing
Office: GW3-336A Phone: 713-431-4739 Fax: 713-431-7310
Internet: [EMAIL PROTECTED]
High performers are recognized not just for reaching the peak, but
for
staying there.
_______________________________________________
Lustre-discuss mailing list
[email protected]
https://mail.clusterfs.com/mailman/listinfo/lustre-discuss
_______________________________________________
Lustre-discuss mailing list
[email protected]
https://mail.clusterfs.com/mailman/listinfo/lustre-discuss
_______________________________________________
Lustre-discuss mailing list
[email protected]
https://mail.clusterfs.com/mailman/listinfo/lustre-discuss