[Lustre-discuss] Lustre FS - OST external journal and lustre_createcsv

Mail System mailsystems at rambler.ru
Mon Sep 14 05:40:41 PDT 2009




Hello

I use external journal for OST, but at creation of a configuration file 
(/usr/sbin/lustre_createcsv) there is an error

lustre_createcsv: ERROR: lustre_createcsv: get_journalsize () error: 
remote command error: debugfs 1.41.6.sun1 (30-May-2009)

I have checked up the given script /usr/sbin/lustre_createcsv and have 
found a place where there is an error

############################################################################################################
# get_journalsize target_devname hostname
# Get the journal size of lustre target @target_devname from @hostname
get_journalsize() {
        local target_devname=$1
        local host_name=$2
        local journal_inode=
        local journal_size=
        local ret_str

        # Execute remote command to get the journal inode number
        ret_str=`${REMOTE} ${host_name} "PATH=\$PATH:/sbin:/usr/sbin \
debugfs -R 'stats -h' ${target_devname} | grep 'Journal inode:'" 2>&1`
        if [ $? -ne 0 -a -n "${ret_str}" ]; then
                echo "`basename $0`: get_journalsize() error:" \
                     "remote command error: ${ret_str}"
                return 1
        fi

        ret_str=${ret_str#${ret_str%Journal inode:*}}
        journal_inode=`echo ${ret_str} | awk '{print $3}'`
        if [ -z "`echo ${journal_inode}|awk '/^[[:digit:]]/ {print 
$0}'`" ]
        then
                echo "`basename $0`: get_journalsize() error: can't" \
                "get journal inode of ${target_devname} in 
${host_name}!"
                return 1
        fi

        # Execute remote command to get the journal size
        ret_str=`${REMOTE} ${host_name} "PATH=\$PATH:/sbin:/usr/sbin \
debugfs -R 'stat <${journal_inode}>' ${target_devname}|grep '^User:'" 
2>&1`
        if [ $? -ne 0 -a -n "${ret_str}" ]; then
                echo "`basename $0`: get_journalsize() error:" \
                     "remote command error: ${ret_str}"
                return 1
        fi
################################################################################################

In the given fragment of a code on OST server the command which should 
be executed should deduce value Journal inode:

debugfs-R ' stats-h ' $ {target_devname} | grep ' Journal inode:'

$ {target_devname}  == my OST device (/dev/sdb)

I have executed the given command on OST server but parametre Journal 
inode: in a command conclusion there was no because I used external 
journal

##################################################################################################
[root at OST1 log]# debugfs -R 'stats -h' /dev/sdb
debugfs 1.41.6.sun1 (30-May-2009)
Filesystem volume name:   lustre-OST0000
Last mounted on:          <not available>
Filesystem UUID:          a4ef945d-5c6e-48bb-882b-91de7d87575d
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index 
filetype needs_recovery extent mmp sparse_super large_file uninit_bg
Filesystem flags:         signed_directory_hash
Default mount options:    (none)
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              36610048
Block count:              146432000
Reserved block count:     7321600
Free blocks:              131009211
Free inodes:              36609960
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      989
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8192
Inode blocks per group:   512
Filesystem created:       Mon Sep 14 16:00:35 2009
Last mount time:          Mon Sep 14 16:10:13 2009
Last write time:          Mon Sep 14 16:10:13 2009
Mount count:              3
Maximum mount count:      31
Last checked:             Mon Sep 14 16:00:35 2009
Check interval:           15552000 (6 months)
Next check after:         Sat Mar 13 15:00:35 2010
Lifetime writes:          9 GB
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:               256
Required extra isize:     28
Desired extra isize:      28
Journal UUID:             86c621e0-1476-4673-a514-45d7ede814de
Journal device:           0x0803
Default directory hash:   half_md4
Directory Hash Seed:      54b8d5e4-55eb-441b-b08b-954c1237ba87
MMP block number:         1545
MMP update interval:      1
Directories:              39
####################################################################################################

only journal device information

Journal UUID:             86c621e0-1476-4673-a514-45d7ede814de
Journal device:           0x0803

How to me now to create a configuration file?

Thanks
--
Mail System.

--
Internet Explorer 8 - ускоритель интернета! http://ie.rambler.ru/



More information about the lustre-discuss mailing list