[Lustre-discuss] problem formatting the mgs.

James Beal james.beal at sanger.ac.uk
Sun Feb 15 02:08:34 PST 2009


I had all this working smoothly in the past but I am now stuck  
here..... Any suggestions welcome.


uname -a
Linux sf3-mds1 2.6.22.19-lustre-1.6.6 #2 SMP Tue Nov 18 09:21:20 GMT  
2008 x86_64 GNU/Linux


  mkfs.lustre --reformat --mgs --fsname=sf3-1 -- 
failnode=172.17.99.9 at tcp0 --mkfsoptions '"-Estride=8,stripe- 
width=112"' /dev/sf3-1-mdt0/sf3-1

    Permanent disk data:
Target:     MGS
Index:      unassigned
Lustre FS:  sf3-1
Mount type: ldiskfs
Flags:      0x74
               (MGS needs_index first_time update )
Persistent mount opts: errors=remount-ro,iopen_nopriv,user_xattr
Parameters: failover.node=172.17.99.9 at tcp

device size = 1738684MB
2 6 22
formatting backing filesystem ldiskfs on /dev/sf3-1-mdt0/sf3-1
	target name  MGS
	4k blocks     0
	options       "-Estride=8,stripe-width=112" -J size=400 -q -O  
dir_index,uninit_groups,mmp -F
mkfs_cmd = mkfs.ext2 -j -b 4096 -L MGS "-Estride=8,stripe-width=112" - 
J size=400 -q -O dir_index,uninit_groups,mmp -F /dev/sf3-1-mdt0/sf3-1
mkfs.lustre: Unable to mount /dev/sf3-1-mdt0/sf3-1: Invalid argument

mkfs.lustre FATAL: failed to write local files
mkfs.lustre: exiting with 22 (Invalid argument)

lvdisplay
   --- Logical volume ---
   LV Name                /dev/sf3-1-mdt0/sf3-1
   VG Name                sf3-1-mdt0
   LV UUID                9c7OXl-ALAd-CjZj-9H2D-bA2P-btsY-RCcmEA
   LV Write Access        read/write
   LV Status              available
   # open                 0
   LV Size                1.66 TB
   Current LE             434671
   Segments               1
   Allocation             inherit
   Read ahead sectors     0
   Block device           254:2

   --- Logical volume ---
   LV Name                /dev/sf3-1-msg0/sf3-1
   VG Name                sf3-1-msg0
   LV UUID                fzRLlw-lF6s-olIZ-9RXr-VgJm-WwtH-yMbVqL
   LV Write Access        read/write
   LV Status              available
   # open                 0
   LV Size                199.93 GB
   Current LE             51183
   Segments               1
   Allocation             inherit
   Read ahead sectors     0
   Block device           254:3

dmesg ....
eth1: no IPv6 routers present
VFS: Can't find ldiskfs filesystem on dev dm-2.
VFS: Can't find ldiskfs filesystem on dev dm-2.


The following modules probe happily : lustre, lnet, ldiskfs

sysctl -w lnet.debug=-1
lnet.debug = -1


sf3-mds1:/var/log# mkfs.lustre --reformat --mgs --fsname=sf3-1 -- 
failnode=172.17.99.9 at tcp0 --mkfsoptions '"-Estride=8,stripe- 
width=112"' /dev/sf3-1-mdt0/sf3-1

    Permanent disk data:
.......
mkfs.lustre: exiting with 22 (Invalid argument)
sf3-mds1:/var/log#  lctl dk /tmp/debug
Debug log: 3 lines, 3 kept, 0 dropped.
sf3-mds1:/var/log# sysctl -w lnet.debug=0
lnet.debug = 0
sf3-mds1:/var/log# cat /tmp/debug
00000400:02000000:7:1234692197.225082:0:4360:0:(api-ni.c: 
1124:lnet_startup_lndnis()) Added LNI 172.17.99.10 at tcp [8/256]
00000400:02000000:7:1234692197.225242:0:4434:0:(acceptor.c: 
406:lnet_acceptor()) Accept secure, port 988
00000400:00020000:7:1234692197.225324:0:4360:0:(router_proc.c: 
1013:lnet_proc_init()) couldn't create proc entry sys/lnet/stats






-- 
 The Wellcome Trust Sanger Institute is operated by Genome Research 
 Limited, a charity registered in England with number 1021457 and a 
 company registered in England with number 2742969, whose registered 
 office is 215 Euston Road, London, NW1 2BE. 



More information about the lustre-discuss mailing list