Solaris is a UNIX certified operating system owned and developed by Oracle for SPARC, x86 and x86-64 processor architectures.

learn more… | top users | synonyms

27
votes
9answers
27k views

How to reduce memory usage on a Unix webserver

I'm currently using a Joyent Accelerator to host my webapps, and it's working fine, however I need to reduce costs so I'm downgrading my current plan and that imposes some new memory limits (256M rss, ...
14
votes
3answers
11k views

How to read backward from the end of file in less or more?

I've found one way so far: less +G filename, but it's scroll up only with up key line by line. What's more powerful less usages which provide scrolling by page, pattern search backward and so on?
14
votes
5answers
36k views

High load average, low CPU usage - why?

We're seeing huge performance problems on a web application and we're trying to find the bottleneck. I am not a sysadmin so there is some stuff I don't quite get. Some basic investigation shows the ...
14
votes
4answers
1k views

Historical Question: Why does slice C or slice 2 cover the entire disk

Something that I was discussing with a couple of friends and we were unable to figure it out. In FreeBSD and OpenSolaris/Solaris when you partition a drive a partition is created that covers the whole ...
13
votes
2answers
20k views

How can I add one disk to an existing raidz zpool?

I have an OpenSolaris server with a zpool backupz comprised of four SCSI drives: -bash-3.2# zpool status backupz pool: backupz state: ONLINE scrub: none requested config: NAME ...
12
votes
14answers
1k views

Why pay for UNIX?

I'm fairly new to Unicies. With the advent of GNU/Linux and BSDs, what are the reasons for companies to prefer AIX, Solaris and other commercial systems?
12
votes
4answers
27k views

How do I sleep for a millisecond in bash or ksh

sleep is a very popular command and we can start sleep from 1 second # wait one second please sleep 1 but what the alternative if I need to wait only 0.1 second or between 0.1 to 1 ...
10
votes
1answer
418 views

Why is SMF manifest losing configuration data when exported on SmartOS?

I'm running a server process under SMF (Server Management Facility) on Joyent's Base64 1.8.1 SmartOS image. For those not aqauinted with SmartOS, it is a cloud-based distribution of IllumOS with KVM. ...
10
votes
1answer
3k views

NFS v3 versus v4

I am wondering why NFS v4 would be so much faster than NFS v3 and if there are any parameters on v3 that could be tweaked. I mount a file system sudo mount -o ...
10
votes
2answers
520 views

Why are all of my ZFS snapshot directories empty?

I'm running an Oracle 11 box as a ZFS storage appliance, and I'm taking regular snapshots of the ZFS filesystems, via cron. In the past, I know that if I wanted to grab a particular file from a ...
9
votes
9answers
2k views

Solaris as a server OS - why? [closed]

I have no experience with Solaris and asked myself will I ever use it and why would I chose to do so. I couldn't answer that on my own, so here goes.. Please reply stating why exactly do you ...
9
votes
2answers
6k views

How to upgrade a ZFS RAID-Z array to larger disks on OpenSolaris?

I'm planning on installing OpenSolaris on my home server (right now it has Linux) and I would like to know how to prepare for upgrading the server to have larger hard drives in the future. Now the ...
8
votes
7answers
2k views

Is there a case against ZFS?

Is there still a case against using ZFS in production? I run Solaris servers and I am planning an upgrade to Solaris 10 10/09 from an earlier release. Currently we use SVM for local disks and our ...
8
votes
11answers
16k views

ssh session idle timeout

The Solaris machine we do most of our development on has an annoying habit of timing out SSH sessions. Doesn't matter whether the client is my Ubuntu desktop, my Solaris desktop or my Windows desktop ...
8
votes
6answers
4k views

Cannot destroy ZFS snapshot: dataset already exists

I have a server (T5220, though I doubt it matters) running Solaris 10 8/07 and I have a ZFS pool, "mysql", on internal disk. Within it I have a filesystem "mysql/data/4.1.12", which I snapshot hourly ...
8
votes
2answers
1k views

Is it safe to replicate from Solaris ZFS to FreeBSD ZFS?

Is it safe to replicate from a Solaris 10 ZFS v22 to a FreeBSD 8.3 ZFS v28? Are there someone that have done this with specific versions of ZFS, where it worked perfectly?
8
votes
2answers
2k views

