<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>Problem with write_conf</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>

<P><FONT SIZE=2>Hi,<BR>
I would like to be able to change a file system name.  Towards that end, I have run the following commands as an experiment:<BR>
<BR>
  mkfs.lustre --reformat --fsname BEFORE  --device-size=10000 --mgs --mdt  --mgsnode=10.2.9.1@o2ib0 /dev/mapper/map0<BR>
  dmesg -c<BR>
  mount -t lustre /dev/mapper/map0 /mnt/mdt<BR>
  dmesg -c<BR>
  umount /mnt/mdt<BR>
  dmesg -c<BR>
  tunefs.lustre --writeconf --fsname=AFTER --mgs --mdt /dev/mapper/map0<BR>
  dmesg -c<BR>
  mount -t lustre /dev/mapper/map0 /mnt/mdt<BR>
  dmesg -c<BR>
<BR>
Unfortunately, this does not work.  Can someone please explain the correct sequence of commands to ues?  The output of each command is as follows.<BR>
<BR>
Thanks.<BR>
<BR>
[root@ts-hss2-01 ~]# mkfs.lustre --reformat --fsname BEFORE  --device-size=10000 --mgs --mdt  --mgsnode=10.2.9.1@o2ib0 /dev/mapper/map0<BR>
<BR>
   Permanent disk data:<BR>
Target:     BEFORE-MDTffff<BR>
Index:      unassigned<BR>
Lustre FS:  BEFORE<BR>
Mount type: ldiskfs<BR>
Flags:      0x75<BR>
              (MDT MGS needs_index first_time update )<BR>
Persistent mount opts: iopen_nopriv,user_xattr,errors=remount-ro<BR>
Parameters: mgsnode=10.2.9.1@o2ib mdt.group_upcall=/usr/sbin/l_getgroups<BR>
<BR>
device size = 1632256MB<BR>
2 6 18<BR>
formatting backing filesystem ldiskfs on /dev/mapper/map0<BR>
        target name  BEFORE-MDTffff<BR>
        4k blocks     2500<BR>
        options        -i 4096 -I 512 -q -O dir_index,extents,uninit_groups -F<BR>
mkfs_cmd = mke2fs -j -b 4096 -L BEFORE-MDTffff  -i 4096 -I 512 -q -O dir_index,extents,uninit_groups -F /dev/mapper/map0 2500<BR>
Writing CONFIGS/mountdata<BR>
[root@ts-hss2-01 ~]# dmesg -c<BR>
LDISKFS-fs: barriers enabled<BR>
kjournald2 starting: pid 1388, dev dm-4:8, commit interval 5 seconds<BR>
LDISKFS FS on dm-4, internal journal on dm-4:8<BR>
LDISKFS-fs: delayed allocation enabled<BR>
LDISKFS-fs: file extents enabled<BR>
LDISKFS-fs: mballoc enabled<BR>
LDISKFS-fs: mounted filesystem dm-4 with ordered data mode<BR>
LDISKFS-fs: mballoc: 1 blocks 1 reqs (0 success)<BR>
LDISKFS-fs: mballoc: 1 extents scanned, 0 goal hits, 1 2^N hits, 0 breaks, 0 lost<BR>
LDISKFS-fs: mballoc: 1 generated and it took 2142<BR>
LDISKFS-fs: mballoc: 512 preallocated, 0 discarded<BR>
<BR>
<BR>
[root@ts-hss2-01 ~]# mount -t lustre /dev/mapper/map0 /mnt/mdt<BR>
[root@ts-hss2-01 ~]# dmesg -c<BR>
LDISKFS-fs: barriers enabled<BR>
kjournald2 starting: pid 1406, dev dm-4:8, commit interval 5 seconds<BR>
LDISKFS FS on dm-4, internal journal on dm-4:8<BR>
LDISKFS-fs: delayed allocation enabled<BR>
LDISKFS-fs: file extents enabled<BR>
LDISKFS-fs: mballoc enabled<BR>
LDISKFS-fs: mounted filesystem dm-4 with ordered data mode<BR>
LDISKFS-fs: mballoc: 0 blocks 0 reqs (0 success)<BR>
LDISKFS-fs: mballoc: 0 extents scanned, 0 goal hits, 0 2^N hits, 0 breaks, 0 lost<BR>
LDISKFS-fs: mballoc: 0 generated and it took 0<BR>
LDISKFS-fs: mballoc: 0 preallocated, 0 discarded<BR>
LDISKFS-fs: barriers enabled<BR>
kjournald2 starting: pid 1410, dev dm-4:8, commit interval 5 seconds<BR>
LDISKFS FS on dm-4, internal journal on dm-4:8<BR>
LDISKFS-fs: delayed allocation enabled<BR>
LDISKFS-fs: file extents enabled<BR>
LDISKFS-fs: mballoc enabled<BR>
LDISKFS-fs: mounted filesystem dm-4 with ordered data mode<BR>
Lustre: MGS MGS started<BR>
Lustre: MGC10.2.9.1@o2ib: Reactivating import<BR>
Lustre: Setting parameter BEFORE-MDT0000.mdt.group_upcall in log BEFORE-MDT0000<BR>
Lustre: Enabling user_xattr<BR>
Lustre: BEFORE-MDT0000: new disk, initializing<BR>
Lustre: BEFORE-MDT0000: Now serving BEFORE-MDT0000 on /dev/mapper/map0 with recovery enabled<BR>
Lustre: 1503:0:(lproc_mds.c:271:lprocfs_wr_group_upcall()) BEFORE-MDT0000: group upcall set to /usr/sbin/l_getgroups<BR>
Lustre: BEFORE-MDT0000.mdt: set parameter group_upcall=/usr/sbin/l_getgroups<BR>
<BR>
<BR>
[root@ts-hss2-01 ~]# umount /mnt/mdt<BR>
[root@ts-hss2-01 ~]# dmesg -c<BR>
Lustre: Failing over BEFORE-MDT0000<BR>
Lustre: Skipped 1 previous similar message<BR>
Lustre: *** setting obd BEFORE-MDT0000 device 'dm-4' read-only ***<BR>
Turning device dm-4 (0xfd00004) read-only<BR>
Lustre: BEFORE-MDT0000: shutting down for failover; client state will be preserved.<BR>
Lustre: MDT BEFORE-MDT0000 has stopped.<BR>
LustreError: 1517:0:(ldlm_request.c:1025:ldlm_cli_cancel_req()) Got rc -108 from cancel RPC: canceling anyway<BR>
LustreError: 1517:0:(ldlm_request.c:1587:ldlm_cli_cancel_list()) ldlm_cli_cancel_list: -108<BR>
Lustre: MGS has stopped.<BR>
LDISKFS-fs: mballoc: 3 blocks 3 reqs (0 success)<BR>
LDISKFS-fs: mballoc: 8 extents scanned, 0 goal hits, 0 2^N hits, 0 breaks, 0 lost<BR>
LDISKFS-fs: mballoc: 1 generated and it took 2598<BR>
LDISKFS-fs: mballoc: 1145 preallocated, 0 discarded<BR>
Removing read-only on unknown block (0xfd00004)<BR>
Lustre: server umount BEFORE-MDT0000 complete<BR>
<BR>
<BR>
[root@ts-hss2-01 ~]# tunefs.lustre --writeconf --fsname=AFTER --mgs --mdt /dev/mapper/map0<BR>
checking for existing Lustre data: found CONFIGS/mountdata<BR>
Reading CONFIGS/mountdata<BR>
<BR>
   Read previous values:<BR>
