Tuesday, July 6, 2010

Solaris 10 - replace failed hardisk on mirror setting

#metastat
#metadb -d c0t1d1s7
#metadetach -f d40 d42
#metaclear -f d42
#cfgadm -al
#cfgadm -c unconfigure c1::dsk/c0t1d0

take out old disk
put in new disk

#cfgadm -c configure c1::dsk/c0t1d0
#format
#prtvtoc /dev/rdsk/c0t0d0s2 | fmthard -s - /dev/rdsk/c0t1d0s2
#metadb -a -c 2 c0t1d0s7
#metainit -f d42 1 1 c0t1d0s5
#metattach d40 d42
#metastat -p
#metadevadm -u c0t1d0

mount iso

#mkdir /tmp/syshandbook
#mount -o loop file1.iso /tmp/syshandbook
#ls /tmp/syshandbook

Friday, June 11, 2010

convert CD to ISO image

#unmount /dev/cdrom
#dd if=/dev/cdrom of=file.iso bs=1024

Friday, June 4, 2010

Solaris 10 - Add new hardisk

1. Add new hardisk
2. Boot up
3. #devfsadm
4. #format
5. #iostat -En (take note the new hardisk target address. eg .c0t0d0)
6. #newfs /dev/rdsk/c0t0d0
7. #mkdir /newfs
8. #mount /dev/dsk/c0t0d0 /newfs
9. #df -h

Thursday, May 13, 2010

Solaris : loghost could not be resolved

add this line into /etc/hosts

127.0.0.1 localhost loghost

save and exit.

Wednesday, May 12, 2010

Solaris 10 : Changing hostname

1. /etc/hosts
2. /etc/nodename
3. /etc/hostname.

--------------------------------------------------

root@-i # more /etc/hosts
#
# Internet host table
#
::1 localhost
127.0.0.1 localhost
203.223.137.104 oratest oratest.com.my loghost

--------------------------------------------------

root@-i # more /etc/nodename
oratest

--------------------------------------------------

root@-i # more /etc/hostname.e1000g0
oratest

--------------------------------------------------

Friday, April 23, 2010

Ubuntu - How to get hardware info,version & serial

#biosdecode
#smidecode
#lshw
#lspci

In GUI mode :
#apt-get install lshw-GTK
#lshw-GTK