Quote:
Originally Posted by vap16oct1984
Yes you are shutdown -h cleanly unmounts the filesystem before powering off. Well let me clear few things.
1)Can you share your scripts with us?
2)Here the problem comes in which system i mean either in remote system or in a system in which you runs the script?
3)In which file system you have write backup data?
4)What are the file system that you are using in both systems?
5)You are taking about fsck fails to the check test on boot up. This happens in which system out of two? And how you know that fsck is not
working while booting?
Well its hard to say much more about this before knowing these facts?
So please let me know all these.
|
Here is my script, for what it is worth.
Code:
#!/bin/bash
#Day of month
DOM=`'date' "+%d"`
#Day of week. 1 is Monday, 0 is Sunday.
DOW=`'date' "+%w"`
if [ "$DOM" == "01" ]; then
nice -19 ionice -n7 rsnapshot monthly
fi
if [ "$DOW" == "0" ]; then
nice -19 ionice -n7 rsnapshot weekly
fi
nice -19 ionice -n7 rsnapshot sync && nice -19 ionice -n7 rsnapshot daily
sync
if [ ! -f /tmp/noautopoweroff ]; then
/sbin/shutdown -h now
fi
This script is run on the machine on which the backups are being stored (the local machine) and not on the machine to be backed up (the remote machine).
The backed up data is written to an ext4 filesystem.
I'm not sure that it is relevant, but the remote filesystems (containing data to be backed up) are reiserfs. The remote system has lots of small files too.
On the local machine after 30 mounts, fsck checks the integrity of my local filesystem. This integrity check often fails and I have to manually repair the filesystem.
To check this, I just unmounted the filesystem and ran "fsck -C -f <dev>" and got the following:
Code:
.
.
Problem in HTREE directory inode 3178937: node (613) has invalid depth (2)
Problem in HTREE directory inode 3178937: node (613) has bad max hash
Problem in HTREE directory inode 3178937: node (613) not referenced
Problem in HTREE directory inode 3178937: node (614) has invalid depth (2)
Problem in HTREE directory inode 3178937: node (614) has bad max hash
Problem in HTREE directory inode 3178937: node (614) not referenced
Problem in HTREE directory inode 3178937: node (615) has invalid depth (2)
Problem in HTREE directory inode 3178937: node (615) has bad max hash
Problem in HTREE directory inode 3178937: node (615) not referenced
Problem in HTREE directory inode 3178937: node (616) has invalid depth (2)
Problem in HTREE directory inode 3178937: node (616) has bad max hash
Problem in HTREE directory inode 3178937: node (616) not referenced
Invalid HTREE directory inode 3178937 (/.snapshots/daily.1/modolingo/home/sekretariat/.maildir/shared-folders/training/spam/cur). Clear HTree index<y>? yes