Target:     BEFORE-MDT0000<BR>
Index:      0<BR>
Lustre FS:  BEFORE<BR>
Mount type: ldiskfs<BR>
Flags:      0x5<BR>
              (MDT MGS )<BR>
Persistent mount opts: iopen_nopriv,user_xattr,errors=remount-ro<BR>
Parameters: mgsnode=10.2.9.1@o2ib mdt.group_upcall=/usr/sbin/l_getgroups<BR>
<BR>
<BR>
   Permanent disk data:<BR>
Target:     AFTER-MDT0000<BR>
Index:      0<BR>
Lustre FS:  AFTER<BR>
Mount type: ldiskfs<BR>
Flags:      0x105<BR>
              (MDT MGS writeconf )<BR>
Persistent mount opts: iopen_nopriv,user_xattr,errors=remount-ro<BR>
Parameters: mgsnode=10.2.9.1@o2ib mdt.group_upcall=/usr/sbin/l_getgroups<BR>
<BR>
Writing CONFIGS/mountdata<BR>
[root@ts-hss2-01 ~]# dmesg -c<BR>
LDISKFS-fs: barriers enabled<BR>
kjournald2 starting: pid 1539, dev dm-4:8, commit interval 5 seconds<BR>
LDISKFS FS on dm-4, internal journal on dm-4:8<BR>
LDISKFS-fs: delayed allocation enabled<BR>
LDISKFS-fs: file extents enabled<BR>
LDISKFS-fs: mballoc enabled<BR>
LDISKFS-fs: recovery complete.<BR>
LDISKFS-fs: mounted filesystem dm-4 with ordered data mode<BR>
LDISKFS-fs: mballoc: 1 blocks 1 reqs (0 success)<BR>
LDISKFS-fs: mballoc: 6 extents scanned, 0 goal hits, 0 2^N hits, 0 breaks, 0 lost<BR>
LDISKFS-fs: mballoc: 1 generated and it took 2905<BR>
LDISKFS-fs: mballoc: 506 preallocated, 0 discarded<BR>
<BR>
<BR>
[root@ts-hss2-01 ~]# mount -t lustre /dev/mapper/map0 /mnt/mdt<BR>
mount.lustre: mount /dev/mapper/map0 at /mnt/mdt failed: Invalid argument<BR>
This may have multiple causes.<BR>
Are the mount options correct?<BR>
Check the syslog for more info.<BR>
[root@ts-hss2-01 ~]# dmesg -c<BR>
LDISKFS-fs: barriers enabled<BR>
kjournald2 starting: pid 1567, dev dm-4:8, commit interval 5 seconds<BR>
LDISKFS FS on dm-4, internal journal on dm-4:8<BR>
LDISKFS-fs: delayed allocation enabled<BR>
LDISKFS-fs: file extents enabled<BR>
LDISKFS-fs: mballoc enabled<BR>
LDISKFS-fs: mounted filesystem dm-4 with ordered data mode<BR>
LDISKFS-fs: mballoc: 0 blocks 0 reqs (0 success)<BR>
LDISKFS-fs: mballoc: 0 extents scanned, 0 goal hits, 0 2^N hits, 0 breaks, 0 lost<BR>
LDISKFS-fs: mballoc: 0 generated and it took 0<BR>
LDISKFS-fs: mballoc: 0 preallocated, 0 discarded<BR>
LDISKFS-fs: barriers enabled<BR>
kjournald2 starting: pid 1575, dev dm-4:8, commit interval 5 seconds<BR>
LDISKFS FS on dm-4, internal journal on dm-4:8<BR>
LDISKFS-fs: delayed allocation enabled<BR>
LDISKFS-fs: file extents enabled<BR>
LDISKFS-fs: mballoc enabled<BR>
LDISKFS-fs: mounted filesystem dm-4 with ordered data mode<BR>
Lustre: MGS MGS started<BR>
Lustre: MGC10.2.9.1@o2ib: Reactivating import<BR>
Lustre: MGS: Logs for fs AFTER were removed by user request.  All servers must be restarted in order to regenerate the logs.<BR>
Lustre: Setting parameter AFTER-MDT0000.mdt.group_upcall in log AFTER-MDT0000<BR>
Lustre: Enabling user_xattr<BR>
LustreError: 157-3: Trying to start OBD AFTER-MDT0000_UUID using the wrong disk BEFORE-MDT0000_UUID. Were the /dev/ assignments rearranged?<BR>
LustreError: 1665:0:(mds_fs.c:828:mds_fs_setup()) cannot read last_rcvd: rc = -22<BR>
LustreError: 1665:0:(handler.c:2007:mds_setup()) AFTER-MDT0000: MDS filesystem method init failed: rc = -22<BR>
LustreError: 1665:0:(obd_config.c:372:class_setup()) setup AFTER-MDT0000 failed (-22)<BR>
LustreError: 1665:0:(obd_config.c:1199:class_config_llog_handler()) Err -22 on cfg command:<BR>
Lustre:    cmd=cf003 0:AFTER-MDT0000  1:AFTER-MDT0000_UUID  2:0  3:AFTER-MDT0000 <BR>
LustreError: 15b-f: MGC10.2.9.1@o2ib: The configuration from log 'AFTER-MDT0000' failed (-22). Make sure this client and the MGS are running compatible versions of Lustre.<BR>
LustreError: 15c-8: MGC10.2.9.1@o2ib: The configuration from log 'AFTER-MDT0000' failed (-22). This may be the result of communication errors between this node and the MGS, a bad configuration, or other errors. See the syslog for more information.<BR>
LustreError: 1566:0:(obd_mount.c:1124:server_start_targets()) failed to start server AFTER-MDT0000: -22<BR>
LustreError: 1566:0:(obd_mount.c:1653:server_fill_super()) Unable to start targets: -22<BR>
LustreError: 1566:0:(obd_config.c:443:class_cleanup()) Device 4 not setup<BR>
LustreError: 1566:0:(ldlm_request.c:1025:ldlm_cli_cancel_req()) Got rc -108 from cancel RPC: canceling anyway<BR>
LustreError: 1566:0:(ldlm_request.c:1587:ldlm_cli_cancel_list()) ldlm_cli_cancel_list: -108<BR>
Lustre: MGS has stopped.<BR>
LDISKFS-fs: mballoc: 1 blocks 1 reqs (0 success)<BR>
LDISKFS-fs: mballoc: 6 extents scanned, 0 goal hits, 0 2^N hits, 0 breaks, 0 lost<BR>
LDISKFS-fs: mballoc: 1 generated and it took 2883<BR>
LDISKFS-fs: mballoc: 503 preallocated, 0 discarded<BR>
Lustre: 1566:0:(obd_mount.c:1473:server_put_super()) Cleaning orphaned obd AFTER-mdtlov<BR>
Lustre: server umount AFTER-MDT0000 complete<BR>
LustreError: 1566:0:(obd_mount.c:2045:lustre_fill_super()) Unable to mount  (-22)<BR>
<BR>
Roger Spellman<BR>
Staff Engineer<BR>
Terascala, Inc.<BR>
508-588-1501<BR>
www.terascala.com <<A HREF="http://www.terascala.com/">http://www.terascala.com/</A>><BR>
</FONT>
</P>

</BODY>
</HTML>