Koozali.org: home of the SME Server
Obsolete Releases => SME Server 8.x => Topic started by: kruhm on July 22, 2014, 12:40:04 AM
-
Hi,
I have a usb drive docking station that I want to use for backup (st0005u). It seems to be going idle and the backup doesn't work.
To wake the drive, I have to access the mount with a simple:
$ls -la /media/BackupDrive1
But by accessing the mount, the backup won't start.
$/sbin/e-smith/do_backupwk
$Seems backup directory is already mounted. It should not happen and maybe there is a zombie process you must kill, or another backup in progress.
$Backup terminated: backup failed - status: 7424
I can unmount the drive and start the backup manually:
$umount /media/BackupDrive1/
$/sbin/e-smith/do_backupwk
How do I keep the drive from falling idle?
Thanks,
-
I think you will find an answer if you Google for 'hdparm idle'.
-
Great. Thank you much. I'll let you know what I find.
-
While hdparm -C worked:
$ hdparm -C /dev/sdc
/dev/sdc:
drive state is: standby
I couldn't get any of the other options to work:
$ hdparm -B255 /dev/sdc
/dev/sdc:
setting Advanced Power Management level to disabled
HDIO_DRIVE_CMD failed: Invalid argument
$ hdparm -S0 /dev/sdc
/dev/sdc:
setting standby to 0 (off)
HDIO_DRIVE_CMD(setidle1) failed: Invalid argument
I decided to keep the drive alive via cron.
$ mkdir -p /etc/e-smith/templates-custom/etc/crontab/
$ vi 26usb-drive
# Keep the USB drive from going into standby.
50 21 * * * root mount /dev/sdc1 /media/BackupDrive1/
55 21 * * * root umount /media/BackupDrive1/
That seems to have worked. Although, I really prefer the nas/cifs solution.