Archive for June, 2009

setting vtl

Posted in Sok Tahu on June 24, 2009 by dedy efendi

[root@redbul scsi]# rpm -qa|grep mayastor
mayastor-vtl-iscsi-1.5-10
mayastor-vtl-gui-1.1-6
[root@redbul scsi]# rpm -qa|grep iscsi
mayastor-vtl-iscsi-1.5-10
iscsi-initiator-utils-4.0.3.0-6
[root@redbul scsi]# /etc/init.d/mayastor status
maya.configd (pid 7469) is running…
maya.iscsid (pid 7586) is running…
[root@redbul scsi]# /etc/init.d/iscsi status
iscsid (pid 7434 7426) is running…

[root@redbul scsi]# /opt/mayastor/bin/mayacli
mayacli> show iscsi
Target Active
ID LUNs Sessions Alias iSCSI Name
—— —- ——– —————- ——————————–
0 5 1 IBMULT-TD0 iqn.2003-06.com.pavitrasoft:redbul.a8c00201
Session ID IP Address Initiator Name Options
—————- —————- —————- —————-
10100003d0200 192.168.1.2 iqn.1987-05.com.cisco:01.75f7a6e4d8e1
MaxConnections : 1
MaxBurstLength : 16776192
ErrorRecoveryLevel : 0
mayacli> exit

[root@redbul scsi]# cat /etc/iscsi.conf
#Network category
Address=192.168.1.2
#Discovery Address category
DiscoveryAddress=192.168.1.2
#Target Name Category
TargetName=iqn.2003-06.com.pavitrasoft:redbul.a8c0020
Enabled=yes

[root@redbul scsi]# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: VMware, Model: VMware Virtual S Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 01 Lun: 00
Vendor: VMware, Model: VMware Virtual S Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi3 Channel: 00 Id: 00 Lun: 00
Vendor: IBM Model: ULT3580-TD2 Rev: 0001
Type: Sequential-Access ANSI SCSI revision: 03
Host: scsi3 Channel: 00 Id: 00 Lun: 01
Vendor: IBM Model: ULT3580-TD2 Rev: 0001
Type: Sequential-Access ANSI SCSI revision: 03
Host: scsi3 Channel: 00 Id: 00 Lun: 02
Vendor: IBM Model: ULT3580-TD2 Rev: 0001
Type: Sequential-Access ANSI SCSI revision: 03
Host: scsi3 Channel: 00 Id: 00 Lun: 03
Vendor: IBM Model: ULT3580-TD2 Rev: 0001
Type: Sequential-Access ANSI SCSI revision: 03
Host: scsi3 Channel: 00 Id: 00 Lun: 04
Vendor: IBM Model: 03584L32 Rev: 0.1
Type: Medium Changer ANSI SCSI revision: 03

[root@redbul scsi]# /usr/openv/volmgr/bin/scan
************************************************************
*********************** SDT_TAPE ************************
*********************** SDT_CHANGER ************************
*********************** SDT_OPTICAL ************************
************************************************************
————————————————————
Device Name : “/dev/sg6”
Passthru Name: “/dev/sg6”
Volume Header: “”
Port: -1; Bus: -1; Target: -1; LUN: -1
Inquiry : “IBM 03584L32 0.1 ”
Vendor ID : “IBM ”
Product ID : “03584L32 ”
Product Rev: “0.1 ”
Serial Number: “mtl8da3e4cea0401”
WWN : “”
WWN Id Type : 0
Device Identifier: “IBM 03584L32 mtl8da3e4cea040”
Device Type : SDT_CHANGER
NetBackup Robot Type: 8
Removable : Yes
Device Supports: SCSI-3
Number of Drives : 4
Number of Slots : 10
Number of Media Access Ports: 10
Drive 1 Serial Number : “mt0ec8419c”
Drive 2 Serial Number : “mt52064903”
Drive 3 Serial Number : “mt68d44954”
Drive 4 Serial Number : “mt29294f08”
Flags : 0x0
Reason: 0x0
————————————————————
Device Name : “/dev/nst3”
Passthru Name: “/dev/sg5”
Volume Header: “”
Port: -1; Bus: -1; Target: -1; LUN: -1
Inquiry : “IBM ULT3580-TD2 0001”
Vendor ID : “IBM ”
Product ID : “ULT3580-TD2 ”
Product Rev: “0001”
Serial Number: “mt29294f08”
WWN : “”
WWN Id Type : 0
Device Identifier: “IBM ULT3580-TD2 mt29294f08”
Device Type : SDT_TAPE
NetBackup Drive Type: 10
Removable : Yes
Device Supports: SCSI-3
Flags : 0x0
Reason: 0x0
————————————————————
Device Name : “/dev/nst2”
Passthru Name: “/dev/sg4”
Volume Header: “”
Port: -1; Bus: -1; Target: -1; LUN: -1
Inquiry : “IBM ULT3580-TD2 0001”
Vendor ID : “IBM ”
Product ID : “ULT3580-TD2 ”
Product Rev: “0001”
Serial Number: “mt68d44954”
WWN : “”
WWN Id Type : 0
Device Identifier: “IBM ULT3580-TD2 mt68d44954”
Device Type : SDT_TAPE
NetBackup Drive Type: 10
Removable : Yes
Device Supports: SCSI-3
Flags : 0x0
Reason: 0x0
————————————————————
Device Name : “/dev/nst1”
Passthru Name: “/dev/sg3”
Volume Header: “”
Port: -1; Bus: -1; Target: -1; LUN: -1
Inquiry : “IBM ULT3580-TD2 0001”
Vendor ID : “IBM ”
Product ID : “ULT3580-TD2 ”
Product Rev: “0001”
Serial Number: “mt52064903”
WWN : “”
WWN Id Type : 0
Device Identifier: “IBM ULT3580-TD2 mt52064903”
Device Type : SDT_TAPE
NetBackup Drive Type: 10
Removable : Yes
Device Supports: SCSI-3
Flags : 0x0
Reason: 0x0
————————————————————
Device Name : “/dev/nst0”
Passthru Name: “/dev/sg2”
Volume Header: “”
Port: -1; Bus: -1; Target: -1; LUN: -1
Inquiry : “IBM ULT3580-TD2 0001”
Vendor ID : “IBM ”
Product ID : “ULT3580-TD2 ”
Product Rev: “0001”
Serial Number: “mt0ec8419c”
WWN : “”
WWN Id Type : 0
Device Identifier: “IBM ULT3580-TD2 mt0ec8419c”
Device Type : SDT_TAPE
NetBackup Drive Type: 10
Removable : Yes
Device Supports: SCSI-3
Flags : 0x0
Reason: 0x0

