Hi James,<br><br>It is possible and I did it around 3 years ago on lustre 1.6 but I think it still should work on 1.8<br><br><div style="margin: 0px;"><font style="font: 12px Helvetica;" face="Helvetica" size="3">Stop Lustre file system</font></div>
<div style="margin: 0px;"><font style="font: 12px Helvetica;" face="Helvetica" size="3">in order to change file system name run for each target:</font></div><div style="margin: 0px;"><font style="font: 12px Helvetica;" face="Helvetica" size="3">tunefs.lustre --fsname=<fsname> --writeconf /dev/<block_device_name></font></div>
<div style="margin: 0px;"><font style="font: 12px Helvetica;" face="Helvetica" size="3">for each target do mount as ldiskfs file system. This need to be done on all OSS's and on MDS</font></div><div style="margin: 0px;">
<font style="font: 12px Helvetica;" face="Helvetica" size="3">mount -t ldiskfs /dev/<device_name> /mnt/<target_mount_point></font></div><div style="margin: 0px;"><font style="font: 12px Helvetica;" face="Helvetica" size="3">Delete file /mnt/<target_mount_point>/<span class="il">last_rcvd   # back it up before deleting just in case :)<br>
umount all targets<br></span></font></div><div style="margin: 0px;"><font style="font: 12px Helvetica;" face="Helvetica" size="3">Start filesystem using new name.<br><br></font></div><br><div class="gmail_quote">On 1 March 2011 21:03, James Robnett <span dir="ltr"><<a href="mailto:jrobnett@aoc.nrao.edu">jrobnett@aoc.nrao.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br>
   I asked a while back about renaming a lustre instance.<br>
<br>
   After a variety of failed attempts I finally just reverted<br>
everything.  I'd still like to figure out the exact process<br>
(or if it's trivially possible) for renaming a lustre instance.<br>
<br>
   It doesn't appear to be as simple as this on the MDS<br>
tunefs.lustre --writeconf --mgs --mdt --fsname="foobar" /dev/XXX<br>
<br>
   and on the OSS<br>
<div class="im">  tunefs.lustre --writeconf --mgsnode={MGS_IP_ADDR}@tcp0<br>
--fsname="foobar" /dev/XXX<br>
<br>
</div>   We have two distinct lustre installs with the name "lustre" and<br>
I'd like to rename the test one to simplify parsing of<br>
/proc/fs/lustre/llite/XXXX on the clients.<br>
<br>
   Some docs for 1.4 to 1.6 migration reference a --reformat option<br>
but that has ugly connotations and it's not documented in the actual<br>
tunefs.lustre man page, which itself claims won't reformat or destroy<br>
data.<br>
<br>
    If there's no non-destructive way to do it that's fine.  If there's<br>
an incredibly simple way and I'm being an idiot my apologies (but<br>
I'd still like to know).<br>
<font color="#888888"><br>
James Robnett<br>
NRAO/NM<br>
</font>ps: As mentioned in the original post<br>
<a href="http://lists.lustre.org/pipermail/lustre-discuss/2011-February/015076.html" target="_blank">http://lists.lustre.org/pipermail/lustre-discuss/2011-February/015076.html</a><br>
this is a simple 1.8.5 install with a combined MGS/MDT.<br>
<div><div></div><div class="h5">_______________________________________________<br>
Lustre-discuss mailing list<br>
<a href="mailto:Lustre-discuss@lists.lustre.org">Lustre-discuss@lists.lustre.org</a><br>
<a href="http://lists.lustre.org/mailman/listinfo/lustre-discuss" target="_blank">http://lists.lustre.org/mailman/listinfo/lustre-discuss</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Wojciech Turek<br><br>Senior System Architect<br><br>High Performance Computing Service<br>University of Cambridge<br>Email: <a href="mailto:wjt27@cam.ac.uk" target="_blank">wjt27@cam.ac.uk</a><br>
Tel: (+)44 1223 763517 <br>