











Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!












Problem
Troubleshooting Drive/Library Issues in NetBackup
This document provides information on, and how to resolve, various tape drive issues that may be encountered whilst using NetBackup.
Solution
It is important to understand that NetBackup does not write data directly to a tape drive.
For example: when using Solaris, NetBackup relies on the operating system to write the data to the tape using the st tape driver. The only slight involvement with NetBackup is that it specifies the block size to use - but this is still passed to the operating system. Other operating systems work in a similar manner.
The SCSI pass-through driver (sg driver on Solaris) - allows SCSI commands to be passed directly to the drive. For example, the 'test-unit-ready' SCSI command is used, for example, when mounting a tape. On occasion, it is necessary to recreate/rebuild the pass-through driver. The most common symptom that invo lves the pass-through driver is if the scan command does not show all expected devices. Other issues invo lving the pass-through driver are very rare.
The majority of drive/tape issues have a cause outside of NetBackup. When troubleshooting these issues it is advisable to start the troubleshooting process at the hardware/firmware level.
It should always be considered that although NetBackup reports an error, it does not mean that NetBackup is the cause.
Common drive issues include:
Scan command
TAPE_ALERT
ASC/ASCQ
Missing Path
Positioning errors
Read/ Write errors
I/O Errors
External event has caused rewind
Tapes not reaching expected capacity tape ( 300GB of Data is written to a 400GB capacity tape )
Tapes being incorrectly marked as 'read only'
Library Inventory Issues
Robot load issue - "Error bptm error requesting media TpErrno = Robot operation failed"
Missing drives, or drives disappearing and reappearing
Tapes failing to mount in NetBackup, but visable and usable by operating system commands
Issues moving tapes to/ from slots or drives
Issues with Cartridge memory
Cleaning tape
Status 277
In the first instance, it is always worth power cycling the library or drives reporting an issue, as well as reb ooting the associated servers, Many of the errors referenced in this tech note can be sometimes be cleared this way. In the event this does not clear the issue, it has at least been eliminated from being the cause.
Scan Command
Scenario: The scan command shows no devices at all, or, that some of the devices, or all of the devices app ear and reappear when the command is run repeatedly.
Firstly, it must be confirmed that the operating system can both see and communicate correctly with the ta pe drives.
The devices appearing in (for example) 'Device Manager' (Windows) or cfgadm (Solaris) is NOT enough to sufficiently confirm that the devices are correctly configured to the operating system.
It has been seen that although devices appear to be visible to the operating system, SAN issues prevented full/correct communication, and as a result, the scan command failed.
Two things need to be checked before further troubleshooting is carried out:
Aside from the exceptions, above issues with the scan command are not caused by NetBackup. When it is understood how the scan command works, it is clear how the root of the issues are external to NetBackup.
Although the scan command is supplied by Symantec, it does not issue any NetBackup commands, or inter act with NetBackup in any way. When run, it issues operating system level SCSI commands to the devices configured in the operating system, and the output of the command is sent from the devices themselves.
It is important to remember that while NetBackup displays these "tape alerts", the alerts occur due to a tape drive or robotic library hardware event. Check the Event Viewer/ system log for any hardware related error s. Contact the Original Equipment Manufacturer (OEM) for support.
As a TapeAlert is sent from the drive itself, it is impossible that this can be caused by NetBackup.
For example:
Oct 11 08:59:31 media bptm[3771]: [ID 228150 daemon.warning] TapeAlert Code: 0x03, Type: Warning, Flag: HARD ERROR, from drive TLD0_LTO4_DRIVE1 (index 4), Media Id R0TP
To further investigate TapeAlert issues, Symantec recommends contacting your hardware vendor.
A link to the TechNote "Description of Tape Alerts and code definitions" is provided at the bottom of this
TechNote
SCSI Sense keys describe a 'hardware state 'that are returned when a cmd requests a 'check condition'.
In this example, robtest was failing to load a tape into a drive.
Initiating MOVE_MEDIUM from address 1000 to 500
move_medium failed, CHECK CONDITION
sense key = 0x5, asc = 0x30, ascq = 0x0, INCOMPATIBLE MEDIUM INSTALLED
The analysis can be broken down as follows :
Sense Key 0x5 - Illeagal Request
ASC/ASCQ 0x30/00 - Incompatible Medium Inserted
In a similar manner to Tape Alerts, SCSI Sense Keys are produced by the device, not by NetBackup.
As ASC/ASCQ alerts are sent from the hardware, it is impossible for them to be caused by NetBackup.
It has been seen that a power cycle of the drive (not soft reset) can sometimes clear ASC/ASCQ errors.
Further information on these values can be found at http://www.t10.org
To further investigate ASC/ASCQ issues, Symantec recommends contacting your hardware vendor.
Note
If hardware encryption is in use via NetBackup Key Management Service(KMS), an issue with the service may cause the drives to send out ASC/ASCQ errors relating to encryption. In this instance, although the drive is sending he message, the cause may be the KMS service, and so this should be given consideration.
Missing Path
Missing path means that the Operating System has lost connectivity to the drives. At this point, you will find that the devices are also missing from the scan output, simply because the scan command only comm unicates with devices found at the Operating System level.
Symptom:
Missing path is seen in the drive details, or jobs fail with missing path errors.
Enter option:
Id DriveName Type Residence
Drive Path Status
1 Drive1 hcart2 TLD(3) DRIVE=
MISSING_PATH:4:0:0:2:SG11028122 DOWN
For this issue, NetBackup is not the cause, however, when the issue is resolved it may be the case that the paths to the devices change, thus making the NetBackup config incorrect. If this is the case, the devices w ill need to be deleted and reconfigured within NetBackup. If the devices come back with the same operat ing system paths, then no further action should be required.
Positioning Errors
Symptom:
BPTM reports errors positioning the tape, this can be seen in the logs or the GUI.
Positioning errors occur when the operating system is unable to position, fast-forward or rewind the tape.
The error message seen may differ slightly, depending on when the error occurs.
Example 1
<2> write_data: block position check: actual 62504, expected 31254
Example 2
1/11/2010 7:50:13 AM - Error bptm(pid=3364) ioctl (MTREW) failed on media id W00229, drive index 0, The I/O bus was reset. (1111) (bptm.c.8039)
c) MSEO is not compatible with Asynchronous Tapemarks which were introduced in NetBackup 7.1 Symptoms include write and/or read errors on tapes encrypted with MESO. Creating the empty file ' /usr/openv/netbackup/db/config/ DISABLE_IMMEDIATE_WEOF ' will resolve the issue
I/O Error
I/O errors are caused at a hardware level, and are only detected by NetBackup.
For example:
11:20:18.246 [8504.5292] <4> write_data: WriteFile failed with: The request could not be performed because of an I/O device error. (1117); bytes written = 65536; size = 0
To further investigate, Symantec recommends contacting your hardware vendor to find the root cause..
Known issues
open failed in io_open I/O error
This exact error can be caused by mis-configeration of the drives so this should be checked in the first insta nce. If the issue remains after confirmation that the configuration is correct, then the issue should be furth er investigated as a hardware/ firmware issue.
External event has caused rewind
This issue is (potentially) serious and requires immediate investigation, as data can be lost. NetBackup wi ll display this error if the block position calculation check by NetBackup does not match the position repor ted by the drive. It will not be certain that a full rewind has occurred (impossible to tell from a simple blo ck check), but it will mean that the position check has failed, and most likely that the calculated position is less than the expected position.
The error will look similar to the following:
<2> io_terminate_tape: block position check: actual 4, expected 5
<16> write_data: FREEZING media id XXXXXX, External event caused rewind during write, all data on media is lost
NetBackup keeps track of how much data it is sending to the operating system to write to the device. NetBackup will ask the tape device for its position as an integrity check after the end of each write. If this position does not match what NetBackup has calculated the position should be, then the job will fail with a media write error.
If a full rewind has occurred, this will overwrite the NetBackup header on the tape, making it unreadable. If this has happened, the data on the media is lost. The most common cause of this is a SCSI reset on the SAN, which causes a rewind of the drive(s) whilst they are being written to. This event is undetectable by NetBackup, and is only discovered after the event, when the block position check is made. NetBackup can not
cause SCSI resets on the SAN because the tape positioning and read/write operations are all controlled by the Operating System itself.
If the issue is a position error (as opposed to a 'Full' rewind) a message similar to the following will be seen upon inspection of the bptm log.
<2> write_data: block position check: actual 62504, expected 31254
<16> write_data: FREEZING media id XXXXXX, too many data blocks written, check tape/driver block size configuration
The possible causes are numerous, and most commonly include:
Tape driver issue
Tape drive firmware issue
SAN fault
HBA driver or firmware issue, or other fault
Switch Fault
If the drives are attached to a NDMP device, it must be ensured that the SCSI reservation on the NDMP de vice is set to match the SCSI reservation type of NetBackup.
To further investigate, Symantec recommends contacting your hardware /operating system support vendor.
Note
The SCSI reservation is set/held by the Host Bus Adaptor. However, NetBackup sends the reserve cmd thr ough the SCSI pass-thru path for the device, so this needs to be configured correctly.
Known Issues:
NDMP
If the issue is occurring on drives that are shared (SSO) between an NDMP filer and NetBackup, and the drives are zoned directly to the filer, then the issue can be caused if the SCSI reservation type set in NetB ackup is not the same as the SCSI reservation type set on the filer.
If this is the case the issue can be resolved by following these steps :
In the 'Host Properties' > 'Media Type' tab, check the SCSI reservation set: SPC2 or SCSI persistent
Change the type of SCSI reservation on the filer, to match the type you have set in NetBackup.
It has been seen on occasion that firmware issues of the tape drive have caused tape media to be incorrectly reported as read only.
Library Inventory Issues
NetBackup does not directly 'Inventory' a library. Instead it queries the library and waits to be told what ta pes (via their barcodes) are located in which element address (slots/ drives). If, for example, NetBackup can not 'see' a particular cartridge(s) it is because the library is 'hiding' the location, not because of any set ting within NetBackup.
For example, common symptoms of library issues include tapes appearing in the incorrect/wrong slot, and tapes/slots not appearing at all. It is impossible for this to be caused by NetBackup.
To further investigate this issues, Symantec recommends contacting your library vendor.
Note
Issues involving NetBackup and the Virtual I/O slots on the IBM 3500 series libraries where ALMS/Virtu al I/O are enabled are occasionally seen.
Problems involving Virtual I/O slots cannot be caused by NetBackup because there are no settings in NetB ackup that can influence the behavior of the Virtual I/O slots.
It has been found that the library setting "Queued Exports" should be set to 'HIDE' from within the IBM web console to allow tapes to be moved from the virtual I/O slots to the slots within the logical library.
Robot load issue
Library is not able to load tapes.
Error bptm error requesting media TpErrno = Robot operation failed"
This error is seen in the bptm log, and depending on the logging set, may be referenced in the .../volmgr/ debug log, and possibly also the operating system event log.
An excellent way to check this is to use the robtest command. A link to a TechNote for documentation on Robtest is available at the end of the TechNote.
The robtest command does not issue any NetBackup commands. It only sends operating system level SCSI commands to the library, and the output seen from the command is sent from the library firmware. Given this description, it is clear to see that Robtest failures cannot be caused by NetBackup.
For example, this robtest command issues a move media request from slot 86 to drive 2:
m s86 d
move_medium failed
sense key = 0x4, asc = 0x15, ascq = 0x1, MECHANICAL POSITIONING ERROR
As robtest has only sent a SCSI move request, straight away this failure can be seen to not be caused by NetBackup.
Further, the error is referencing an 'ASC/ASCQ' error, which, as explained in the "ASC/ ASCQ" section of this tech note, is never caused by NetBackup.
To further investigate robotic operation issues, Symantec recommends involving the Library vendor.
Missing drives, or drives disappearing and reappearing
In cases where, for example, tpautconf -report_disc shows inconsistent numbers of missing devices when the command is run at different times.
tpautoconf -report_disc will report "Missing Device" if a device that is configured and available within Net Backup has become undetectable from the Operating System.
For example:
Inquiry = "IBM Ultrium 3-SCSI
Serial Number = HM74536FFS
Drive Path = /dev/rmt/0cbn
Drive Name = DRV_F2D3_LTO
In this case, NetBackup is only reporting that the OS cannot find a device that was previously available.
If a different number of devices are missing at different times (that is, the devices 'disappear' and 'reappear') this is very likely a SAN issue.
NetBackup has no control over the communication of between the devices and the operating system.
If a device is showing as missing, then there must be an issue outside of NetBackup. Problems on the SAN are a very common cause of this issue.
Tapes failing to mount in NetBackup, but visable and usable by operating system commands
Cases have been seen in which tapes are physically loaded into the tape drive, and are accessible and resp ond correctly to operating system commands such as mt and dd, but
Description: The tape drive encountered a problem while loading a tape cartridge.
Description: The tape drive detected an internal hardware problem.
Description: The tape drive has an error which requires the tape cartridge to be ejected for error recovery
These issues are related to hardware, and Symantec recommends to contact the library vendor.
Cleaning Tape
An unusual issue has been seen at NetBackup 7.5. On occassion, a cleaning cycle run by NetBackup will fail.
The symptoms may differ slightly :
A. The tape cannot be unloaded, the /var/adm/message log will show:
Mar 14 12:49:38 server02 tldcd[19756]: [ID 5596 daemon.notice] TLD(2) closing/ unlocking robotic path
Mar 14 12:49:38 server02 tldcd[9536]: [ID 9197 daemon.notice] inquiry() function processing library AD IC Scalar i2000 607A:
Mar 14 12:49:38 server02 tldd[9524]: [ID 5833 daemon.notice] DecodeClean: TLD(2) drive 5, Actual sta tus: Unable to SCSI unload drive
Mar 14 12:49:39 server02 ltid[9497]: [ID 5123 daemon.notice] LTID - received ROBOT MESSAGE, Typ e=55, LongParam=0, Param1=1, Param2=
Mar 14 12:49:39 server02 ltid[9497]: [ID 5813 daemon.error] Cleaning for drive 1 failed, status = Unable to SCSI unload drive
Mar 14 12:49:48 server02 bptm[19765]: [ID 946237 daemon.warning] TapeAlert Code: 0x0b, Type: Informational, Flag: CLEANING MEDIA, from drive PER-i2000-Drive5 (index 1), Media Id CLN
Mar 14 12:49:49 server02 ltid[9497]: [ID 560358 daemon.notice] LTID - Sent ROBOTIC request, Type=3, Param2=
B. Once the tape drive is cleaned a new tape is loaded and reloaded repeatedly, the /usr/ openv/volmgr/deb ug/robots log will show:
12:43:53.753 [3016] <4> AddTldLtiReqEntry: Processing ROBOT_CLEAN request...
12:43:53.753 [3016] <5> CleanDrive: TLD(0) Cleaning Tape 4TP012 on drive 5, from slot 41
12:43:53.758 [3424] <4> io_open: Drive Path = /dev/rmt/6cbn
...
12:43:54.018 [3026] <5> tldcd:mount_unmount_drive: Processing MOUNT, TLD(0) drive 5, slot 41, barcode CLN4TP012L4 , vsn 4TP
...
12:46:01.764 [3026] <5> tldcd:mount_unmount_drive: Processing UNMOUNT, TLD(0) drive 5, slot 41, barcode CLN4TP012L4 , vsn 4TP
...
12:46:12.789 [3016] <5> GetResponseStatus: DecodeClean: TLD(0) drive 5, Actual status: Unable to SCSI unload drive
The cause of this issue is due to the 'access bit to be set to 1' on the tape drive
The formal resolution for this issue (Etrack 2714791) is included in the following release:
NetBackup 7.5 Maintenance Release 1 (7.5.0.1)
Status 277
Symptoms:
Drives are down in Device Manager. When started, they fail with a NetBackup Status Code 277: the drive is not ready or inoperable.
In general, NetBackup Status Code 277 appears when device changes are made in NetBackup and either the services are not cycled, or the server is not rebooted.
On a Windows server, two areas to check are in Windows Device Manager and the Tape Driver.
First, check the drives are shown in Device Manager and check the correct number of drives are detected and that no drives show errors. Then check the driver details for each Tape Drive. One at a time, select each tape drive listed, right click and choose Properties, then select the Driver tab. If the Driver Provider shows as being "Unknown" then it is necessary to reload the tape driver. After loading a new driver, reboot the server.
If the drives seem OK, stop and restart the NetBackup services on the server. Not doing this is known to cause Status Code 277 errors.
Exact Error Message
PEND-TLD
PEND-ACS
PEND-TL
If this conflict occurs, some sort of mis-configuration is present (for example, the tape drive is reserved, bu t should not be) and the configuration problem should be corrected. A possible cause of this conflict is if o perating system crashes or a hardware failure has left a device reserved (see "Issuing the Release" on pag e 75 of the "NetBackup 4.5 SSO System Administrator's Guide ").
Also in the Device Monitor or the output from the vmoprcmd command, PEND in the Control column mea ns that a reservation conflict has occurred.
Run 'vmdareq' on the master server to see which media servers is reserving the drive. Next run 'vmoprcmd -crawlreleasebyname ' on the master server to see if any errors are reported.
Also add VERBOSE to ..\volmgr\vm.conf on all media servers. Restart Device Management service after adding the entry. Device-related errors will be logged to Event Viewer System and Application log.
And sometimes the Netbackup cluster can failover, so not cleanly or say the running node with active back ups crashes. There may be reservations pending and the only way to clear the reservations is actually bring netbackup back up on that 'failed server'.
The crawlreleasebyname normally works but in this instance it will not be cleared.
This is, however, can be based on how you have your shared drives configured for SCSI reservation.
Another thing to check is in case there is a stale .lock flag file for the device(s) in PEND- TLD status.
They are normally somewhere under the subdirectories ../volmgr/devices/..
But I would not touch these unless the whole netbackup environment is shutdown/ stopped.
Basically 4 drive SSO with 4 media servers, only the drive0 is showing PEND-TLD and some time in DOWN state.
I believe if run a vmprcmd –crawlreleasebyname will resolve the current issue. But is there any way to check why there is scsi reservation error occur?
You can run /usr/openv/netbackup/bin/admincmd/nbrbutil -dump |grep .
Look for MdsAllocation and that will give you which media server, (stuName) has the reservation along with what tape, (mediaId) the master server believes is in the drive.
The similar symptoms...tape drives are being reserved, and not released after backup jobs complete.
Running with NB 4.5 FP3 on Solaris 8, IBM 3584 TL with 24 LTO-1, QLogic 2200F HBA, McData 4500
The tape drives get reserved and never released we have to do a vmoprcmd to reset the tape drives to temp orarily release the media tapes.
First thing to check is in the drive definition in the /kernel/drv/st.conf.
The default drive definitions do not disable scsi reserve/release at the OS.
tape-config-list=
"IBM ULTRIUM-TD1", "IBM Ultrium", "CLASS_3580",
"IBM ULT3580-TD1", "IBM 3580 Ultrium", "CLASS_3580";
CLASS_3580 = 1,0x24,0,0x41863d,2,0x00,0x01,0;
Also be careful with spacing/ tabs when adding this entry. The key part of this is in the CLASS_3580 string. This is obviously for IBM drives if you have HP LTO's e-mail veritas and they should be able to provide you with the correct settings to disable scsi reserve/ release.
Making this change means that netbackup now manages the reserve/ release for the drives, not the os. Also use the vmdareq -M command to view the reserve status of the units.
Also with the Emulex adapters with certain driver/firmware version robotic control cmds can be lost down the pipe. So if you are experiencing drives getting stuck constantly and tape mount/umounts failing, it mig ht be useful to check the firmware first and then the drive compatability. My experience with this is norma lly, it at first it doesn;t work, try another combination as there are no hard and fast configurations. You can try the latest compatability matrix available from veritas for the supported versions as a starting point.
We are getting this issue in a Non-SSO enviroment as well.
It might be a HBA issue thou, its also not explicit in the SSO notes for 4.5 that you need the st.conf entry. On the SSO kit we do have we are currently using the patched Solaris defaults.
To release the drives without reseting them type the following:
To check for Reserved drives type : vmdareq | grep RES
then compare the reserved drives with the actual drives in use in the silo (via ACSLS)
Also, when changing reservation type, run backups and restores to test - as mentioned, sometimes particular devices are not compatible (even when the OS compatability suggests they are). VTLs in particular can play up, and I had a case where Solaris media servers didn't want to play nicely.
If it is clustered and if the drives are attached to machines on both sides of the cluster then persistent reservation should be used. Why, because if the drives are in use when one side goes down they will be reserved, and the machine that takes over will be unable to break the reservation, meaning the drives will have to be powercycled.
If persistent reservation is used, then a reservation key comes into play, meaning quite simply that NBU knows it's a NBU reservation key and can break the reservation.
Personally, I prefer persistent, because the reservation key can be used for troubleshooting, at least on Linux as the sgutils package can be used to read the key off the drive and therefore in the event of reser vation errors we can show it's not us causing the issue.
SPC-2 SCSI reserve is the default. If you are not running a cluster then it doesn't really matter.
Scsi persistent reserve is more advanced, and if everything supports it then this is the most 'modern' type. The main advantage is that NBU can break the reservation made by one node of a cluster, if the cluster fa ils over.
The most important thing is that any device that sees a given tape drive use the same type of scsi reserve.
If you have one type of scsi reserve on NBU and another type on the filer than you will have serious issues.
If the drives are attached to a NDMP device, it must be ensured that the SCSI reservation on the NDMP de vice is set to match the SCSI reservation type of NetBackup.
When using SSO, shared devices require the same level of SCSI reservation. The default SCSI reservation configured within Netbackup is SCSI-2 reserve/release. The solution is to either configure SCSI-2 reserve /release on the Filer or to configure persistent reservation within Netbackup.