source: branches/3.0/mindi/README.obdr

Last change on this file was 3119, checked in by bruno, 4 years ago

r5281@localhost: bruno | 2013-05-08 11:56:49 +0200

  • Fix support for OBDR tapes on SCSI cards: in some cases the tape remains in OBDR mode (aka CDROM emulation) preventing the init script to work correctly. It now try to detect these cases, and to reset the SCSI device being of type CDROM (5) and looking like a tape drive as a model. (Not tested yet)
  • Improve in consequence the OBDR specific README
  • Adds support for the obdrmods boot parameter if some additional drivers should be removed
  • adds rev to the minimal list of tools to have as this is now potentially required
File size: 2.5 KB
Line 
1$Id$
2
3MondoRescue supports OBDR mode.
4
5You need to use the options -o and -t of mondoarchive to activate it.
6You may also need an additional software (hpsa_obdr_mode) if using a tape drive attached to the Smart Array controller of a HP ProLiant servers, in order to put the tape drive in the right mode from the command line (also in case of problem after OBDR boot, when the drive doesn't come back alone into tape mode Cf: http://trac.mondorescue.org/ticket/358). That software is available from http://cciss.sf.net/ and http://trac.mondorescue.org/attachment/ticket/358/hpsa_obdr_mode.c + http://trac.mondorescue.org/attachment/ticket/358/Makefile
7You may also need an additional software (sg_wr_mode) if using a tape drive attached to a SCSI controller of a server, in order to put the tape drive in the sequential mode after OBDR boot, when the drive doesn't come back alone into that mode. That software is available within the sg3_utils package.
8
9Here is an example script showing how to setup the tape based DR correctly completely from the CLI on SLES 10 on a ProLiant server using an internal SAS DAT 160 tape drive connected to the embedded Smart Array controller:
10
11# Create some temp dirs for mondoarchive
12mkdir -p /mondo/images /mondo/sratch /mondo/tmp
13# Re-read the bus content
14echo "engage scsi" > /proc/driver/cciss/cciss1
15# Load the tape device driver
16modprobe st
17# Force the tape drive to be in tape mode
18hpsa_obdr_mode -m tape /dev/cciss/c1d0
19# Create the Disaster Recovery bootable tape
20mondoarchive -G -N -O -E "/mondo" -t -o -d /dev/st0 -T /mondo/tmp -S /mondo/scratch
21# Force the tape drive to be in CD mode (bootable mode aka OBDR)
22hpsa_obdr_mode -m cd /dev/cciss/c1d0
23#reboot
24
25The machine is backed up and then rebooted in the OBDR mode ... without even using the button ;-)
26
27Here is an example script showing how to setup correctly at restore time the tape completely from the CLI on SLES 11 on a ProLiant server using an external SAS Ultrium 4 tape drive connected to a SCSI controller:
28
29# Determine which generic SCSI device needs to be used - It may appear as a CD if in OBDR mode (non sequential)
30sg_map
31[...]
32/dev/sg1  /dev/scd1
33[...]
34# you may cross check with cat /proc/scsi/scsi
35#
36# Inquire in which mode the tape is (CD-rom drive == 0x05, tape drive == 0x01)
37sg_inq -d /dev/sg1
38[...]
39Device_type=5
40
41# Reset the device in order to be in Sequential mode again
42sg_reset -d /dev/sg1
43
44# Remove all related drivers and reload them
45rmmod st
46rmmod mptsas
47rmmod mptspi
48modprobe mptspi
49modprobe mptsas
50modprobe st
Note: See TracBrowser for help on using the repository browser.