<HTML>
<HEAD>
<TITLE>Re: [Lustre-discuss] Recovery fails if clients not connected</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'><BR>
Hi Roger,<BR>
<BR>
I believe you can connect the OSSs once the MDS has booted, and in fact, I&#8217;m pretty sure that the five in the &#8216;connected_clients: 0/5&#8217; are in fact your OSS nodes. Each OST maintains a connection to the MDS while the file system is mounted, so they will be included in the connection count on the MDS.<BR>
<BR>
However, regardless of the state &#8212; if your MDS is online and the MDT is mounted, you can start up the OSS nodes and corresponding OSTs at any time; clients attempting to make transactions will have their I/O operations block (or fail, depending on the MDS config) until the missing nodes come back online.<BR>
<BR>
hth,<BR>
Klaus<BR>
<BR>
<BR>
On 1/20/09 3:05 PM, &quot;Roger Spellman&quot; &lt;roger@terascala.com&gt; etched on stone tablets:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT SIZE="4"><FONT FACE="Courier New"><SPAN STYLE='font-size:13.0px'>I have 2 MDS, configured as an active/standby pair. &nbsp;I have 5 OSTs that are NOT active/standby. &nbsp;I<BR>
have 5 clients.<BR>
&nbsp;<BR>
I am using Lustre 1.6.5, due to bug 18232 &lt;https://bugzilla.lustre.org/show_bug.cgi?id=18232&gt; &nbsp;which only affects 1.6.6. &nbsp;Using Lustre 1.6.5, when I<BR>
reset my active node, the standby takes over. &nbsp;This is quite reliable.<BR>
&nbsp;<BR>
Today, I did the following in this order:<BR>
&nbsp;&nbsp;Unmounted all the clients<BR>
&nbsp;&nbsp;Rebooted all the clients<BR>
&nbsp;&nbsp;Stopped Linux HA from running<BR>
&nbsp;&nbsp;Unmounted the OSTs<BR>
&nbsp;&nbsp;Unmounted the MDS<BR>
&nbsp;&nbsp;Rebooted the OSTs<BR>
&nbsp;&nbsp;Rebooted both MDSes<BR>
&nbsp;<BR>
When the MDSes started up, Linux HA chose one to be active. &nbsp;That system mounted the MDT.<BR>
&nbsp;<BR>
I looked at the file &nbsp;/proc/fs/lustre/mds/tacc-MDT0000/recovery_status, and it showed:<BR>
&nbsp;<BR>
[root@ts-tacc-01 ~]# cat /proc/fs/lustre/mds/tacc-MDT0000/recovery_status <BR>
status: RECOVERING<BR>
recovery_start: 0<BR>
time_remaining: 0<BR>
connected_clients: 0/5<BR>
completed_clients: 0/5<BR>
replayed_requests: 0/??<BR>
queued_requests: 0<BR>
next_transno: 17768<BR>
&nbsp;<BR>
&nbsp;<BR>
***** Note that recovery_start and time_remaining are both zero. *****<BR>
&nbsp;<BR>
I waited a several minutes, and this file was the same.<BR>
&nbsp;<BR>
I was waiting for recovery to complete before trying to mount the OSTs. &nbsp;However, it appears that<BR>
this would never occur!<BR>
&nbsp;<BR>
Does this look like a bug? <BR>
&nbsp;<BR>
---------------------------<BR>
&nbsp;<BR>
I format my MDT using the following command. &nbsp;The command is run from 10.2.43.1, and the failnode<BR>
is 10.2.43.2:<BR>
&nbsp;<BR>
mkfs.lustre --reformat --fsname tacc --mdt --mgs --device-size=10000000 --mkfsoptions=' -m 0 -O<BR>
mmp' --failnode=10.2.43.2@o2ib0 /dev/sdb<BR>
&nbsp;<BR>
I format the OSTs using the following command:<BR>
&nbsp;<BR>
/usr/bin/time -p mkfs.lustre --reformat --ost --mkfsoptions='-J device=/dev/sdc1 -m 0' --fsname<BR>
tacc --device-size=400000000 --mgsnode=10.2.43.1@o2ib0 --mgsnode=10.2.43.2@o2ib0 /dev/sdb<BR>
&nbsp;<BR>
I mount the clients using:<BR>
&nbsp;<BR>
mount -t lustre 10.2.43.1@o2ib:10.2.43.2@o2ib:/tacc /mnt/lustre<BR>
</SPAN></FONT><SPAN STYLE='font-size:13.0px'><FONT FACE="Arial"> <BR>
</FONT></SPAN></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'><BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></SPAN></FONT><FONT SIZE="2"><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:10.0px'>_______________________________________________<BR>
Lustre-discuss mailing list<BR>
Lustre-discuss@lists.lustre.org<BR>
<a href="http://lists.lustre.org/mailman/listinfo/lustre-discuss">http://lists.lustre.org/mailman/listinfo/lustre-discuss</a><BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT SIZE="2"><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:10.0px'><BR>
</SPAN></FONT></FONT>
</BODY>
</HTML>