Questions tagged [solaris]

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

Solaris is a UNIX certified operating system for SPARC , i86,x86 and x86-64 processor architectures. It was developed by SUN Microsystems until 2010 when the company was acquired by Oracle Corp. Subsequently Solaris has been renamed Oracle Solaris.

1162 questions
221
votes
11 answers

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 scrolls up line-by-line only with ↑. What's a more powerful less usage which provides scrolling by page, backward pattern search, and so on?
yetanothercoder
  • 2,315
  • 2
  • 14
  • 6
190
votes
8 answers

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 second ? remark: on linux or OS X sleep 0.XXX works fine , but…
yael
  • 2,563
108
votes
6 answers

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 CPU to be idle, lots of memory to be available,…
Spiff
  • 1,711
87
votes
3 answers

What does * * * * * (five asterisks) in a cron file mean?

The first noncomment line in a legacy crontab file begins with five asterisks: * * * * * ([a_command]) >/dev/null 2>&1 The authors are gone, so I do not know their intent. What does all-wildcards mean to (Solaris 8) cron? The betting here is…
36
votes
8 answers

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, 512M swap). I wasn't too far over them…
29
votes
2 answers

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 pool is very full and file systems are updated…
Pavel
  • 1,098
27
votes
2 answers

How large is my ZFS dedupe table at the moment?

I have read a lot of information about planning RAM requirements forZFS deduplication. I've just upgraded my file server's RAM to support some very limited dedupe on ZFS zvols which I cannot use snapshots and clones on (as they're zvols formatted as…
Josh
  • 9,398
26
votes
4 answers

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 this new storage pool? Can it be done online or…
23
votes
2 answers

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 STATE READ WRITE CKSUM backupz ONLINE…
Josh
  • 9,398
22
votes
7 answers

Can I use SSH key authentication to log into a remote system with a different username?

Suppose I have a remote system named "remotesystem", and a user account "foouser" on that system. I know that on my local system, I can generate an SSH key pair as local user "foouser", put the public key in the "/home/foouser/.ssh/authorized_keys"…
Matt
  • 323
19
votes
3 answers

Proper way to create a zfs off an existing directory?

Lets say I have an rpool with etc/ as a regular directory within it and now I want to create a separate zfs rpool/etc, obviously inheriting all the data I had in original /etc. What would be the most proper and safe way to do so?
18
votes
4 answers

SSH into NAT'd servers on the same public IP address

I am trying to SSH from in office X to a few Linux boxes in office Y. The Linux boxes in office Y are behind NAT and each run on their own ports. I can successfully reach all of them through SSH, but I cannot authenticate. I was able to SSH into the…
16
votes
5 answers

How do I recover free space on deleted files without restarting the referencing processes?

When big files are deleted on a server, the files might still be referenced by processes, so the file system doesn't have more free space. I tried to use lsof, but it seems it didn't list the deleted files. fuser -c did better work, but the list of…
ujjain
  • 4,123
16
votes
5 answers

List supported terminal types?

Is there a portable way to list supported terminal types on all NX systems? If not, what's the best way to get this list on Solaris?
pra
  • 642
15
votes
2 answers

How to use a file as a zpool?

If I do dd if=/dev/zero of=/tank/test/zpool bs=1M count=100 how can I treat the file /tank/test/zpool as a vdev, so I can use it as a zpool? It is for zfs testing purposes only.
1
2 3
77 78