Saturday, July 2, 2011

Cheking tape errors in Netbackup(Windows Example)


Cheking tape errors in Netbackup (Windows Example)

Info about a file that gets updated whenever our environment receives any error on drives/media on media server.

File Name: errors


Contributed By Dipendra Singh Chauhan (Dipu)

Saturday, June 18, 2011

Troubleshooting which can be done if luns are not visible in Solaris.

1)cfgadm -al
2)devfsadm -Cvv
 if in disk not connected or showing below error..
c6::50060e81230582a5           unavailable  connected    unconfigured failed

3)cfgadm -c configure c6

luxadm probe

4)then remove zoning and cfgadm -al # But this will remove all the luns, even those which are visible.
5)then add zoing
6)then configure
7)cfgadm -al


Checking the HBA details on a solaris server.
# luxadm -e port

Basic Solaris Volume Manager commands

Contributed by - Yasbir Singh (My dear friend)

/dev/rdsk/cxtxdx
===========================
metadevice
===============

concatenation
--------------
# metainit d10 3 1 c0t0d0s0 1 c0t1d0s0 1 c0t2d0s0

Striping
---------
# metainit d10 1 3 c0t0d0s0 c0t1d0s0 c0t2d0s0

Mirror
========
# metainit d11 1 1 c0t0d0s0
# metainit d12 1 1 c0t1d0s0
# metainit d10 -m d11
# metattach d10 d12

Raid5
--------
# metainit d100 -r c0t0d0s0 c0t1d0s0 c0t2d0s0

=====IN Cluster=========

METASET
========
# metaset -s <metaset_name> -a -h <hosts1> <hosts2>
# metaset -s <metaset_name> -a /dev/rdsk/did/d2 /dev/rdsk/did/d3 /dev/rdsk/did/d4
# metainit -s <metaset_name> d100 1 2 /dev/dsk/rdid/d2s0 /dev/rdsk/did/d3s0
# metainit -s <metaset_name> d101 -p d100 25g
# metainit -s <metaset_name> d102 -p d100 75g
# metainit -s <metaset_name> d103 -p d100 125g
# newfs /dev/rdsk/<metaset_name>/d101
# newfs /dev/rdsk/<metaset_name>/d102
# newfs /dev/rdsk/<metaset_name>/d103
# metainit -s <metaset_name> d110 1 1 /dev/rdsk/did/d4s0

Using PRTVTOC to copy disk geometry in solaris.

Let us assume that we have allocated 4 luns to a Solaris server and want to make them the same layout. We can do the same by using below commands to copy the disk geometry.

# First manually create the disk geometry for the first disk using foramt command.

bash-3.00# prtvtoc /dev/rdsk/c4t60060E8005BD26000000BD2600002A12d0s2 > /tmp/disk

#Above command will create a file of disk geometry in the path mentioned which is "disk" file.

# Then we can use the below commands to replicate the same disk geometry on the other disks.

bash-3.00# fmthard -s /tmp/disk /dev/rdsk/c4t60060E8005BD26000000BD2600002A13d0s2

fmthard:  New volume table of contents now in place.

bash-3.00# fmthard -s /tmp/disk /dev/rdsk/c4t60060E8005BD26000000BD2600002A14d0s2

fmthard:  New volume table of contents now in place.

bash-3.00# fmthard -s /tmp/disk /dev/rdsk/c4t60060E8005BD26000000BD2600002A15d0s2

Thanks
Gorav

Sunday, May 29, 2011

Some Good Links for download and sharing Storage & Backup stuff

http://www.itguruindia.com

Itguruindia.com has a lot of users sharing great download links.

http://www.sadikhov.com



Tuesday, May 24, 2011

Brocade Zoning Steps.


First login into a switch.

alicreate "storagePort_Alias1", "12:01:10:a0:00:12:85:0b"

alicreate "storagePort_Alias2", "12:01:10:a0:00:12:85:0b"

alicreate "Server_Alias_hba1p0", "12:01:10:a0:00:12:85:0b"

Above steps create the alias for the HBA WWPN.

Then create the zones adding the aliases to it.


zonecreate Server_Alias_hba1p0_storagePort_Alias1, "Server_Alias_hba1p0;storagePort_Alias1"

zonecreate Server_Alias_hba1p0_storagePort_Alias2, "Server_Alias_hba1p0;storagePort_Alias2"

Then add the zones in the active zoneset.


cfgadd "zoneset_01", "Server_Alias_hba1p0_storagePort_Alias2"

cfgadd "zoneset_01", "Server_Alias_hba1p0_storagePort_Alias2"

Atlast save and enable the zone config.

cfgsave
cfgenable zoneset_01 




Symantec Netbackup Command to check & make changes to tape & library config

Lets say if you have a master and you want to change the tape config on media server. You can do that by running below commands switches on vmoprcmd and can get the functions of tpconfig and tpautoconf. you do not need to login to that media server and you know GUI does not always helps.

Path : /usr/openv/volmgr/bin/

Command : ./vmoprcmd -Q(Capital)  This will give you some hidden options you have with vmoprcmd.

Command : ./vmoprcmd -devconfig -h media <tpconfig commands switches>

Command : ./vmoprcmd -autoconfig -h media <tpautoconf commands switches>

You can also restart the device manager service on another media server by using below commands.

Command : ./vmoprcmd -h media -stopltid

Command : ./vmoprcmd -h media -startltid

Cheers
Gorav


Using bprestore command to restore multiple individual files at a different location


Using below command you can restore multiple files at different locations at any location. this helps in case you have a huge number of files to restore in different location. GUI will take too long. This is an easy and faster way to do it.

Command :

 /usr/openv/Netbackup/bin/bprestore
Example :

./bprestore -B -t 0 –C gnnbkp81 –D bkp81_test -s 12/14/2010 00:00:00 -e 12/16/2010 00:00:00 -f /test/restore_this -R /test/file_change

Important Parameters :
-B : menas that this is a backup and not archive.
-t 0 means that this is a 0(Standard) type restore.

-C clientname
-D destination clientname
-s start date in mm/dd/yyyy 00:00:00 format
-e end date in mm/dd/yyyy 00:00:00 format
-f (This should be the path of the file which contains the complete path of the files to be restored)

Example :
/test/data/file0
/test/data/file1
/test/data/file2
-R (This is the file that the new path where data is to restored. This should contain the complete source as well as the destination path). File should be saved in below format.

Example :
Change /test/data/file0 to /test/restore/file0
change /test/data/file1 to /test/restore/file1
change /test/data/file2 to /test/restore/file2



Cheers
Gorav


Gauravsethi82@gmail.com