I have a single MDS server and 4 OSSes each with 2 OSTs. Currently
all OST's and the MDT are unmounted.
I would like to change the filesystem name without damaging any data.
Looking at examples it's not entirely clear to me whether I need to do
anything on the OSSes and what the exact syntax for tunefs should be
on the MDS.
Could somebody provide the proper options/flags I need and whether the
OSSes do or don't need to be informed.
for example
tunefs.lustre --writeconf --mgs --fsname="foobar" /dev/XXX
James Robnett
_______________________________________________
Lustre-discuss mailing list
Lustre-...@lists.lustre.org
http://lists.lustre.org/mailman/listinfo/lustre-discuss
In fact my initial attempt
I'm fairly certain with a combined MDT/MGS the command
tunefs.lustre --writeconf --fsname={name} /dev/{dev}
is incorrect as it generated MGS errors, resubmitting the command
with --fsname={origname} allowed the MDT to be mounted but now
MGS complains when the OST's try to mount that it doesn't know about
them.
I assume the proper sequence (with everything unmounted) is
tunefs.lustre --writeconf --mgs --fsname="foobar" /dev/XXX
on the MDT/MGS
and for each OST
tunefs.lustre --writeconf --mgsnode={MGS_IP_ADDR}@tcp0
--fsname="foobar" /dev/XXX
but I'm leary of mucking things up further.
BTW, this is my test lustre install not the production one so it's
not exactly the end of the world if it's destroyed though there is some
benchmark data on it I'd like to recover so I'd prefer not.
James
James Robnett wrote:
> I thought this would be trivial but after looking at the tunefs.lustre
> docs I find I'm not 100% positive.
>
> I have a single MDS server and 4 OSSes each with 2 OSTs. Currently
> all OST's and the MDT are unmounted.
>
> I would like to change the filesystem name without damaging any data.
>
> Looking at examples it's not entirely clear to me whether I need to do
> anything on the OSSes and what the exact syntax for tunefs should be
> on the MDS.
>
> Could somebody provide the proper options/flags I need and whether the
> OSSes do or don't need to be informed.
>
> for example
>
>
After a variety of failed attempts I finally just reverted
everything. I'd still like to figure out the exact process
(or if it's trivially possible) for renaming a lustre instance.
It doesn't appear to be as simple as this on the MDS
tunefs.lustre --writeconf --mgs --mdt --fsname="foobar" /dev/XXX
and on the OSS
tunefs.lustre --writeconf --mgsnode={MGS_IP_ADDR}@tcp0
--fsname="foobar" /dev/XXX
We have two distinct lustre installs with the name "lustre" and
I'd like to rename the test one to simplify parsing of
/proc/fs/lustre/llite/XXXX on the clients.
Some docs for 1.4 to 1.6 migration reference a --reformat option
but that has ugly connotations and it's not documented in the actual
tunefs.lustre man page, which itself claims won't reformat or destroy
data.
If there's no non-destructive way to do it that's fine. If there's
an incredibly simple way and I'm being an idiot my apologies (but
I'd still like to know).
James Robnett
NRAO/NM
ps: As mentioned in the original post
http://lists.lustre.org/pipermail/lustre-discuss/2011-February/015076.html
this is a simple 1.8.5 install with a combined MGS/MDT.
Anyway I'll give that a shot. Looks like I was doing the right
thing modulo the ldiskfs step and deleting last_rcvd. This is our
test system so if I goof it's only annoying to me.
James
> Actually one correction to my earlier post you need to use --reformat
> option
> with tunefs.lustre like this:
>
> tunefs.lustre --reformat --fsname=<fsname> --writeconf
> /dev/<block_device_name>
>
> This is safe and no data will be lost, --reformat is just to force the
> fsname change
>
> BTW the rename procedure is in the manual but hidden under the "Restoring
> the File System From a Snapshot" chapter
>
> Cheers
>
> Wojciech
>
_______________________________________________
Thanks for the reply. I saw the "Restoring the File system from a
snapshot" docs and its reference to --reformat. It wasn't clear from
the context whether that was destructive.
Anyway I'll give that a shot. Looks like I was doing the right
thing modulo the ldiskfs step and deleting last_rcvd. This is our
test system so if I goof it's only annoying to me.
James
> Actually one correction to my earlier post you need to use --reformat
> option
> with tunefs.lustre like this:
>
> tunefs.lustre --reformat --fsname=<fsname> --writeconf
> /dev/<block_device_name>
>
> This is safe and no data will be lost, --reformat is just to force the
> fsname change
>
> BTW the rename procedure is in the manual but hidden under the "Restoring
> the File System From a Snapshot" chapter
>
> Cheers
>
> Wojciech
>