* You are viewing the archive for the ‘solaris’ Category

NFS4 Invalid inbound domain name

It seems that starting with Solaris 06/07 nfs4_domain is required in sysidcfg file, otherwise jumpstart will go interactive. You can force a value for example nfs4_domain=example.net or you can set it to be dynamic. In that case the value will be derived from the name service in use. Solaris 10 has nfsmapid daemon that maps numeric UID/GID to a string in format user@example.net.

If there is a domain mismatch between NFS4 client and server, the client will see files on the server owned by nobody. On the server syslog might log something like this:

Mar 3 15:13:14 ultra /usr/lib/nfs/nfsmapid[275]: [ID 300081 daemon.error] valid_domain: Invalid inbound domain name example.net..

In my case there was a typo in /etc/resolv.conf file at the end of domain entry. The entry contained trailing dot. This Sun document has all the useful info that might help troubleshooting similar problems with nfsmapid.

Continue Reading

Unmounting seemingly busy filesystem

Sometimes when you try to unmount a file system, Solaris refuses to do so.

fuser -c /export/home

dude@ultra:~$ fuser -c /export/home
/export/home: 20954om 19824o 16084o 11216om 11196om 10625om 4233om 4230om 1670om 915om 895om 871om 779om 740om 669o 667o 664om 657om

The output show process ID’s that are currently using filesystem and prevent you from unmounting it. You can kill all the processes and then try to unmount the filesystem. Sometimes that does not work unless -f option is used:

umount -f /export/home

When trying to mount the filesystem again, often you might get the following error:

bash-3.00# mount /export/home
mount: /dev/dsk/c0t0d0s3 is already mounted or /export/home is busy

There is a way around it and usually it seems to work. First consult /etc/mnttab and make sure the filesystem is really not mounted. Then cd to the mountpoint and make sure the mount point does not contain any files that would normally reside on that mounted filesystem. Then simply remove the mountpoint using rm and recreate it. Afterwards you should be able to mount the filesystem just fine.

I came across this somewhere on Sun site. Don’t remember where. Of course excercise caution. You are responsible for your data. Continue Reading

Solaris release update version

Sometimes I just do not bother to label images I burn onto CD’s/DVD’s. The other day I grabbed a DVD that contained a copy of Solaris 10, but I needed to know what release update it was. To find out mount the disc and look at release file in SUNWsolnm package:

bash-3.00# cd /Solaris_10/Product/SUNWsolnm/reloc/etc
bash-3.00# cat release
Solaris 10 3/05 HW2 s10s_hw2wos_05 SPARC
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 26 September 2005
bash-3.00#
Continue Reading

Viewing devaliases inside Solaris

Usually, when you need to view or manipulate content of EEPROM you can use eeprom command in Solaris. However, it’s not of much use if you need to view current device aliases. There is a simple way to do so using prtconf command. Just look for section aliases:


bash-3.00# prtconf -vp

<—————–SNIP—————–>
Node 0xf002d470
disk: '/pci@9,600000/SUNW,qlc@2/fp@0,0/disk@0,0:b'
rootdk: '/pci@9,600000/SUNW,qlc@2/fp@0,0/disk@1,0:b'
disk1: '/pci@9,600000/SUNW,qlc@2/fp@0,0/disk@1,0'
disk0: '/pci@9,600000/SUNW,qlc@2/fp@0,0/disk@0,0'
ide: '/pci@8,700000/ide@6'
scsi: '/pci@9,600000/SUNW,qlc@2'
cdrom: '/pci@8,700000/ide@6/cdrom@0,0:f'
net: '/pci@9,700000/network@2'
net1: '/pci@9,600000/network@1'
net0: '/pci@9,700000/network@2'
flash: '/pci@9,700000/ebus@1/flashprom@0,0'
idprom: '/pci@9,700000/ebus@1/i2c@1,2e/idprom@4,a4'
nvram: '/pci@9,700000/ebus@1/i2c@1,2e/nvram@4,a4'
i2c1: '/pci@9,700000/ebus@1/i2c@1,30'
i2c0: '/pci@9,700000/ebus@1/i2c@1,2e'
bbc: '/pci@9,700000/ebus@1/bbc@1,0'
rsc-console: '/pci@9,700000/ebus@1/rsc-console@1,3083f8'
rsc-control: '/pci@9,700000/ebus@1/rsc-control@1,3062f8'
ttya: '/pci@9,700000/ebus@1/serial@1,400000:a'
pci9b: '/pci@9,700000'
pci9a: '/pci@9,600000'
pci8b: '/pci@8,700000'
pci8a: '/pci@8,600000'
ebus: '/pci@9,700000/ebus@1'
name: 'aliases'

