Point2 install client

Posted in Iseng Aje on July 2, 2009 by dedyeuy

#uname -a
//sesuaikan os yg akan di install
#mount -F nfs server1:/backup/data/source /mnt/
//mounting ke server server1
#cd /mnt
//masuk ke mountpoint yg ada sourcenya
#bdf /usr/
//nah di cek dulu apa spacenya masih ada buat netbackup,karena defaultnya dia taruh di /usr/openv
#./install
//tunggu deh, isi jawaban sesuai dengan pertanyaan :D
#telnet server1 bpcd
//cek client bisa komunikasi ga ma server
#umount /mnt
//jangan lupa di umount yg barusan di mounting biar bersih aja maennya :D

Jalanin archive via command

Posted in Iseng Aje on July 1, 2009 by dedyeuy

Sesuai judul diatas menjalankan user archive lewat command

/usr/openv/netbackup/bin/admincmd/bprsh -l root client_name ‘/usr/openv/netbackup/bin/bparchive /usr/openv/netbackup/prod_rman_scripts/CTRL/*’

cek di activity monitor! jalan ga ya? jobnya :)

setting vtl

Posted in Sok Tahu on June 24, 2009 by dedyeuy

[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 : 0×0
Reason: 0×0
————————————————————
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 : 0×0
Reason: 0×0
————————————————————
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 : 0×0
Reason: 0×0
————————————————————
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 : 0×0
Reason: 0×0
————————————————————
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 : 0×0
Reason: 0×0

Cloning hdd os linux

Posted in Linux, Sok Tahu on June 17, 2009 by dedyeuy

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 :D

Cek koneksi ke client

Posted in Iseng Aje on June 11, 2009 by dedyeuy

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 dedyeuy

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 dedyeuy

$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

IP Static

Posted in Iseng Aje, Linux on May 25, 2009 by dedyeuy

#vi /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.1.3
NETMASK=255.255.255.0
GATEWAY=192.168.1.4
HDADDR=08:00:27:91:21:EC
ONBOOT=yes
TYPE=Ethernet

iseng

Posted in Iseng Aje, Linux on April 22, 2009 by dedyeuy

#du -sh or
#df -h

#mkdir /mnt/iso
#mount -o loop paket_iso /mnt/iso
#/mnt/iso/install

Bermain dengan Editor vi

Posted in Iseng Aje, Linux on April 15, 2009 by dedyeuy

Bisa menggunakan editor vi sangatlah menguntungkan kita jika kita sering bermain dengan server2 yang memang tidak ada GUInya :D , banyak orang yang terlena dengan menggunakan GUI di linux (seperti saya),pas pakai remote server unix maupun linux waduh cengar-cengir dah gw :D karena keterbatasan otak sebelah kiri gw :D ..
lumayan nih buat referensi buat temen2 gw dapet dari googling di sini