Posts

Showing posts from September, 2006

Solaris - Disk Assigment

/dev/rdsk/c0d0s0~7 : Primary IDE Master /dev/rdsk/c0d1s0~7 : Primary IDE Slave /dev/rdsk/c1d0s0~7 : Secondary IDE Master /dev/rdsk/c1d1s0~7 : Secondary IDE Slave /dev/rdsk/c0t0d0s0~7 : SCSI0 Disk Drive /dev/rdsk/c0t1d0s0~7 : SCSI1 Disk Drive /dev/rdsk/c0t2d0s0~7 : SCSI2 Disk Drive /dev/rdsk/c0t3d0s0~7 : SCSI3 Disk Drive /dev/rdsk/c0t4d0s0~7 : SCSI4 Disk Drive /dev/rdsk/c0t5d0s0~7 : SCSI5 Disk Drive /dev/rdsk/c0t6d0s0~7 : SCSI6 Disk Drive /dev/rdsk/c0t7d0s0~7 : SCSI7 Disk Drive c - Controller ID t - Target SCSI ID (for SCSI) d - Disk Number s - Slice Number (CDROM=S0 )

Solaris - NFS Configuration

Server Side ##### Share to all clients ##### shell> chmod 707 /[sharing directory] shell> share -F nfs -o rw /[sharing directory] shell> /usr/lib/nfs/nfsd -a 16 shell> /usr/lib/nfs/mountd ##### Share to specified hosts ##### shell> vi /etc/hosts 192.168.0.2 HOST01 192.168.0.3 HOST02 shell> vi /etc/dfs/dfstab share -F nfs -o rw=HOST01:HOST02 /[sharing directory] shell> vi /etc/dfs/dfstab share -F nfs -o rw=HOST01:HOST02 /[sharing directory] shell> mv /etc/rc3.d/K28nfs.server /etc/rc3.d/S28nfs.server shell> /etc/init.d/nfs.server start shell> /etc/init.d/nfs.server stop Client Side ##### Manual-mount ##### shell> vi /etc/hosts 192.168.0.1 SERVERHOST shell> mkdir /usr/data shell> mount -F nfs SERVERHOST:/[sharing directory] /usr/data ##### Auto-mount ##### shell> vi /etc/hosts 192.168.0.1 SERVERHOST shell> vi /etc/vfstab SERVERHOST:/[sharing directory] - /usr/data nfs - yes rw,bg,soft shell> mount all

Solaris - Start Up Mode

Text mode: shell> /usr/dt/bin/dtconfig -d X-Window mode: shell> /usr/dt/bin/dtconfig -e

Solaris - Connecting Network Adaptor [arp]

bigbrother# arp -a Net to Media Table Device IP Address Mask Flags Phys Addr ------ -------------------- --------------- ----- --------------- hme0 phoenix 255.255.255.255 08:00:20:b3:76:4e hme0 cms01 255.255.255.255 08:00:20:c4:5a:d7 hme0 dracon 255.255.255.255 08:00:20:aa:47:36

Solaris - Network Configuration

Hostname: /etc/nodename Network Adaptor's Hostname: /etc/hostname. [cardname] TCP/IP Address (Solaris 9): /etc/inet/hosts TCP/IP Address (Solaris 10): /etc/inet/ipnodes Subnet Mask: /etc/inet/netmask Gateway: /etc/defaultrouter DNS: /etc/resolv.conf

Solaris - Usage Links

Solaris x86 摰�鋆���亥�� http://solaris.tophk.net/ 瘞賊�����UNIX http://fanqiang.chinaunix.net/ Sunfreeware.com http://www.sunfreeware.com/ Sun Package http://www.sun.com/software/solaris/freeware/pkgs_download.xml

Solaris - Patch Update

http://www.sun.com/bigadmin/patches/index.html shell> mv 9_x86_Recommended.zip /usr/local/src shell> cd /usr/local/src shell> cp 9_x86_Recommended.zip .. shell> cd .. shell> unzip 9_x86_Recommended.zip shell> rm 9_x86_Recommended.zip shell> cd 9_x86_Recommended shell> ./install_cluster

Solaris - Installation Package

Example for wget installation: shell> mv wget-1.9.1-sol9-intel-local.gz /usr/local/src shell> cd /usr/local/src shell> cp wget-1.9.1-sol9-intel-local.gz .. shell> cd .. shell> gzip -d wget-1.9.1-sol9-intel-local.gz shell> pkgadd -d wget-1.9.1-sol9-intel-local shell> rm wget-1.9.1-sol9-intel-local Example for wget installation: shell> cd /usr/local/src shell> gzip -d gcc-2.95.3-sol8-intel-local.gz shell> pkgadd -d gcc-2.95.3-sol8-intel-local shell> rm gcc-2.95.3-sol8-intel-local shell> whereis cc cc: /usr/ucb/cc shell> whereis gccgcc : /usr/local/bin/gcc shell> cd /usr/ucb shell> mv cc cc.orig shell> ln -s /usr/local/bin/gcc cc shell> cd /usr/local/src shell> cp libgcc-3.3-sol9-intel-local.gz .. shell> cd .. shell> gzip -d libgcc-3.3-sol9-intel-local.gz shell> pkgadd -d libgcc-3.3-sol9-intel-local shell> rm libgcc-3.3-sol9-intel-local