I tried to get E-Smith working with an Onstream DL30 IDE-drive.
After compiling a new kernel and changing some perl-scripts I'm still
getting errors in /var/log/messages.
It looks like the backup and restore is working fine. Does anyone have
comments about the way I fixed this?
The steps I took are:
Compile a new kernel for E-Smith. Just look at this page:
http://www.onstreamdata.com/support/linux/di30_patch.html
After compiling and installing the new kernel we need to change some
scripts. First change
the device type.
'/sbin/e-smith/db configuration setprop backup Device /dev/ht0'
'mkdir /etc/e-smith/templates-custom/etc'
'mkdir /etc/e-smith/templates-custom/etc/flexbackup.conf'
'cp /etc/e-smith/templates/etc/flexbackup.conf/10Blocksize
/etc/e-smith/templates-custom/etc/flexbackup.conf'
'mcedit /etc/e-smith/templates-custom/etc/flexbackup.conf/10Blocksize'
Change the blocksize to '32' in this file. Onstream supports only 32K blocks.
'cp /etc/e-smith/templates/etc/flexbackup.conf/10filesystems
/etc/e-smith/templates-custom/etc/flexbackup.conf/'
'mcedit /etc/e-smith/templates-custom/etc/flexbackup.conf/10filesystems'
Because of the backup of /boot is overwriting the former backup of / we
need to add an extra
line to /etc/e-smith/templates-custom/etc/flexbackup.conf/10filesystems. We
will not backup
/boot anymore.
Between these lines:
$1 !~ /^\/var\/spool\/squid/ &&
push @filesys, $1;
place this line:
$1 !~ /^\/boot/ &&
At last we need to recreate /etc/flexbackup.conf with our modifications:
'/sbin/e-smith/signal-event conf-backup'
When using a new tape first do:
'mt -f /dev/ht0 erase'
Somehow I still receive errors, but backup and restore works fine.
errors by tape erase (/var/log/messages):
Jul 4 06:20:56 e-smith kernel: ide-tape: ht0: invalid header
identification string
Jul 4 06:20:56 e-smith last message repeated 4 times
Jul 4 06:21:40 e-smith kernel: ide-tape: ht0: couldn't read header frame
Jul 4 06:21:40 e-smith last message repeated 4 times
Jul 4 06:21:40 e-smith kernel: ide-tape: ht0: failed to find valid ADRL header
errors by restore (/var/log/messages):
Jul 4 05:46:31 e-smith kernel: ide-tape: ht0: I/O error, pc = 8, key
= 3, asc = 11, ascq
= 0
Jul 4 05:46:31 e-smith kernel: ide-tape: ht0: enabling read error recovery
Jul 4 05:46:31 e-smith kernel: ide-tape: ht0: skipping frame, read error
Jul 4 05:46:31 e-smith kernel: ide-tape: ht0: skipping frame, read error
Jul 4 05:46:31 e-smith kernel: ide-tape: ht0: I/O error, pc = 8, key
= 3, asc = 11, ascq
= 0
Jul 4 05:46:31 e-smith kernel: ide-tape: ht0: enabling read error recovery
Jul 4 05:46:31 e-smith kernel: ide-tape: ht0: skipping frame, read error
Jul 4 05:46:31 e-smith kernel: ide-tape: ht0: skipping frame, read error
Jul 4 05:46:31 e-smith kernel: ide-tape: ht0: skipping frame, frame type 8
Jul 4 05:46:31 e-smith last message repeated 9 times
Jul 4 05:46:59 e-smith kernel: ide-tape: ht0: skipping frame, eod
Jul 4 05:47:00 e-smith last message repeated 637 times
Jul 4 05:47:00 e-smith kernel: ide-tape: ht0: blank block detected,
positioning tape to
block 3000
Jul 4 05:48:07 e-smith e-smith[2368]:
Jul 4 05:48:07 e-smith e-smith[2368]: gzip: stdout: Broken pipe
Jul 4 05:48:07 e-smith e-smith[2368]: buffer (writer): write of data
failed: Success
Jul 4 05:48:07 e-smith e-smith[2368]: bytes to write=32768, bytes
written=4096, total
written 154368K
Jul 4 05:48:07 e-smith e-smith[2368]: Verify tape and initialize maps
Jul 4 05:48:07 e-smith e-smith[2368]: Dump date: Wed Jul 4 05:33:25 2001
Jul 4 05:48:07 e-smith e-smith[2368]: Dumped from: the epoch
Jul 4 05:48:07 e-smith e-smith[2368]: Level 0 dump of / on e-smith:/dev/hda6
Jul 4 05:48:07 e-smith e-smith[2368]: Label: none
Jul 4 05:48:07 e-smith e-smith[2368]: Extract directories from tape
Jul 4 05:48:07 e-smith e-smith[2368]: Initialize symbol table.
Jul 4 05:48:07 e-smith e-smith[2368]: Extract requested files
------------------------------------------------------------------------------------------------------
Nieuwland ICT
Plantsoen 15
6701 AS Wageningen
Phone: +31-317-421711
Fax: +31-317-425046
-------------------------------------------------------------------------------------------------------
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from any
computer.
--
Please report bugs to [EMAIL PROTECTED]
Please mail [EMAIL PROTECTED] (only) to discuss security issues
Support for registered customers and partners to [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Archives by mail and http://www.mail-archive.com/devinfo%40lists.e-smith.org