[Ocfs2-test-devel] [Ocfs2-tools-devel] [PATCH 09/10] Trigger udev rescan to get volume label that mkfs made remotely.

Eric Ren zren at suse.com
Tue Sep 22 19:07:18 PDT 2015


Hello Junxiao and all,

I'd like to confirm with you on this problem again. Because I "mkfs.ext4 -L
xxx /dev/sda" on one node, and cannot "mount -L xxx /mnt" on another
node, only got "-L xxx cannnot found" error message. It seems not a 
ocfs2-specific problem. /dev/sda is an iscsi disk. So, I doubt if it's 
an iscsi problem.

Here's this problem on bugzilla:
https://bugzilla.suse.com/show_bug.cgi?id=925564

My QUESTIONs are: 
1. was /dev/sda an iscsi disk in your case? 

2. Could you try ext4 in that way for this? Cause I want to see how
things would go beyond our SUSE environment.

I really appreciate your help ;-)

Thanks,
Eric Ren

On Fri, Sep 11, 2015 at 04:32:24AM -0600, Eric Ren wrote: 
> Hi Junxiao,
> 
> Thanks very much for your view!
> 
> I reported this problem to ocfs2 devel list long time ago. You can see here:
> https://oss.oracle.com/pipermail/ocfs2-devel/2015-March/010691.html
> 
> And I just now test this gain, and the another node cannot find the LABEL on cluster with good condition.
> If thing's OK on your side, It may be relative to distribution,or other factors.
> 
> Anyway, I'll take more care about this. Thanks again ;-)
> 
> --
> Eric Ren
> 
>  >>>
> > Hi Eric,
> >  
> > On 09/10/2015 02:54 PM, zren at suse.com wrote: 
> > > From: Eric Ren <zren at suse.com> 
> > >  
> > > Volume label used to mount disk remotely is not visible on remote 
> > > node. So before mounting, trigger udevadm rescan to get volume label. 
> > Is this needed? mount can detect the new label. 
> > I "mkfs.ocfs2 -L xxx /dev/sda" one one node, and can "mount -L xxx /mnt" 
> > on another node. 
> >  
> > Thanks, 
> > Junxiao. 
> >  
> > >  
> > > Signed-off-by: Eric Ren <zren at suse.com> 
> > > Reviewed-by: Gang He <ghe at suse.com> 
> > > --- 
> > >  programs/python_common/remote_mount.py | 16 ++++++++++++++-- 
> > >  1 file changed, 14 insertions(+), 2 deletions(-) 
> > >  
> > > diff --git a/programs/python_common/remote_mount.py  
> > b/programs/python_common/remote_mount.py 
> > > index 7520405..088ba46 100755 
> > > --- a/programs/python_common/remote_mount.py 
> > > +++ b/programs/python_common/remote_mount.py 
> > > @@ -126,8 +126,20 @@ command = str('%s -l %s -m %s %s' % (buildcmd, 
> > >  	mt_options)) 
> > >  # 
> > >  o2tf.OpenMPIInit(DEBUGON, options.nodelist, logfile, 'ssh') 
> > > -# 
> > > -# 
> > > + 
> > > +# tigger udev rescan 
> > > +ret = o2tf.openmpi_run(DEBUGON, 
> > > +                nproc, 
> > > +                'udevadm trigger', 
> > > +                options.nodelist, 
> > > +                remote_method, 
> > > +                options.interface, 
> > > +                logfile, 
> > > +                'WAIT') 
> > > + 
> > > +#wait for completing udev rescan.10s is only tested on 3-nodes. 
> > > +time.sleep(10) 
> > > + 
> > >  ret = o2tf.openmpi_run(DEBUGON, 
> > >  		 nproc, 
> > >  		 str('%s' % command), 
> > >  
> >  
> >  
> >  
> 
> 
> 
> _______________________________________________
> Ocfs2-tools-devel mailing list
> Ocfs2-tools-devel at oss.oracle.com
> https://oss.oracle.com/mailman/listinfo/ocfs2-tools-devel
> 



More information about the Ocfs2-test-devel mailing list