Advertisements

Cloning hdd os linux

Posted in Linux, Sok Tahu on June 17, 2009 by dedy efendi

fdisk -l

/dev/sda : ini device hdd yg master
/dev/sdb : ini device hdd yg akan di cloning

sudo dd if=/dev/sda of=/dev/sdb

beres 😀

Cek koneksi ke client

Posted in Iseng Aje on June 11, 2009 by dedy efendi

telnet [client] bpcd

Trying…
Connected to pgatepapp1.
Escape character is ‘^]’.

berarti udah bisa koneksi ke client

atau pake
cd /usr/openv/netbackup/bin/admincmd
# ./bptestbpcd -client [client]
0 1 2
10.2.245.13:722 -> 10.2.224.70:13782
10.2.245.13:13724 <- 10.2.224.70:788
10.2.245.13:13724 <- 10.2.224.70:957

berarti koneksi dari sisi port netbackup sudah bisa, antara server dan client

Port Netbackup

Posted in Iseng Aje on June 11, 2009 by dedy efendi

more /etc/services

# NetBackup services #
bprd 13720/tcp bprd
bpdbm 13721/tcp bpdbm
bpcd 13782/tcp bpcd
vnetd 13724/tcp vnetd
vopied 13783/tcp vopied
bpjava-msvc 13722/tcp bpjava-msvc
bpjobd 13723/tcp bpjobd
NB_dbsrv 13785/tcp NB_dbsrv
# End NetBackup services #

# Media Manager services #
vmd 13701/tcp vmd
acsd 13702/tcp acsd
tl8cd 13705/tcp tl8cd
odld 13706/tcp odld
tldcd 13711/tcp tldcd
tl4d 13713/tcp tl4d
tshd 13715/tcp tshd
tlmd 13716/tcp tlmd
tlhcd 13717/tcp tlhcd
rsmd 13719/tcp rsmd
# End Media Manager services #

/usr/openv

Posted in Iseng Aje on June 1, 2009 by dedy efendi

$syntax buat list hasil out dbase

# /usr/openv/netbackup/bin/admincmd/bpdir -M kharismapdb1 /usr/openv/netbackup/prod_rman_scripts/

hasilny..
——————————————————————————-
05/27/2009 06:10:05 .
09/03/2008 15:44:35 ..
05/27/2009 06:10:08 OUT
05/26/2009 06:25:34 CTRL
05/23/2009 08:07:41 2997 OPKHRSMA_archivelog_backup.rcv
05/23/2009 08:07:41 6662 OPKHRSMA_archivelog_backup.sh
05/23/2009 08:07:41 6550 OPKHRSMA_hot_database_backup.sh
05/23/2009 08:07:41 3204 OPKHRSMA_hot_database_backup_level0.rcv
05/27/2009 08:08:39 6430 OPKHRSMA_hot_database_backup.sh.out
05/27/2009 08:08:39 5234 OPKHRSMA_archivelog_backup.sh.out
——————————————————————————-

$abis itu.. (buat grab log ke dalam folder /temp_nbu_0527/)
# /usr/openv/netbackup/bin/bpgp from kharismapdb1 /usr/openv/netbackup/prod_rman_sripts/OPKHRSMA_hot_database_backup.sh.out \
> /usr/openv/temp_nbu/0527/kharismapdb1-OPKHRSMA_hot_database_backup.sh.out

$abis itu.. (buat lihat udh masuk lum kharismapdb1-OPKHRSMA_hot_database_backup.sh.out ke dalam …/temp_nbu/0527/
# ls -l /usr/openv/temp_nbu/0527/

$abis itu.. (buat baca logny)
# more /usr/openv/temp_nbu/0527/kharismapdb1-OPKHRSMA_hot_database_backup.sh.out