Posted by Emerson Takahashi on October 13, 2009
Listing the logical volumes inside the volume group. AIX can’t determine the LV type.
root@aix:/ # lsvg -l oravg
oravg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
oravg_lg ??? 1 1 1 closed/syncd N/A
ora_lv ??? 1064 1064 2 closed/syncd N/A
To solve this problem we’ll export then reimport the VG. But first we’ll need to deactivate it.
root@aix:/ # varyoffvg oravg
And we need at least one disk that is part of the volume group because it has the information needed to import.
root@aix:/ # lspv | grep oravg
hdisk251 00c5f1d097cc8a6e oravg
hdisk221 00c5f1d0a7bffede oravg
Now we run exportvg and the server will no longer know it once had the volume group.
root@aix:/ # exportvg oravg
Let’s list all the volume groups the server is aware that exists.
root@aix:/ # lsvg
rootvg
datavg
cache01vg
cache02vg
Only the rootvg is currently imported and active.
root@aix:/ # lsvg -o
rootvg
Let’s reimport the volume group. We need to declare one of the disks we listed before to reimport the volume group.
root@aix:/ # importvg -y oravg hdisk251
oravg
Next, we activate the volume group
root@aix:/ # varyonvg oravg
Listing the Volume Group. Volume Group TYPE listed.
root@aix:/ # lsvg -l oravg
oravg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
oravg_lg jfs2log 1 1 1 closed/syncd N/A
ora_lv jfs2 1064 1064 2 closed/syncd /u01
Posted in Sysadmin | Tagged: aix, exportvg, importvg | Leave a Comment »
Posted by Emerson Takahashi on September 22, 2009
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
Posted in Sysadmin | Tagged: eeprom, obp, solaris, sparc | Leave a Comment »
Posted by Emerson Takahashi on September 19, 2009
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.
Posted in Sysadmin | Tagged: putty, x11 | Leave a Comment »
Posted by Emerson Takahashi on September 17, 2009
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
Posted in Sysadmin | Tagged: veritas, vxvm | Leave a Comment »
Posted by Emerson Takahashi on July 25, 2009
I bought Street Fighter IV and when you start the game it asks for you to create or use an existing profile.
Any Game for Windows Live will enable you to create a profile that have all your games and you can show to other people what you have been playing. For example, see Microsoft Xbox Live Director of Programming Larry Hryb gamertag Major Nelson.
You enter your an email address and the password and it will download your profile to your computer but in my case it said “Can’t connect to Live – Error 0×80151911″
I read that the culprit was the MTU parameter set on your network. It can be set in any part of your network like your router or your Windows computer.
You need to set the MTU size to at least 1400 to make it download the profile. See your router documentation on how to change this parameter.
On a Windows computer you need to open regedit.exe and then search for the entries called MTU in HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Tcpip/Interfaces and select each interface (a random string of numbers). Right click the parameter MTU and choose decimal then type 1492 or 1500. Now you should be able to download your profile.
Posted in Games | Tagged: gamesforwindows, gfwl, gtaiv, streetfighteriv | Leave a Comment »
Posted by Emerson Takahashi on July 23, 2009
I saw a message in syslog to check for an EMS Event Notification.
root@hp-ux:/ # cat /var/adm/syslog/syslog.log
Jul 23 11:33:07 hp-ux EMS [2596]: —— EMS Event Notification —— Value: “SERIOUS (4)” for Resource: “/adapters/events/TL_adapter/0_2_1_0″ (Threshold: >= ” 3″) Execute the following command to obtain event details: /opt/resmon/bin/resdata -R 170131458 -r /adapters/events/TL_adapter/0_2_1_0 -n 170131457 -a
root@hp-ux:/ # /opt/resmon/bin/resdata -R 170131458 -r /adapters/events/TL_adapter/0_2_1_0 -n 170131457 -a
CURRENT MONITOR DATA:
Event Time……….: Thu Jul 23 11:33:07 2009
Severity…………: SERIOUS
Monitor………….: dm_TL_adapter
Event #………….: 23
System…………..: hp-ux
Summary:
Adapter at hardware path 0/2/1/0 : Fibre Channel driver has gone into
non-participating mode
Description of Error:
lbolt value: 3207
The Fibre Channel Driver has gone into non-participating mode
Frame Manager Status Register = 0×200002ff
Probable Cause / Recommended Action:
A cable or hardware problem exists. This can also be caused due
to the Tachyon TL adapter changing its AL_PA across a LIP.
Do the following:
1. Verify that the fiber optic cable is functional and securely
attached to the Fibre Channel Mass Storage Adapter.
2. After checking the cabling, execute a loopback test using
fcmsutil.
Command syntax is as follows:
/opt/fcms/bin/fcmsutil <device_file> lb plm
If the problem persists after verifying fiber optic cabling,
replace the adapter
Additional Event Data:
System IP Address…: 10.122.100.24
Event Id…………: 0×4a6874a300000000
Monitor Version…..: B.01.00
Event Class………: I/O
Client Configuration File………..:
/var/stm/config/tools/monitor/default_dm_TL_adapter.clcfg
Client Configuration File Version…: A.01.00
Qualification criteria met.
Number of events..: 1
Associated OS error log entry id(s):
0×4a68739100000000
Additional System Data:
System Model Number………….: 9000/800/rp4440
OS Version………………….: B.11.11
EMS Version…………………: A.04.20
STM Version…………………: A.49.00
Latest information on this event:
http://docs.hp.com/hpux/content/hardware/ems/dm_TL_adapter.htm#23
v-v-v-v-v-v-v-v-v-v-v-v-v D E T A I L S v-v-v-v-v-v-v-v-v-v-v-v-v
Component Data:
Physical Device Path….: 0/2/1/0
Vendor Id……………: 0×0000103C
Serial Number(WWN)……: 50060B00005FCE46
I/O Log Event Data:
Driver Status Code………………: 0×00000017
Length of Logged Hardware Status….: 0 bytes.
Offset to Logged Manager Information: 0 bytes.
Length of Logged Manager Information: 61 bytes.
Manager-Specific Information:
Raw data from FCMS Adapter driver:
00000003 00000C87 00000001 00000001 200002FF 2F75782F 6B65726E 2F6B6973
752F544C 2F737263 2F636F6D 6D6F6E2F 7773696F 2F74645F 6973722E 63
Checking the device file.
root@hp-ux:/ # ioscan -fnC fc
Class I H/W Path Driver S/W State H/W Type Description
=================================================================
fc 0 0/2/1/0 td CLAIMED INTERFACE HP Tachyon XL2 Fibre Channel Mass Storage Adapter
/dev/td0
fc 1 0/6/1/0 td CLAIMED INTERFACE HP Tachyon XL2 Fibre Channel Mass Storage Adapter
/dev/td1
I tried to pass td1 as argument but it needed the full path.
root@hp-ux:/ # /opt/fcms/bin/fcmsutil td1 lb plm
Error: FCP driver not loaded.
I passed the entire path and the fcmsutil worked:
root@hp-ux:/ # /opt/fcms/bin/fcmsutil /dev/td0 lb plm
WARNING: This is a DESTRUCTIVE test.
This might result in failure of current I/O requests.
Do you want to continue? (y/n) [n]…
Posted in Sysadmin | Tagged: hba, hp-ux | Leave a Comment »
Posted by Emerson Takahashi on June 15, 2009
I had a problem mounting an ocfs2 filesystem under Oracle Cluster Management Software.
root@oracm1:~# mount -a
mount.ocfs2: Transport endpoint is not connected while mounting /dev/mapper/oravg01-lvu03 on /u03. Check ‘dmesg’ for more information on this error.
The error message said to check dmesg for more information and there it was. The cluster was not handshaking with the other node because the network timeout was different.
root@oracm1:~# dmesg
Buffer I/O error on device sdab, logical block 262143
(8290,0):o2net_check_handshake:1180 node brsaoora2 (num 1) at 192.168.2.101:7777 uses a network idle timeout of 10000 ms, but we use 30000 ms locally. disconnecting
(8211,0):dlm_request_join:901 ERROR: status = -107
(8211,0):dlm_try_to_join_domain:1049 ERROR: status = -107
(8211,0):dlm_join_domain:1321 ERROR: status = -107
(8211,0):dlm_register_domain:1514 ERROR: status = -107
(8211,0):ocfs2_dlm_init:2024 ERROR: status = -107
(8211,0):ocfs2_mount_volume:1133 ERROR: status = -107
ocfs2: Unmounting device (253,7) on (node 0)
I entered the other cluster node to check the cluster status. The heartbeat is active and the timeout is 10000.
root@oracm2:~# service o2cb status
Module “configfs”: Loaded
Filesystem “configfs”: Mounted
Module “ocfs2_nodemanager”: Loaded
Module “ocfs2_dlm”: Loaded
Module “ocfs2_dlmfs”: Loaded
Filesystem “ocfs2_dlmfs”: Mounted
Checking O2CB cluster ocfs2: Online
Heartbeat dead threshold: 61
Network idle timeout: 10000
Network keepalive delay: 5000
Network reconnect delay: 2000
Checking O2CB heartbeat: Active
root@oracm1:~# service o2cb status
Module “configfs”: Loaded
Filesystem “configfs”: Mounted
Module “ocfs2_nodemanager”: Loaded
Module “ocfs2_dlm”: Loaded
Module “ocfs2_dlmfs”: Loaded
Filesystem “ocfs2_dlmfs”: Mounted
Checking O2CB cluster ocfs2: Online
Heartbeat dead threshold: 61
Network idle timeout: 30000
Network keepalive delay: 5000
Network reconnect delay: 2000
Checking O2CB heartbeat: Not active
The host oracm1 needs to have exactly the same configuration as oracm2, so I invoked the o2cb script with the configure parameter to reconfigure the timeout.
root@oracm1:~# service o2cb configure
Configuring the O2CB driver.
This will configure the on-boot properties of the O2CB driver.
The following questions will determine whether the driver is loaded on
boot. The current values will be shown in brackets (‘[]‘). Hitting
<ENTER> without typing an answer will keep that current value. Ctrl-C
will abort.
Load O2CB driver on boot (y/n) [y]: y
Cluster to start on boot (Enter “none” to clear) [ocfs2]: ocfs2
Specify heartbeat dead threshold (>=7) [61]: 61
Specify network idle timeout in ms (>=5000) [30000]: 10000
Specify network keepalive delay in ms (>=1000) [5000]: 5000
Specify network reconnect delay in ms (>=2000) [2000]: 2000
Writing O2CB configuration: OK
O2CB cluster ocfs2 already online
I restarted the o2cb service
root@oracm1:~# service o2cb stop
root@oracm1:~# service o2cb start
And checked that the node entered the cluster.
root@oracm1:$ORACLE_HOME/oracm/log # grep “Successful reconfiguration” cm.log
Successful reconfiguration, 2 active node(s) node 1 is the master, my node num is 0 (reconfig 22) {Thu Jun 11 13:17:32 2009 }
root@oracm1:~# df -h /u03
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/oravg01-lvu03
30G 29G 1.1G 97% /u03
root@oracm1:~# mount | grep u03
/dev/mapper/oravg01-lvu03 on /u03 type ocfs2 (rw,_netdev,datavolume,nointr,heartbeat=local)
Posted in Sysadmin | Tagged: oracle, oracm | Leave a Comment »
Posted by Emerson Takahashi on May 2, 2009
I have a Windows desktop and I was connecting to a Linux server and starting an X11 application where displayed the following “error” message:
Warning: Cannot convert string “-*-lucida-medium-r-*-*-*-*-*-*-*-*-iso8859-1″ to type FontStruct
I downloaded Xming-fonts and this solved the problem for me.
Posted in Sysadmin | Tagged: x11, xming | Leave a Comment »
Posted by Emerson Takahashi on April 13, 2009
To download the Web Based System Manager client you simply open a browser window and type the URL http://<ip address of your HMC>/remote_client.html.
The Hardware Management Console v7 has web access, so you don’t need to install a client to use it.
Posted in Sysadmin | Tagged: hmc, ibm, websm | Leave a Comment »
Posted by Emerson Takahashi on April 13, 2009
To get a console access through a remote connection, first ssh to the HMC
emerson@shellcore:~ $ ssh hscroot@hmc6
password:
Then type vtmenu. It will retrieve all the physical servers connected and that can be managed by the HMC.
hscroot@localhost:~> vtmenu
Retrieving name of managed system(s) . . . Server-9117-570-SN103CBBB 2-Server-9117-570-SN103CABB Server-9117-570-SN069D5BF Server-9119-595-SN8211572
———————————————————-
Managed Systems:
———————————————————-
1) Server-9117-570-SN103CBBB
2) 2-Server-9117-570-SN103CABB
3) Server-9117-570-SN069D5BF
4) Server-9119-595-SN8211572
Enter Number of Managed System. (q to quit): 1
You choose one of the managed servers and then it will show all LPARs available on that physical server.
———————————————————-
Partitions On Managed System: Server-9117-570-SN103CBBB
OS/400 Partitions not listed
———————————————————-
1) LPAR1 Running
2) LPAR2 Running
3) LPAR3 Running
After you selected which LPAR you will control, you will be shown the login screen
Open in progress..
Open Completed.
AIX Version 5
Copyright IBM Corporation, 1982, 2008.
Console login:
To exit you type tilde, space, tilde, space, dot.
~ ~ .
Posted in Hardware, Sysadmin | Tagged: hmc, ibm | Leave a Comment »