[Top] [All Lists]

Problems with xfs_fsr stdout when run by cron.

To: xfs@xxxxxxxxxxx
Subject: Problems with xfs_fsr stdout when run by cron.
From: Larry Johnson <keepitsimpleengineer@xxxxxxxxx>
Date: Thu, 9 Jun 2011 08:56:24 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=z2Pj9fZsAq6wi/06cWY6QzlV2POupSSkyQGmI6SxyRQ=; b=S35P27JutaqT4XitMmQ4gYJXY8oOd0tU1+V8Npw/hG9Udxkx9/xfTbHF0NunwUIJ/y d8gseuj1qpycpoatEWhNp+fwEowGxolSaU7XSFY820VCkRTeovSwXEqMJHu1x9Zy+6CS K7Ye0eodjING+AsUbvYzQSlJ1NFhhJfmWfsjo=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=d5OXp/TpBjc/szcHuYsd6mkZ7cmGQ84xfdGVDfSPTAiFJg7EYezE0aRRa+yBbdcqjK 1CEsKnPsJL0ywIrdDUinp4f9YZvM9nYQPkGBUq5E+qqyZsZXq3LKY2m2UAP2TYGkl3rm bOPvrR4nBP9GPNGB0FSwdT/7ggB+uAiyIU8HQ=
This is on a ubuntu 10.10 64bit mythtv system.

root@htpc:~# df -h -l -T --total -t xfs
Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/sda3      xfs    144G  118G   26G  82% /iso
/dev/sdb1      xfs    1.9T  1.4T  433G  77% /pvr
/dev/sdc1      xfs    1.9T  226G  1.6T  13% /pvs
total            -    3.8T  1.8T  2.1T  46%

I had severe fragmentation on /dev/sdb1 which was resolved by running
xfs_fsr about 10 times.  Subsequently I have added /dev/sdc1.

The problem occurs when I wrote a script to be run with cron,
reorganize the xfs partitions and write a report in /var/log and write
a line or two in syslog.

The output of "xfs_fsr -v -t $time_for_run -f $left_off -m $used_mtab"
when run as cron either goes to syslog instead of stdout or corrupts
the log file.  When run from a login terminal, it behaves as expected.

A thread at unix.com forum have not resulted in explaining this

Initially I thought it was some error on my part but I cannot rule out
some problem with xfs_fsr.  "xfs_db -r -c frag $device_file_path 2>&1"
run both before and after xfs_fsr both behave as expected when run by
cron or from a login session.

Anybody have any suggestions?


<Prev in Thread] Current Thread [Next in Thread>
  • Problems with xfs_fsr stdout when run by cron., Larry Johnson <=