I have tried to do fullbackup with snapshot, the error appears.
My zimbra version is 3.1.2. OS is Fedora Core 4.
Code:
Backup started at:
Sat Jul 29 04:30:02 CST 2006
Host mydomain
Stopping antispam...Done
Stopping antivirus...Done
Stopping imapproxy...Done
Stopping ldap...Done
Stopping logger...Done
Stopping mailbox...Done
Stopping mta...Done
Stopping snmp...Done
Stopping spell...Done
Rounding up size to full physical extent 1.00 GB
Logical volume "ZimbraBackup" created
Host mydomain
Starting ldap...Done.
Starting logger...Done.
Starting mailbox...Done.
Starting mta...Done.
Starting snmp...Done.
Starting spell...Done.
tar: Removing leading `/' from member names
tar: Removing leading `/' from hard link targets
tar: /mnt/ZimbraBackup/zimbra/store/0/34/msg/0/1742-2625.msg: File shrank by 2738413 bytes; padding with zeros
tar: /mnt/ZimbraBackup/zimbra/store/0/34/msg/0/1641-2527.msg: Read error at byte 0, reading 2634 bytes: Input/output error
tar: /mnt/ZimbraBackup/zimbra/store/0/34/msg/0/1498-2387.msg: Read error at byte 0, reading 2765 bytes: Input/output error
tar: /mnt/ZimbraBackup/zimbra/store/0/34/msg/0/1359-2253.msg: Read error at byte 0, reading 1536 bytes: Input/output error
tar: /mnt/ZimbraBackup/zimbra/store/0/34/msg/0/1290-2187.msg: Read error at byte 0, reading 1598 bytes: Input/output error
tar: /mnt/ZimbraBackup/zimbra/store/0/88: Cannot savedir: Input/output error
tar: /mnt/ZimbraBackup/zimbra/store/0/97: Cannot savedir: Input/output error
tar: /mnt/ZimbraBackup/zimbra/.zshrc: Cannot stat: No such file or directory
tar: /mnt/ZimbraBackup/zimbra/clamav-0.88: Cannot stat: No such file or directory
tar: /mnt/ZimbraBackup/zimbra/openldap-data: Cannot stat: No such file or directory
tar: /mnt/ZimbraBackup/zimbra/Login.jsp: Cannot stat: No such file or directory
tar: /mnt/ZimbraBackup/zimbra/mysql: Cannot stat: No such file or directory
tar: /mnt/ZimbraBackup/zimbra/jdk1.5.0_05: Cannot stat: No such file or directory
tar: /mnt/ZimbraBackup/zimbra/index: Cannot stat: No such file or directory
tar: /mnt/ZimbraBackup/zimbra/redolog: Cannot stat: No such file or directory
tar: /mnt/ZimbraBackup/zimbra/snmp: Cannot stat: No such file or directory
tar: /mnt/ZimbraBackup/zimbra/conf: Cannot stat: No such file or directory
tar: /mnt/ZimbraBackup/zimbra/zimlets: Cannot stat: No such file or directory
tar: /mnt/ZimbraBackup/zimbra/openldap-replica: Cannot stat: No such file or directory
tar: /mnt/ZimbraBackup/zimbra/zimlets-extra: Cannot stat: No such file or directory
tar: /mnt/ZimbraBackup/zimbra/postfix: Cannot stat: No such file or directory
tar: /mnt/ZimbraBackup/zimbra/.bashrc: Cannot stat: No such file or directory
tar: /mnt/ZimbraBackup/zimbra/amavisd: Cannot stat: No such file or directory
tar: /mnt/ZimbraBackup/zimbra/jdk1.5.0_06: Cannot stat: No such file or directory
tar: /mnt/ZimbraBackup/zimbra/amavisd-new-2.3.3: Cannot stat: No such file or directory
tar: /mnt/ZimbraBackup/zimbra/postfix-2.2.9: Cannot stat: No such file or directory
tar: /mnt/ZimbraBackup/zimbra/postfix-2.2.5: Cannot stat: No such file or directory
tar: /mnt/ZimbraBackup/zimbra/snmp-5.1.2: Cannot stat: No such file or directory
tar: /mnt/ZimbraBackup/zimbra/log: Cannot stat: No such file or directory
tar: /mnt/ZimbraBackup/zimbra/aspell-0.60.3: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol00
VG Name VolGroup00
LV UUID *
LV Write Access read/write
LV snapshot status source of
/dev/VolGroup00/ZimbraBackup [INACTIVE]
LV Status available
# open 1
LV Size 644.44 GB
Current LE 20622
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:0
--- Logical volume ---
LV Name /dev/VolGroup00/ZimbraBackup
VG Name VolGroup00
LV UUID *
LV Write Access read/write
LV snapshot status INACTIVE destination for /dev/VolGroup00/LogVol00
LV Status available
# open 0
LV Size 644.44 GB
Current LE 20622
Segments 2
Snapshot chunk size 8.00 KB
Allocated to snapshot 100.00%
Allocation inherit
Read ahead sectors 0
Block device 253:3
Do you really want to remove active logical volume "ZimbraBackup"? [y/n]: Logical volume "ZimbraBackup" successfully removed
Backup ended at:
Sat Jul 29 04:41:52 CST 2006 my fullbackup script
Code:
#fullbackup.sh
#!/bin/bash
time=`date +%Y-%m-%d_%H-%M-%S`
#########################################
# Modify the following variables according to your installation
#########################################
# backup_dir - directory to backup to
backup_dir=/opt/fullbackup
# zimbra_vol - the Logical Volume that contains /opt/zimbra
zimbra_vol=LogVol00
# vol_group - the Volume Group that contains $zimbra_vol
vol_group=VolGroup00
#########################################
# Do not change anything beyond this point
#########################################
# Output date
echo Backup started at:
date
# Enable Snapshot
/sbin/modprobe dm_snapshot
# Stop the Zimbra services
/sbin/service zimbra stop
# Create a logical volume called ZimbraBackup
/usr/sbin/lvcreate -L1000M -s -n ZimbraBackup /dev/$vol_group/$zimbra_vol
# Create a mountpoint to mount the logical volume to
mkdir -p /mnt/ZimbraBackup
# Mount the logical volume to the mountpoint
mount /dev/$vol_group/ZimbraBackup /mnt/ZimbraBackup/
# Start the Zimbra services
/sbin/service zimbra start
# For testing only
#echo Press Enter to continue . . .
#read input
# Create the current backup
mkdir -p $backup_dir
tar zcvf $backup_dir/zimbra.backup.tar.gz /mnt/ZimbraBackup/zimbra/ > /dev/null
# Unmount /mnt/ZimbraBackup and remove the logical volume
umount /mnt/ZimbraBackup/
/usr/sbin/lvdisplay
echo y | /usr/sbin/lvremove /dev/$vol_group/ZimbraBackup
# Output date
echo Backup ended at:
date
So many directory can not stat. What's the problem?