* Sorry ini sumbernya lupa dari mana,tapi cukup berguna buat yang saya *
General
1. Creating a Volume
1.1 Creating a Concatenated Volume
1.2 Creating a Striped Volume
1.3 Creating a RAID-5 Volume
2. Extending a Volume
2.1 Extending a volume up to certain length,
2.2 Extending by a Given Length
3. Shrinking a Volume
3.1 Shrinking to a Given Length
3.2 Shrinking by a Given Length
4. Removing a Volume
5. Mirroring a Volume
5.1 Creating & Mirroring a New Volume
5.2 Mirroring an Existing Volume
5.3 Mirroring All Volumes
6. Removing a Mirror
7. Adding a RAID-5 Log
8. Adding a DRL Log
9. Removing a RAID-5 Log
10.Preparing a Volume for Online Backup
11.Displaying Volume Configuration Information
General
The vxassist utility in Veritas Volume Manager is used to create volumes, add mirrors and logs to existing volumes, extend and shrink existing volumes, provides for the migration of data from a specified set of disks, and provides facilities for the on-line backup of existing volumes.
The default behavior of vxassist is to create volumes in the rootdg diskgroup if diskgroup is not specified . The default length is taken as number of blocks but this can be specified in Kilobytes orMegabytes or Gigabytes.
vxassist command syntax :
vxassist
Read More..
Monday, August 31, 2009
Saturday, August 29, 2009
How To Install TOP Package for solaris
Studycase OS solaris 9,SUN Fire V440 :
* Download package TOP (utility for see prosess daemon/file in system)in www.sunfreeware.com
root # pkgadd -d top-3.6.1-sol9-sparc-local
The following packages are available:
1 SMCtop top
(sparc) 3.6.1
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: 1
Processing package instance from
top
(sparc) 3.6.1
This appears to be an attempt to install the same architecture and
version of a package which is already installed. This installation
will attempt to overwrite this package.
LeFebvre et al
Using as the package base directory.
## Processing package information.
## Processing system information.
17 package pathnames are already properly installed.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.
Installing top as
## Installing part 1 of 1.
[ verifying class ]
Installation of was successful.
root # /usr/local/bin/top
last pid: 19787; load avg: 0.07, 0.04, 0.04; up 191+17:57:56 11:23:44
97 processes: 96 sleeping, 1 on cpu
CPU states: 94.1% idle, 5.4% user, 0.5% kernel, 0.0% iowait, 0.0% swap
Memory: 2048M phys mem, 94M free mem, 1024M total swap, 908M free swap
PID USERNAME LWP PRI NICE SIZE RES STATE TIME CPU COMMAND
13717 root 29 59 0 94M 36M sleep 498:08 4.46% java
834 root 12 21 0 60M 16M sleep 18.3H 0.99% java
1346 root 2 1 0 25M 20M sleep 54.2H 0.00% esd
5463 root 1 1 0 22M 9568K sleep 25.8H 0.00% esd
3981 smcorau 11 1 0 896M 869M sleep 21.1H 0.00% oracle
5441 root 10 21 0 3912K 2840K sleep 17.2H 0.00% picld
3983 smcorau 1 1 0 893M 858M sleep 251:48 0.00% oracle
3996 root 21 1 0 68M 18M sleep 194:15 0.00% java
5415 root 17 12 0 70M 17M sleep 148:22 0.00% java
3973 smcorau 11 1 0 894M 859M sleep 110:52 0.00% oracle
5491 root 1 1 0 16M 9072K sleep 82:39 0.00% esd
5459 root 1 1 0 7056K 5208K sleep 56:36 0.00% esd
5461 root 1 46 0 8056K 5816K sleep 44:48 0.00% esd
3975 smcorau 11 59 0 894M 859M sleep 33:36 0.00% oracle
13388 root 1 60 0 32M 25M sleep 26:42 0.00% esd
Read More..
* Download package TOP (utility for see prosess daemon/file in system)in www.sunfreeware.com
root # pkgadd -d top-3.6.1-sol9-sparc-local
The following packages are available:
1 SMCtop top
(sparc) 3.6.1
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: 1
Processing package instance
top
(sparc) 3.6.1
This appears to be an attempt to install the same architecture and
version of a package which is already installed. This installation
will attempt to overwrite this package.
LeFebvre et al
Using as the package base directory.
## Processing package information.
## Processing system information.
17 package pathnames are already properly installed.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.
Installing top as
## Installing part 1 of 1.
[ verifying class
Installation of
root # /usr/local/bin/top
last pid: 19787; load avg: 0.07, 0.04, 0.04; up 191+17:57:56 11:23:44
97 processes: 96 sleeping, 1 on cpu
CPU states: 94.1% idle, 5.4% user, 0.5% kernel, 0.0% iowait, 0.0% swap
Memory: 2048M phys mem, 94M free mem, 1024M total swap, 908M free swap
PID USERNAME LWP PRI NICE SIZE RES STATE TIME CPU COMMAND
13717 root 29 59 0 94M 36M sleep 498:08 4.46% java
834 root 12 21 0 60M 16M sleep 18.3H 0.99% java
1346 root 2 1 0 25M 20M sleep 54.2H 0.00% esd
5463 root 1 1 0 22M 9568K sleep 25.8H 0.00% esd
3981 smcorau 11 1 0 896M 869M sleep 21.1H 0.00% oracle
5441 root 10 21 0 3912K 2840K sleep 17.2H 0.00% picld
3983 smcorau 1 1 0 893M 858M sleep 251:48 0.00% oracle
3996 root 21 1 0 68M 18M sleep 194:15 0.00% java
5415 root 17 12 0 70M 17M sleep 148:22 0.00% java
3973 smcorau 11 1 0 894M 859M sleep 110:52 0.00% oracle
5491 root 1 1 0 16M 9072K sleep 82:39 0.00% esd
5459 root 1 1 0 7056K 5208K sleep 56:36 0.00% esd
5461 root 1 46 0 8056K 5816K sleep 44:48 0.00% esd
3975 smcorau 11 59 0 894M 859M sleep 33:36 0.00% oracle
13388 root 1 60 0 32M 25M sleep 26:42 0.00% esd
Thursday, August 27, 2009
krtld: load_exec: fail to expand cpu/$CPU
Hari ini coba install Mseries (M4000) persiapan buat instalasi di salah satu customer, Planning di customer ingin mengkloning server dari SF 890 ke M4000. Kita asumsikan sama2 menggunakan OS solaris 10. Kebetulan dikantor ada server SF V210 dengan 2 disk, diputuskan simulasi dengan server tersebut.
Pertama dibuat Flar archive dari server V120 ini diberinama FlarTest, commandnya :
setalah hampir 2 jam lebih file archive berhasil dibuat, pada saat M4000 dinyalakan dan dimasukan DVD installer solaris 10 11/06, proses boot gagal dengan output seperti berikut :
Waduh !!..googling dan nyari dokumen di sunsolve, akhirnya ketemua bahwa Mseries harus menggunakan Solaris 10 5/08 keatas, pantesan ga bisa buat boot Mseries. Download di webnya SUN.com, burning dan test buat boot ...dan berhasil. Proses instalasi menggunakan NFS dengan metode flash (flar archive).
Read More..
Pertama dibuat Flar archive dari server V120 ini diberinama FlarTest, commandnya :
bash-3.00 # flarcreate -n "FlarTest-os" -c -R / /export/home/FlarTest.flar
Full Flash
Checking integrity...
Integrity OK.
Running precreation scripts...
Precreation scripts done.
Determining the size of the archive...
setalah hampir 2 jam lebih file archive berhasil dibuat, pada saat M4000 dinyalakan dan dimasukan DVD installer solaris 10 11/06, proses boot gagal dengan output seperti berikut :
krtld: load_exec: fail to expand cpu/$CPU
krtld: error during initial load/link phase
panic - boot: exitto64 returned from client program
ok
Waduh !!..googling dan nyari dokumen di sunsolve, akhirnya ketemua bahwa Mseries harus menggunakan Solaris 10 5/08 keatas, pantesan ga bisa buat boot Mseries. Download di webnya SUN.com, burning dan test buat boot ...dan berhasil. Proses instalasi menggunakan NFS dengan metode flash (flar archive).
Read More..
Wednesday, August 26, 2009
About file iso image in solaris
Cara membuat file iso dari cdrom
# mkisofs -r -o /tmp/disk1.iso /cdrom/cdrom0
cara mounting file iso
# /usr/sbin/lofiadm -a tmp/disk1.iso /dev/lofi/1
# mount -F hsfs -o ro /dev/lofi/1 /test
Cara unmount file iso
# umount /test
# /usr/sbin/lofiadm -d /dev/lofi/1
Read More..
Monday, August 24, 2009
Rlogin (Remote Login) in solaris
Apa itu Rlogin? menurut definisi yg saya tau sih, supaya kita bisa masuk dari system 1 ke system 2 dengan tanpa meminta password root lagi (agak riskan sih, dan sebenarnya tidak disarankan oleh audit security system) kalo menurut manual systemnya rlogin adalah
rlogin establishes a remote login session from your terminal to the remote machine named hostname. Hostnames are listed in the hosts database, which may be contained in the /etc/hosts file, the Network Information Service (NIS) hosts map, the Internet domain name server, or a combination of these. Each host has one official name (the first name in the database entry), and optionally one or more nicknames. Either official hostnames or nicknames may be specified in hostname.
Berikut langkah-langkah untuk rlogin yg dimaksud :
1. Cek Daemon rlogin,
root # more /etc/inetd.conf
+++++++++++++++++++++++++++++++++++++++++
# RLOGIND - rlogin daemon (BSD protocols)
login stream tcp6 nowait root /usr/sbin/in.rlogind in.rlogind
+++++++++++++++++++++++++++++++++++++++++
root # ps -ef | grep inetd
root 147 1 0 Aug 01 ? 0:00 /usr/sbin/inetd -s
root 24051 24027 0 12:18:00 pts/4 0:00 grep inetd
root # kill -HUP 147
root # ps -ef | grep rlogin
root 6262 178 0 11:38:54 ? 0:00 in.rlogind
root 7972 6264 0 12:21:22 pts/4 0:00 grep rlogin
root #
2. tambahkan host yang akan di rlogin
root@HOST-A # more /etc/hosts.equiv
HOST-B
+ root
root@HOST-A # ls -ltr /etc/hosts.equiv
-rw-r--r-- 1 root other 19 Aug 6 11:21 /etc/hosts.equiv
root #
root@HOST-A # more $HOME/.rhosts
HOST-B
+ root
root #
3. tambahkan host yang akan di rlogin
root@HOST-B # more $HOME/.rhosts
HOST-A
+ root
root@HOST-B #
root@HOST-B # more $HOME/.rhosts
HOST-A
+ root
root@HOST-B # more /etc/hosts.equiv
HOST-A
+ root
root@HOST-B # ls -ltr /etc/hosts.equiv
-rw-r--r-- 1 root other 17 Apr 21 2007 /etc/hosts.equiv
root@HOST-B #
*gambar diambil dari http://www.sun.com
Read More..
Sunday, August 23, 2009
About SSH (Secure Sheel) in Solaris
# Solaris 9
Untuk Disable service SSH
bash # /etc/init.d/sshd stop
bash # /etc/rc3.d/S89sshd stop
Untuk Enable service SSH
bash # /etc/init.d/sshd start
bash # /etc/rc3.d/S89sshd start
Restart Service SSH
bash # kill -HUP `cat /var/run/sshd.pid`
# Solaris 10
Check service SSH
bash# svcs | grep ssh
online Jan_21 svc:/network/ssh:default
jika offline,
bash # svcadm enable -t network/ssh:default
bash # /lib/svc/method/sshd start
Disable Service SSH,
bash # svcadm disable -t network/ssh:default
Restart service SSH,
bash # svcadm restart network/ssh:default
bash # /lib/svc/method/sshd restart
Refresh service SSH,
bash # svcadm refresh network/ssh:default
Untuk user root supaya bisa gunakan SSH ketika masuk ke system
bash> vi /etc/ssh/sshd_config
[...]
# Valid options are yes, without-password, no.
PermitRootLogin no
[....]
ganti no menjadi yes
Read More..
Wednesday, August 19, 2009
VxVM vxassist ERROR V-5-1-334 900gb: Invalid length specification
Kemarin, pas nambah mountpoint di salah satu server ketemu error messages seperti ini
root # vxassist -g extdg make extdata66 900gb alloc=extdg09
VxVM vxassist ERROR V-5-1-334 900gb: Invalid length specification
Ceritanya, user mau nambah mounpoint /data_backup sebesar 900Gb. Filesystem dimanage oleh veritas Volume Manager (VxVM), OS yang digunakan solaris 9 type server SunFire 890. Setelah team storage confirm kalau disk baru sebesar 900gb sudah diassaign, pas dicheck disisi server ternyata sudah berhasil dikenal oleh server sebagai :
root # format
c4t50060E80042AB044d15: configured with capacity of 900.62GB
c6t50060E80042AB054d15: configured with capacity of 900.62GB
Ehm,ternyata sudah multipath disknya. pada saat prosess penambahan mounpoint itulah error messages muncul. Bolak-balik nyari solusi,searching di google, cari di www.sun.com tidak menemukan jawaban untuk case ini. Nah pas baca manual mengenail vxassist ternyata solusinya sepele saja, yaitu :
Before :
root # vxassist -g extdg make extdata66 900gb alloc=extdg09
VxVM vxassist ERROR V-5-1-334 900gb: Invalid length specification
After:
root # vxassist -g extdg make extdata66 900g alloc=extdg09
Akhirnya solve juga case ini,hal sepele tapi cukup merepotkan...
Read More..
Tuesday, August 18, 2009
Postingan Awal
Berhubung blog yg lama,datanya entah kemana (karena salah customize)hehehehe...maklum newbie.
Jadi sementara waktu inilah blog yg akan digunakan, akan ada beberapa kategori dalam blog ini salah satunya mengenai aktivitas termasuk trik tentang solaris. Semoga berguna
Read More..
Subscribe to:
Posts (Atom)