Akamit Blog

Enterprise sysadmin's blog

  • You are here: 
  • Home
  • Solaris

How to reset iLOM root password on Sun/Oracle X server

Posted on November 17th, 2011

if you’ve lost root password on Sun/Oracle X server, you can recovery it using ipmitool. This was tested on Sun X4600 M2, Solaris 10 installed.

# ipmitool user list 1
ID  Name             Callin  Link Auth  IPMI Msg   Channel Priv Limit
1                    false   false      true       NO ACCESS
2   root             false   false      true       ADMINISTRATOR
12  radproxy         true    true       true       OPERATOR
13  ilomint          true    true       true       ADMINISTRATOR
14  ldapproxy        true    true       true       OPERATOR
15  pamproxy-admin   true    true       true       ADMINISTRATOR
16  pamproxy-oper    true    true       true       OPERATOR
# ipmitool user set password 2 new-password

Now you can login using new-password.

$ ssh root@ilom
Password: <new-password>
 
Sun(TM) Integrated Lights Out Manager
 
Version 2.0.2.5
 
Copyright 2007 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
 
->

Filed under Solaris, Sun Hardware | 1 Comment »

Disabling mpxio in Solaris 10

Posted on September 16th, 2011

When using Vertias DMP you should disable MPxIO in /kernel/drv/fp.conf:

mpxio-disable="yes";

And reboot.

Otherwise you will get single path on all of your disks over scsi_vhci
and only one controller visible for VxDMP

root@rtx1 # vxdmpadm getctlr all
  LNAME     PNAME          VENDOR          CTLR-ID               ======================================
c10       /scsi_vhci              -                    -

Filed under Solaris, Veritas SF | 1 Comment »

Moving Solaris zone to another host using VxVM

Posted on August 18th, 2011

We are going to move a zone to another host.
Assume zone name “mzone”. Zone root and all filesystems reside on separate Veritas disk group twilightdg.

On tht source host:

host1 # zoneadm -z mzone halt
host1 # zoneadm -z mzone detach
host1 # umount /zones/mzone
host1 # vxdg deport mzone_dg

On the destination host:

host2 # vxdg import mzone_dg
host2 # vxvol -g mzone_dg startall
host2 # mount /zones/mzone
host2 # zonecfg -z mzone
mzone: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:mzone> create -a /zones/mzone
zonecfg:mzone> exit
host2 # zoneadm -z mzone attach -u
host2 # zoneadm -z mzone boot

Filed under Solaris, Veritas SF | No Comments »

Using QLA2460 adapter with Solaris 9 on SF4800 server

Posted on July 20th, 2011

You are required to install Sun SAN 4.4.x package (Oracle patch 10297699) in order to get it working. This is the requirement for Solaris 8 and 9. Solaris 10 has bundled SAN software
Otherwise you will not be able to see it using luxadm or load qlc driver.

For more info refer to Solaris[TM] 8 & 9 (not for Solaris[TM] 10) Fibre Channel/SAN storage access configuration guidelines [ID 1006118.1] provided by support.oracle.com

Filed under Solaris, Sun Hardware | No Comments »

Solaris 10 NFS chown: permission denied

Posted on April 13th, 2011

You’ve made a share using Solaris 10 server and using the share on a Solaris 10 client
Server: /etc/dfs/dfstab

share -o rw=@10.10.10,root=@10.10.10 /backup

Client:

mount 10.10.10.1:/backup /backup
bash-3.00# cd /backup/
bash-3.00# ls
lost+found  sap
bash-3.00# ls -l
total 0
drwxr-xr-x   2 root     root          96 Apr 12 09:52 lost+found
drwxr-xr-x   2 root     root          96 Apr 13 17:33 sap
bash-3.00# chown orasap:sapsys sap
chown: sap: Permission denied

In this case you need to remount the share as NFS v3 share.

bash-3.00# mount -o vers=3 10.10.10.1:/backup /backup
bash-3.00# cd /backup
bash-3.00# ls -l 
total 0
drwxr-xr-x   2 root     root          96 Apr 12 09:52 lost+found
drwxr-xr-x   2 root     root          96 Apr 13 17:33 sap
bash-3.00# chown orasap:sapsys sap
bash-3.00# ls -l                  
total 0
drwxr-xr-x   2 root     root          96 Apr 12 09:52 lost+found
drwxr-xr-x   2 orasap   sapsys        96 Apr 13 17:33 sap

Filed under Solaris | No Comments »

How to umount fs from local zone

Posted on April 13th, 2011

Suppose you’ve got /backup filesystem loopback mounted to local zone from global zone. Now you don’t need that filesystem anymore and want to umount it and use its disks for another purpose.

global# grep backup /etc/zones/z*
/etc/zones/zone.xml:  <filesystem special="/backup/rtp" directory="/backup" type="lofs"/>
global# zonecfg -z zone
zonecfg:zone> remove fs dir=/backup
zonecfg:zone> commit
zonecfg:zone>
global# umount /backup
UX:vxfs umount: ERROR: V-3-21705: /backup cannot unmount : Device busy

Then you need simply umount that fs from global zone.

global# umount /zones/zone/root/backup
global# umount /backup

Filed under Solaris | No Comments »