Bali Outing Vacation

November 10, 2008

Bali Fun Day’s

Kamis, tanggal 6-8 Nov 2008 merupakan hari yg menyenangkan buat gw. pada hari itu kantor gw ngadain Outing alias Vacation ke Bali….akhirnya setelah sekian lama….ke Bali juga coy…maklum ini pengalaman gw yg pertama ke Bali skaligus…pengalaman Outing keluar Jawa alias version Gr3t0n9…hehehehehe.

Uupps…perlu gw cerita jg nih, keberangkatan menggunakan pesawat garuda…dari bandara Int Soekarno-Hatta. Tepatnya pukul:09.00 take off dari bandara, and sampe di bandara Ngurah Rai sekitar 11.30 lama perjalanan sekitar 1 jam 30 menit…Oh iya waktu di Bali & Jakarta selisih 1 jam lebih cepat di Bali. Sesampainya gw & dkk dijemput oleh pihak EO menggunakan BUS langsung meluncur ke tempat penginapan Hotel Aston.

Sesampainya di Hotel…gw harus menunggu waktu check-in sekitar pukul 14.00 WIB. Akhirnya…tiba juga waktu ber-istirahat tiba….hahahaha…

Hari pertama : rombongan lalui dengan mengunjungi tempat wisata ULU WATU, skalian nengok Bro Moncu alias Monyet Lucu,,hehehe. Banyak kejadian lucu skaligus historis…ada yang kecopetan kacamata, dll…gile benerrrr boleh jg tuh monyetttt, klo dibawa ksini kemungkinan bisa jd raja copet tuh……hhahahhaha. Perjalanan di akhiri dgn mkan malam di Bali Dance Festival Restoran.

Hari kedua : Diawali dengan acara Fun Games yg sdh di susun oleh pihak EO…pokoke Rame, Bocor, Heboh with ours motto “Kebersamaan & Kekeluargaan untuk Kesuksesan” Abis acara kelar. Tepat pada pukul 12.00 siang kita makan siang di Restoran ULAM kemudian perjalanan di lanjutkan ke kawasan wisata Tanah Lot, biasa g jauh dari urusan foto-foto….maklm banci tampil. Diakhiri dengan makan mlm di restoran seafood Bali Nikmat.

Hari Ketiga / Terakhir : Adalah hari paling ngeselin, kenapa? karna badan gw lumayan pd merentek alias kurang tidur juga pegel-pegel…wuihhhh. Di hari tekahir ini kebetulan gw dpt jadwal keberangkatan yg cukup lumayan sore jam 18:00 waktu setempat, akhirnya gw dkk sepakat ngisi waktu kosong untuk menyewa mobil & jalan2 sekaligus cari souvenir/oleh2 yang masih kurang. Lumayan menguras keringat sekaligus kantong buat beli oleh2, tp gpp yang penting semua di nikmati. Tiba waktu jam makan siang & langsung meluncur ke restoran Padi-padi. Cukup suntuk jg harus menunggu 4 lebih waktu boarding kepulang ke Jakarta, tapi lumayan lah gw sempetin buat tidur 30-60 menit buat istirahatin badan gw…maklum masih berasa pegel-pegelnya coyyyy. Akhirnya waktu itu sampai dan kita semua meluncur ke bandara untuk melanjutkan perjalanan pulang ke Jakarta. See U soon Bali……

For Details about my foto in Bali….Maklum jepretan pake HP only (K660i)

dsc001141 dsc00106 dsc00107 dsc001091 dsc00111

dsc00100 dsc00104 dsc00115 dsc00112


Repairing a Defective Sector

September 18, 2008

Repairing a Defective Sector