<—————–SNIP—————–> Continue Reading

SC/RSC console setup

Many Sun servers have this nifty little “feature” called Net Management port. When connected to the network and configured it allows SC access over the network. It’s just like being hooked up directly to the ALOM port. Depending on the server model you can telnet or ssh to the server to gain access. Given this is console access to the server ssh is the preferred method if it’s supported. SC output below is from SunFire V245.

Configuration is straight forward, using scadm command. To use it:

bash-3.00# cd /usr/platform/`uname -i`/sbin

First, let’s see the parameters that can be set:

bash-3.00# ./scadm show
if_network="true"
if_modem="false"
if_connection="telnet"
if_emailalerts="false"
sys_autorestart="xir"
sys_bootrestart="none"
sys_bootfailrecovery="none"
sys_maxbootfail="3"
sys_xirtimeout="900"
sys_boottimeout="900"
sys_wdttimeout="60"
netsc_tpelinktest="true"
netsc_dhcp="false"
netsc_ipaddr="10.1.1.1"
netsc_ipnetmask="255.255.255.0"
netsc_ipgateway="10.1.1.254"
mgt_mailhost=""
mgt_mailalert=""
sc_customerinfo=""
sc_escapechars="#."
sc_powerondelay="false"
sc_powerstatememory="false"
sc_clipasswdecho="true"
sc_cliprompt="sc"
sc_clitimeout="0"
sc_clieventlevel="2"
sc_backupuserdata="true"
sys_eventlevel="2"

You can change the parameters using:

scadm set [parameter] [value]

To get SC accessible over the network, if_connection, netsc_ipaddr, netsc_ipnetmask and netsc_ipgateway parameters need to be set. After those parameters are set you will probably have to restart SC using scadm resetrsc for changes to take effect. This does not affect the server itself. Once SC is back up, you can gain access using the method specified in if_connection parameter and then log in using ALOM credentials.

Some server models, such as SunFire V490 do not have SC. Instead they come, at least they used to, with RSC. To use it you will have to download RSC software from Sun. Configuration is similar to SC. If this is your initial configuration of RSC, you can use rsc-config script. It will ask you a bunch of questions and configure RSC for you. Alternatively you can use rscadm utility. To use it

bash-3.00# cd /usr/platform/`uname -i`/rsc

Let’s see some RSC parameters:

bash-3.00# ./rscadm show
mail_enabled="false"
ip_mode="config"
ppp_enabled="false"
tpe_link_test="true"
serial_baud="9600"
serial_parity="none"
serial_stop="1"
serial_data="8"
customerinfo=""
ip_addr="10.1.1.1"
ip_netmask="255.255.255.0"
ip_gateway="10.1.1.254"
mailhost=""
mailuser=""
ppp_local_ip_addr="0.0.0.0"
ppp_remote_ip_addr="0.0.0.0"
hostname="pas2"
escape_char="~"

Once you are happy with your configuration you also have to set input-device and output-device Openboot variables to rsc-console.

SC and RSC are very similar. One notable difference is availability of modem in RSC. For more info check out scadm and rscadm man pages. Pretty useful stuff… Continue Reading

Page 6 of 7« First...34567