sysadmin

Mostly how-to’s for Solaris, Linix, Mac OS and Data ONTAP.

How to change a disk “type” in Solaris.

January 7, 2010
By gary

Sometimes you might want to change the “type” of a disk within Solaris. The “type” of the disk is stored on the disk itself, along with the partition table (presumably in the VTOC in the first part of the disk). For the purpose of this post, I use disk “name” and “type” interchangeably. In...
Read more »

Tags: , , ,
Posted in sysadmin | No Comments »

Map MAC to NIC vendor.

September 4, 2009
By gary

Not sure how well known this trick is, but it is possible to figure out the vendor of a particular NIC by looking at the first few digits of the MAC address. We used to use this when I worked at Sun to figure out if the customers were using pukka Sun NICs...
Read more »

Tags:
Posted in sysadmin | No Comments »

Command Line Fu

March 14, 2009
By gary

This site has a whole boat load of one-liner unix commands. You can upload and contribute your own My command line fu All command line Fu
Read more »

Posted in sysadmin | No Comments »

Finding data corruption with ‘od’

September 4, 2008
By gary

Here’s a weird one that I’d never seen before. We were finding that at least one of our linux binaries was becoming corrupt (verified using rpm -V) however we didn’t know how the binary was becoming corrupt – because these files should never be written to. On the off-chance that the corruption might...
Read more »

Tags: ,
Posted in sysadmin | No Comments »

Verifying binaries in linux.

September 3, 2008
By gary

Recently we had an issue on some linux clients that would mysteriously fail to run SFS benchmarks. On closer inspection we found that the binary ‘cpp’ would exit with SIGSEGV. # cpp cc1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. For some reason that I didn’t...
Read more »

Tags: , , , ,
Posted in sysadmin | No Comments »

Converting a flexible volume to a traditional volume.

July 9, 2008
By gary

A simple way to convert a flexible volume to a traditional volume is to use ndmp, within the same filer. Firstly enable ndmp and turn it on. filer> options ndmpd.enable on filer> ndmpd on Next create the volume that you want to migrate the data to. In this case, I create a traditional volume with 5 disks,...
Read more »

Tags: , , , ,
Posted in sysadmin | No Comments »

Change disks used by an aggregate

June 27, 2008
By gary

Recently we needed to transfer an aggregate that was hosted on an external shelf to disks housed internally in our test FAS2020 and the same trick can be used to move an aggregate from one shelf to another. The trick uses the disk-replace command. It works serially, and so it is a little time...
Read more »

Tags: , , , ,
Posted in sysadmin | No Comments »

Oracle for Sysadmins

November 27, 2007
By gary

Set the ‘EDITOR’ variable for the user ‘oracle’. Doing so will allow you to edit your sqlplus commands using a reasonable editor. After executing a piece of SQL in sqlplus, just type ‘edit’ or ‘ed’ and you’ll be transported to your editor. In vi just type :q to get back to the...
Read more »

Tags:
Posted in oracle, sysadmin, unix | No Comments »

Analysing NetApp sysstat PT1: The CP columns

January 4, 2007
By gary

The CP type is displayed in the CP/ty column in the output of sysstat. The CP type column contains two pieces of data. The cause of the CP (the CP type) – the first character, and the ‘phase’. The second character. In the output below, the first row shows a...
Read more »

Tags: , , , ,
Posted in sysadmin | No Comments »