If a disk on your system has a defective sector, you can repair it by following procedures in this section. You might become aware of defective sectors when you do the following:

  • Run surface analysis on a diskFor more information on the analysis feature of the format utility, see The analyze Menu.The defective area reported while your system is running might not be accurate. Since the system does disk operations many sectors at a time, it is often hard to pinpoint exactly which sector caused a given error. To find the exact sector(s), use How to Identify a Defective Sector by Using Surface Analysis.
  • Get multiple error messages from the disk driver concerning a particular portion of the disk while your system is running.Messages that are related to disk errors look like the following:
    WARNING: /io-unit@f,e0200000/sbi@0,0/QLGC,isp@1,10000/sd@3,0 (sd33):
    	Error for command 'read' Error Level: Retryable
    	Requested Block 126, Error Block: 179
    	Sense Key: Media Error
    	Vendor 'name':
    	ASC = 0x11 (unrecovered read error), ASCQ = 0x0, FRU = 0x0

    The preceding console message indicates that block 179 might be defective. Relocate the bad block by using the format utility’s repair command or use the analyze command with the repair option enabled.

ProcedureHow to Identify a Defective Sector by Using Surface Analysis

Become superuser or assume an equivalent role.

  1. Unmount the file system in the slice that contains the defective sector.
    # umount /dev/dsk/device-name

    For more information, see mount(1M).

  2. Invoke the format utility.
    # format
  3. Select the affected disk.
    Specify disk (enter its number):1
    selecting c0t2d0:
    [disk formatted]
    Warning: Current Disk has mounted partitions.
  4. Select the analyze menu.
    format> analyze
  5. Set up the analysis parameters by typing setup at the analyze> prompt. Use the parameters shown here:
    analyze> setup
    Analyze entire disk [yes]? n
    Enter starting block number [0, 0/0/0]: 12330
    Enter ending block number [2052287, 2035/13/71]: 12360
    Loop continuously [no]? y
    Repair defective blocks [yes]? n
    Stop after first error [no]? n
    Use random bit patterns [no]? n
    Enter number of blocks per transfer [126, 0/1/54]: 1
    Verify media after formatting [yes]? y
    Enable extended messages [no]? n
    Restore defect list [yes]? y
    Create defect label [yes]? y
  6. Use the read command to find the defect.
    analyze> read
    Ready to analyze (won't harm SunOS). This takes a long time,
    but is interruptible with Control-C. Continue? y
            pass 0
       2035/12/1825/7/24
            pass 1
    Block 12354  (18/4/18), Corrected media error (hard data ecc)
       25/7/24
    ^C
    Total of 1 defective blocks repaired.

ProcedureHow to Repair a Defective Sector

  1. Become superuser or assume an equivalent role.
  2. Invoke the format utility.
    # format
  3. Select the disk that contains the defective sector.
    Specify disk (enter its number): 1
    selecting c0t3d0
    [disk formatted]
    format>
  4. Select the repair command.
    format> repair
  5. Type the defective block number.
    Enter absolute block number of defect: 12354
       Ready to repair defect, continue? y
       Repairing block 12354 (18/4/18)...ok.
    format>

    If you are unsure of the format that is used to identify the defective sector, see How to Identify a Defective Sector by Using Surface Analysis for more information.

Tips and Tricks for Managing Disks

Use the following tips to help you manage disks more efficiently.

Debugging format Sessions

Invoke format -M to enable extended and diagnostic messages for ATA and SCSI devices.

In this example, the series of numbers under Inquiry: represent the hexadecimal value of the inquiry data that is displayed to the right of the numbers.

# format -M
Searching for disks...done
AVAILABLE DISK SELECTIONS:
  0. c0t1d0 <SUN1.05 cyl 2036 alt 2 hd 14 sec 72>
     /iommu@f,e0000000/sbus@f,e0001000/espdma@f,400000/esp@f,800000/sd@1,0
  1. c0t3d0 <SUN1.05 cyl 2036 alt 2 hd 14 sec 72>
     /iommu@f,e0000000/sbus@f,e0001000/espdma@f,400000/esp@f,800000/sd@3,0

Specify disk (enter its number): 0
selecting c0t3d0
[disk formatted]
format> inquiry
Inquiry:
00 00 02 02 8f 00 00 12 53 45 41 47 41 54 45 20     ........NAME....
53 54 31 31 32 30 30 4e 20 53 55 4e 31 2e 30 35     ST11200N SUN1.05
38 33 35 38 30 30 30 33 30 32 30 39 00 00 00 00     835800030209....
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00     ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00     ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00     ................
00 43 6f 70 79 72 69 67 68 74 20 28 63 29 20 31     .Copyright (c) 1
39 39 32 20 53 65 61 67 61 74 65 20 41 6c 6c 20     992 NAME    All
72 69 67 68 74 73 20 72 65 73 65 72 76 65 64 20     rights reserved
30 30 30                                            000
Vendor:   name
Product:  ST11200N SUN1.05
Revision: 8358
format>

Howto Enable ‘gcc’ On Solaris 10

May 6, 2008

1. Check the package of GCC was installed or not on your Solaris 10 OS, type this command :
# pkginfo -i SUNWgcc
system SUNWgcc gcc – The GNU C compiler
Its mean that gcc compiler have been installed on your Solaris 10 OS

2. Try to execute some file using C compiler support,
# /usr/bin/ccs./make
bash: /usr/bin/./make: No such file or directory
# /usr/sfw/bin/./gmake
gmake: *** No targets specified and no makefile found. Stop.

That word indicated, your profile does not support C compiler

3. Check your profile PATH, by type :
# $PATH
bash: /usr/sbin:/usr/bin:/usr/ccs/bin:/usr/openwin/bin:/usr/dt/bin:
/usr/platform/i86pc/sbin:/opt/sun/bin:/opt/SUNWexplo/bin:/opt/SUNWsneep/bin

On that word indicated that your location PATH gcc Compiler doesn’t located on your profile PATH

4. Step Enable gcc on your profile PATH
Edit the profile PATH on /etc/default/su & /etc/default/login and add text like this:
############################
PATH=/usr/bin:/usr/sfw/bin
############################
SUPATH=/usr/sbin:/usr/bin:/usr/sfw/bin

5. Restart your OS Solaris 10


Reuni Akbar SMAN 24 Jakarta

March 26, 2008

Ni…dia nih acara yang baru aja di gelar di Auditorium PLN Pusat,
Tepatnya pada tanggal 23 Maret 2008 kemaren,
Acaranya seru abizzz, ada ibu2 + bapak2 dan handai tolan,
Buat info aja nih;
Angk ‘99′ pake dress codenya item2 kaya abis acara berkabung aja hiihihi :D

Berikut ulasan liputan acara Reuni Akbar :
Keberangkatan saya di mulai pada pukul 6.30 dari bekasi,
dengan mengendarai sepeda motor ‘NEW TIGI’ gw berkendara dengan Pedenya,
seakan naek Harley Dakelan….hehehehe,sesampenya di daerah Blok-M,
dengan pedenya…gw tancep GAS…pake gigi 4/5 eh…kelewat cing…mokal dah gw
kakakakaka…!!!!

Setelah sampe di tempat tujuan,langsung gw parkir tuh kuda besi,
Eh ga nyangka gw nge-liat salah satu personel trio-macan booooo
Langsung aja coba gw deketin…pengen tau kebenarannya nih orang apa macan?
Eh….eh…ternyata..Tante Dina..Oepil toh…
Mantap…gw suka gaya lo pil…masih bocor aja kaya dulu.

Tak berselang lama kemudian,datanglah segerombolan bapak2 yg ber-badan tambun,
dengan perut membuncit…hihihi, cacingan Pak…heheheheh :D
Eh..tak disangka&tak di duga Gerombolan tersebut…di pimpin oleh Om Hendry alias B-Mho
Percakapan pun terjadi ‘hai…’,'P’kabar Coy’,'Gile..loh mkn ancur aja’
Itulah diantara pembuka percakapan…ala ank angkatan 99…pokoke ancur abizzzz.

Dilanjutkan dengan kami berbondong2 memasuki ruangan dan mencoba melakukan regitrasi,
ulang…ada suasana haru disini…ternyata kawan kita sodari Dina Oepil blm mendapatkan undangan,
Alias masih di tangan pihak lain…dlm hal ini saodari Ipe yg ber-tanggung jwb menangani hal tsb.

Resah, Gelisah puyeng…apa kata dunia klo sampe Dina Oepil g bisa masuk…
dan Akhirnya,kawan kita Diana Oepil bisa masuk juga…adem, aman, tentrem….!!!

Selanjutnya…di ikuti dengan segala kehebohan yang terjadi….
Suasana pun berubah hening tatkala sang Ibu negara datang, Ibu Ani Yudhoyono…!!!
Segala aturan yang bersifat protokoler…harus di taati,

Acara dimulai dengan beberapa sambutan dari Pak Ketum,
Perwakilan Alumni, dan Sekolah.

Lalu di mulailah acaranya….persembahan tari2an, parodi dari siswa/siswi SMAN 24
bahkan sampai alumni angk ‘73′….mantabbbb coyyyy.

Tak berselang beberapa lama sang “RI-1″ datang….mengunjungi acara kami…wes asyik
Jarang2 coy…acara gini-an di hadirin “RI-1″…wajar,,,,Ibu Ani alumni kita bozzz,

Sambutan RI-1 ;
Asalkan Istri senang Suami pun ikut senang,
Saling menjaga persaudaraan…(Begitu deh intisari pidatonya)

Kemudian ;
Di ikuti dengan acara persembahan dari rekan2 Alumni, sayang angk ‘99′ ga
nyumbang persembahan apapun,tapi itu semua terhapus oleh gaya/ciri ank2 angk-99
dengan pede & bocornya…kita berjoget2 seolah-olah acara ini hanya punya angk-99
GILE>>>>BENER>>>>

Dan lagi-lagi Tante Dina Oepil jadi ‘The Rissing Stars hari itu’
Salut buat Dina Oepil…..laen kali kita ada acara sendiri…Oke

Berikut hasil jepretan cameraman setempat;


Instalasi Oracle Database 10g Release 2 (10.2.0.2) di Solaris 10 (x86)

March 14, 2008

Instalasi Oracle Database 10g Release 2 (10.2.0.2) di Solaris 10 (x86).
Langkah-langkah :

* Download Software
* Hosts File
* Set Kernel Parameters
* Setup
* Installation
* Post Installation

Download Oracle untuk Solaris disini:

Oracle Database 10g Downloads

Checking Platform Requirement:
# /usr/sbin/prtconf | grep “Memory size” [Check RAM size]
# /usr/sbin/swap -s [check swap]
# df -k /tmp [check /tmp size (>400mb)]
# uname -r [check solaris version]

Check package requirement :
# pkginfo -i SUNWarc SUNWbtool SUNWhea SUNWlibm SUNWlibms SUNWsprot
SUNWsprox SUNWtoo SUNWi1of SUNWi1cs SUNWi15cs SUNWxwfnt

Sekarang sudah terbentuk single directory dng name “database” yang mengandung
installation files.
Hosts File

/etc/hosts file dirubah dan disesuaikan dengan nama komputer / servernya

192.168.32.1 oracle.sonofkoe-tech.com loghost

Set Kernel Parameters

Pada Solaris versi sebelumnya, kernel parameters disesuaikan dengan cara merubah
file ini “/etc/system”, kemudian systemnya di reboot.

set semsys:seminfo_semmni=100
set semsys:seminfo_semmsl=256
set shmsys:shminfo_shmmax=4294967295
set shmsys:shminfo_shmmni=100

Oracle installer mengenali kernel parameters dengan metode ini, untuk sekarang
dapat dilakukan dengan cara berikut :

Sebagai root user, jalankan command ini :

# projadd oracle

Tambahkan baris ini pada file “/etc/user_attr”

oracle::::project=oracle

Cek beberapa settingan di kernel parameter dengan perintah ini :.

# prctl -n project.max-shm-memory -i project oracle
project: 100: oracle
NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT
project.max-shm-memory
privileged 254MB – deny -
system 16.0EB max deny -

Untuk merubah valuenya, pastikan setidaknya ada satu terminal yang login sebagai oracle
user, kemudian dari root user jalankan perintah ini :

# prctl -n project.max-shm-memory -v 4gb -r -i project oracle
# projmod -s -K “project.max-shm-memory=(priv,4gb,deny)” oracle

Dan pastikan apakah value tersebut sudah aktif dalam user ‘oracle’ login sebagai user ‘oracle’
kemudian jalankan perintah di bawah ini :
$ prctl -n project.max-shm-memory -i project oracle

Pada perintah pertama diatas merubah valuenya secara dinamis, sedangkan perintah
yg kedua merubah file “/etc/project” sehingga value nya persistent setelah di
reboots.

# cat /etc/project
system:0::::
user.root:1::::
noproject:2::::
default:3::::
group.staff:10::::
oracle:100::::project.max-shm-memory=(priv,4294967296,deny)
#

Oracle installer akan memunculkan warning ketika mengecek kernel parameter set
, tapi diignore aja nanti juga “installation completes successfully.”
Setup

Tambahkan “SUNWi1cs” dan “SUNWi15cs” packages dengan perintah “pkgadd”

# pkgadd -d /cdrom/sol_10_106_x86/Solaris_10/Product SUNWi1cs SUNWi15cs

Create group dan user baru :groupadd oinstall
groupadd dba
groupadd oper

useradd -g oinstall -G dba -d /export/home/oracle oracle
mkdir /export/home/oracle
chown oracle:oinstall /export/home/oracle
passwd -r files oracle

Bikin direktory dimana Oracle software akan diinstall :

mkdir -p /u01/app/oracle/product/10.2.0/db_1
chown -R oracle:oinstall /u01

Misalkan pada direktory ini “/export/home/oracle”

mkdir -p /export/home/oracle/product/10.2.0/db_1
chown -R oracle:oinstall /export/home/oracle

Login sebagai oracle user tambahkan baris dibawah ini pada akhir file .profile
, pastikan ORACLE_BASE value nya seperti ini:

# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR

# Select the appropriate ORACLE_BASE
#ORACLE_BASE=/export/home/oracle; export ORACLE_BASE
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
ORACLE_SID=TSH1; export ORACLE_SID
PATH=$ORACLE_HOME/bin:$PATH; export PATH

Installation

Login sebagai oracle user.jika menggunakan X emulation set DISPLAY environmental
variable nya dengan perintah ini :

export DISPLAY=ipaddress-pc-remote

Start Oracle Universal Installer (OUI) dengan menjalankan perintah dibawah ini
dari direktory “database” :

./runInstaller

Post InstallationEdit setting file”/var/opt/oracle/oratab” pada restart flag nya untuk setiap instance
menjadi ‘Y’:

TSH1:/u01/app/oracle/product/10.2.0/db_1:Y


March 13, 2008

Tanggal, 13 March 2008

Hari ini, cuaca mendung berawan…..kayanya mau hujan gede nih…..dingin coyyyyy….!!!

Hari in, pula gw coba-coba install Oracle10g 10.2.0 di Solaris x86 via VmWare workstation 5.o

Walaupun lumayan banyak ‘error message’ yang muncul di sebabpin resources notebook gw yang minim

tapi apa boleh buat….bossss, tancap terus yang penting hasilnya…..!!!!

Wish me luck !!!! :D


March 11, 2008

Howto Reset ALOM Password on SFV215

I. Install pakages RSC (Remote System Control)

via NFS from another server machine”
# mount -F nfs 192.168.0.xxx:/export/home/eisdvd /mnt
# cd mnt/eiscd/11DEC07/
# cd progs/
# cd RSC/
# cd 2.2.3/
# mkdir /tmp/RSC
# unzip -d /tmp/RSC rsc2.2.3_pakages_s9.zip
# cd /tmp/RSC/
# pkgadd -d .
# cd /opt/rsc/bin/rsc/
# ./rscadm

Check Pakages
# pkginfo |grep SUNWrsc

“Test the RSC was working well”
# cd /opt/rsc/bin
# ./rsc

II. Reset Password ALOM via OS Solaris 10

First Edit ‘/etc/remote’ to established a serial session between to Sun System.

# vi /etc/remote
# tip hardwire

Second step its to modify & reset new password ALOM.

# /usr/platform/SUNW,Sun-Fire-V240/sbin/scadm userpassword admin
password : *********
Re-type password : *********
# /usr/platform/SUNW,Sun-Fire-V240/sbin/scadm shownetwork
# /usr/platform/SUNW,Sun-Fire-V240/sbin/scadm resetsc

Setup IP ALOM

# /usr/platform/SUNW,Sun-Fire-V240/sbin/scadm set netsc_ipaddr …
# /usr/platform/SUNW,Sun-Fire-V240/sbin/scadm set netsc_ipnetmask …
# /usr/platform/SUNW,Sun-Fire-V240/sbin/scadm set ipgateway …
# /usr/platform/SUNW,Sun-Fire-V240/sbin/scadm resetsc


March 10, 2008

Veritas Volume Manager Command Line Examples

Volume Manager CLI examples :
display disk listings:
# vxdisk list

display volume manager object listings
# vxprint -ht

display free space in a disk group
# vxdg -g <diskgroup> free

list all volume manager tasks currently running on the system
# vxtask list

add a disk to Volume Manager (devicename = cXtXdX) (prompt driven)
# vxdiskadd <devicename>

designate/remove a disk as a hot-relocation spare
# vxedit set spare=on <diskname>
# vxedit set spare=off <diskname>

rename a disk
# vxedit rename <old_diskname> <new_diskname>

reserve/unreserve a disk (space won’t be allocated unless specifically mentioned in vxassist)
# vxedit set reserve=on <diskname>
# vxedit set reserve=off <diskname>

take a disk offline (first remove the disk from its disk group) (devicename=cXtXdXs2)
#vxdisk offline <devicename>

remove a disk
(first, stop any applications associated with the volume,
unmount the volume, stop the volume,
if you need the data on the disk, move the volumes to another disk or back up volume)

–removing the disk from its disk group:
# vxdg -g <diskgroup> rmdisk <diskname>

–remove the disk from volume manager control (devicename=cXtXdXs2)
# vxdisk rm <devicename>

display multipath information
# vxdisk list <diskname>

create a disk group
(see ‘add a disk to volume manager – if the group does not exist, you will be prompted)

upgrade a disk group
–list disk group version
# vxdg list <diskgroup>
–upgrade disk group to highest version currently running
# vxdg upgrade <diskgroup>

destroy a disk group
# vxdg destroy <diskgroup>

display disk group information
# vxdg list
# vxdg list <diskgroup>

move a disk group
(stop any applications associated with all volumes in the disk group,
unmount and stop all volumes in the disk group:

–deport (disable local access) the disk group to be moved on first system
# vxdg deport <diskgroup>

–import (enable local access) the disk group and its disks from the second system
# vxdg import <diskgroup>

–start all volumes in the disk group on the second system
# vxrecover -g <diskgroup> -sb

or # vxvol -g <diskgroup> startall

estimating maximum volume size (any_valid_type = raid5, stripe, mirror)
# vxassist -g <diskgroup> maxsize layout=<any_valid_type>

create a concatenated volume (length examples = 15g, 15m)
# vxassist -g <diskgroup> make <volumename> <length> <diskname> <diskname>

create a striped volume (length examples = 15g, 15m)
# vxassist -g <diskgroup> make <volumename> <length> layout=stripe <diskname> \
<diskname>

create a raid5 volume (without logging) (length examples = 15g, 15m)
# vxassist -g <diskgroup> make <volumename> <length> layout=raid5,nolog <diskname> \
<diskname> <diskname> <diskname>

create a raid5 volume (with logging) (length examples = 15g, 15m)
# vxassist -g <diskgroup> make <volumename> <length> layout=raid5,log <diskname> \
<diskname> <diskname> <diskname>

create a mirrored volume (without DRL) (length examples = 15g, 15m)
# vxassist -g <diskgroup> make <volumename> <length> layout=mirror,nolog <diskname> \
<diskname>

create a mirrored volume (with DRL) (length examples = 15g, 15m)
# vxassist -g <diskgroup> make <volumename> <length> layout=mirror,log <diskname> \
<diskname>

mirror an existing volume
# vxassist mirror <volumename> <diskname_of_disk_to_be_mirrored>

mirror all volumes within a disk group
# vxmirror -g <diskgroup> -a

mirror the root (boot) disk
EEPROM variable “use-nvramrc?” must be set to true
# vxrootmir -v <medianame>

remove a mirror (use ‘vxprint -g <diskgroup> -ht’ to get plexname)
# vxplex -o rm dis <plexname>

add a log to an existing volume
# vxassist addlog <volumename> <diskname>

remove a log from an existing volume
# vxassist remove log <volumename>

create a raid 0+1 volume (without DRL)
# vxassist -g <diskgroup> make <volumename> <length> layout=mirror-stripe,nolog \
nmirror=# nstripe=# <diskname> <diskname> <diskname>

create a raid 1+0 volume (without DRL)
# vxassist -g <diskgroup> make <volumename> <length> layout=stripe-mirror,nolog \
nmirror=# nstripe=# <diskname> <diskname> <diskname>

resize a volume
# vxassist -g <diskgroup> growto <volumename> <length>
# vxassist -g <diskgroup> growby <volumename> <length>
# vxassist -g <diskgroup> shrinkto <volumename> <length>
# vxassist -g <diskgroup> shrinkby <volumename> <length>

estimate how much a volume can grow
# vxassist -g <diskgroup> maxgrow <volumename>

remove a volume
(stop all applications associated with the volume,
unmount volume (remove /etc/vfstab entry))

–stop volume
# vxvol stop <volumename>

– remove volume (for raid 1+0, use ‘rf-rm’)
# vxedit -r rm <volumename>

or # vxassist remove volume <volumename>

change the volume read policy
# vxvol rdpol <policy> <volumename>
# vxvol rdpol prefer <volumename> <preferred_plex_name>

change volume attributes
# vxedit set <field>=<value> <volumename>

resize a filesystem (ufs cannot be shrunk, only grown)
# vxresize -g <diskgroup> <volumename> + <size>
# vxresize -g <diskgroup> <volumename> – <size>

join subdisks (must be in the order of offset on disks)
# vxsd join <subdisk> <subdisk> <subdisk>


March 6, 2008

Hari ini, tanggal 6 March 2008

Setelah 2 hari berturut-turut ngotak-atik….server SFV215 buat install OSnya lewat Jumpstart.

akhirnya terselesaikan (solved) juga, semua cuma gara – gara koneksi network kantor gw yang ga memenuhi

standarisasi ISO….sahhhh elahhhh “ISO SAPI KALEEE”.

Akhirnya gw pasang aja pake kabel crossing buat instalasi jumpstartnya….eh….ocreee deh…hehehe :D

Ternyata….Bagaikan pribahasa “Gajah di pelupuk tampak, semut di seberang tak nampak” maaf klo salah…

maklum pelajaran BhsIndonesianya agak jeblok.


March 5, 2008

Mirror Available On Solaris 10

————-SNIP————
#!/bin/sh
#Mirrorme.sh
prtvtoc /dev/rdsk/c1t0d0s2 | fmthard -s – /dev/rdsk/c1t1d0s2
metadb -a -f -c2 /dev/dsk/c1t0d0s3 /dev/dsk/c1t1d0s3
metadb -a -f -c2 /dev/dsk/c1t0d0s4 /dev/dsk/c1t1d0s4 (UPDATED “Problems With Multiple MetaDB Partitions“)

# / Filesystem
metainit -f d10 1 1 c1t0d0s0
metainit d20 1 1 c1t1d0s0
metainit d30 -m d10
metaroot d30

# Swap Filesystem
metainit -f d11 1 1 c1t0d0s1
metainit d21 1 1 c1t1d0s1
metainit d31 -m d11

# /usr filesystem:
metainit -f d12 1 1 c1t0d0s5
metainit d22 1 1 c1t1d0s5
metainit d32 -m d12

# /var filesystem:
metainit -f d13 1 1 c1t0d0s6
metainit d23 1 1 c1t1d0s6
metainit d33 -m d13

# /opt filesystem:
metainit -f d14 1 1 c1t0d0s7
metainit d24 1 1 c1t1d0s7
metainit d34 -m d14
metainit hsp001

echo “Do a lockfs -fa, and then an init 6?
————-SNIP————
If you are unsure of what these commands are doing, please read the man pages on them. Change the drive and controller numbers based on your server, run this script, and reboot the system.
After the system has come back up, it’s time to attach the mirror partitions to the metadevices. This next script will take care of that for you.

————-SNIP————
#!/bin/sh
#Mirrormemore.sh
metattach d30 d20
metattach d31 d21
metattach d32 d22
metattach d33 d23
metattach d34 d24

echo “Don’t forget to make the new mirror bootable”echo ” # installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c1t1d0s0?echo “Making darn sure this is pointed towards the mirror drive!”
————-SNIP————