вторник, 27 мая 2014 г.

Serial Split Brain detected. Run vxsplitlines

 vxsplitlines -g ams2ndg -v
  551  /usr/lib/vxvm/bin/vxsplitlines -g ams2ndg -v
  552  /usr/lib/vxvm/bin/vxsplitlines -g ams2ndg
  553  /usr/sbin/vxdg (-s) -o selectcp=1396850515.18.******.ru import ams2ndg
  554  /usr/sbin/vxdg  -o selectcp=1396850515.18.rh1.*****.ru import ams2ndg
  555  /usr/sbin/vxdg  -o selectcp=1293694112.13.rh2.****.ru import ams2ndg
  556  vxdisk list
  557  vxvol -g ams2ndg start vol01
  559  vxrecover -g ams2ndg -sb
  560  cat /etc/fstab
  561  fsck -F vxfs /dev/vx/rdsk/ams2ndg/vol01
  562  fsck -F vxfs /dev/vx/rdsk/ams2ndg/vol01
  563  fsck -t vxfs /dev/vx/rdsk/ams2ndg/vol01
  564  vxdisk -o alldgs list
  575  vxdisk list -o alldgs
  576  /usr/lib/vxvm/bin/vxsplitlines -g ams2ndg -v
  577  /usr/lib/vxvm/bin/vxsplitlines -g ams2ndg -v
  578  /usr/lib/vxvm/bin/vxsplitlines -g ams2ndg


http://www.symantec.com/business/support/index?page=content&id=TECH33020

четверг, 22 мая 2014 г.

How to change LUN IO queue depth

To change queue depth from 16 to 32 for Q-Logic HBA

cat /sys/module/qla2xxx/parameters/ql2xmaxqdepth
16
echo 32 > /sys/module/qla2xxx/parameters/ql2xmaxqdepth
cat /sys/module/qla2xxx/parameters/ql2xmaxqdepth

Modify /etc/modprobe.conf to retain it over reboot
options qla2xxx ql2xmaxqdepth=32 qlport_down_retry=14 ql2xloginretrycount=30


cat /proc/scsi/sg/device_hdr cat /proc/scsi/sg/devices
host   chan    id      lun     type    opens   qdepth  busy   online
3       0       0       12      0       1       32     5       1

Netbackup script restore

LOCATION:
for Window : \Veritas\Netbackup\bin 
for Unix:  /usr/openv/netbackup/bin
the command can be initiated from the client (destination) or from the master server

#!/bin/sh
DATE=`date +%m/%d/%Y`;
OLD=`date +%m/%d/%Y --date="-6 day"`;
/usr/openv/netbackup/bin/bprestore -C nb1 -D nb1 -L /home/user/restore.log -f /home/user/backup.list -R /home/user/rename_list

backup.list
/home/user/test3

rename_list
change /home/user/test3 to /home/user/test5

-L <progress log>
-C <sourceClient>
-D <destinationClient>

-R <RenameFileList>
-f<RestoreFileList>

вторник, 20 мая 2014 г.

Ручной запуск клиента netbackup

Ручной запуск клиента
/usr/openv/netbackup/bin/vnetd -standalone
/usr/openv/netbackup/bin/bpcd -standalone

Netbackup Administration Console - Restricted Access

/usr/openv/java/auth.conf

How to create a yum repository on RHEL/CentOS 5.x with CD/DVD or ISO images

How to create a yum repository on RHEL/CentOS 5.x with CD/DVD or ISO images

Mount your CD/DVD or ISO images

DVD Disk or DVD ISO image

  • If you have DVD disk, please mount dvd-rom first, and then create yum repository:
  • # mkdir /mnt/dvd/
    # mount /dev/cdrom /mnt/dvd/
  • If you use DVD iso, please copy it to the system, and then create yum repository:
  • # mkdir /mnt/dvd/
    # mount -o loop /root/rhel5.1-dvd.iso /mnt/dvd

CD images

If you have multiple CD image files, you should mount all iso images and then create yum repository.
  • Mount all iso images:
  • # mkdir -p /mnt/{1,2,3,4,5}
    # mount -o loop rhel5.1-disc1.iso /mnt/1
    # mount -o loop rhel5.1-disc2.iso /mnt/2
    # mount -o loop rhel5.1-disc3.iso /mnt/3
    # mount -o loop rhel5.1-disc4.iso /mnt/4
    # mount -o loop rhel5.1-disc5.iso /mnt/5

Install necessary package

  • Find and install 'createrepo' package in /mnt directory:
  • # find /mnt -iname 'createrepo*'
    /mnt/dvd/Server/createrepo-0.4.11-3.el5.noarch.rpm
    
    # rpm -ivh /mnt/dvd/Server/createrepo-0.4.11-3.el5.noarch.rpm

Create yum repository

Create metadata

  • Create yum repository:
  • # cd /mnt/
    # createrepo .

Define yum repository

Create yum repository define file /etc/yum.repos.d/dvdiso.repo:
[MailRepo]
name=MailRepo
baseurl=file:///mnt/
enabled=1
gpgcheck=0

Test it

# yum clean all
# yum list
If 'yum list' list all packages in DVD/CD disks or ISO images, it works. :)