HomePage » GeneralUnix » Solaris
Solaris is shit
I honestly don't care who is using it or why would anyone prefers it. Avoid it, trash it even. It's built to over-complicate things. It has zero advantage over Linux. Stable is a big word - DOS is stable, that doesn't make it a good OS. IBM managed to deliver great products like Eclipse, most of its other products stinks. If you have experience on DB2, WebSphere, IHS.. you know what I mean. Sun pushed out Java which revolutionized the software industry. But yet its other products simply has no value of existence.Sub-topics
Network configuration
Solaris has got to be the most stupid OS on earth.configure interface
ifconfig e1000g1 plumb ifconfig e1000g1 192.168.75.195 netmask 255.255.252.0 up # ndd -get /dev/e1000g1 link_status 0 # ndd -get /dev/e1000g1 link_speed 0
config files
Edit /etc/netmasks, /etc/hosts, and /etc/hostname.e1000g1192.168.1.0 255.255.255.0
192.168.1.1 solaris.sucks.com
solaris.sucks.com
mtu
Not surprisingly, this is also stupid.# change all 0 to 3 to allow jumbo frame. man e1000g for more detail MaxFrameSize=3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3;
Reboot and you will be able to change mtu with ifconfig.
svc
To make a change in sendmail startup options, one needs to go through the followings. It's pure crap. If one doesn't know UNIX, they should not use Solaris. If one already know UNIX, they won't know Solaris' peculiar way of doing things. It just sucks.vi /lib/svc/method/smtp-sendmailsvccfg svccfg import /var/svc/manifest/network/smtp-sendmail.xml svcadm restart sendmail
Restart services (inetd)
pkill -HUP inetd
Install packages from sunfreeware.com
gunzip package.gz pkgadd -d package pkgrm SMCpackage
Swap file
Display swap file usageswap -s swap -l
Increase swap with a file
mkfile 250m /var/newswap swap -a /var/newswap
The mkfile command makes a file of a specified size. The swap -a command adds the file to the swap space. If you have a free slice, such as /dev/dsk/c0t0d0s5, you can add that to the swap space temporarily with the following command:
swap -a /dev/dsk/c0t0d0s5
These swap files will disappear on reboot. To make them permanent, edit /etc/vfstab
NFS
On the server, edit /etc/dfs/dfstabeshare -F nfs -o rw=1.2.3.4 -d "my share" /my/share
run "svcadm enable network/nfs/server" or "/etc/init.d/nfs.server start" to start nfs server
On the client
mount -F nfs -o vers=2 1.2.3.5:/my/share /my/nfs/mount
And/or create a permanent entry in vfstab:
server1:/share - /server1 nfs - yes rw,soft
ftp
http://sharetab.com/?p=17Hardware
lspci = prtdiagMemory Usage
# list top 30 virtual memory usage prstat -s size -n 30 # sort by rss prstat -s rss # sort by cpu use prstat -s cpu # ps with rss ps -efly # Displaying Solaris kernel memory usage $ mdb -k > ::memstat Page Summary Pages MB %Tot ------------ ---------------- ---------------- ---- Kernel 13834 108 11% Anon 15663 122 12% Exec and libs 2040 15 2% Page cache 7827 61 6% Free (cachelist) 14248 111 11% Free (freelist) 75882 592 59% Total 129494 1011 Physical 127634 997
If one use ZFS on solaris, the default settings allocates a lot of ram for zfs arc cache. To set up a limit (512M in the following example), add to /etc/system:
set zfs:zfs_arc_max = 5368709120
Check usage with
kstat zfs:0:arcstats:size
Increase ulimit
projadd -U oracle -K “process.max-file-descriptor=(priv,10240,deny)” user.oracle
Unlock user and set it to never expire
passwd -x -1 <account>
Identify hardware architecture
isainfo -v
There is one comment on this page. [Display comment]