Month: September 2009

Check OBP variables without rebooting Solaris or going to the ok prompt

To check the OBP variables in your Solaris SPARC server and leaving Solaris up and running, you’ll need to use the eeprom command

root@solaris:/ # eeprom
asr-policy=normal
test-args: data not available.
diag-passes=1
local-mac-address?=true
fcode-debug?=false
scsi-initiator-id=7
oem-logo: data not available.
oem-logo?=false
oem-banner: data not available.
oem-banner?=false
ansi-terminal?=true
screen-#columns=80
screen-#rows=34
ttyb-rts-dtr-off=false
ttyb-ignore-cd=true
ttya-rts-dtr-off=false
ttya-ignore-cd=true
ttyb-mode=9600,8,n,1,-
ttya-mode=9600,8,n,1,-
output-device=ttya
input-device=ttya
auto-boot-on-error?=true
error-reset-recovery=sync
load-base=16384
auto-boot?=true
network-boot-arguments: data not available.
boot-command=boot
diag-file: data not available.
diag-device=disk0:a
boot-file: data not available.
boot-device=vx-rootdisk vx-rootmirr
use-nvramrc?=false
nvramrc=devalias vx-rootdisk /pci@1c,600000/scsi@2/disk@0,0:a
devalias vx-rootmirr /pci@1c,600000/scsi@2/disk@3,0:a
security-mode=none
security-password: data not available.
security-#badlogins=0
verbosity=normal
diag-trigger=error-reset power-on-reset
service-mode?=false
diag-script=normal
diag-level=max
diag-switch?=false

Xlib: PuTTY X11 proxy: wrong authentication protocol attempted

I had this weird error when trying to start an X11 application.

oracle@dbserver:~ $ xclock
xlib: connection to “localhost:12.0” refused by server
Xlib: PuTTY X11 proxy: wrong authentication protocol attempted
Error: Can’t open display: localhost:12.0

Next you try the steps described here to transfer the authorization to the other account. But if you follow the steps and it simply doesnt work, check the filesystem where the home directory is.

oracle@dbserver:~ $ df -h .
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/rootvg-homelv
9.9G  9.4G  128K 100% /home

In this particular machine, I was having the authentication protocol error because the OS couldn’t update the .Xauthority file in the home directory.

Volume inside a Disk Group in Veritas Volume Manager is in NEEDSYNC state

Whenever you see a volume inside a disk group with the NEEDSYNC state, you simply run vxvol -g <disk group> resync <volume> to change the status back to ACTIVE.

root@solaris:/ # vxprint -htg softwaredg
DG NAME         NCONFIG      NLOG     MINORS   GROUP-ID
DT NAME         STATE        DM_CNT   SPARE_CNT         APPVOL_CNT
DM NAME         DEVICE       TYPE     PRIVLEN  PUBLEN   STATE
RV NAME         RLINK_CNT    KSTATE   STATE    PRIMARY  DATAVOLS  SRL
RL NAME         RVG          KSTATE   STATE    REM_HOST REM_DG    REM_RLNK
CO NAME         CACHEVOL     KSTATE   STATE
VT NAME         NVOLUME      KSTATE   STATE
V  NAME         RVG/VSET/CO  KSTATE   STATE    LENGTH   READPOL   PREFPLEX UTYPE
PL NAME         VOLUME       KSTATE   STATE    LENGTH   LAYOUT    NCOL/WID MODE
SD NAME         PLEX         DISK     DISKOFFS LENGTH   [COL/]OFF DEVICE   MODE
SV NAME         PLEX         VOLNAME  NVOLLAYR LENGTH   [COL/]OFF AM/NM    MODE
SC NAME         PLEX         CACHE    DISKOFFS LENGTH   [COL/]OFF DEVICE   MODE
DC NAME         PARENTVOL    LOGVOL
SP NAME         SNAPVOL      DCO

dg softwaredg   default      default  38000    1185222274.13.solaris

dm softwaredg01 c0t9d0s2     auto     20095    286657920 –
dm softwaredg02 c1t11d0s2    auto     20095    286657920 –

v  app.software –            ENABLED  NEEDSYNC 14680064 SELECT    –        fsgen
pl app.software-01 app.software ENABLED ACTIVE 14680064 CONCAT    –        RW
sd softwaredg01-01 app.software-01 softwaredg01 0 14680064 0      c0t9d0   ENA
pl app.software-02 app.software ENABLED ACTIVE 14680064 CONCAT    –        RW
sd softwaredg02-01 app.software-02 softwaredg02 0 14680064 0      c1t11d0  ENA

v  ctm.oracatrman –          ENABLED  NEEDSYNC 2097152  SELECT    –        fsgen
pl ctm.oracatrman-01 ctm.oracatrman ENABLED ACTIVE 2097152 CONCAT –        RW
sd softwaredg01-02 ctm.oracatrman-01 softwaredg01 14680064 2097152 0 c0t9d0 ENA
pl ctm.oracatrman-02 ctm.oracatrman ENABLED ACTIVE 2097152 CONCAT –        RW
sd softwaredg02-04 ctm.oracatrman-02 softwaredg02 27262976 2097152 0 c1t11d0 ENA

v  dat.audit    –            ENABLED  NEEDSYNC 4194304  SELECT    –        fsgen
pl dat.audit-01 dat.audit    ENABLED  ACTIVE   4194304  CONCAT    –        RW
sd softwaredg01-03 dat.audit-01 softwaredg01 16777216 4194304 0   c0t9d0   ENA
pl dat.audit-02 dat.audit    ENABLED  ACTIVE   4194304  CONCAT    –        RW
sd softwaredg02-03 dat.audit-02 softwaredg02 23068672 4194304 0   c1t11d0  ENA

v  dat.users    –            ENABLED  NEEDSYNC 8388608  SELECT    –        fsgen
pl dat.users-01 dat.users    ENABLED  ACTIVE   8388608  CONCAT    –        RW
sd softwaredg01-04 dat.users-01 softwaredg01 20971520 8388608 0   c0t9d0   ENA
pl dat.users-02 dat.users    ENABLED  ACTIVE   8388608  CONCAT    –        RW
sd softwaredg02-02 dat.users-02 softwaredg02 14680064 8388608 0   c1t11d0  ENA

v  vol01        –            ENABLED  ACTIVE   10240000 SELECT    –        fsgen
pl vol01-01     vol01        ENABLED  ACTIVE   10240000 CONCAT    –        RW
sd softwaredg01-05 vol01-01  softwaredg01 29360128 10240000 0     c0t9d0   ENA
pl vol01-02     vol01        ENABLED  ACTIVE   10240000 CONCAT    –        RW
sd softwaredg02-05 vol01-02  softwaredg02 29360128 10240000 0     c1t11d0  ENA

root@solaris:/ # vxvol -g softwaredg resync dat.audit