Pages

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

Friday, November 22, 2013

StorEdge 6180: Battery {0} has expired.

Today a customer called in telling me that one of his batteries for his StorEdge 6180 has expired the lifetime. Since the customer doesn't have any valid support for the storage I deceided to set the lifetime expiration to never. To do this I needed the sscs and service command (package SUNWstkcam, SUNWsefms etc) in my environment. In normal cases these packages are installed to /opt:

Wednesday, July 31, 2013

Mount a ZFS dataset

Mounting an unmounted ZFS dataset is very easy. Eg I have a ZFS pool called orapool. Within in this pool I have various datasets like u01, u02, ... and u06:

# mount | grep u06
/u06 on orapool/u06 ...


Monday, April 29, 2013

Display HBA and WWN in Solaris

First display the available HBA's installed in your system:

# fcinfo hba-port
HBA Port WWN: 2100001b4377092a
        OS Device Name: /dev/cfg/c1
        Manufacturer: QLogic Corp.
        Model: 375-3355-02
        Firmware Version: 05.04.03
        FCode/BIOS Version:  BIOS: 2.02; fcode: 2.01; EFI: 2.00;
        Serial Number: 0402R00-0851658438
        Driver Name: qlc
        Driver Version: 20110321-3.05
        Type: N-port
        State: online
        Supported Speeds: 1Gb 2Gb 4Gb
        Current Speed: 4Gb
        Node WWN: 2000001b4377092a
...


Wednesday, February 13, 2013

Resize ZFS Swap

To resize your ZFS based Swap you need to know on which pool your Swap resides:

# zfs list
NAME                        USED  AVAIL  REFER  MOUNTPOINT
rpool                      9,70G  5,92G  32,5K  /rpool
rpool/ROOT                 8,42G  5,92G    21K  legacy
rpool/ROOT/s10x_u9wos_14a  8,42G  5,92G  8,42G  /
rpool/dump                  768M  5,92G   768M  -
rpool/export                763K  5,92G    23K  /export
rpool/export/home           740K  5,92G   740K  /export/home
rpool/swap                  544M  5,95G   516M  -


Thursday, January 31, 2013

Change the IP of a Solaris Zone

To change the IP of a Solaris Zone start zonecfg with the configured zone first:

# zonecfg -z bck01

The name of the zone is bck01. Within zonecfg run info to view the current configuration of the zone: 

Tuesday, January 8, 2013

Solaris NIC speed

When you need to check the NIC speed in Solaris then you can use ndd:

# ndd -get /dev/nge2 link_speed
100


The NIC nge2 is connected to a 100MB port only. Patching it to a 1GB port shows the following log: 

Wednesday, November 28, 2012

Mount an ISO image with Solaris

Before you can mount an ISO image with Solaris you need a block device. An ISO image is only a normal file so you need to make it available as a block device. The right tool for this is lofiadm. With lofiadm you can make files available as block devices:

# lofiadm -a /root/sol-10-u10-ga2-sparc-dvd.iso
/dev/lofi/1


Tuesday, September 25, 2012

Splitting a ZFS pool

Splitting a ZFS mirror is very useful when you need to create a quick copy during runtime without copying the entire file system. My current pool configuration looks like this:

# zpool status orapool
  pool: orapool
 state: ONLINE
 scrub: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        orapool     ONLINE       0     0     0
          mirror-0  ONLINE       0     0     0
            c1t0d0  ONLINE       0     0     0
            c1t1d0  ONLINE       0     0     0
          mirror-1  ONLINE       0     0     0
            c1t2d0  ONLINE       0     0     0
            c1t3d0  ONLINE       0     0     0
# zpool list
NAME      SIZE  ALLOC   FREE    CAP  HEALTH  ALTROOT
orapool  1.97G   130K  1.97G     0%  ONLINE  -


Monday, September 10, 2012

Solaris disks: ssdX vs cXtXdX

When you work with disks in Solaris then you normally have to deal with disk names like cXtXdX and so on. But sometimes you will see something like ssdX, eg:

# dmesg
...
Sep 08 12:15:56 sol01 scsi: [ID 112529 kern.warning] WARNING: /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w2100001862806e43,0 (ssd1):
Sep 08 12:15:56 sol01        offline
...


Monday, July 9, 2012

SWAP size and usage in Solaris

If you want to know how large your SWAP area is and how much space currently is consumed then you need to use the command swap:

# swap -l
swapfile                 dev        swaplo blocks   free
/dev/zvol/dsk/rpool/swap 256,2      16     8388592  8388592

Identifying hardware architecture in Solaris

If you ever need to identify your current hardware architecture in Solaris then isainfo may be the right tool:

# isainfo
sparcv9 sparc

Monday, April 2, 2012

Measure network traffic in Solaris

Today I got stuck with a customer who was complaining that his local network was slow. Or as he said: "It feels slow"... What ever this means.
My task was to measure his network traffic on his Solaris 10 database machine and here is what I did. First I took a look at his network card: 

Tuesday, February 7, 2012

Sun StorEdge 6120 password reset

Got a few Sun StorEdge 6120 without any password (the shipped one was not right). To access the 6120 I have to reset the password first. Here is a way how I accomplished it. First shutdown the 6120 and disconnect all power cables. Then use a screw driver to open the screw that holds the U1 controller on the back of the 6120. Then pull the U1 controller out of the 6120. In the top right corner there are a few jumpers gathered to J10. Use a jumper to connect the pins 14 and 16 like the image:

Friday, December 23, 2011

LDAP for Solaris 10

With this article I want you to show how to set up OpenLDAP for Solaris 10. I have here a small Sun Fire V100 with 2GB running - perfect for playing around. Using Solaris as a LDAP client is a little bit strange first, but with the time you will enjoy it. Solaris comes with a tool called ldapclient to initiate a Solaris host as a LDAP client. There is a daemon called ldap_cachemgr which will be started when you initialize Solaris as a LDAP client and it runs all the time.

Tuesday, October 4, 2011

Available, used and free memory in Solaris

To get the amount of memory installed use prtdiag:

# prtconf | grep Memory
Memory size: 16384 Megabytes
...

Sunday, August 21, 2011

Using a 2GB Jaz drive with Solaris

If you have a old Jaz drive and want to use under Solaris, then this might be interesting for you. First build in your drive into the server. Then boot and make sure that volfs is not running (you can turn it on later again): 

Thursday, August 4, 2011

Configuring NTP in Solaris 10

First, go to /etc/inet and create ntp.conf. Define your NTP server and a place for the drift file:

# cd /etc/inet
# vi ntp.conf
server 172.16.10.51
driftfile /var/ntp/ntp.drift

Friday, April 8, 2011

Setting up another NIC in Solaris

Nothing special: my Solaris box has a quad port network card (I think it is more like 2 dual port network cards). The first NIC is normally configured with an IP and netmask, for testing purpose I needed to setup the second one. Her is my configuration so far:

Wednesday, March 2, 2011

Adding a 2nd harddisk to a SunFire V100

I have a SunFire V100 with a 40GB IDE harddisk and 2GB of memory (I found this poor machine in the internet for 50€). Today I decided to add a 2nd 40GB harddisk. The harddisk is left from my old workstation and should work perfectly with the system.
It doesn't. The system even didn't recognize the harddisk. After doing some research on the internet I found out that most Sparc Systems with support for IDE only recognize the IDE harddisk when the
harddisk jumpers are set to Cable Select. So I jumpered the harddisk to Cable Select and surprise - works perfect:

Thursday, February 24, 2011

Configuring ALOM from commandline

Last time i was in the challenge to configure the ALOM of a Sunfire V240 from commandline. First get some information: