Thursday, October 01, 2009

RPC: Program not registered

0 komentar
Hari ini menemukan hal baru, pas mount NFS koq gak bisa. Muncul error :

root # mount 190.10.3.8:/titip /a
nfs mount: 190.10.3.8: : RPC: Program not registered
nfs mount: retrying: /a

root #


setelah cari sana sini, ketemu caranya sbb :

Disisi Servernya :

root # cd rc3.d
root # ls
K45vxpbx_exchanged S16boot.server S52imq S84appserv
README S34dhcp s76snmpdx S89sshd
S13kdc.master S45vxpbx_exchanged s77dmi S90samba
S14kdc S50apache S80mipagent S99CAsanproxy
S15nfs.server S50san_driverchk S81volmgt S99rscd
root # ./S15nfs.server stop
root # ./S15nfs.server start
root # unshareall
root # shareall
root # share
- /titip rw,anon=0 "home dirs"
root # pwd
/etc/rc3.d
root #


di client nya dicoba lagi :

root # mount 190.10.3.8:/titip /a
root #


Read More..

Tuesday, September 08, 2009

Administrasi singkat SUN Fire E25K

0 komentar
Berikut list administrasi super singkat tapi mudah-mudahan bisa digunakan oleh anda semua, berguna untuk administrasi server kelas high end SunFire E25K..memang tidak komplit banget,jadi maafkan saya yg bodoh ini.

How many domains 15/25k can support ?
18 domains



How many groups exist on platform ?
Three -> platadm,platoper,platsvc

How many types of groups exists on domains
Two. -> dmnadmn,dmnarcfg

What is the command used to add user to a group ?
Smsconfig –a –u username –G platadm platform

what is the command to list the users ?
smsconfig –l platform


How to check the platform information ?
showplatform

How to login to domain console from sms console ?
Console –d A

What are the different paths through which sc can communicate to domain ?
- Through I1 Man network
- Through IOSRAM

How we can toggle communication between I1 to IOSRAM incase if the domain console hangs ?
~=

How to disconnect domain console ?
~.

How to break to domain OK prompt ?
~#

How do you access the system controller if it hangs ?
Issue smsconnectsc from sparesc

How do you reset the System controller ?
Issue resetsc from another sc

How do you remove user from a group ?
Smsconfig –r –u username –G platadm platform

Whats the command to use to update the flash ?
Flashupdate

What command to use to reset domain from sc?
reset –d A

How to stop and restart SMS ?
/etc/init.d/sms stop
/etc/init.d/sms start

What is the main daemon which starts reset of the SMS daemons ?
Ssd ( Sms Startup Daemon )

How many daemons running on SMS ?
13 ( dsmd,efe,esmd,fomd,frad,hwad,kmd,mand,mld,osd,pcd,ssd,tmd)

How many agents running on SMS ?
2 ( dca , dxs)

Where are the log files located for platform messages ?
/var/opt/SUNWSMS/adm/platform/messages

Where are the log files located for Domain messages ?
/var/opt/SUNWSMS/adm/domain_id/messages

Where are the log files located for Domain console ?
/var/opt/SUNWSMS/adm/domain_id/console

How to make the boards available to the domain ?
Setupplatform –d A SB0 IO0

Whats the minimum requirement for a domain setup?
1. At leaset one CPU board with Memory
2. At least one IO board
3. At least one board with network interface

How to Add name to domain ?
addtag –d A testname

How to delete domain tag ?
deletetag –d A testname

How to add board to domain from system controller ?
Addboard –d A SB0

How to just assign board to domain from system controller ?
Addboard –d A -c assign SB0

How to remove and reconfigure board from a domain from system controller ?
Deleteboard SB0

How to just unassign the board from domain from system controller ?
Deleteboard–c unassign SB0

How to move boards between the domain from system controller ?
Moveboard –d A SB1

How to remove all instances of previously active domain ?
Sc0:> setdefaults –d A

How to check the boards status ?
showboards

How to obtain the domain status ?
Showplatform –d B

How to set date for sc ?
Setdate xxxxxxxxxx

How to set date for domain from sc ?
setdate –d B xxxxxxxxx

How to display the date on sc ?
showdate

Read More..

IPMP Solaris multipathing

0 komentar
Kemarin pasang multipathing di solaris sun v440,


Device LAN nya dideteksi sebagai ce2 and ce6, IP untuk ce2 10.128.1.5 dan ce6 10.128.1.6 untuk virtual digunakan IP 10.128.1.7


root@S440A # ifconfig ce2 plumb 10.128.1.5 netmask + broadcast + group group1 deprecated -failover up
root@S440A # ifconfig ce2 addif 10.128.1.7 netmask + broadcast + failover up
root@S440A # ifconfig ce6 plumb 10.128.1.6 netmask + broadcast + group group1 deprecated -failover standby up



Untuk membuat permanent configuration,buat file seperti ini