How do i smoothly update ntpd's peer list?

I have a network of solaris/linux servers that have ntpd configured to use a single internal server of stratum 2 through a DNS alias/CNAME. This is server is down for some time and the client servers' ...
7
votes
6answers
3k views

hardware recommendations for a DIY storage system based on ZFS [closed]

Looking to make use of old server lying idle as a proof-of-concept ...here are specs Dell PE 2900: Xeon 5110 - 2P, 12 GB RAM, 8x 300 GB 15K drives, Perc 5i+256 MB cache what additional h/w would be ...
7
votes
4answers
1k views

ZFS and non Sun OS's

Is there any other Unix like distros that can read and write to ZFS filesystems. I know its currently unstable in FreeBSD :( The reason I am asking is I love ZFS but don't get on so well with Solaris. ...
7
votes
6answers
6k views

crontab environment

I have written various scripts to launch Java server applications, which are typically run for 24 hours before being shut down (by invoking the same script with a different parameter). The script ...
7
votes
5answers
6k views

How to delete all but last [n] ZFS snapshots?

I'm currently snapshotting my ZFS-based NAS nightly and weekly, a process that has saved my ass a few times. However, while the creation of the snapshot is automatic (from cron), the deletion of old ...
7
votes
5answers
2k views

File size with zfs compression

I usually estimate the size of a whole directory tree using du -ks $DIRECTOY_TREE_ROOT, but this method cannot be used when zfs compression is on. The total displayed by ls -l is ok for a single ...
7
votes
5answers
37k views

How to measure solaris process memory usage?

How to check how much memory a solaris process consumes? I'd like both total address space allocated and the amount that is resident in RAM. I tried summing pmap output with some awk script, but it ...
7
votes
2answers
12k views

Used memory on Solaris 10

One more question about memory on Solaris 10. A top shows me that I have 672 MB free memory : 130 processes: 126 sleeping, 2 zombie, 2 on cpu CPU states: 95.1% idle, 3.9% user, 1.0% kernel, 0.0% ...
7
votes
1answer
982 views

Giving a new life to an old SPARC machine - boot and install related problems

My problem isn't one you encounter on a daily basis, yet I find interesting enough to share and ask for help. From the beginning: the academic scientific group I am a member of (we are focused on ...
7
votes
12answers
38k views

SSH: Connection Reset by Peer

I have a Solaris 10 server on another network. I can ping it and telnet to it, but ssh doesn't connect. PuTTY log contains nothing of interest (they both negotiate to ssh v2) and then I get "Event ...
6
votes
7answers
54k views

How do I permanently change the hostname on Solaris 10?

I want to permanently change the hostname on a Solaris box. How do I do that?
6
votes
3answers
4k views

What is the range of a PID on Linux and Solaris?

What is the maximum and minimum value for a PID (Process ID) on Linux and Solaris?
6
votes
1answer
1k views

Does ZFS replace the need for hardware/software RAID?

I want to provide protection against data loss on my servers. Typically, I'd use hardware RAID 1 or 5, but I've been reading up on ZFS. Is it correct that ZFS itself provides RAID 1 or 5 like data ...
6
votes
6answers
3k views

Solaris as a server OS - what are the disadvantages?

One of the recent questions asked about potential reasons to use Solaris on a server. I would like to ask about the opposite: What would be reasons to stay away from Solaris on a server? Package and ...
6
votes
2answers
2k views

ZFS performance: do I need to keep free space in a pool or a file system?

I know that the performance of ZFS heavily depends on the amount of free space: Keep pool space under 80% utilization to maintain pool performance. Currently, pool performance can degrade when a ...
6
votes
5answers
57k views

How to set ulimits in Solaris 10

I normally use pam_limits.so and /etc/security/limits.conf to set ulimits on file size, CPU time, etc. for the regular users logging in to my server running Ubuntu. What is the best way of doing ...
6
votes
3answers
1k views

Solaris SMF kill service because child dies

I am using SMF to manage a service under Solaris10. This service is itself a process manager, and forks off many child processes, some of which die occasionally (or are killed for various reasons). ...
6
votes
8answers
5k views

what is the difference between linux and solaris OS?

What is the basic difference between Linux and Solaris? As both the OS are derived from UNIX so where lies the difference between Linux and Solaris? Are they because of creation by different ...
6
votes
2answers
3k views

What's in my ZFS ARC and L2ARC caches?

I have a simple ZFS setup at home, four disks mirrored, 8GB ram and 120GB Intel X25-M SSD for L2ARC. I ran zpool add poolname cache cXtXdX then generated load and eagerly tracked the warming process ...
6
votes
2answers
970 views

Large number of snapshots on a ZFS system

Here's my scenario: I have two servers (well many more, but two for this scenario), one is a Solaris backup server, the second is a CentOS Linux Server. Every night the CentOS server runs a cron job ...
6
votes
2answers
2k views

Getting ZFS per dataset IO statistics (or NFS per export IO statistics)

Where do I find statistics about how IO is divided between zfs datasets? (zpool iostat only tells me how much IO a pool is experiencing.) All the relevant datasets are used through NFS, so I'd be ...
6
votes
2answers
112 views

How to remove a “door” in solaris

I have a file of type "door" in solaris 10 (that is a means of interprocess communication). It is somehow left over and I would like to get rid of it. I can not just remove it with rm ... ls -l total ...
5
votes
8answers
14k views

Is it possible to prevent SCP while still allowing SSH access?

Using Solaris and Linux servers and OpenSSH, is it possible to prevent users from copying files using "scp" while still allowing shell access with "ssh"? I realize that 'ssh $server "cat file" ' type ...
5
votes
5answers
11k views

Where is the sudoers file on Solaris?

Where is the sudoers file in Solaris? Is it different between Solaris versions (specifically, 9 and 10)?
5
votes
3answers
9k views

Moving a ZFS filesystem from one pool to another

I am extending a Solaris 10 U8 server with an extra storage pool in addition to the root rpool. What is the most effective / simple / reliable way of moving particular ZFS filesystem(s) from rpool to ...
5
votes
7answers
43k views

Sun Solaris - Find out number of processors and cores

Our SPARC server is running Sun Solaris 10; I would like to find out the actual number of processors and the number of cores for each processor. The output of psrinfo and prtdiag is ambiguous: ...
5
votes
7answers
978 views

Virtualizing Solaris 10?

What is the best way to virtualize Solaris 10 (not OpenSolaris) under Linux or OpenSolaris? I have software that is only supported under Solaris so OpenSolaris is not an option. I'd like to have ...
5
votes
6answers
2k views

how do I make solaris shell more familiar for a linux user? [closed]

I've been a linux user for years. Very used to the bash shell, used to linux shell key mappings that come with most mainstream distros. I'm also a happy vim user in linux & love my arrow keys. ...
5
votes
2answers
20k views

How to add swap to ZFS disk?

I installed Solaris 10 05/09 on a machine and I used whatever the default swap space setting when I built the box. Now I need to increase the swap space and I can't add a swap file, like was possible ...
5
votes
3answers
986 views

What is the best source for Solaris packages?

There are multiple sources for add on packages for Solaris, blastwave, openCSW, Sunfreeware, and pkgsrc. Ideally, I'd like to stick as close as possible to a single packaging system, so which of these ...
5
votes
3answers
8k views

What does it mean if iostat shows 100% busy wait but the CPU is completely idle?

What does it mean if iostat shows 100% busy wait but the CPU is completely idle? My application runs for a while, then goes into this state periodically for about 10-20 seconds. It is transaction ...
5
votes
3answers
4k views

Remove directories in Solaris

I am using Solaris. I have several directories with the following names: saa_first.data saa_second.data saa_third.data I want to remove these directories along with its content, so I use: rm -fr ...
5
votes
5answers
6k views

Solaris du --max-depth Equivalent

I would like to do the Linux equivalent of du --max-depth=1 on Solaris. I cannot find an equivalent in the man pages. Any alternatives?
5
votes
5answers
3k views

Is there a way to filter mails in remote IMAP account?

Situation: mail server with IMAP only access. Problem: I want to be able to filter mails (put some mails to various folders, mark them as read and so on). Most new email clients have this ability, ...