Showing posts with label Solaris 10. Show all posts
Showing posts with label Solaris 10. Show all posts

Thursday, 19 December 2013

Solaris - /tmp permissions

Had a bit of a problem when one of the guys decided to restore file to the /tmp directory instead of the original location.

The ownership changed on /tmp to the restored folders owner which had a knock on effect with some scripts.

To fix the problem the following commands were applied:

# chmod 1777 /tmp
# chown root:root /tmp

Monday, 16 December 2013

Solaris - ZFS quota

Setting up a ZFS quota:

1. Create mount point


# zfs create -o mountpoint=/mp rpool/mp

2. Set a 5Gb quota


# zfs set quota=5G rpool/mp

The mount is now created with a quota.


What happens if you now want to increase the quota?
Increasing the quota to 20Gb


# zfs set quota=20G rpool/mp


At some point you may want to get rid of the mount point and its quota

# zfs destroy rpool/mp
 

Monday, 21 October 2013

Solaris - Patching using PCA

Since we haven't got Ops Center running in OEM as yet, but are planning to, I ignored the automated checking only because I was told the OpsCenter deployment was imminent...... Saying that I recently stumbled across the PCA product, that some kind chaps have developed a number of years back and have maintained it ever since, of which the best part is that it works even now that Solaris is an Oracle product.

I downloaded the PCA file text (which requires Perl to run) from the site and amended the file so it was executable as per the instructions on the site.

# chmod +x pca


The severs I work on don't have internet access so I have to use the patchdiag.ref file text which is also available from the site (and changes on a regular basis, so go back and check periodically for updates).
Save the file to:

# /var/tmp

Then run the PCA script

# ./pca





Which produces something like this - usage guide is also on the website.

Very useful stuff!