root@S440A # vi /etc/hostname.ce2
10.128.1.5 netmask + broadcast + group group1 deprecated -failover up addif 10.128.1.7 netmask + broadcast + failover up
wq!


root@S440A # vi /etc/hostname.ce6
10.197.151.6 netmask + broadcast + group group1 deprecated -failover standby up
wq!


untuk cara testingnya :
masukkan dua kabel yg sudah dikonfigure oleh team network ke ce2 dan ce6, kemudian dari server/host lain coba ping 10.128.1.5 atau 10.128.1.6 dengan option -s. Setelah itu baru test cabut kabel network ce2, dipastikan proses pin terus berjalan.
Lalu test untuk ce6, masukkan/colokkan kembali kabel utp tadi yg dilepas ke ce2, lalu cabut kabel ce6nya.lihat hasilnya.....
Read More..

Tuesday, September 01, 2009

How to setting user only can ftp in solaris

9 komentar
Sometimes we want to create a user who entered the system can only be run ftp, how can make it ?

1. Add user for only can ftp
root # useradd -u 2009 -g 10 -d /export/home/userftp -c "Ftp user only" -m -s /bin/false userftp
64 blocks

root # more /etc/passwd
....
....
userftp:x:2009:10:Ftp user only:/export/home/userftp:/bin/false

root # passwd userftp
New Password:
Re-enter new Password:
passwd: password successfully changed for userftp
root #



create file /etc/shells, because by default this file not found in system
root # more /etc/shells
/etc/shells: No such file or directory
root #

root # vi /etc/shells
/bin/bash
/bin/csh
/bin/gnome-autogen.sh
/bin/hash
/bin/jsh
/bin/ksh
/bin/pfcsh
/bin/pfksh
/bin/pfsh
/bin/remsh
/bin/rksh
/bin/rsh
/bin/sh
/bin/ssh
/bin/tcsh
/bin/zsh
/bin/ftpaccess
/sbin/sh
# add this line
/bin/false
wq!

Now we check, after setting userftp only can ftp no telnet and ssh...
root # ftp localhost
Connected to localhost.
220 myhost FTP server ready.
Name (localhost:root): userftp
331 Password required for userftp.
Password:
230 User userftp logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> bye
221-You have transferred 0 bytes in 0 files.
221-Total traffic for this session was 229 bytes in 0 transfers.
221-Thank you for using the FTP service on myhost.
221 Goodbye.

root # telnet localhost
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.


SunOS 5.9

login: userftp
Password:
Last login: Tue Sep 1 21:48:29 from localhost
Connection to localhost closed by foreign host.

root # ssh userftp@localhost
userftp@localhost's password:
Last login: Tue Sep 1 21:49:22 2009 from localhost
Connection to localhost closed.
root #

Read More..

How to Setup Solaris 9 after instalation

0 komentar
When finished installing the OS on the system, the following steps to improve the OS configuration :
1. Install Patches

Insert DVD EIS to cdrom/dvdrom device
root # cd /cdrom/eis-dvd/sun/install
root # ./setup-standard.sh
root # . /.profile
root # cd /cdrom/eis-dvd/sun/patch/9 ---ini bisa disesuaikan dengan solaris serinya
root # unpack-patches /tmp
root # cd /tmp/9
root # eject ----buat ngeluarin cdrom
root # ./install_patches



2. Setting IP address
syntax : #ifconfig [interface] plumb

root # ifconfig bge0 plumb
root # ifconfig bge0 192.168.200.90 netmask 255.255.255.0 broadcast + up


3. Setting Hostname
root # vi /etc/hosts
127.0.0.1 localhost
192.168.200.90 sunmc sunmc.com loghost
wq!



4. Edit File :
root # vi /etc/hostname.bge0
sunmc
wq!


root # vi /etc/defaultrouter
192.168.200.1
wq!


root # vi /etc/inet/netmasks
192.168.200.0 255.255.255.0
wq!


If we want to enable telnet, do as the following configuration :
root #vi /etc/default/login
put a # in the following lines
CONSOLE=/dev/console
wq!


For setting FTP
root #vi /etc/ftpd/ftpusers
put a # in the following lines
root
wq!


For Setting ssh :

root #vi /etc/ssh/sshd_config
PermitRootLogin no ---> replace no with yes
wq!

Read More..

Monday, August 31, 2009

About VXassist

0 komentar
* 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..

Saturday, August 29, 2009

How To Install TOP Package for solaris

0 komentar
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..

Thursday, August 27, 2009

krtld: load_exec: fail to expand cpu/$CPU

1 komentar
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 :

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

0 komentar
http://gandevtuna.blogspot.com


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

0 komentar
http://gandevtuna.blogspot.com


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

0 komentar
http://gandevtuna.blogspot.com

# 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

0 komentar
http://gandevtuna.blogspot.com


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

0 komentar


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..
 
footer