Hi, when I try to create the ostdb for lfsck I get this: Pass 6: Acquiring information for lfsck error getting mds_hdr (3685469441:8) in /data/home/bschubert/tmp/lustre/msdb: DB_NOTFOUND: No matching key/data pair found e2fsck: aborted But file shows its a bdb file: sn-2:~# file /data/home/bschubert/tmp/lustre/msdb /data/home/bschubert/tmp/lustre/msdb: Berkeley DB (Btree, version 9, native byte-order) So whats wrong? Thanks, Bernd -- Bernd Schubert Q-Leap Networks GmbH
On Wednesday 25 July 2007 14:34:40 Bernd Schubert wrote:> Hi, > > when I try to create the ostdb for lfsck I get this: > > Pass 6: Acquiring information for lfsck > error getting mds_hdr (3685469441:8) in > /data/home/bschubert/tmp/lustre/msdb: DB_NOTFOUND: No matching key/data > pair found > e2fsck: abortedThats a problem of e2fsprogs-cfs6, when one creates the mds database with -cfs8 it additionally writes a msdb.mdshdr file. However, with -cfs8 I now get in pass 6 some strange messages beo-103:~# ~bschubert/bin/e2fsck.static -n -v --mdsdb ~bschubert/tmp/lustre/msdb /dev/sda4 e2fsck 1.39.cfs8 (7-Apr-2007) /dev/sda4 lustre database creation, check forced. Pass 1: Checking inodes, blocks, and sizes MDS: ost_idx 0 max_id 2599831 MDS: ost_idx 1 max_id 2597520 MDS: got 16 bytes = 2 entries in lov_objids MDS: max_files = 236536 MDS: num_osts = 2 mds info db file written Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information Pass 6: Acquiring information for lfsck warning MDS inode f8XXXX (inum 2196307): DB_KEYEXIST: Key/data pair already exists hard link? warning MDS inode f3eXXXXXXXXXXXXXXXXXXXXXXXXXXXXX$ (inum 2361448): DB_KEYEXIST: Key/data pair already exists hard link? warning MDS inode f7fXXXXXXXXXXXXX? (inum 2164717): DB_KEYEXIST: Key/data pair already exists hard link? warning MDS inode f29XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX ! (inum 2164653): DB_KEYEXIST: Key/data pair already exists hard link? warning MDS inode f21XXXXXXXXXXXXXg?# (inum 2197976): DB_KEYEXIST: Key/data pair already exists hard link? warning MDS inode f3bX$ (inum 2197976): DB_KEYEXIST: Key/data pair already exists hard link? warning MDS inode f34X?p( (inum 2395933): DB_KEYEXIST: Key/data pair already exists hard link? warning MDS inode f5cXXXXX|n( (inum 2396146): DB_KEYEXIST: Key/data pair already exists hard link? warning MDS inode f75XX (inum 2393989): DB_KEYEXIST: Key/data pair already exists hard link? warning MDS inode f78XXXXXXXXXXXXXXXXXXXXXXe1XIo& (inum 2524707): DB_KEYEXIST: Key/data pair already exists hard link? warning MDS inode f56XXXXXXXXXX (inum 2360127): DB_KEYEXIST: Key/data pair already exists hard link? Is that normal? Thanks, Bernd -- Bernd Schubert Q-Leap Networks GmbH
On Jul 25, 2007 14:54 +0200, Bernd Schubert wrote:> warning MDS inode f8XXXX (inum 2196307): DB_KEYEXIST: Key/data pair already > exists hard link? > warning MDS inode f3eXXXXXXXXXXXXXXXXXXXXXXXXXXXXX$ (inum 2361448): > DB_KEYEXIST: Key/data pair already exists hard link? > warning MDS inode f7fXXXXXXXXXXXXX? (inum 2164717): DB_KEYEXIST: Key/data > pair already exists hard link? > warning MDS inode f29XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXAre these files in fact hard links? Cheers, Andreas -- Andreas Dilger Principal Software Engineer Cluster File Systems, Inc.
On Wed, Jul 25, 2007 at 02:34:34PM -0600, Andreas Dilger wrote:> On Jul 25, 2007 14:54 +0200, Bernd Schubert wrote: > > warning MDS inode f8XXXX (inum 2196307): DB_KEYEXIST: Key/data pair already > > exists hard link? > > warning MDS inode f3eXXXXXXXXXXXXXXXXXXXXXXXXXXXXX$ (inum 2361448): > > DB_KEYEXIST: Key/data pair already exists hard link? > > warning MDS inode f7fXXXXXXXXXXXXX? (inum 2164717): DB_KEYEXIST: Key/data > > pair already exists hard link? > > warning MDS inode f29XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX > > Are these files in fact hard links?Hmm, I already deleted that specfic filesystem (dd''ed some parts in it to make e2fsck to find some errors). The files there had been created by fsstress, so I don''t know. But I just get similar messages on another filesystem warning MDS inode wineboot?? (inum 96440985): DB_KEYEXIST: Key/data pair already exists hard link? warning MDS inode winefile? (inum 96440985): DB_KEYEXIST: Key/data pair already exists hard link? warning MDS inode winemine? (inum 96440985): DB_KEYEXIST: Key/data pair already exists hard link? warning MDS inode winepath? (inum 96440985): DB_KEYEXIST: Key/data pair already exists hard link? These are indeed hardlinks. Is there anything I should worry about? Thanks, Bernd
So is the mds.mdshdr file necessary for creating ostdb files? Wojciech 2007/7/25 Bernd Schubert <bs at q-leap.de>> On Wednesday 25 July 2007 14:34:40 Bernd Schubert wrote: > > Hi, > > > > when I try to create the ostdb for lfsck I get this: > > > > Pass 6: Acquiring information for lfsck > > error getting mds_hdr (3685469441:8) in > > /data/home/bschubert/tmp/lustre/msdb: DB_NOTFOUND: No matching key/data > > pair found > > e2fsck: aborted > > Thats a problem of e2fsprogs-cfs6, when one creates the mds database > with -cfs8 it additionally writes a msdb.mdshdr file. > However, with -cfs8 I now get in pass 6 some strange messages > > > beo-103:~# ~bschubert/bin/e2fsck.static -n -v --mdsdb > ~bschubert/tmp/lustre/msdb /dev/sda4 > e2fsck 1.39.cfs8 (7-Apr-2007) > /dev/sda4 lustre database creation, check forced. > Pass 1: Checking inodes, blocks, and sizes > MDS: ost_idx 0 max_id 2599831 > MDS: ost_idx 1 max_id 2597520 > MDS: got 16 bytes = 2 entries in lov_objids > MDS: max_files = 236536 > MDS: num_osts = 2 > mds info db file written > Pass 2: Checking directory structure > Pass 3: Checking directory connectivity > Pass 4: Checking reference counts > Pass 5: Checking group summary information > Pass 6: Acquiring information for lfsck > warning MDS inode f8XXXX (inum 2196307): DB_KEYEXIST: Key/data pair already > exists hard link? > warning MDS inode f3eXXXXXXXXXXXXXXXXXXXXXXXXXXXXX$ (inum 2361448): > DB_KEYEXIST: Key/data pair already exists hard link? > warning MDS inode f7fXXXXXXXXXXXXX? (inum 2164717): DB_KEYEXIST: Key/data > pair already exists hard link? > warning MDS inode f29XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX > ! (inum > 2164653): DB_KEYEXIST: Key/data pair already exists hard link? > warning MDS inode f21XXXXXXXXXXXXXg?# (inum 2197976): DB_KEYEXIST: Key/data > pair already exists hard link? > warning MDS inode f3bX$ (inum 2197976): DB_KEYEXIST: Key/data pair already > exists hard link? > warning MDS inode f34X?p( (inum 2395933): DB_KEYEXIST: Key/data pair > already > exists hard link? > warning MDS inode f5cXXXXX|n( (inum 2396146): DB_KEYEXIST: Key/data pair > already exists hard link? > warning MDS inode f75XX (inum 2393989): DB_KEYEXIST: Key/data pair already > exists hard link? > warning MDS inode f78XXXXXXXXXXXXXXXXXXXXXXe1XIo& (inum 2524707): > DB_KEYEXIST: > Key/data pair already exists hard link? > warning MDS inode f56XXXXXXXXXX (inum 2360127): DB_KEYEXIST: Key/data pair > already exists hard link? > > > Is that normal? > > Thanks, > Bernd > > -- > Bernd Schubert > Q-Leap Networks GmbH > > _______________________________________________ > Lustre-discuss mailing list > Lustre-discuss at clusterfs.com > https://mail.clusterfs.com/mailman/listinfo/lustre-discuss >-- -- Wojciech Turek Assistant System Manager High Performance Computing Service University of Cambridge Email: wjt27 at cam.ac.uk Tel: (+)44 1223 763517 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.lustre.org/pipermail/lustre-discuss/attachments/20091013/791b27b7/attachment.html
Donk! I found the answer by reading man page for e2fsck "For convenience a stub mdsdb.hdr file is generated for use by the OST e2fsck to avoid the need to wait for the MDS e2fsck to finish or copy the full mdsdb to the OSTs." 2009/10/13 Wojciech Turek <wjt27 at cam.ac.uk>> So is the mds.mdshdr file necessary for creating ostdb files? > > Wojciech > > 2007/7/25 Bernd Schubert <bs at q-leap.de> > > On Wednesday 25 July 2007 14:34:40 Bernd Schubert wrote: >> > Hi, >> > >> > when I try to create the ostdb for lfsck I get this: >> > >> > Pass 6: Acquiring information for lfsck >> > error getting mds_hdr (3685469441:8) in >> > /data/home/bschubert/tmp/lustre/msdb: DB_NOTFOUND: No matching key/data >> > pair found >> > e2fsck: aborted >> >> Thats a problem of e2fsprogs-cfs6, when one creates the mds database >> with -cfs8 it additionally writes a msdb.mdshdr file. >> However, with -cfs8 I now get in pass 6 some strange messages >> >> >> beo-103:~# ~bschubert/bin/e2fsck.static -n -v --mdsdb >> ~bschubert/tmp/lustre/msdb /dev/sda4 >> e2fsck 1.39.cfs8 (7-Apr-2007) >> /dev/sda4 lustre database creation, check forced. >> Pass 1: Checking inodes, blocks, and sizes >> MDS: ost_idx 0 max_id 2599831 >> MDS: ost_idx 1 max_id 2597520 >> MDS: got 16 bytes = 2 entries in lov_objids >> MDS: max_files = 236536 >> MDS: num_osts = 2 >> mds info db file written >> Pass 2: Checking directory structure >> Pass 3: Checking directory connectivity >> Pass 4: Checking reference counts >> Pass 5: Checking group summary information >> Pass 6: Acquiring information for lfsck >> warning MDS inode f8XXXX (inum 2196307): DB_KEYEXIST: Key/data pair >> already >> exists hard link? >> warning MDS inode f3eXXXXXXXXXXXXXXXXXXXXXXXXXXXXX$ (inum 2361448): >> DB_KEYEXIST: Key/data pair already exists hard link? >> warning MDS inode f7fXXXXXXXXXXXXX? (inum 2164717): DB_KEYEXIST: Key/data >> pair already exists hard link? >> warning MDS inode f29XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX >> ! (inum >> 2164653): DB_KEYEXIST: Key/data pair already exists hard link? >> warning MDS inode f21XXXXXXXXXXXXXg?# (inum 2197976): DB_KEYEXIST: >> Key/data >> pair already exists hard link? >> warning MDS inode f3bX$ (inum 2197976): DB_KEYEXIST: Key/data pair already >> exists hard link? >> warning MDS inode f34X?p( (inum 2395933): DB_KEYEXIST: Key/data pair >> already >> exists hard link? >> warning MDS inode f5cXXXXX|n( (inum 2396146): DB_KEYEXIST: Key/data pair >> already exists hard link? >> warning MDS inode f75XX (inum 2393989): DB_KEYEXIST: Key/data pair already >> exists hard link? >> warning MDS inode f78XXXXXXXXXXXXXXXXXXXXXXe1XIo& (inum 2524707): >> DB_KEYEXIST: >> Key/data pair already exists hard link? >> warning MDS inode f56XXXXXXXXXX (inum 2360127): DB_KEYEXIST: Key/data pair >> already exists hard link? >> >> >> Is that normal? >> >> Thanks, >> Bernd >> >> -- >> Bernd Schubert >> Q-Leap Networks GmbH >> >> _______________________________________________ >> Lustre-discuss mailing list >> Lustre-discuss at clusterfs.com >> https://mail.clusterfs.com/mailman/listinfo/lustre-discuss >> > > > > -- > -- > Wojciech Turek > > Assistant System Manager > > High Performance Computing Service > University of Cambridge > Email: wjt27 at cam.ac.uk > Tel: (+)44 1223 763517 >-- -- Wojciech Turek Assistant System Manager High Performance Computing Service University of Cambridge Email: wjt27 at cam.ac.uk Tel: (+)44 1223 763517 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.lustre.org/pipermail/lustre-discuss/attachments/20091013/0a3d5440/attachment-0001.html