Warning: Parameter 1 to ace_where() expected to be a reference, value given in /home/mitrox/akamit.com/blog/wp-includes/plugin.php on line 166

Warning: Parameter 1 to ace_join() expected to be a reference, value given in /home/mitrox/akamit.com/blog/wp-includes/plugin.php on line 166
How to delete SMS messages from SIM card with SHR, freesmartphone.org, GTA02 | Akamit Blog

Akamit Blog

Enterprise sysadmin's blog

  • You are here: 
  • Home
  • How to delete SMS messages from SIM card with SHR, freesmartphone.org, GTA02

How to delete SMS messages from SIM card with SHR, freesmartphone.org, GTA02

Posted on November 6th, 2012

Once you get a message that your SMS storage on SIM is full and you can’t receive any messages. So, you have to clear your SIM from old messages.
In this example we are using GTA02 device with SHR as of 20120730233813.
First, we open a freesmartphone docs on SIM API and have some fun.

root@om-gta02:~# mdbus2 -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device  org.freesmartphone.GSM.SIM.GetSimInfo
({'slots': <20>, 'imsi': <'XXXXXXXXXXXX'>, 'issuer': <'unknown'>, 'used': <20>, 'phonebooks': <'emergency aux:BD fixed aux:DC dialed received aux:LR aux:MT aux:AD contacts aux:SD missed aux:LM aux:AF own aux:UD'>},)

So, we are going to purge 20 messages as we have used 20 of 20 slots.
But if you want to read them first, issue the command

root@om-gta02:~# mdbus2 -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device org.freesmartphone.GSM.SIM.RetrieveMessage 1
('read', '1095', 'this is a private sms message', {'pid': <byte 0x00>, 'sri': <false>, 'rp': <false>, 'udhi': <false>, 'mms': <false>, 'dcs': <byte 0x01>, 'udl': <byte 0x46>, 'timestamp': <'12/11/06,16:16:24+16'>})

When done, delete it.

root@om-gta02:~# mdbus2 -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device  org.freesmartphone.GSM.SIM.DeleteMessage 1
()
root@om-gta02:~#

Next call to GetSimInfo wil show ‘used’: <19>.

Filed under Openmoko |

Leave a Reply

How to delete SIM messages w SHR

Posted on November 6th, 2012

Once you get a message that your SMS storage on SIM is full and you can’t receive any messages. So, you have to clear your SIM from old messages.
In this example we are using GTA02 device with SHR as of 20120730233813.
First, we open a freesmartphone docs on SIM API and have some fun.

root@om-gta02:~# mdbus2 -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device  org.freesmartphone.GSM.SIM.GetSimInfo
({'slots': <20>, 'imsi': <'XXXXXXXXXXXX'>, 'issuer': <'unknown'>, 'used': <20>, 'phonebooks': <'emergency aux:BD fixed aux:DC dialed received aux:LR aux:MT aux:AD contacts aux:SD missed aux:LM aux:AF own aux:UD'>},)

So, we are going to purge 20 messages as we have used 20 of 20 slots.
But if you want to read them first, issue the command

root@om-gta02:~# mdbus2 -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device org.freesmartphone.GSM.SIM.RetrieveMessage 1
('read', '1095', 'this is a private sms message', {'pid': <byte 0x00>, 'sri': <false>, 'rp': <false>, 'udhi': <false>, 'mms': <false>, 'dcs': <byte 0x01>, 'udl': <byte 0x46>, 'timestamp': <'12/11/06,16:16:24+16'>})

When done, delete it.

root@om-gta02:~# mdbus2 -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device  org.freesmartphone.GSM.SIM.DeleteMessage 1
()
root@om-gta02:~#

Next call to GetSimInfo wil show ‘used’: <19>.

Filed under Uncategorized |

Leave a Reply

Monitoring HP SmartArray 6i in OpenBSD 5.1

Posted on October 8th, 2012

Its done simply by looking at sysctl hw.sensors variables

bash-4.2# sysctl hw.sensors
hw.sensors.acpitz0.temp0=8.30 degC (zone temperature)
hw.sensors.ciss0.drive0=online (sd0), OK
bash-4.2#

Filed under OpenBSD |

Leave a Reply

Monitoring HP SmartArray 6i in OpenBSD 5.1

Posted on October 8th, 2012

Its done simply by looking at sysctl hw.sensors variables

bash-4.2# sysctl hw.sensors
hw.sensors.acpitz0.temp0=8.30 degC (zone temperature)
hw.sensors.ciss0.drive0=online (sd0), OK
bash-4.2#

Filed under Uncategorized |

Leave a Reply

Monitoring HP SmartArray 6i in OpenBSD 5.1

Posted on October 8th, 2012

Its done simply by looking at sysctl hw.sensors variables

bash-4.2# sysctl hw.sensors
hw.sensors.acpitz0.temp0=8.30 degC (zone temperature)
hw.sensors.ciss0.drive0=online (sd0), OK
bash-4.2#

Filed under Uncategorized |

Leave a Reply

How to manually turn on/off Xorg screen

Posted on May 2nd, 2012

It can be useful for example if you have a display that you need to be on for a period of time from 9-00 to 18-00 when you on desk.
I use that feature for Nagios management station which is running all the time but turn head display only when I’m on duty and can see what is on it.

nagios@nms-host$ crontab -l
0 18 * * * DISPLAY=:0 xset dpms force off
0 9 * * * DISPLAY=:0 xset dpms force on

Filed under Misc, Nagios |

Leave a Reply

How to manually turn on/off Xorg screen

Posted on May 2nd, 2012

It can be useful for example if you have a monitorthat you need to be on for a period of time from 9-00 to 18-00 when you on desk.
I use that feature for Nagios management station which is running all the time but turn head display only I’m on duty and can see what is on it.

nagios@nms-host$ crontab -l
0 18 * * * DISPLAY=:0 xset dpms force off
0 9 * * * DISPLAY=:0 xset dpms force on

Filed under Uncategorized |

Leave a Reply

Setting NTP settings on Sun system controllers

Posted on April 5th, 2012

Sun T5120, iLom (SP firmware 2.0.4.28.a)
Sun X4470, iLom (SP firmware 3.0.9.25)

-> set /SP/clients/ntp/server/1 address=10.70.1.2
Set 'address' to '10.70.1.2'
 
-> set /SP/clients/ntp/server/2 address=0.0.0.0  
Set 'address' to '0.0.0.0'
-> set /SP/clock usentpserver=enabled                    
Set 'usentpserver' to 'enabled'
 
->

Sun Mx000 XSCF

XSCF> setntp -c add 10.70.1.2
Please reset the XSCF by rebootxscf to apply the ntp settings.
XSCF> showntp -a
server 10.70.1.2 prefer 
XSCF> rebootxscf

Filed under Uncategorized |

Leave a Reply

Setting NTP settings on Sun system controllers

Posted on April 5th, 2012

Sun T5120, iLom (SP firmware 2.0.4.28.a)
Sun X4470,

-> set /SP/clients/ntp/server/1 address=10.70.1.2
Set 'address' to '10.70.1.2'
 
-> set /SP/clients/ntp/server/2 address=0.0.0.0  
Set 'address' to '0.0.0.0'
-> set /SP/clock usentpserver=enabled                    
Set 'usentpserver' to 'enabled'
 
->

Sun Mx000 XSCF

XSCF> setntp -c add 10.70.1.2
Please reset the XSCF by rebootxscf to apply the ntp settings.
XSCF> showntp -a
server 10.70.1.2 prefer 
XSCF> rebootxscf

Filed under Uncategorized |

Leave a Reply

Setting NTP settings on Sun system controllers

Posted on April 5th, 2012

Sun T5120, iLom (SP firmware 2.0.4.28.a)

-> set /SP/clients/ntp/server/1 address=10.70.1.2
Set 'address' to '10.70.1.2'
 
-> set /SP/clients/ntp/server/2 address=0.0.0.0  
Set 'address' to '0.0.0.0'
-> set /SP/clock usentpserver=enabled                    
Set 'usentpserver' to 'enabled'
 
->

Sun Mx000 XSCF

XSCF> setntp -c add 10.70.1.2
Please reset the XSCF by rebootxscf to apply the ntp settings.
XSCF> showntp -a
server 10.70.1.2 prefer 
XSCF> rebootxscf

Filed under Uncategorized |

Leave a Reply

NTP settings on Sun system controllers

Posted on April 5th, 2012

Sun T5120, iLom (SP firmware 2.0.4.28.a)
Sun X4470, iLom (SP firmware 3.0.9.25)

-> set /SP/clients/ntp/server/1 address=10.70.1.2
Set 'address' to '10.70.1.2'
 
-> set /SP/clients/ntp/server/2 address=0.0.0.0  
Set 'address' to '0.0.0.0'
-> set /SP/clock usentpserver=enabled                    
Set 'usentpserver' to 'enabled'
 
->

Sun Mx000 XSCF

XSCF> setntp -c add 10.70.1.2
Please reset the XSCF by rebootxscf to apply the ntp settings.
XSCF> showntp -a
server 10.70.1.2 prefer 
XSCF> rebootxscf

Filed under Sun Hardware |

Leave a Reply

Setting NTP settings on Sun system controllers

Posted on April 5th, 2012

Sun T5120, iLom (SP firmware 2.0.4.28.a)

-> set /SP/clients/ntp/server/1 address=10.70.1.2
Set 'address' to '10.70.1.2'
 
-> set /SP/clients/ntp/server/2 address=0.0.0.0  
Set 'address' to '0.0.0.0'
-> set /SP/clock usentpserver=enabled                    
Set 'usentpserver' to 'enabled'
 
->

Filed under Uncategorized |

Leave a Reply

Setting NTP settings on Sun system controllers

Posted on April 5th, 2012

Sun T5120, iLom (SP firmware 2.0.4.28.a)

-> set /SP/clients/ntp/server/1 address=10.70.1.2
Set 'address' to '10.70.1.2'
 
-> set /SP/clients/ntp/server/2 address=0.0.0.0  
Set 'address' to '0.0.0.0'
-> set /SP/clock usentpserver=enabled                    
Set 'usentpserver' to 'enabled'
 
->

Filed under Uncategorized |

Leave a Reply

Rebooting linux remotely when “reboot” command is not working

Posted on March 10th, 2012

If you got the system which cannot be rebooted traditional way for some reason (for example reboot command gives you “bus error”) you can use sysrq.

echo 1 > /proc/sys/kernel/sysrq
echo s > /proc/sysrq-trigger
echo u > /proc/sysrq-trigger
echo b > /proc/sysrq-trigger

First command enables sysrq functionality, 2nd tries to sync filesystems, 3d to umounts them read-only (to avoid fsck during boot) and the last reboots the machine

Read Documentation/sysreq.txt in linux source directory for more options.

Filed under Uncategorized |

Leave a Reply

Rebooting linux remotely when “reboot” command is not working

Posted on March 10th, 2012

If you got the system which cannot be rebooted traditional way for some reason (for example reboot command gives you “bus error”) you can use sysrq.

echo 1 > /proc/sys/kernel/sysrq
echo s > /proc/sysrq-trigger
echo u > /proc/sysrq-trigger
echo b > /proc/sysrq-trigger

First command enables sysrq functionality, 2nd tries to sync filesystems, 3d to umounts them read-only (to avoid fsck during boot) and the last reboots the machine

Read Documentation/sysreq.txt in linux source directory for more options.

Filed under Uncategorized |

Leave a Reply

Rebooting linux remotely when “reboot” command is not working

Posted on March 10th, 2012

If you got the system which cannot be rebooted traditional way for some reason (for example reboot command gives you “bus error”) you can use sysrq.

echo 1 > /proc/sys/kernel/sysrq
echo s > /proc/sysrq-trigger
echo u > /proc/sysrq-trigger
echo b > /proc/sysrq-trigger

First command enables sysrq functionality, 2nd tries to sync filesystems, 3d to umounts them read-only (to avoid fsck during boot) and the last reboots the machine

Read Documentation/sysreq.txt in linux source directory for more options.

Filed under Linux |

One Response to “Rebooting linux remotely when “reboot” command is not working”

  1. GH Says:
    May 9th, 2013 at 7:12 pm

    Thanks man, this worked like a charm. I was getting nuts because reboot just dropped me again on the shell and didn’t work.

Leave a Reply

Rebooting linux remotely when “reboot” command is not working

Posted on March 10th, 2012

If you got the system which cannot be rebooted traditional way for some reason (for example reboot command gives you “bus error”) you can use sysrq.

echo 1 > /proc/sys/kernel/sysrq
echo s > /proc/sysrq-trigger
echo u > /proc/sysrq-trigger
echo b > /proc/sysrq-trigger

First command enables sysrq functionality, 2nd tries to sync filesystems, 3d to umounts them read-only (to avoid fsck during boot) and the last reboots the machine

Read Documentation/sysreq.txt in linux source directory for more options.

Filed under Uncategorized |

Leave a Reply

Rebooting linux remotely when “reboot” command is not working

Posted on March 10th, 2012

If you got the system which cannot be rebooted traditional way for some reason (for example reboot command gives you “bus error”) you can use sysrq.

echo 1 > /proc/sys/kernel/sysrq
echo s > /proc/sysrq-trigger
echo u > /proc/sysrq-trigger
echo b > /proc/sysrq-trigger

First command enables sysrq functionality, 2nd tries to sync filesystems, 3d to umonu

Filed under Uncategorized |

Leave a Reply

NetBackup: set exclude_list on Windows clients

Posted on November 30th, 2011

You need to set an exclude list for windows client using Unix Netbackup server.

# bpgetconfig -M win_client EXCLUDE
EXCLUDE = C:\Program Files\Veritas\NetBackup\bin\*.lock
EXCLUDE = C:\Program Files\Veritas\NetBackup\bin\bprd.d\*.lock
EXCLUDE = C:\Program Files\Veritas\NetBackup\bin\bpsched.d\*.lock
EXCLUDE = C:\Program Files\Veritas\Volmgr\misc\*
EXCLUDE = C:\Program Files\Veritas\NetBackupDB\data\*

Then just append desired path to exclude and save the list back to client:

# bpgetconfig -M sapwin87 EXCLUDE > /tmp/exclude_list.txt
echo "H:\oracle\NWO\sapdata*" >> /tmp/exclude_list.txt
# bpsetconfig -h win_client  /tmp/exclude_list.txt

Filed under Uncategorized |

Leave a Reply

NetBackup: set exclude_list on Windows clients

Posted on November 30th, 2011

You need to set an exclude list for windows client using Unix Netbackup server.

# bpgetconfig -M win_client EXCLUDE
EXCLUDE = C:\Program Files\Veritas\NetBackup\bin\*.lock
EXCLUDE = C:\Program Files\Veritas\NetBackup\bin\bprd.d\*.lock
EXCLUDE = C:\Program Files\Veritas\NetBackup\bin\bpsched.d\*.lock
EXCLUDE = C:\Program Files\Veritas\Volmgr\misc\*
EXCLUDE = C:\Program Files\Veritas\NetBackupDB\data\*

Then just append desired path to exclude and save the list back to client:

# bpgetconfig -M sapwin87 EXCLUDE > /tmp/exclude_list.txt
echo "H:\oracle\NWO\sapdata* >> /tmp/exclude_list.txt
# bpsetconfig -h win_client  /tmp/exclude_list.txt

Filed under Uncategorized |

Leave a Reply

NetBackup: set exclude_list on Windows clients

Posted on November 30th, 2011

You need to set an exclude list for windows client using Unix Netbackup server.

# bpgetconfig -M win_client EXCLUDE
EXCLUDE = C:\Program Files\Veritas\NetBackup\bin\*.lock
EXCLUDE = C:\Program Files\Veritas\NetBackup\bin\bprd.d\*.lock
EXCLUDE = C:\Program Files\Veritas\NetBackup\bin\bpsched.d\*.lock
EXCLUDE = C:\Program Files\Veritas\Volmgr\misc\*
EXCLUDE = C:\Program Files\Veritas\NetBackupDB\data\*

Then just append desired path to exclude and save the list back to client:

# bpgetconfig -M win_client EXCLUDE > /tmp/exclude_list.txt
echo "H:\oracle\NWO\sapdata*" >> /tmp/exclude_list.txt
# bpsetconfig -h win_client  /tmp/exclude_list.txt

Filed under Veritas NetBackup |

Leave a Reply

NetBackup: set exclude_list on Windows clients

Posted on November 30th, 2011

You need to set an exclude list for windows client using Unix Netbackup server.

# bpgetconfig -M win_client EXCLUDE
EXCLUDE = C:\Program Files\Veritas\NetBackup\bin\*.lock
EXCLUDE = C:\Program Files\Veritas\NetBackup\bin\bprd.d\*.lock
EXCLUDE = C:\Program Files\Veritas\NetBackup\bin\bpsched.d\*.lock
EXCLUDE = C:\Program Files\Veritas\Volmgr\misc\*
EXCLUDE = C:\Program Files\Veritas\NetBackupDB\data\*

Then just append desired path to exclude and save the list back to client:

# bpgetconfig -M sapwin87 EXCLUDE > /tmp/exclude_list.txt
echo "H:\oracle\NWO\sapdata* >> /tmp/exclude_list.txt
# bpsetconfig -h win_client  /tmp/exclude_list.txt

Filed under Uncategorized |

Leave a Reply

NetBackup: set exclude_list on Windows clients

Posted on November 30th, 2011

You need to set an exclude list for windows client using unix server.

# bpgetconfig -M win_client EXCLUDE
EXCLUDE = C:\Program Files\Veritas\NetBackup\bin\*.lock
EXCLUDE = C:\Program Files\Veritas\NetBackup\bin\bprd.d\*.lock
EXCLUDE = C:\Program Files\Veritas\NetBackup\bin\bpsched.d\*.lock
EXCLUDE = C:\Program Files\Veritas\Volmgr\misc\*
EXCLUDE = C:\Program Files\Veritas\NetBackupDB\data\*

Then just append desired path to exclude and save the list back to client:

# bpsetconfig -h win_client > /tmp/exclude_list.txt
echo "H:\oracle\NWO\sapdata* >> /tmp/exclude_list.txt
# bpsetconfig -h win_client  /tmp/exclude_list.txt

Filed under Uncategorized |

Leave a Reply

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

Posted on November 24th, 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 Uncategorized |

Leave a Reply

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

Posted on November 24th, 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@ni5x2-sc
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 Uncategorized |

Leave a Reply

How to keep job history longer in NetBackup

Posted on November 17th, 2011

That is simple.

# echo KEEP_JOBS_HOURS = 192 | bpsetconfig
# echo KEEP_JOBS_SUCCESSFUL_HOURS = 192 | bpsetconfig

Filed under Uncategorized |

Leave a Reply

How to keep job history longer in NetBackup

Posted on November 17th, 2011

That is simple.

 echo KEEP_JOBS_HOURS = 192 | bpsetconfig

Filed under Uncategorized |

Leave a Reply

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

Posted on November 17th, 2011

# 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
bash-3.00# ipmitool user set password 2 password
mit@ssm4:~-(506)->ssh root@ni5x2-sc
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 Uncategorized |

Leave a Reply

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 |

One Response to “How to reset iLOM root password on Sun/Oracle X server”

  1. Korolev Igor Says:
    November 24th, 2011 at 11:50 am

    This feature works on servers with ipmi bmc interface (for sparc servers too):
    # ipmitool -h

    Interfaces:
    bmc IPMI v2.0 BMC interface [default]
    open Linux OpenIPMI Interface
    lan IPMI v1.5 LAN Interface
    lanplus IPMI v2.0 RMCP+ LAN Interface

    I’m check this feature on T3-4 – all ok, but T3-1 do not support this.

Leave a Reply

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

Posted on November 17th, 2011

# 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
bash-3.00# ipmitool user set password 2 password

Filed under Uncategorized |

Leave a Reply

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

Posted on November 17th, 2011

bash-3.00# 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
bash-3.00# ipmitool user set password 2 password
bash-3.00#

Filed under Uncategorized |

Leave a Reply

FreeBSD: how to get rid of annoying option asking during port install

Posted on November 15th, 2011

As you may notice, sometimes you install package using ports you have been asking about some compile time options shown as dialog(1) window. That is not bad but when you need to do massive port installation or portupgrade many hundreds ports at once this can be a real pain. So, you want to trust default option set and forget about build-time-decision-making. All you need is one string in /etc/make.conf

BATCH=yes

Filed under FreeBSD |

Leave a Reply

FreeBSD: how to get rid of annoying option asking during port install

Posted on November 15th, 2011

As you may notice, sometimes you install package using ports you have been asking about some compile time options shown as dialog(1) window. That is not bad but when you need to do massive port installation or portupgrade many hundreds ports at once this can be a real pain. So, you want to trust default option set and forget about build-time-decision-making. All you need is one string in /etc/make.conf

Filed under Uncategorized |

Leave a Reply

FreeBSD: How to set certain packages not to be updated with portupgrade

Posted on November 15th, 2011

Suppose you need some packages remain intact while updating other ones with portupgrade. Then you need to tell to do so via /usr/local/etc/pkgtools.conf

  HOLD_PKGS = [
    'bsdpan-*',
    'tomcat-*',
    'jdk-*',
    'javavmwrapper-*',
    'diablo-*',
  ]

Next time you run pkgtools you see that some packages are marked as “held”

# portversion -v | grep needs
...
diablo-jdk-1.6.0.07.02_16   <  [held] needs updating (port has 1.6.0.07.02_17) 
glib-2.28.8_1               <  needs updating (port has 2.28.8_2) 
gnutls-2.12.12              <  needs updating (port has 2.12.14) 
jdk-1.6.0.3p4_26            <  [held] needs updating (port has 1.6.0.3p4_27) 
...

Filed under FreeBSD |

Leave a Reply

FreeBSD: How to set certain packages not to be updated with portupgrade

Posted on November 15th, 2011

Suppose you need some packages remain intact while updating other ones with portupgrade. Then you need to tell to do so via /usr/local/etc/pkgtools.conf

  HOLD_PKGS = [
    'bsdpan-*',
    'tomcat-*',
    'jdk-*',
    'javavmwrapper-*',
    'diablo-*',
  ]

Next time you run pkgtools you see that some packages are marked as “held”

# portversion -v | grep needs
...
diablo-jdk-1.6.0.07.02_16   <  [held] needs updating (port has 1.6.0.07.02_17) 
glib-2.28.8_1               <  needs updating (port has 2.28.8_2) 
gnutls-2.12.12              <  needs updating (port has 2.12.14) 
jdk-1.6.0.3p4_26            <  [held] needs updating (port has 1.6.0.3p4_27) 
...

Filed under Uncategorized |

Leave a Reply

Setting up cyrus imap + sendmail in OpenSUSE 11.4

Posted on November 8th, 2011

1. Packages
For SASL
cyrus-sasl-plain-2.1.23-15.1.x86_64
cyrus-sasl-saslauthd-2.1.23-15.2.x86_64
cyrus-sasl-devel-2.1.23-15.1.x86_64
cyrus-sasl-crammd5-2.1.23-15.1.x86_64
cyrus-sasl-2.1.23-15.1.x86_64
cyrus-sasl-digestmd5-2.1.23-15.1.x86_64

For IMAP
cyrus-imapd-2.3.16-16.21.1.x86_64

2. cyrus.conf
comment out pop,pop3s, leave imaps and imap only for localhost
imap cmd=”imapd” listen=”localhost:imap” prefork=0
imaps cmd=”imapd -s” listen=”imaps” prefork=0

3. imapd.conf
For auth directly from sasldb:
sasl_pwcheck_method: auxprop

Allow PLAIN mech
allowplaintext: yes

Virtual Domains
virtdomains: on
defaultdomain: glavstock.ru
unixhierarchysep: 1

Admin logins
admins: cyrus, cyrus@ecomstore.ru, cyrus@poplin.ru

4. create admin users
saslpasswd2 -c cyrus
saslpasswd2 -c cyrus@ecomstore.ru
saslpasswd2 -c cyrus@poplin.ru

5. create users in sasldb
saslpasswd2 -c mit@poplin.ru

6. Allow cyrus to read sasldb
chown cyrus:mail /etc/sasldb2

7. correct cyrusv2.m4 file for cyrus mailer
vi /usr/share/sendmail/mailer/cyrusv2.m4

S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r\n,

8. Allow sendmail to relay mail for virtual domain
echo “poplin.ru RELAY” >> /etc/mail/access
makemap hash /etc/mail/access < /etc/mail/access

9. make cyrusv2 to handle mail of virtual domain
echo "poplin.ru cyrusv2:/var/lib/imap/socket/lmtp" >> /etc/mail/mailertable
makemap hash /etc/mail/mailertable < /etc/mail/mailertable

10. now login and create mailbox for user:
cyradm -u cyrus@poplin.ru localhost
localhost>cm user/mit
localhost>

11. Now user mit@poplin.ru can receive emails with cyrus.

12. echo “smmapd cmd=”smmapd” listen=”/var/lib/imap/socket/smmapd” prefork=1″ >> /etc/cyrus.conf

Filed under Uncategorized |

Leave a Reply

Setting up cyrus imap + sendmail in OpenSUSE 11.4

Posted on November 5th, 2011

1. Packages
For SASL
cyrus-sasl-plain-2.1.23-15.1.x86_64
cyrus-sasl-saslauthd-2.1.23-15.2.x86_64
cyrus-sasl-devel-2.1.23-15.1.x86_64
cyrus-sasl-crammd5-2.1.23-15.1.x86_64
cyrus-sasl-2.1.23-15.1.x86_64
cyrus-sasl-digestmd5-2.1.23-15.1.x86_64

For IMAP
cyrus-imapd-2.3.16-16.21.1.x86_64

2. cyrus.conf
comment out pop,pop3s, leave imaps and imap only for localhost
imap cmd=”imapd” listen=”localhost:imap” prefork=0
imaps cmd=”imapd -s” listen=”imaps” prefork=0

3. imapd.conf
For auth directly from sasldb:
sasl_pwcheck_method: auxprop

Allow PLAIN mech
allowplaintext: yes

Virtual Domains
virtdomains: on
defaultdomain: glavstock.ru
unixhierarchysep: 1

Admin logins
admins: cyrus, cyrus@ecomstore.ru, cyrus@poplin.ru

4. create admin users
saslpasswd2 -c cyrus
saslpasswd2 -c cyrus@ecomstore.ru
saslpasswd2 -c cyrus@poplin.ru

5. create users in sasldb
saslpasswd2 -c mit@poplin.ru

6. Allow cyrus to read sasldb
chown cyrus:mail /etc/sasldb2

7. correct cyrusv2.m4 file for cyrus mailer
vi /usr/share/sendmail/mailer/cyrusv2.m4

S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r\n,

8. Allow sendmail to relay mail for virtual domain
echo “poplin.ru RELAY” >> /etc/mail/access
makemap hash /etc/mail/access < /etc/mail/access

9. make cyrusv2 to handle mail of virtual domain
echo "poplin.ru cyrusv2:/var/lib/imap/socket/lmtp" >> /etc/mail/mailertable
makemap hash /etc/mail/mailertable < /etc/mail/mailertable

10. now login and create mailbox for user:
cyradm -u cyrus@poplin.ru localhost
localhost>cm user/mit
localhost>

11. Now user mit@poplin.ru can receive emails with cyrus.

Filed under Uncategorized |

Leave a Reply

Setting up cyrus imap + sendmail in OpenSUSE 11.4

Posted on November 5th, 2011

1. Packages
For SASL
cyrus-sasl-plain-2.1.23-15.1.x86_64
cyrus-sasl-saslauthd-2.1.23-15.2.x86_64
cyrus-sasl-devel-2.1.23-15.1.x86_64
cyrus-sasl-crammd5-2.1.23-15.1.x86_64
cyrus-sasl-2.1.23-15.1.x86_64
cyrus-sasl-digestmd5-2.1.23-15.1.x86_64

For IMAP
cyrus-imapd-2.3.16-16.21.1.x86_64

2. cyrus.conf
comment out pop,pop3s, leave imaps and imap only for localhost
imap cmd=”imapd” listen=”localhost:imap” prefork=0
imaps cmd=”imapd -s” listen=”imaps” prefork=0

3. imapd.conf
For auth directly from sasldb:
sasl_pwcheck_method: auxprop

Allow PLAIN mech
allowplaintext: yes

Virtual Domains
virtdomains: on
defaultdomain: glavstock.ru
unixhierarchysep: 1

Admin logins
admins: cyrus, cyrus@ecomstore.ru, cyrus@poplin.ru

4. create admin users
saslpasswd2 -c cyrus
saslpasswd2 -c cyrus@ecomstore.ru
saslpasswd2 -c cyrus@poplin.ru

5. create users in sasldb
saslpasswd2 -c mit@poplin.ru

6. Allow cyrus to read sasldb
chown cyrus:mail /etc/sasldb2

7. correct cyrusv2.m4 file for cyrus mailer
vi /usr/share/sendmail/mailer/cyrusv2.m4

S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r\n,

8. Allow sendmail to relay mail for virtual domain
echo “poplin.ru RELAY” >> /etc/mail/access
makemap hash /etc/mail/access < /etc/mail/access

9. make cyrusv2 to handle mail of virtual domain
echo "poplin.ru cyrusv2:/var/lib/imap/socket/lmtp" >> /etc/mail/mailertable
makemap hash /etc/mail/mailertable < /etc/mail/mailertable

10. now login and create mailbox for user:
cyradm -u cyrus@poplin.ru localhost
localhost>cm user/mit
localhost>

11. Now user mit@poplin.ru can receive emails

Filed under Uncategorized |

Leave a Reply

Setting up cyrus imap + sendmail in OpenSUSE 11.4

Posted on November 5th, 2011

1. Packages
For SASL
cyrus-sasl-plain-2.1.23-15.1.x86_64
cyrus-sasl-saslauthd-2.1.23-15.2.x86_64
cyrus-sasl-devel-2.1.23-15.1.x86_64
cyrus-sasl-crammd5-2.1.23-15.1.x86_64
cyrus-sasl-2.1.23-15.1.x86_64
cyrus-sasl-digestmd5-2.1.23-15.1.x86_64

For IMAP
cyrus-imapd-2.3.16-16.21.1.x86_64

2. cyrus.conf
comment out pop,pop3s, leave imaps and imap only for localhost
imap cmd=”imapd” listen=”localhost:imap” prefork=0
imaps cmd=”imapd -s” listen=”imaps” prefork=0

3. imapd.conf
For auth directly from sasldb:
sasl_pwcheck_method: auxprop

Allow PLAIN mech
allowplaintext: yes

Virtual Domains
virtdomains: on
defaultdomain: glavstock.ru
unixhierarchysep: 1

Admin logins
admins: cyrus, cyrus@ecomstore.ru, cyrus@poplin.ru

4. create admin users
saslpasswd2 -c cyrus
saslpasswd2 -c cyrus@ecomstore.ru
saslpasswd2 -c cyrus@poplin.ru

5. create users in sasldb
saslpasswd2 -c mit@poplin.ru

6. Allow cyrus to read sasldb
chown cyrus:mail /etc/sasldb2

7. correct cyrusv2.m4 file for cyrus mailer
vi /usr/share/sendmail/mailer/cyrusv2.m4

S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r\n,

8. Allow sendmail to relay mail for virtual domain
echo “poplin.ru RELAY” >> /etc/mail/access
makemap hash /etc/mail/access < /etc/mail/access

9. make cyrusv2 to handle mail of virtual domain
echo "poplin.ru cyrusv2:/var/lib/imap/socket/lmtp" >> /etc/mail/mailertable
makemap hash /etc/mail/mailertable < /etc/mail/mailertable

Filed under Uncategorized |

Leave a Reply

Setting up cyrus imap + sendmail in OpenSUSE 11.4

Posted on November 5th, 2011

1. Packages
For SASL
cyrus-sasl-plain-2.1.23-15.1.x86_64
cyrus-sasl-saslauthd-2.1.23-15.2.x86_64
cyrus-sasl-devel-2.1.23-15.1.x86_64
cyrus-sasl-crammd5-2.1.23-15.1.x86_64
cyrus-sasl-2.1.23-15.1.x86_64
cyrus-sasl-digestmd5-2.1.23-15.1.x86_64

For IMAP
cyrus-imapd-2.3.16-16.21.1.x86_64

2. cyrus.conf
comment out pop,pop3s, leave imaps and imap only for localhost
imap cmd=”imapd” listen=”localhost:imap” prefork=0
imaps cmd=”imapd -s” listen=”imaps” prefork=0

3. imapd.conf
For auth directly from sasldb:
sasl_pwcheck_method: auxprop

Allow PLAIN mech
allowplaintext: yes

Virtual Domains
virtdomains: on
defaultdomain: glavstock.ru
unixhierarchysep: 1

Admin logins
admins: cyrus, cyrus@ecomstore.ru, cyrus@poplin.ru

4. create admin users
saslpasswd2 -c cyrus
saslpasswd2 -c cyrus@ecomstore.ru
saslpasswd2 -c cyrus@poplin.ru

5. create users in sasldb
saslpasswd2 -c mit@poplin.ru

6. Allow cyrus to read sasldb
chown cyrus:mail /etc/sasldb2

7. correct cyrusv2.m4 file for cyrus mailer
vi /usr/share/sendmail/mailer/cyrusv2.m4

S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r\n,

8. Allow sendmail to relay mail for virtual domain
echo “poplin.ru RELAY” >> /etc/mail/access
makemap hash /etc/mail/access < /etc/mail/access

Filed under Uncategorized |

Leave a Reply

Setting up cyrus imap + sendmail in OpenSUSE 11.4

Posted on November 5th, 2011

1. Packages
For SASL
cyrus-sasl-plain-2.1.23-15.1.x86_64
cyrus-sasl-saslauthd-2.1.23-15.2.x86_64
cyrus-sasl-devel-2.1.23-15.1.x86_64
cyrus-sasl-crammd5-2.1.23-15.1.x86_64
cyrus-sasl-2.1.23-15.1.x86_64
cyrus-sasl-digestmd5-2.1.23-15.1.x86_64

For IMAP
cyrus-imapd-2.3.16-16.21.1.x86_64

2. cyrus.conf
comment out pop,pop3s, leave imaps and imap only for localhost
imap cmd=”imapd” listen=”localhost:imap” prefork=0
imaps cmd=”imapd -s” listen=”imaps” prefork=0

3. imapd.conf
For auth directly from sasldb:
sasl_pwcheck_method: auxprop

Allow PLAIN mech
allowplaintext: yes

Virtual Domains
virtdomains: on
defaultdomain: glavstock.ru
unixhierarchysep: 1

Admin logins
admins: cyrus, cyrus@ecomstore.ru, cyrus@poplin.ru

4. create admin users
saslpasswd2 -c cyrus
saslpasswd2 -c cyrus@ecomstore.ru
saslpasswd2 -c cyrus@poplin.ru

5. create users in sasldb
saslpasswd2 -c mit@poplin.ru

6. Allow cyrus to read sasldb
chown cyrus:mail /etc/sasldb2

Filed under Uncategorized |

Leave a Reply

Setting up cyrus imap + sendmail in OpenSUSE 11.4

Posted on November 5th, 2011

1. Packages
For SASL
cyrus-sasl-plain-2.1.23-15.1.x86_64
cyrus-sasl-saslauthd-2.1.23-15.2.x86_64
cyrus-sasl-devel-2.1.23-15.1.x86_64
cyrus-sasl-crammd5-2.1.23-15.1.x86_64
cyrus-sasl-2.1.23-15.1.x86_64
cyrus-sasl-digestmd5-2.1.23-15.1.x86_64

For IMAP
cyrus-imapd-2.3.16-16.21.1.x86_64

2. cyrus.conf
comment out pop,pop3s, leave imaps and imap only for localhost
imap cmd=”imapd” listen=”localhost:imap” prefork=0
imaps cmd=”imapd -s” listen=”imaps” prefork=0

3. imapd.conf
For auth directly from sasldb:
sasl_pwcheck_method: auxprop

Allow PLAIN mech
allowplaintext: yes

Virtual Domains
virtdomains: on
defaultdomain: glavstock.ru
unixhierarchysep: 1

Admin logins
admins: cyrus, cyrus@ecomstore.ru, cyrus@poplin.ru

Filed under Uncategorized |

Leave a Reply

Setting up cyrus imap + sendmail in OpenSUSE 11.4

Posted on November 5th, 2011

1. Packages
For SASL
cyrus-sasl-plain-2.1.23-15.1.x86_64
cyrus-sasl-saslauthd-2.1.23-15.2.x86_64
cyrus-sasl-devel-2.1.23-15.1.x86_64
cyrus-sasl-crammd5-2.1.23-15.1.x86_64
cyrus-sasl-2.1.23-15.1.x86_64
cyrus-sasl-digestmd5-2.1.23-15.1.x86_64

For IMAP
cyrus-imapd-2.3.16-16.21.1.x86_64

2. cyrus.conf
comment out pop,pop3s, leave imaps and imap only for localhost
imap cmd=”imapd” listen=”localhost:imap” prefork=0
imaps cmd=”imapd -s” listen=”imaps” prefork=0

3. imapd.conf
For auth directly from sasldb:
sasl_pwcheck_method: auxprop

Allow PLAIN mech
allowplaintext: yes

Virtual Domains
virtdomains: on
defaultdomain: glavstock.ru
unixhierarchysep: 1

Filed under Uncategorized |

Leave a Reply

Setting up cyrus imap + sendmail in OpenSUSE 11.4

Posted on November 5th, 2011

1. Packages
For SASL
cyrus-sasl-plain-2.1.23-15.1.x86_64
cyrus-sasl-saslauthd-2.1.23-15.2.x86_64
cyrus-sasl-devel-2.1.23-15.1.x86_64
cyrus-sasl-crammd5-2.1.23-15.1.x86_64
cyrus-sasl-2.1.23-15.1.x86_64
cyrus-sasl-digestmd5-2.1.23-15.1.x86_64

For IMAP
cyrus-imapd-2.3.16-16.21.1.x86_64

2. cyrus.conf
comment out pop,pop3s, leave imaps and imap only for localhost
imap cmd=”imapd” listen=”localhost:imap” prefork=0
imaps cmd=”imapd -s” listen=”imaps” prefork=0

3. imapd.conf
For auth directly from sasldb:
sasl_pwcheck_method: auxprop

Allow PLAIN mech
allowplaintext: yes

Virtual Domains
virtdomains: on
defaultdomain: glavstock.ru
unixhierarchysep: 1

Filed under Uncategorized |

Leave a Reply

Private: Setting up cyrus imap + sendmail in OpenSUSE 11.4

Posted on November 5th, 2011

1. Packages
For SASL
cyrus-sasl-plain-2.1.23-15.1.x86_64
cyrus-sasl-saslauthd-2.1.23-15.2.x86_64
cyrus-sasl-devel-2.1.23-15.1.x86_64
cyrus-sasl-crammd5-2.1.23-15.1.x86_64
cyrus-sasl-2.1.23-15.1.x86_64
cyrus-sasl-digestmd5-2.1.23-15.1.x86_64

For IMAP
cyrus-imapd-2.3.16-16.21.1.x86_64

2. cyrus.conf
comment out pop,pop3s, leave imaps and imap only for localhost
imap cmd=”imapd” listen=”localhost:imap” prefork=0
imaps cmd=”imapd -s” listen=”imaps” prefork=0

3. imapd.conf
For auth directly from sasldb:
sasl_pwcheck_method: auxprop

Allow PLAIN mech
allowplaintext: yes

Virtual Domains
virtdomains: on
defaultdomain: glavstock.ru
unixhierarchysep: 1

Admin logins
admins: cyrus, cyrus@ecomstore.ru, cyrus@poplin.ru

4. create admin users
saslpasswd2 -c cyrus
saslpasswd2 -c cyrus@ecomstore.ru
saslpasswd2 -c cyrus@poplin.ru

5. create users in sasldb
saslpasswd2 -c mit@poplin.ru

6. Allow cyrus to read sasldb
chown cyrus:mail /etc/sasldb2

7. correct cyrusv2.m4 file for cyrus mailer
vi /usr/share/sendmail/mailer/cyrusv2.m4

S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r\n,

8. Allow sendmail to relay mail for virtual domain
echo “poplin.ru RELAY” >> /etc/mail/access
makemap hash /etc/mail/access < /etc/mail/access

9. make cyrusv2 to handle mail of virtual domain
echo "poplin.ru cyrusv2:/var/lib/imap/socket/lmtp" >> /etc/mail/mailertable
makemap hash /etc/mail/mailertable < /etc/mail/mailertable

10. now login and create mailbox for user:
cyradm -u cyrus@poplin.ru localhost
localhost>cm user/mit
localhost>

11. Now user mit@poplin.ru can receive emails with cyrus.

12. echo “smmapd cmd=”smmapd” listen=”/var/lib/imap/socket/smmapd” prefork=1″ >> /etc/cyrus.conf

13. define(`confDOUBLE_BOUNCE_ADDRESS’, `’)dnl
to supress postmaster notify of relayed mail ‘user uknown’ errors

Filed under imap |

Leave a Reply

Setting up cyrus imap + sendmail in OpenSUSE 11.4

Posted on November 5th, 2011

1. Packages
For SASL
cyrus-sasl-plain-2.1.23-15.1.x86_64
cyrus-sasl-saslauthd-2.1.23-15.2.x86_64
cyrus-sasl-devel-2.1.23-15.1.x86_64
cyrus-sasl-crammd5-2.1.23-15.1.x86_64
cyrus-sasl-2.1.23-15.1.x86_64
cyrus-sasl-digestmd5-2.1.23-15.1.x86_64

For IMAP
cyrus-imapd-2.3.16-16.21.1.x86_64

Filed under Uncategorized |

Leave a Reply

Setting up cyrus imap + sendmail in OpenSUSE 11.4

Posted on November 5th, 2011

1.

Filed under Uncategorized |

Leave a Reply

Private: cyradm deletemailbox: Permission denied

Posted on November 5th, 2011

localhost> dm user/mit@ru
deletemailbox: Permission denied
localhost> setaclmailbox user/mit@ru cyrus lrswipcda
localhost> dm user/mit@ru
localhost>

Filed under imap |

Leave a Reply

cyradm deletemailbox: Permission denied

Posted on November 5th, 2011

localhost> dm user/mit@ru
deletemailbox: Permission denied
localhost> setaclmailbox user/mit@ru cyrus lrswipcda
localhost> dm user/mit@ru
localhost>

Filed under Uncategorized |

Leave a Reply

Private:

Posted on October 24th, 2011

105 zypper in libnetfilter_conntrack3
106 zypper in libnetfilter_conntrack-devel
114 zypper in iptables-devel
133 zypper in conntrack-tools
168 zypper in xtables-addons

#!/bin/sh
#
# check: cat /proc/net/xt_recent/DEFAULT
#

iptables -F
iptables -I INPUT -p tcp –dport 80 -i eth0 -m state –state NEW -m recent –set
iptables -I INPUT -p tcp –dport 80 -i eth0 -m state –state NEW -m recent –update –seconds 30 -
-hitcount 7 -j TARPIT

Filed under Uncategorized |

Leave a Reply

Moving Solaris zone to another host using VxVM

Posted on September 22nd, 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 Uncategorized |

Leave a Reply

Moving Solaris zone to another host using VxVM

Posted on September 20th, 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 # 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 Uncategorized |

Leave a Reply

Moving Solaris zone to another host using VxVM

Posted on September 20th, 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 # 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 Uncategorized |

Leave a Reply

Moving Solaris zone to another host using VxVM

Posted on September 20th, 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 # 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

Filed under Uncategorized |

Leave a Reply

Moving Solaris zone to another host using VxVM

Posted on September 20th, 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 # 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/ni5bip
root@ni5s3:/[524]# zonecfg -z ni5bip
ni5bip: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:ni5bip> create -a /zones/ni5bip
zonecfg:ni5bip> exit
root@ni5s3:/[525]# zoneadm -z ni5bip attach -u

Filed under Uncategorized |

Leave a Reply

Moving Solaris zone to another host using VxVM

Posted on September 20th, 2011

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

On tht source host:

host1 # zoneadm -z twilight halt
host1 # umount /zones/twilight
host1 # vxdg deport twilightdg

On the destination host:

host2 # vxdg import twilightdg
host2 # vxvol -g twilight startall

root@ni5s3:/[523]# mount /zones/ni5bip
root@ni5s3:/[524]# zonecfg -z ni5bip
ni5bip: No such zone configured
Use ‘create’ to begin configuring a new zone.
zonecfg:ni5bip> create -a /zones/ni5bip
zonecfg:ni5bip> exit
root@ni5s3:/[525]# zoneadm -z ni5bip attach -u

Filed under Uncategorized |

Leave a Reply

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 |

One Response to “Disabling mpxio in Solaris 10”

  1. Korolev Igor Says:
    September 26th, 2011 at 12:57 am

    It is better to use “stmsboot -D fp -d” command.

Leave a Reply

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 Uncategorized |

Leave a Reply

Disabling mpxio

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 Uncategorized |

Leave a Reply

Check sendmail compile-time options

Posted on September 15th, 2011

You’ve got sendmail installation and want to verify if it was compiled with STARTTLS.

 sendmail -bt -d0.8 < /dev/null

Filed under Sendmail |

Leave a Reply

Check sendmail compile-time options

Posted on September 15th, 2011

You’ve got sendmail installation and want to verify if it was compiled with STARTTLS.

 sendmail -bt -d0.8 < /dev/null

Filed under Uncategorized |

Leave a Reply

FreeBSD: How to install single port without installing complete ports tree

Posted on September 15th, 2011

For example you’ve got VPS server with limited disk space and you need to install something from ports collection but your do not want to hold all FreeBSD ports tree on disk. If so, you use porteasy to install only port you need.

# pkg_add -r porteasy
# export  CVSROOT=:pserver:anoncvs@anoncvs.fr.FreeBSD.org:/home/ncvs
# cvs login
# porteasy -uv security/cyrus-sasl2-saslauthd

Filed under FreeBSD |

Leave a Reply

FreeBSD: How to install single port without installing complete ports tree

Posted on September 15th, 2011

For example you’ve got VPS server with limited disk space and you need to install something from ports collection but your do not want to hold all FreeBSD ports tree on disk. If so, you use porteasy to install only port you need.

# pkg_add -r porteasy
# export  CVSROOT=:pserver:anoncvs@anoncvs.fr.FreeBSD.org:/home/ncvs
# cvs login
# porteasy -uv mail/sendmail-starttls

Filed under Uncategorized |

Leave a Reply

FreeBSD: How to install single port without installing complete ports tree

Posted on September 15th, 2011

For example you’ve got VPS server with limited disk space and you need to install something from ports collection but your do not want to hold all FreeBSD ports tree on disk. If so, you use porteasy to install only port you need.

pkg_
 # export  CVSROOT=:pserver:anoncvs@anoncvs.fr.FreeBSD.org:/home/ncvs
# cvs login
# porteasy -uv mail/sendmail-starttls

Filed under Uncategorized |

Leave a Reply

Private: Setting https service on Oracle Mx000 series servers

Posted on September 5th, 2011

XSCF> sethttps -c selfsign JP Kanagawa Kawasaki Example development scf-host abc@example.com
CA key and CA cert already exist. Do you still wish to update? [y|n] :y
Enter passphrase:
Verifying – Enter passphrase:
XSCF> sethttps -c enable
Continue? [y|n] :y
Please reset the XSCF by rebootxscf to apply the https settings.
XSCF> rebootxscf
The XSCF will be reset. Continue? [y|n] :y
XSCF>

Filed under Uncategorized |

Leave a Reply

Setting https service on Oracle Mx000 series servers

Posted on September 5th, 2011

Filed under Uncategorized |

Leave a Reply

Creating DCO logs for Veritas volume

Posted on September 5th, 2011

root@ni5nrp2:/usr/openv/netbackup/bin[635]# vxprint -htf -g oradg -v mirrlogA
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
EX NAME ASSOC VC PERMS MODE STATE

v mirrlogA – ENABLED ACTIVE 10240000 SELECT – fsgen
pl mirrlogA-03 mirrlogA ENABLED ACTIVE 10240000 CONCAT – RW
sd oradg_0_53-03 mirrlogA-03 oradg_0_53 664509696 10240000 0 AMS2500_DC1_53 ENA
pl mirrlogA-04 mirrlogA ENABLED ACTIVE 10240000 CONCAT – RW
sd oradg_1_53-03 mirrlogA-04 oradg_1_53 664509696 10240000 0 AMS2500_DC2_53 ENA
You have new mail in /var/mail//root
root@ni5nrp2:/usr/openv/netbackup/bin[636]# vxprint -g oradg -m mirrlogA | grep fastresync
fastresync=on
root@ni5nrp2:/usr/openv/netbackup/bin[637]# vxvol -g oradg set fastresync=off mirrlogA
root@ni5nrp2:/usr/openv/netbackup/bin[638]# vxassist -g oradg addlog mirrlogA logtype=dco
root@ni5nrp2:/usr/openv/netbackup/bin[639]# vxprint -htf -g oradg -v mirrlogA
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
EX NAME ASSOC VC PERMS MODE STATE

v mirrlogA – ENABLED ACTIVE 10240000 SELECT – fsgen
pl mirrlogA-03 mirrlogA ENABLED ACTIVE 10240000 CONCAT – RW
sd oradg_0_53-03 mirrlogA-03 oradg_0_53 664509696 10240000 0 AMS2500_DC1_53 ENA
pl mirrlogA-04 mirrlogA ENABLED ACTIVE 10240000 CONCAT – RW
sd oradg_1_53-03 mirrlogA-04 oradg_1_53 664509696 10240000 0 AMS2500_DC2_53 ENA
dc mirrlogA_dco mirrlogA mirrlogA_dcl
v mirrlogA_dcl – ENABLED ACTIVE 144 SELECT – gen
pl mirrlogA_dcl-01 mirrlogA_dcl ENABLED ACTIVE 144 CONCAT – RW
sd oradg_0_53-06 mirrlogA_dcl-01 oradg_0_53 894704896 144 0 AMS2500_DC1_53 ENA
pl mirrlogA_dcl-02 mirrlogA_dcl ENABLED ACTIVE 144 CONCAT – RW
sd oradg_1_53-06 mirrlogA_dcl-02 oradg_1_53 894704896 144 0 AMS2500_DC2_53 ENA
root@ni5nrp2:/usr/openv/netbackup/bin[640]# vxprint -g oradg -htf -v mirrlogA_dco
VxVM vxprint ERROR V-5-1-2716 Record mirrlogA_dco found but object type not selected
root@ni5nrp2:/usr/openv/netbackup/bin[641]# vxprint -g oradg -v mirrlogA_dco
VxVM vxprint ERROR V-5-1-2716 Record mirrlogA_dco found but object type not selected

vxvol -g oradg set fastresync=on mirrlogA

for vol in `cat dco_vollist.txt`
do
echo creating DCO for $vol
vxvol -g oradg set fastresync=off $vol
vxassist -g oradg addlog $vol logtype=dco
vxvol -g oradg set fastresync=on $vol
done

Filed under Uncategorized |

Leave a Reply

Creating DCO logs for Veritas volume

Posted on September 5th, 2011

root@ni5nrp2:/usr/openv/netbackup/bin[635]# vxprint -htf -g oradg -v mirrlogA
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
EX NAME ASSOC VC PERMS MODE STATE

v mirrlogA – ENABLED ACTIVE 10240000 SELECT – fsgen
pl mirrlogA-03 mirrlogA ENABLED ACTIVE 10240000 CONCAT – RW
sd oradg_0_53-03 mirrlogA-03 oradg_0_53 664509696 10240000 0 AMS2500_DC1_53 ENA
pl mirrlogA-04 mirrlogA ENABLED ACTIVE 10240000 CONCAT – RW
sd oradg_1_53-03 mirrlogA-04 oradg_1_53 664509696 10240000 0 AMS2500_DC2_53 ENA
You have new mail in /var/mail//root
root@ni5nrp2:/usr/openv/netbackup/bin[636]# vxprint -g oradg -m mirrlogA | grep fastresync
fastresync=on
root@ni5nrp2:/usr/openv/netbackup/bin[637]# vxvol -g oradg set fastresync=off mirrlogA
root@ni5nrp2:/usr/openv/netbackup/bin[638]# vxassist -g oradg addlog mirrlogA logtype=dco
root@ni5nrp2:/usr/openv/netbackup/bin[639]# vxprint -htf -g oradg -v mirrlogA
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
EX NAME ASSOC VC PERMS MODE STATE

v mirrlogA – ENABLED ACTIVE 10240000 SELECT – fsgen
pl mirrlogA-03 mirrlogA ENABLED ACTIVE 10240000 CONCAT – RW
sd oradg_0_53-03 mirrlogA-03 oradg_0_53 664509696 10240000 0 AMS2500_DC1_53 ENA
pl mirrlogA-04 mirrlogA ENABLED ACTIVE 10240000 CONCAT – RW
sd oradg_1_53-03 mirrlogA-04 oradg_1_53 664509696 10240000 0 AMS2500_DC2_53 ENA
dc mirrlogA_dco mirrlogA mirrlogA_dcl
v mirrlogA_dcl – ENABLED ACTIVE 144 SELECT – gen
pl mirrlogA_dcl-01 mirrlogA_dcl ENABLED ACTIVE 144 CONCAT – RW
sd oradg_0_53-06 mirrlogA_dcl-01 oradg_0_53 894704896 144 0 AMS2500_DC1_53 ENA
pl mirrlogA_dcl-02 mirrlogA_dcl ENABLED ACTIVE 144 CONCAT – RW
sd oradg_1_53-06 mirrlogA_dcl-02 oradg_1_53 894704896 144 0 AMS2500_DC2_53 ENA
root@ni5nrp2:/usr/openv/netbackup/bin[640]# vxprint -g oradg -htf -v mirrlogA_dco
VxVM vxprint ERROR V-5-1-2716 Record mirrlogA_dco found but object type not selected
root@ni5nrp2:/usr/openv/netbackup/bin[641]# vxprint -g oradg -v mirrlogA_dco
VxVM vxprint ERROR V-5-1-2716 Record mirrlogA_dco found but object type not selected

vxvol -g oradg set fastresync=on mirrlogA

Filed under Uncategorized |

Leave a Reply

Creating DCO logs for Veritas volume

Posted on September 5th, 2011

root@ni5nrp2:/usr/openv/netbackup/bin[635]# vxprint -htf -g oradg -v mirrlogA
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
EX NAME ASSOC VC PERMS MODE STATE

v mirrlogA – ENABLED ACTIVE 10240000 SELECT – fsgen
pl mirrlogA-03 mirrlogA ENABLED ACTIVE 10240000 CONCAT – RW
sd oradg_0_53-03 mirrlogA-03 oradg_0_53 664509696 10240000 0 AMS2500_DC1_53 ENA
pl mirrlogA-04 mirrlogA ENABLED ACTIVE 10240000 CONCAT – RW
sd oradg_1_53-03 mirrlogA-04 oradg_1_53 664509696 10240000 0 AMS2500_DC2_53 ENA
You have new mail in /var/mail//root
root@ni5nrp2:/usr/openv/netbackup/bin[636]# vxprint -g oradg -m mirrlogA | grep fastresync
fastresync=on
root@ni5nrp2:/usr/openv/netbackup/bin[637]# vxvol -g oradg set fastresync=off mirrlogA
root@ni5nrp2:/usr/openv/netbackup/bin[638]# vxassist -g oradg addlog mirrlogA logtype=dco
root@ni5nrp2:/usr/openv/netbackup/bin[639]# vxprint -htf -g oradg -v mirrlogA
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
EX NAME ASSOC VC PERMS MODE STATE

v mirrlogA – ENABLED ACTIVE 10240000 SELECT – fsgen
pl mirrlogA-03 mirrlogA ENABLED ACTIVE 10240000 CONCAT – RW
sd oradg_0_53-03 mirrlogA-03 oradg_0_53 664509696 10240000 0 AMS2500_DC1_53 ENA
pl mirrlogA-04 mirrlogA ENABLED ACTIVE 10240000 CONCAT – RW
sd oradg_1_53-03 mirrlogA-04 oradg_1_53 664509696 10240000 0 AMS2500_DC2_53 ENA
dc mirrlogA_dco mirrlogA mirrlogA_dcl
v mirrlogA_dcl – ENABLED ACTIVE 144 SELECT – gen
pl mirrlogA_dcl-01 mirrlogA_dcl ENABLED ACTIVE 144 CONCAT – RW
sd oradg_0_53-06 mirrlogA_dcl-01 oradg_0_53 894704896 144 0 AMS2500_DC1_53 ENA
pl mirrlogA_dcl-02 mirrlogA_dcl ENABLED ACTIVE 144 CONCAT – RW
sd oradg_1_53-06 mirrlogA_dcl-02 oradg_1_53 894704896 144 0 AMS2500_DC2_53 ENA
root@ni5nrp2:/usr/openv/netbackup/bin[640]# vxprint -g oradg -htf -v mirrlogA_dco
VxVM vxprint ERROR V-5-1-2716 Record mirrlogA_dco found but object type not selected
root@ni5nrp2:/usr/openv/netbackup/bin[641]# vxprint -g oradg -v mirrlogA_dco
VxVM vxprint ERROR V-5-1-2716 Record mirrlogA_dco found but object type not selected

Filed under Uncategorized |

Leave a Reply

Private: Creating DCO logs for Veritas volume

Posted on September 5th, 2011

root@ni5nrp2:/usr/openv/netbackup/bin[635]# vxprint -htf -g oradg -v mirrlogA
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
EX NAME ASSOC VC PERMS MODE STATE

v mirrlogA – ENABLED ACTIVE 10240000 SELECT – fsgen
pl mirrlogA-03 mirrlogA ENABLED ACTIVE 10240000 CONCAT – RW
sd oradg_0_53-03 mirrlogA-03 oradg_0_53 664509696 10240000 0 AMS2500_DC1_53 ENA
pl mirrlogA-04 mirrlogA ENABLED ACTIVE 10240000 CONCAT – RW
sd oradg_1_53-03 mirrlogA-04 oradg_1_53 664509696 10240000 0 AMS2500_DC2_53 ENA
You have new mail in /var/mail//root
root@ni5nrp2:/usr/openv/netbackup/bin[636]# vxprint -g oradg -m mirrlogA | grep fastresync
fastresync=on
root@ni5nrp2:/usr/openv/netbackup/bin[637]# vxvol -g oradg set fastresync=off mirrlogA
root@ni5nrp2:/usr/openv/netbackup/bin[638]# vxassist -g oradg addlog mirrlogA logtype=dco
root@ni5nrp2:/usr/openv/netbackup/bin[639]# vxprint -htf -g oradg -v mirrlogA
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
EX NAME ASSOC VC PERMS MODE STATE

v mirrlogA – ENABLED ACTIVE 10240000 SELECT – fsgen
pl mirrlogA-03 mirrlogA ENABLED ACTIVE 10240000 CONCAT – RW
sd oradg_0_53-03 mirrlogA-03 oradg_0_53 664509696 10240000 0 AMS2500_DC1_53 ENA
pl mirrlogA-04 mirrlogA ENABLED ACTIVE 10240000 CONCAT – RW
sd oradg_1_53-03 mirrlogA-04 oradg_1_53 664509696 10240000 0 AMS2500_DC2_53 ENA
dc mirrlogA_dco mirrlogA mirrlogA_dcl
v mirrlogA_dcl – ENABLED ACTIVE 144 SELECT – gen
pl mirrlogA_dcl-01 mirrlogA_dcl ENABLED ACTIVE 144 CONCAT – RW
sd oradg_0_53-06 mirrlogA_dcl-01 oradg_0_53 894704896 144 0 AMS2500_DC1_53 ENA
pl mirrlogA_dcl-02 mirrlogA_dcl ENABLED ACTIVE 144 CONCAT – RW
sd oradg_1_53-06 mirrlogA_dcl-02 oradg_1_53 894704896 144 0 AMS2500_DC2_53 ENA
root@ni5nrp2:/usr/openv/netbackup/bin[640]# vxprint -g oradg -htf -v mirrlogA_dco
VxVM vxprint ERROR V-5-1-2716 Record mirrlogA_dco found but object type not selected
root@ni5nrp2:/usr/openv/netbackup/bin[641]# vxprint -g oradg -v mirrlogA_dco
VxVM vxprint ERROR V-5-1-2716 Record mirrlogA_dco found but object type not selected

vxvol -g oradg set fastresync=on mirrlogA

for vol in `cat dco_vollist.txt`
do
echo creating DCO for $vol
vxvol -g oradg set fastresync=off $vol
vxassist -g oradg addlog $vol logtype=dco
vxvol -g oradg set fastresync=on $vol
done

DCO is using for snapshots, for mirrors use DRL logs

Filed under Uncategorized |

Leave a Reply

Creating DCO logs for Veritas volume

Posted on September 5th, 2011

root@ni5nrp2:/usr/openv/netbackup/bin[635]# vxprint -htf -g oradg -v mirrlogA
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
EX NAME ASSOC VC PERMS MODE STATE

v mirrlogA – ENABLED ACTIVE 10240000 SELECT – fsgen
pl mirrlogA-03 mirrlogA ENABLED ACTIVE 10240000 CONCAT – RW
sd oradg_0_53-03 mirrlogA-03 oradg_0_53 664509696 10240000 0 AMS2500_DC1_53 ENA
pl mirrlogA-04 mirrlogA ENABLED ACTIVE 10240000 CONCAT – RW
sd oradg_1_53-03 mirrlogA-04 oradg_1_53 664509696 10240000 0 AMS2500_DC2_53 ENA
You have new mail in /var/mail//root
root@ni5nrp2:/usr/openv/netbackup/bin[636]# vxprint -g oradg -m mirrlogA | grep fastresync
fastresync=on
root@ni5nrp2:/usr/openv/netbackup/bin[637]# vxvol -g oradg set fastresync=off mirrlogA
root@ni5nrp2:/usr/openv/netbackup/bin[638]# vxassist -g oradg addlog mirrlogA logtype=dco
root@ni5nrp2:/usr/openv/netbackup/bin[639]# vxprint -htf -g oradg -v mirrlogA
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
EX NAME ASSOC VC PERMS MODE STATE

v mirrlogA – ENABLED ACTIVE 10240000 SELECT – fsgen
pl mirrlogA-03 mirrlogA ENABLED ACTIVE 10240000 CONCAT – RW
sd oradg_0_53-03 mirrlogA-03 oradg_0_53 664509696 10240000 0 AMS2500_DC1_53 ENA
pl mirrlogA-04 mirrlogA ENABLED ACTIVE 10240000 CONCAT – RW
sd oradg_1_53-03 mirrlogA-04 oradg_1_53 664509696 10240000 0 AMS2500_DC2_53 ENA
dc mirrlogA_dco mirrlogA mirrlogA_dcl
v mirrlogA_dcl – ENABLED ACTIVE 144 SELECT – gen
pl mirrlogA_dcl-01 mirrlogA_dcl ENABLED ACTIVE 144 CONCAT – RW
sd oradg_0_53-06 mirrlogA_dcl-01 oradg_0_53 894704896 144 0 AMS2500_DC1_53 ENA
pl mirrlogA_dcl-02 mirrlogA_dcl ENABLED ACTIVE 144 CONCAT – RW
sd oradg_1_53-06 mirrlogA_dcl-02 oradg_1_53 894704896 144 0 AMS2500_DC2_53 ENA
root@ni5nrp2:/usr/openv/netbackup/bin[640]# vxprint -g oradg -htf -v mirrlogA_dco
VxVM vxprint ERROR V-5-1-2716 Record mirrlogA_dco found but object type not selected
root@ni5nrp2:/usr/openv/netbackup/bin[641]# vxprint -g oradg -v mirrlogA_dco
VxVM vxprint ERROR V-5-1-2716 Record mirrlogA_dco found but object type not selected

Filed under Uncategorized |

Leave a Reply

Creating DCO logs for Veritas volume

Posted on September 5th, 2011

Filed under Uncategorized |

Leave a Reply

Private: DIMM faults and Solaris 10 behaviour

Posted on September 5th, 2011

dmesg:
Aug 20 03:44:46 ni5s3 fmd: [ID 377184 daemon.error] SUNW-MSG-ID: SUN4U-8007-KY, TYPE: Fault, VER:
1, SEVERITY: Major
Aug 20 03:44:46 ni5s3 EVENT-TIME: Sat Aug 20 03:44:46 MSD 2011
Aug 20 03:44:46 ni5s3 PLATFORM: SUNW,Sun-Fire, CSN: -, HOSTNAME: ni5s3
Aug 20 03:44:46 ni5s3 SOURCE: cpumem-diagnosis, REV: 1.7
Aug 20 03:44:46 ni5s3 EVENT-ID: d3e6988b-4801-42d8-d3e2-ea8d130b6591
Aug 20 03:44:46 ni5s3 DESC: The number of correctable errors associated with this memory module ha
s exceeded acceptable levels.
Aug 20 03:44:46 ni5s3 Refer to http://sun.com/msg/SUN4U-8007-KY for more information.
Aug 20 03:44:46 ni5s3 AUTO-RESPONSE: Pages of memory associated with this memory module have been removed from service, up to a limit which has now been reached.
Aug 20 03:44:46 ni5s3 IMPACT: Total system memory capacity has been reduced.
Aug 20 03:44:46 ni5s3 REC-ACTION: Schedule a repair procedure to replace the DIMM. Use fmadm faulty to identify the DIMM to replace.

root@ni5s3:/root[741]# fmadm faulty
————— ———————————— ————– ———
TIME EVENT-ID MSG-ID SEVERITY
————— ———————————— ————– ———
Aug 20 03:44:46 d3e6988b-4801-42d8-d3e2-ea8d130b6591 SUN4U-8007-KY Major

Host : ni5s3
Platform : SUNW,Sun-Fire Chassis_id :
Product_sn :

Fault class : fault.memory.dimm-page-retires-excessive 95%
Affects : mem:///unum=/N0/SB3/P2/B0/D1,J15400
faulted but still in service
FRU : mem:///unum=/N0/SB3/P2/B0/D1,J15400 95%
faulty
Serial ID. : 5017386293678

Description : The number of correctable errors associated with this memory
module has exceeded acceptable levels.
Refer to http://sun.com/msg/SUN4U-8007-KY for more information.

Response : Pages of memory associated with this memory module have been
removed from service, up to a limit which has now been reached.

Impact : Total system memory capacity has been reduced.

Action : Schedule a repair procedure to replace the DIMM. Use fmadm faulty
to identify the DIMM to replace.

root@ni5s3:/root[742]#

Filed under Uncategorized |

Leave a Reply

DIMM faults and Solaris 10 behaviour

Posted on September 5th, 2011

dmesg:
Aug 20 03:44:46 ni5s3 fmd: [ID 377184 daemon.error] SUNW-MSG-ID: SUN4U-8007-KY, TYPE: Fault, VER:
1, SEVERITY: Major
Aug 20 03:44:46 ni5s3 EVENT-TIME: Sat Aug 20 03:44:46 MSD 2011
Aug 20 03:44:46 ni5s3 PLATFORM: SUNW,Sun-Fire, CSN: -, HOSTNAME: ni5s3
Aug 20 03:44:46 ni5s3 SOURCE: cpumem-diagnosis, REV: 1.7
Aug 20 03:44:46 ni5s3 EVENT-ID: d3e6988b-4801-42d8-d3e2-ea8d130b6591
Aug 20 03:44:46 ni5s3 DESC: The number of correctable errors associated with this memory module ha
s exceeded acceptable levels.
Aug 20 03:44:46 ni5s3 Refer to http://sun.com/msg/SUN4U-8007-KY for more information.
Aug 20 03:44:46 ni5s3 AUTO-RESPONSE: Pages of memory associated with this memory module have been removed from service, up to a limit which has now been reached.
Aug 20 03:44:46 ni5s3 IMPACT: Total system memory capacity has been reduced.
Aug 20 03:44:46 ni5s3 REC-ACTION: Schedule a repair procedure to replace the DIMM. Use fmadm faulty to identify the DIMM to replace.

Filed under Uncategorized |

Leave a Reply

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 |

Leave a Reply

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 “twilight”. Zone root and all filesystems reside on separate Veritas disk group twilightdg.

On tht source host:

host1 # zoneadm -z twilight halt
host1 # umount /zones/twilight
host1 # vxdg deport twilightdg

On the destination host:

host2 # vxdg import twilightdg
host2 # vxvol -g twilight

Filed under Uncategorized |

Leave a Reply

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 “twilight”. Zone root and all filesystems reside on separate Veritas disk group twilightdg.

On tht source host:

host1 # zoneadm -z twilight halt
host1 # umount /zones/twilight
host1 # vxdg deport twilightdg

On the destination host:

host2 # vxdg import twilightdg
host2 # vxvol -g twilight

Filed under Uncategorized |

Leave a Reply

Using VEA with Veritas SF 5.x

Posted on August 16th, 2011

VEA (Veritas Enterprise Administrator) no longer installed by default with Storage Foundation 5.1. When trying to run vea the message is displayed

VEA GUI is no longer packaged. Symantec recommends use of the SFM Console 
to manage, monitor and report on multi-host environments. You can download 
this utility at no charge from http://go.symantec.com/vom. If you wish to 
continue using VEA GUI, it can be downloaded from the same web site.

You should:
1. Download VEA manually, at the time of the post file name was VRTSobgui-3.4.15.0_SolSparc.tar.gz and install package VRTSobgui.
2. Enable service to connect to

# svcadm enable vxsvc

Filed under Veritas SF |

Leave a Reply

Using VEA with Veritas SF 5.x

Posted on August 16th, 2011

VEA (Veritas Enterprise Administrator) no longer installed by default with Storage Foundation 5.1. When trying to run vea the message is displayed

VEA GUI is no longer packaged. Symantec recommends use of the SFM Console
to manage, monitor and report on multi-host environments. You can download
this utility at no charge from http://go.symantec.com/vom. If you wish to
continue using VEA GUI, it can be downloaded from the same web site.

You should:
1. Download VEA manually, at the time of the post file name was VRTSobgui-3.4.15.0_SolSparc.tar.gz and install package VRTSobgui.
2. Enable service to connect to

# svcadm enable vxsvc



Filed under Uncategorized |

Leave a Reply

Using VEA with Veritas SF 5.x

Posted on August 16th, 2011

VEA (Veritas Enterprise Administrator) no longer installed by default with Storage Foundation 5.1. When trying to run vea the message is displayed

VEA GUI is no longer packaged. Symantec recommends use of the SFM Console
to manage, monitor and report on multi-host environments. You can download
this utility at no charge from http://go.symantec.com/vom. If you wish to
continue using VEA GUI, it can be downloaded from the same web site.

You should:
1. Download VEA manually, at the time of the post file name was VRTSobgui-3.4.15.0_SolSparc.tar.gz and install package VRTSobgui.
2. Enable

Filed under Uncategorized |

Leave a Reply

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.

Filed under Uncategorized |

Leave a Reply

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 |

Leave a Reply

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 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.

Filed under Uncategorized |

Leave a Reply

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 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.

Filed under Uncategorized |

Leave a Reply

Removing I/O boards out of the Sun Fire 6800 server

Posted on July 19th, 2011

1.
root@ni5nrp2 # grep \”ce\” /etc/path_to_inst
“/ssm@0,0/pci@18,700000/pci@1/network@0″ 0 “ce”
“/ssm@0,0/pci@19,700000/pci@3/network@0″ 2 “ce”
“/ssm@0,0/pci@19,700000/pci@3/network@1″ 3 “ce”
“/ssm@0,0/pci@19,700000/network@2″ 1 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@0″ 8 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@1″ 9 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@2″ 10 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@3″ 11 “ce”
“/ssm@0,0/pci@19,600000/pci@2/network@0″ 12 “ce”
“/ssm@0,0/pci@19,600000/pci@2/network@1″ 13 “ce”
“/ssm@0,0/pci@1a,700000/pci@1/network@0″ 4 “ce”
“/ssm@0,0/pci@1b,700000/pci@3/network@0″ 6 “ce”
“/ssm@0,0/pci@1b,700000/pci@3/network@1″ 7 “ce”
“/ssm@0,0/pci@1b,700000/network@2″ 5 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@0″ 14 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@1″ 15 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@2″ 16 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@3″ 17 “ce”
“/ssm@0,0/pci@1b,600000/pci@2/network@0″ 18 “ce”
“/ssm@0,0/pci@1b,600000/pci@2/network@1″ 19 “ce”
“/ssm@0,0/pci@1d,700000/pci@2/network@0″ 20 “ce”
“/ssm@0,0/pci@1d,700000/pci@2/network@1″ 21 “ce”
“/ssm@0,0/pci@1d,600000/pci@2/network@0″ 22 “ce”
“/ssm@0,0/pci@1f,700000/pci@2/network@0″ 23 “ce”
“/ssm@0,0/pci@1f,700000/pci@2/network@1″ 24 “ce”
“/ssm@0,0/pci@1f,600000/pci@2/network@0″ 25 “ce”
root@ni5nrp2 #
root@ni5nrp2 # echo “ibase=16;1F/2-6″ | bc
9
root@ni5nrp2 # echo “ibase=16;1D/2-6″ | bc
8

So, need to down unplumb all the ce’s on 1D and 1F addresses.

Next,
lookup qlc controllers.
root@ni5nrp2 # vxdmpadm getctlr all
LNAME PNAME VENDOR CTLR-ID
=============================================================================================
c3 /ssm@0,0/pci@1f,700000/pci@2/scsi@2,1 – -
c12 /ssm@0,0/pci@19,600000/pci@2/scsi@2 – -
c13 /ssm@0,0/pci@1b,600000/pci@2/scsi@2,1 – -
c0 /ssm@0,0/pci@1d,700000/pci@2/scsi@2 – -
c2 /ssm@0,0/pci@1f,700000/pci@2/scsi@2 – -
c1 /ssm@0,0/pci@1d,700000/pci@2/scsi@2,1 – -
c5 /ssm@0,0/pci@1f,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:90:ff:0a
c4 /ssm@0,0/pci@1d,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:90:e1:09
c7 /ssm@0,0/pci@19,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:10:02:75
c6 /ssm@0,0/pci@18,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:10:df:71
c10 /ssm@0,0/pci@1a,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:10:44:72
c11 /ssm@0,0/pci@1b,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:10:87:72

So, need to unconfiure and disconnect c5 and c4 and for SCSI c0,c1,c2,c3

root@ni5nrp2 # cfgadm -al | grep c[45]
c0::sg/c4t0l0 unknown connected configured unknown
c0::sg/c4t0l1 unknown connected configured unknown
c0::sg/c4t1l0 unknown connected configured unknown
c0::sg/c4t1l1 unknown connected configured unknown
c0::sg/c4t2l0 unknown connected configured unknown
c0::sg/c4t2l1 unknown connected configured unknown
c0::sg/c4t3l0 unknown connected configured unknown
c0::sg/c4t3l1 unknown connected configured unknown
c0::sg/c4t4l0 unknown connected configured unknown
c0::sg/c4t4l1 unknown connected configured unknown
c0::sg/c4t5l0 unknown connected configured unknown
c0::sg/c4t5l1 unknown connected configured unknown
c0::sg/c4t6l0 unknown connected configured unknown
c0::sg/c4t6l1 unknown connected configured unknown
c1::sg/c5t0l0 unknown connected configured unknown
c1::sg/c5t0l1 unknown connected configured unknown
c1::sg/c5t1l0 unknown connected configured unknown
c1::sg/c5t1l1 unknown connected configured unknown
c1::sg/c5t2l0 unknown connected configured unknown
c1::sg/c5t2l1 unknown connected configured unknown
c1::sg/c5t3l0 unknown connected configured unknown
c1::sg/c5t3l1 unknown connected configured unknown
c1::sg/c5t4l0 unknown connected configured unknown
c1::sg/c5t4l1 unknown connected configured unknown
c1::sg/c5t5l0 unknown connected configured unknown
c1::sg/c5t5l1 unknown connected configured unknown
c1::sg/c5t6l0 unknown connected configured unknown
c1::sg/c5t6l1 unknown connected configured unknown
c4 fc-fabric connected configured unknown
c4::50060e8003f85f10 unavailable connected configured failed
c4::50060e8003f85f11 disk connected configured failed
c4::50060e8003f85f12 disk connected configured failed
c4::50060e8003f85f13 disk connected configured failed
c4::50060e8003f87610 unavailable connected configured failed
c4::50060e8003f87611 unavailable connected configured failed
c4::50060e8003f87612 unavailable connected configured failed
c4::50060e8003f87613 unavailable connected configured failed
c5 fc-fabric connected configured unknown
c5::50060e8003f85f00 unavailable connected configured failed
c5::50060e8003f85f01 disk connected configured failed
c5::50060e8003f85f02 disk connected configured failed
c5::50060e8003f85f03 disk connected configured failed
c5::50060e8003f87600 unavailable connected configured failed
c5::50060e8003f87601 unavailable connected configured failed
c5::50060e8003f87602 unavailable connected configured failed
c5::50060e8003f87603 unavailable connected configured failed

root@ni5nrp2 # vxdmpadm disable ctlr=c5
root@ni5nrp2 # vxdmpadm disable ctlr=c4
root@ni5nrp2 #

root@ni5nrp2 # vxdmpadm -f disable ctlr=c0
root@ni5nrp2 # vxdmpadm -f disable ctlr=c1
root@ni5nrp2 # vxdmpadm -f disable ctlr=c2
root@ni5nrp2 # vxdmpadm -f disable ctlr=c3
root@ni5nrp2 # cfgadm -f -c disconnect N0.IB8
root@ni5nrp2 # cfgadm -f -c disconnect N0.IB9
root@ni5nrp2 #

mit@linux-05px:~> ssh ni5nrp2-sc

System Controller ‘ni5nrp2-sc0′:

Type 0 for Platform Shell

Type 1 for domain A console
Type 2 for domain B console
Type 3 for domain C console
Type 4 for domain D console

Input: 0
Enter Password:
Platform Shell

ni5nrp2-sc0:SC>
ni5nrp2-sc0:SC>
ni5nrp2-sc0:SC>
ni5nrp2-sc0:SC>
ni5nrp2-sc0:SC> showb

Slot Pwr Component Type State Status Domain
—- — ————– —– —— ——
SSC0 On System Controller Main Passed –
SSC1 On Present Spare – –
ID0 On Sun Fire 6800 Centerplane – OK –
PS0 On A184 Power Supply – OK –
PS1 On A184 Power Supply – OK –
PS2 On A184 Power Supply – OK –
PS3 On A184 Power Supply – OK –
PS4 On A184 Power Supply – OK –
PS5 On A184 Power Supply – OK –
FT0 On Fan Tray Low Speed OK –
FT1 On Fan Tray Low Speed OK –
FT2 On Fan Tray Low Speed OK –
FT3 On Fan Tray Low Speed OK –
RP0 On Repeater Board – OK -
RP1 On Repeater Board – OK -
RP2 Off Repeater Board – OK -
RP3 Off Repeater Board – OK -
/N0/SB0 On CPU Board V3 Active Passed A
/N0/SB1 On CPU Board V2 Active Passed A
/N0/SB2 On CPU Board V3 Active Passed A
/N0/SB3 On CPU Board V3 Active Passed A
/N0/SB4 On CPU Board V2 Active Passed A
/N0/SB5 On CPU Board V3 Active Passed A
/N0/IB6 On PCI-X I/O Board Active Passed A
/N0/IB7 On PCI-X I/O Board Active Passed A
/N0/IB8 Off PCI+ I/O Board Assigned Not tested A
/N0/IB9 Off PCI+ I/O Board Assigned Not tested A

ni5nrp2-sc0:SC> poweroff /N0/IB8
/N0/IB8: is already off
ni5nrp2-sc0:SC> poweroff /N0/IB9
/N0/IB9: is already off
ni5nrp2-sc0:SC>

ChassisSerialNumber 0349HH2899

Sun Fire 6800
OpenFirmware version 5.20.13 (06/04/09 02:41)
Copyright 2009 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
SmartFirmware, Copyright (C) 1996-2001. All rights reserved.
16384 MB memory installed, Serial #50814544.
Ethernet address 0:3:ba:7:5e:50, Host ID: 83075e50.

WARNING: Find no block devices, e.g. disks, CD-ROM, etc.

ERROR: Can’t open boot-device
{14} ok ni5nrp2-sc0:C>
ni5nrp2-sc0:C>
ni5nrp2-sc0:C> showb

Slot Pwr Component Type State Status Domain
—- — ————– —– —— ——
/N0/SB5 On CPU Board V3 Active Passed C
/N0/IB8 On PCI+ I/O Board Active Passed C
/N0/IB9 On PCI+ I/O Board Active Passed C

ni5nrp2-sc0:C> deleteboard /N0/IB9
/N0/IB9: cannot delete active board
ni5nrp2-sc0:C> setkey standby
ni5nrp2-sc0:C> showb

Slot Pwr Component Type State Status Domain
—- — ————– —– —— ——
/N0/SB5 On CPU Board V3 Assigned Passed C
/N0/IB8 On PCI+ I/O Board Assigned Passed C
/N0/IB9 On PCI+ I/O Board Assigned Passed C

ni5nrp2-sc0:C> deleteboard /N0/IB9
ni5nrp2-sc0:C> deleteboard /N0/IB8
ni5nrp2-sc0:C> deleteboard /N0/SB5
ni5nrp2-sc0:C> disc
Connection to ni5nrp2-sc closed.
mit@linux-05px:~> ssh ni5nrp2-sc

System Controller ‘ni5nrp2-sc0′:

Type 0 for Platform Shell

Type 1 for domain A console
Type 2 for domain B console
Type 3 for domain C console
Type 4 for domain D console

Input: 0
Enter Password:
Platform Shell

ni5nrp2-sc0:SC> showb

Slot Pwr Component Type State Status Domain
—- — ————– —– —— ——
SSC0 On System Controller Main Passed –
SSC1 On Present Spare – –
ID0 On Sun Fire 6800 Centerplane – OK –
PS0 On A184 Power Supply – OK –
PS1 On A184 Power Supply – OK –
PS2 On A184 Power Supply – OK –
PS3 On A184 Power Supply – OK –
PS4 On A184 Power Supply – OK –
PS5 On A184 Power Supply – OK –
FT0 On Fan Tray Low Speed OK –
FT1 On Fan Tray Low Speed OK –
FT2 On Fan Tray Low Speed OK –
FT3 On Fan Tray Low Speed OK –
RP0 On Repeater Board – OK -
RP1 On Repeater Board – OK -
RP2 On Repeater Board – OK -
RP3 On Repeater Board – OK -
/N0/SB0 On CPU Board V3 Active Passed A
/N0/SB1 On CPU Board V2 Active Passed A
/N0/SB2 On CPU Board V3 Active Passed A
/N0/SB3 On CPU Board V3 Active Passed A
/N0/SB4 On CPU Board V2 Active Passed A
SB5 On CPU Board V3 Available Passed Isolated
/N0/IB6 On PCI-X I/O Board Active Passed A
/N0/IB7 On PCI-X I/O Board Active Passed A
IB8 On PCI+ I/O Board Available Passed Isolated
IB9 On PCI+ I/O Board Available Passed Isolated

ni5nrp2-sc0:SC> addboard -d a SB5
/N0/SB5: will be configured into the domain after setkeyswitch off/standby
DR can be used to configure /N0/SB5 into an active domain.
ni5nrp2-sc0:SC> addboard -d a IB8
/N0/IB8: will be configured into the domain after setkeyswitch off/standby
DR can be used to configure /N0/IB8 into an active domain.
ni5nrp2-sc0:SC> addboard -d a IB9
/N0/IB9: will be configured into the domain after setkeyswitch off/standby
DR can be used to configure /N0/IB9 into an active domain.
ni5nrp2-sc0:SC> showb

Slot Pwr Component Type State Status Domain
—- — ————– —– —— ——
SSC0 On System Controller Main Passed –
SSC1 On Present Spare – –
ID0 On Sun Fire 6800 Centerplane – OK –
PS0 On A184 Power Supply – OK –
PS1 On A184 Power Supply – OK –
PS2 On A184 Power Supply – OK –
PS3 On A184 Power Supply – OK –
PS4 On A184 Power Supply – OK –
PS5 On A184 Power Supply – OK –
FT0 On Fan Tray Low Speed OK –
FT1 On Fan Tray Low Speed OK –
FT2 On Fan Tray Low Speed OK –
FT3 On Fan Tray Low Speed OK –
RP0 On Repeater Board – OK -
RP1 On Repeater Board – OK -
RP2 On Repeater Board – OK -
RP3 On Repeater Board – OK -
/N0/SB0 On CPU Board V3 Active Passed A
/N0/SB1 On CPU Board V2 Active Passed A
/N0/SB2 On CPU Board V3 Active Passed A
/N0/SB3 On CPU Board V3 Active Passed A
/N0/SB4 On CPU Board V2 Active Passed A
/N0/SB5 On CPU Board V3 Assigned Passed A
/N0/IB6 On PCI-X I/O Board Active Passed A
/N0/IB7 On PCI-X I/O Board Active Passed A
/N0/IB8 On PCI+ I/O Board Assigned Passed A
/N0/IB9 On PCI+ I/O Board Assigned Passed A

ni5nrp2-sc0:SC>
root@ni5nrp2 # cfgadm -c configure N0.IB8
root@ni5nrp2 # cfgadm -c configure N0.IB9

Filed under Uncategorized |

Leave a Reply

Removing I/O boards out of the Sun Fire 6800 server

Posted on July 19th, 2011

1.
root@ni5nrp2 # grep \”ce\” /etc/path_to_inst
“/ssm@0,0/pci@18,700000/pci@1/network@0″ 0 “ce”
“/ssm@0,0/pci@19,700000/pci@3/network@0″ 2 “ce”
“/ssm@0,0/pci@19,700000/pci@3/network@1″ 3 “ce”
“/ssm@0,0/pci@19,700000/network@2″ 1 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@0″ 8 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@1″ 9 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@2″ 10 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@3″ 11 “ce”
“/ssm@0,0/pci@19,600000/pci@2/network@0″ 12 “ce”
“/ssm@0,0/pci@19,600000/pci@2/network@1″ 13 “ce”
“/ssm@0,0/pci@1a,700000/pci@1/network@0″ 4 “ce”
“/ssm@0,0/pci@1b,700000/pci@3/network@0″ 6 “ce”
“/ssm@0,0/pci@1b,700000/pci@3/network@1″ 7 “ce”
“/ssm@0,0/pci@1b,700000/network@2″ 5 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@0″ 14 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@1″ 15 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@2″ 16 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@3″ 17 “ce”
“/ssm@0,0/pci@1b,600000/pci@2/network@0″ 18 “ce”
“/ssm@0,0/pci@1b,600000/pci@2/network@1″ 19 “ce”
“/ssm@0,0/pci@1d,700000/pci@2/network@0″ 20 “ce”
“/ssm@0,0/pci@1d,700000/pci@2/network@1″ 21 “ce”
“/ssm@0,0/pci@1d,600000/pci@2/network@0″ 22 “ce”
“/ssm@0,0/pci@1f,700000/pci@2/network@0″ 23 “ce”
“/ssm@0,0/pci@1f,700000/pci@2/network@1″ 24 “ce”
“/ssm@0,0/pci@1f,600000/pci@2/network@0″ 25 “ce”
root@ni5nrp2 #
root@ni5nrp2 # echo “ibase=16;1F/2-6″ | bc
9
root@ni5nrp2 # echo “ibase=16;1D/2-6″ | bc
8

So, need to down unplumb all the ce’s on 1D and 1F addresses.

Next,
lookup qlc controllers.
root@ni5nrp2 # vxdmpadm getctlr all
LNAME PNAME VENDOR CTLR-ID
=============================================================================================
c3 /ssm@0,0/pci@1f,700000/pci@2/scsi@2,1 – -
c12 /ssm@0,0/pci@19,600000/pci@2/scsi@2 – -
c13 /ssm@0,0/pci@1b,600000/pci@2/scsi@2,1 – -
c0 /ssm@0,0/pci@1d,700000/pci@2/scsi@2 – -
c2 /ssm@0,0/pci@1f,700000/pci@2/scsi@2 – -
c1 /ssm@0,0/pci@1d,700000/pci@2/scsi@2,1 – -
c5 /ssm@0,0/pci@1f,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:90:ff:0a
c4 /ssm@0,0/pci@1d,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:90:e1:09
c7 /ssm@0,0/pci@19,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:10:02:75
c6 /ssm@0,0/pci@18,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:10:df:71
c10 /ssm@0,0/pci@1a,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:10:44:72
c11 /ssm@0,0/pci@1b,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:10:87:72

So, need to unconfiure and disconnect c5 and c4 and for SCSI c0,c1,c2,c3

root@ni5nrp2 # cfgadm -al | grep c[45]
c0::sg/c4t0l0 unknown connected configured unknown
c0::sg/c4t0l1 unknown connected configured unknown
c0::sg/c4t1l0 unknown connected configured unknown
c0::sg/c4t1l1 unknown connected configured unknown
c0::sg/c4t2l0 unknown connected configured unknown
c0::sg/c4t2l1 unknown connected configured unknown
c0::sg/c4t3l0 unknown connected configured unknown
c0::sg/c4t3l1 unknown connected configured unknown
c0::sg/c4t4l0 unknown connected configured unknown
c0::sg/c4t4l1 unknown connected configured unknown
c0::sg/c4t5l0 unknown connected configured unknown
c0::sg/c4t5l1 unknown connected configured unknown
c0::sg/c4t6l0 unknown connected configured unknown
c0::sg/c4t6l1 unknown connected configured unknown
c1::sg/c5t0l0 unknown connected configured unknown
c1::sg/c5t0l1 unknown connected configured unknown
c1::sg/c5t1l0 unknown connected configured unknown
c1::sg/c5t1l1 unknown connected configured unknown
c1::sg/c5t2l0 unknown connected configured unknown
c1::sg/c5t2l1 unknown connected configured unknown
c1::sg/c5t3l0 unknown connected configured unknown
c1::sg/c5t3l1 unknown connected configured unknown
c1::sg/c5t4l0 unknown connected configured unknown
c1::sg/c5t4l1 unknown connected configured unknown
c1::sg/c5t5l0 unknown connected configured unknown
c1::sg/c5t5l1 unknown connected configured unknown
c1::sg/c5t6l0 unknown connected configured unknown
c1::sg/c5t6l1 unknown connected configured unknown
c4 fc-fabric connected configured unknown
c4::50060e8003f85f10 unavailable connected configured failed
c4::50060e8003f85f11 disk connected configured failed
c4::50060e8003f85f12 disk connected configured failed
c4::50060e8003f85f13 disk connected configured failed
c4::50060e8003f87610 unavailable connected configured failed
c4::50060e8003f87611 unavailable connected configured failed
c4::50060e8003f87612 unavailable connected configured failed
c4::50060e8003f87613 unavailable connected configured failed
c5 fc-fabric connected configured unknown
c5::50060e8003f85f00 unavailable connected configured failed
c5::50060e8003f85f01 disk connected configured failed
c5::50060e8003f85f02 disk connected configured failed
c5::50060e8003f85f03 disk connected configured failed
c5::50060e8003f87600 unavailable connected configured failed
c5::50060e8003f87601 unavailable connected configured failed
c5::50060e8003f87602 unavailable connected configured failed
c5::50060e8003f87603 unavailable connected configured failed

root@ni5nrp2 # vxdmpadm disable ctlr=c5
root@ni5nrp2 # vxdmpadm disable ctlr=c4
root@ni5nrp2 #

root@ni5nrp2 # vxdmpadm -f disable ctlr=c0
root@ni5nrp2 # vxdmpadm -f disable ctlr=c1
root@ni5nrp2 # vxdmpadm -f disable ctlr=c2
root@ni5nrp2 # vxdmpadm -f disable ctlr=c3
root@ni5nrp2 # cfgadm -f -c disconnect N0.IB8
root@ni5nrp2 # cfgadm -f -c disconnect N0.IB9
root@ni5nrp2 #

mit@linux-05px:~> ssh ni5nrp2-sc

System Controller ‘ni5nrp2-sc0′:

Type 0 for Platform Shell

Type 1 for domain A console
Type 2 for domain B console
Type 3 for domain C console
Type 4 for domain D console

Input: 0
Enter Password:
Platform Shell

ni5nrp2-sc0:SC>
ni5nrp2-sc0:SC>
ni5nrp2-sc0:SC>
ni5nrp2-sc0:SC>
ni5nrp2-sc0:SC> showb

Slot Pwr Component Type State Status Domain
—- — ————– —– —— ——
SSC0 On System Controller Main Passed –
SSC1 On Present Spare – –
ID0 On Sun Fire 6800 Centerplane – OK –
PS0 On A184 Power Supply – OK –
PS1 On A184 Power Supply – OK –
PS2 On A184 Power Supply – OK –
PS3 On A184 Power Supply – OK –
PS4 On A184 Power Supply – OK –
PS5 On A184 Power Supply – OK –
FT0 On Fan Tray Low Speed OK –
FT1 On Fan Tray Low Speed OK –
FT2 On Fan Tray Low Speed OK –
FT3 On Fan Tray Low Speed OK –
RP0 On Repeater Board – OK -
RP1 On Repeater Board – OK -
RP2 Off Repeater Board – OK -
RP3 Off Repeater Board – OK -
/N0/SB0 On CPU Board V3 Active Passed A
/N0/SB1 On CPU Board V2 Active Passed A
/N0/SB2 On CPU Board V3 Active Passed A
/N0/SB3 On CPU Board V3 Active Passed A
/N0/SB4 On CPU Board V2 Active Passed A
/N0/SB5 On CPU Board V3 Active Passed A
/N0/IB6 On PCI-X I/O Board Active Passed A
/N0/IB7 On PCI-X I/O Board Active Passed A
/N0/IB8 Off PCI+ I/O Board Assigned Not tested A
/N0/IB9 Off PCI+ I/O Board Assigned Not tested A

ni5nrp2-sc0:SC> poweroff /N0/IB8
/N0/IB8: is already off
ni5nrp2-sc0:SC> poweroff /N0/IB9
/N0/IB9: is already off
ni5nrp2-sc0:SC>

Filed under Uncategorized |

Leave a Reply

Removing I/O boards out of the Sun Fire 6800 server

Posted on July 19th, 2011

1.
root@ni5nrp2 # grep \”ce\” /etc/path_to_inst
“/ssm@0,0/pci@18,700000/pci@1/network@0″ 0 “ce”
“/ssm@0,0/pci@19,700000/pci@3/network@0″ 2 “ce”
“/ssm@0,0/pci@19,700000/pci@3/network@1″ 3 “ce”
“/ssm@0,0/pci@19,700000/network@2″ 1 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@0″ 8 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@1″ 9 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@2″ 10 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@3″ 11 “ce”
“/ssm@0,0/pci@19,600000/pci@2/network@0″ 12 “ce”
“/ssm@0,0/pci@19,600000/pci@2/network@1″ 13 “ce”
“/ssm@0,0/pci@1a,700000/pci@1/network@0″ 4 “ce”
“/ssm@0,0/pci@1b,700000/pci@3/network@0″ 6 “ce”
“/ssm@0,0/pci@1b,700000/pci@3/network@1″ 7 “ce”
“/ssm@0,0/pci@1b,700000/network@2″ 5 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@0″ 14 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@1″ 15 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@2″ 16 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@3″ 17 “ce”
“/ssm@0,0/pci@1b,600000/pci@2/network@0″ 18 “ce”
“/ssm@0,0/pci@1b,600000/pci@2/network@1″ 19 “ce”
“/ssm@0,0/pci@1d,700000/pci@2/network@0″ 20 “ce”
“/ssm@0,0/pci@1d,700000/pci@2/network@1″ 21 “ce”
“/ssm@0,0/pci@1d,600000/pci@2/network@0″ 22 “ce”
“/ssm@0,0/pci@1f,700000/pci@2/network@0″ 23 “ce”
“/ssm@0,0/pci@1f,700000/pci@2/network@1″ 24 “ce”
“/ssm@0,0/pci@1f,600000/pci@2/network@0″ 25 “ce”
root@ni5nrp2 #
root@ni5nrp2 # echo “ibase=16;1F/2-6″ | bc
9
root@ni5nrp2 # echo “ibase=16;1D/2-6″ | bc
8

So, need to down unplumb all the ce’s on 1D and 1F addresses.

Next,
lookup qlc controllers.
root@ni5nrp2 # vxdmpadm getctlr all
LNAME PNAME VENDOR CTLR-ID
=============================================================================================
c3 /ssm@0,0/pci@1f,700000/pci@2/scsi@2,1 – -
c12 /ssm@0,0/pci@19,600000/pci@2/scsi@2 – -
c13 /ssm@0,0/pci@1b,600000/pci@2/scsi@2,1 – -
c0 /ssm@0,0/pci@1d,700000/pci@2/scsi@2 – -
c2 /ssm@0,0/pci@1f,700000/pci@2/scsi@2 – -
c1 /ssm@0,0/pci@1d,700000/pci@2/scsi@2,1 – -
c5 /ssm@0,0/pci@1f,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:90:ff:0a
c4 /ssm@0,0/pci@1d,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:90:e1:09
c7 /ssm@0,0/pci@19,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:10:02:75
c6 /ssm@0,0/pci@18,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:10:df:71
c10 /ssm@0,0/pci@1a,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:10:44:72
c11 /ssm@0,0/pci@1b,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:10:87:72

So, need to unconfiure and disconnect c5 and c4 and for SCSI c0,c1,c2,c3

root@ni5nrp2 # cfgadm -al | grep c[45]
c0::sg/c4t0l0 unknown connected configured unknown
c0::sg/c4t0l1 unknown connected configured unknown
c0::sg/c4t1l0 unknown connected configured unknown
c0::sg/c4t1l1 unknown connected configured unknown
c0::sg/c4t2l0 unknown connected configured unknown
c0::sg/c4t2l1 unknown connected configured unknown
c0::sg/c4t3l0 unknown connected configured unknown
c0::sg/c4t3l1 unknown connected configured unknown
c0::sg/c4t4l0 unknown connected configured unknown
c0::sg/c4t4l1 unknown connected configured unknown
c0::sg/c4t5l0 unknown connected configured unknown
c0::sg/c4t5l1 unknown connected configured unknown
c0::sg/c4t6l0 unknown connected configured unknown
c0::sg/c4t6l1 unknown connected configured unknown
c1::sg/c5t0l0 unknown connected configured unknown
c1::sg/c5t0l1 unknown connected configured unknown
c1::sg/c5t1l0 unknown connected configured unknown
c1::sg/c5t1l1 unknown connected configured unknown
c1::sg/c5t2l0 unknown connected configured unknown
c1::sg/c5t2l1 unknown connected configured unknown
c1::sg/c5t3l0 unknown connected configured unknown
c1::sg/c5t3l1 unknown connected configured unknown
c1::sg/c5t4l0 unknown connected configured unknown
c1::sg/c5t4l1 unknown connected configured unknown
c1::sg/c5t5l0 unknown connected configured unknown
c1::sg/c5t5l1 unknown connected configured unknown
c1::sg/c5t6l0 unknown connected configured unknown
c1::sg/c5t6l1 unknown connected configured unknown
c4 fc-fabric connected configured unknown
c4::50060e8003f85f10 unavailable connected configured failed
c4::50060e8003f85f11 disk connected configured failed
c4::50060e8003f85f12 disk connected configured failed
c4::50060e8003f85f13 disk connected configured failed
c4::50060e8003f87610 unavailable connected configured failed
c4::50060e8003f87611 unavailable connected configured failed
c4::50060e8003f87612 unavailable connected configured failed
c4::50060e8003f87613 unavailable connected configured failed
c5 fc-fabric connected configured unknown
c5::50060e8003f85f00 unavailable connected configured failed
c5::50060e8003f85f01 disk connected configured failed
c5::50060e8003f85f02 disk connected configured failed
c5::50060e8003f85f03 disk connected configured failed
c5::50060e8003f87600 unavailable connected configured failed
c5::50060e8003f87601 unavailable connected configured failed
c5::50060e8003f87602 unavailable connected configured failed
c5::50060e8003f87603 unavailable connected configured failed

root@ni5nrp2 # vxdmpadm disable ctlr=c5
root@ni5nrp2 # vxdmpadm disable ctlr=c4
root@ni5nrp2 #

root@ni5nrp2 # vxdmpadm -f disable ctlr=c0
root@ni5nrp2 # vxdmpadm -f disable ctlr=c1
root@ni5nrp2 # vxdmpadm -f disable ctlr=c2
root@ni5nrp2 # vxdmpadm -f disable ctlr=c3
root@ni5nrp2 # cfgadm -f -c disconnect N0.IB8
root@ni5nrp2 # cfgadm -f -c disconnect N0.IB9
root@ni5nrp2 #

Filed under Uncategorized |

Leave a Reply

Removing I/O boards out of the Sun Fire 6800 server

Posted on July 19th, 2011

1.
root@ni5nrp2 # grep \”ce\” /etc/path_to_inst
“/ssm@0,0/pci@18,700000/pci@1/network@0″ 0 “ce”
“/ssm@0,0/pci@19,700000/pci@3/network@0″ 2 “ce”
“/ssm@0,0/pci@19,700000/pci@3/network@1″ 3 “ce”
“/ssm@0,0/pci@19,700000/network@2″ 1 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@0″ 8 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@1″ 9 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@2″ 10 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@3″ 11 “ce”
“/ssm@0,0/pci@19,600000/pci@2/network@0″ 12 “ce”
“/ssm@0,0/pci@19,600000/pci@2/network@1″ 13 “ce”
“/ssm@0,0/pci@1a,700000/pci@1/network@0″ 4 “ce”
“/ssm@0,0/pci@1b,700000/pci@3/network@0″ 6 “ce”
“/ssm@0,0/pci@1b,700000/pci@3/network@1″ 7 “ce”
“/ssm@0,0/pci@1b,700000/network@2″ 5 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@0″ 14 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@1″ 15 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@2″ 16 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@3″ 17 “ce”
“/ssm@0,0/pci@1b,600000/pci@2/network@0″ 18 “ce”
“/ssm@0,0/pci@1b,600000/pci@2/network@1″ 19 “ce”
“/ssm@0,0/pci@1d,700000/pci@2/network@0″ 20 “ce”
“/ssm@0,0/pci@1d,700000/pci@2/network@1″ 21 “ce”
“/ssm@0,0/pci@1d,600000/pci@2/network@0″ 22 “ce”
“/ssm@0,0/pci@1f,700000/pci@2/network@0″ 23 “ce”
“/ssm@0,0/pci@1f,700000/pci@2/network@1″ 24 “ce”
“/ssm@0,0/pci@1f,600000/pci@2/network@0″ 25 “ce”
root@ni5nrp2 #
root@ni5nrp2 # echo “ibase=16;1F/2-6″ | bc
9
root@ni5nrp2 # echo “ibase=16;1D/2-6″ | bc
8

So, need to down unplumb all the ce’s on 1D and 1F addresses.

Next,
lookup qlc controllers.
root@ni5nrp2 # vxdmpadm getctlr all
LNAME PNAME VENDOR CTLR-ID
=============================================================================================
c3 /ssm@0,0/pci@1f,700000/pci@2/scsi@2,1 – -
c12 /ssm@0,0/pci@19,600000/pci@2/scsi@2 – -
c13 /ssm@0,0/pci@1b,600000/pci@2/scsi@2,1 – -
c0 /ssm@0,0/pci@1d,700000/pci@2/scsi@2 – -
c2 /ssm@0,0/pci@1f,700000/pci@2/scsi@2 – -
c1 /ssm@0,0/pci@1d,700000/pci@2/scsi@2,1 – -
c5 /ssm@0,0/pci@1f,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:90:ff:0a
c4 /ssm@0,0/pci@1d,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:90:e1:09
c7 /ssm@0,0/pci@19,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:10:02:75
c6 /ssm@0,0/pci@18,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:10:df:71
c10 /ssm@0,0/pci@1a,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:10:44:72
c11 /ssm@0,0/pci@1b,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:10:87:72

So, need to unconfiure and disconnect c5 and c4 and for SCSI c0,c1,c2,c3

root@ni5nrp2 # cfgadm -al | grep c[45]
c0::sg/c4t0l0 unknown connected configured unknown
c0::sg/c4t0l1 unknown connected configured unknown
c0::sg/c4t1l0 unknown connected configured unknown
c0::sg/c4t1l1 unknown connected configured unknown
c0::sg/c4t2l0 unknown connected configured unknown
c0::sg/c4t2l1 unknown connected configured unknown
c0::sg/c4t3l0 unknown connected configured unknown
c0::sg/c4t3l1 unknown connected configured unknown
c0::sg/c4t4l0 unknown connected configured unknown
c0::sg/c4t4l1 unknown connected configured unknown
c0::sg/c4t5l0 unknown connected configured unknown
c0::sg/c4t5l1 unknown connected configured unknown
c0::sg/c4t6l0 unknown connected configured unknown
c0::sg/c4t6l1 unknown connected configured unknown
c1::sg/c5t0l0 unknown connected configured unknown
c1::sg/c5t0l1 unknown connected configured unknown
c1::sg/c5t1l0 unknown connected configured unknown
c1::sg/c5t1l1 unknown connected configured unknown
c1::sg/c5t2l0 unknown connected configured unknown
c1::sg/c5t2l1 unknown connected configured unknown
c1::sg/c5t3l0 unknown connected configured unknown
c1::sg/c5t3l1 unknown connected configured unknown
c1::sg/c5t4l0 unknown connected configured unknown
c1::sg/c5t4l1 unknown connected configured unknown
c1::sg/c5t5l0 unknown connected configured unknown
c1::sg/c5t5l1 unknown connected configured unknown
c1::sg/c5t6l0 unknown connected configured unknown
c1::sg/c5t6l1 unknown connected configured unknown
c4 fc-fabric connected configured unknown
c4::50060e8003f85f10 unavailable connected configured failed
c4::50060e8003f85f11 disk connected configured failed
c4::50060e8003f85f12 disk connected configured failed
c4::50060e8003f85f13 disk connected configured failed
c4::50060e8003f87610 unavailable connected configured failed
c4::50060e8003f87611 unavailable connected configured failed
c4::50060e8003f87612 unavailable connected configured failed
c4::50060e8003f87613 unavailable connected configured failed
c5 fc-fabric connected configured unknown
c5::50060e8003f85f00 unavailable connected configured failed
c5::50060e8003f85f01 disk connected configured failed
c5::50060e8003f85f02 disk connected configured failed
c5::50060e8003f85f03 disk connected configured failed
c5::50060e8003f87600 unavailable connected configured failed
c5::50060e8003f87601 unavailable connected configured failed
c5::50060e8003f87602 unavailable connected configured failed
c5::50060e8003f87603 unavailable connected configured failed

root@ni5nrp2 # vxdmpadm disable ctlr=c5
root@ni5nrp2 # vxdmpadm disable ctlr=c4
root@ni5nrp2 #

root@ni5nrp2 # vxdmpadm -f disable ctlr=c0
root@ni5nrp2 # vxdmpadm -f disable ctlr=c1
root@ni5nrp2 # vxdmpadm -f disable ctlr=c2
root@ni5nrp2 # vxdmpadm -f disable ctlr=c3

Filed under Uncategorized |

Leave a Reply

Removing I/O boards out of the Sun Fire 6800 server

Posted on July 19th, 2011

1.
root@ni5nrp2 # grep \”ce\” /etc/path_to_inst
“/ssm@0,0/pci@18,700000/pci@1/network@0″ 0 “ce”
“/ssm@0,0/pci@19,700000/pci@3/network@0″ 2 “ce”
“/ssm@0,0/pci@19,700000/pci@3/network@1″ 3 “ce”
“/ssm@0,0/pci@19,700000/network@2″ 1 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@0″ 8 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@1″ 9 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@2″ 10 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@3″ 11 “ce”
“/ssm@0,0/pci@19,600000/pci@2/network@0″ 12 “ce”
“/ssm@0,0/pci@19,600000/pci@2/network@1″ 13 “ce”
“/ssm@0,0/pci@1a,700000/pci@1/network@0″ 4 “ce”
“/ssm@0,0/pci@1b,700000/pci@3/network@0″ 6 “ce”
“/ssm@0,0/pci@1b,700000/pci@3/network@1″ 7 “ce”
“/ssm@0,0/pci@1b,700000/network@2″ 5 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@0″ 14 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@1″ 15 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@2″ 16 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@3″ 17 “ce”
“/ssm@0,0/pci@1b,600000/pci@2/network@0″ 18 “ce”
“/ssm@0,0/pci@1b,600000/pci@2/network@1″ 19 “ce”
“/ssm@0,0/pci@1d,700000/pci@2/network@0″ 20 “ce”
“/ssm@0,0/pci@1d,700000/pci@2/network@1″ 21 “ce”
“/ssm@0,0/pci@1d,600000/pci@2/network@0″ 22 “ce”
“/ssm@0,0/pci@1f,700000/pci@2/network@0″ 23 “ce”
“/ssm@0,0/pci@1f,700000/pci@2/network@1″ 24 “ce”
“/ssm@0,0/pci@1f,600000/pci@2/network@0″ 25 “ce”
root@ni5nrp2 #
root@ni5nrp2 # echo “ibase=16;1F/2-6″ | bc
9
root@ni5nrp2 # echo “ibase=16;1D/2-6″ | bc
8

So, need to down unplumb all the ce’s on 1D and 1F addresses.

Next,
lookup qlc controllers.
root@ni5nrp2 # vxdmpadm getctlr all
LNAME PNAME VENDOR CTLR-ID
=============================================================================================
c3 /ssm@0,0/pci@1f,700000/pci@2/scsi@2,1 – -
c12 /ssm@0,0/pci@19,600000/pci@2/scsi@2 – -
c13 /ssm@0,0/pci@1b,600000/pci@2/scsi@2,1 – -
c0 /ssm@0,0/pci@1d,700000/pci@2/scsi@2 – -
c2 /ssm@0,0/pci@1f,700000/pci@2/scsi@2 – -
c1 /ssm@0,0/pci@1d,700000/pci@2/scsi@2,1 – -
c5 /ssm@0,0/pci@1f,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:90:ff:0a
c4 /ssm@0,0/pci@1d,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:90:e1:09
c7 /ssm@0,0/pci@19,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:10:02:75
c6 /ssm@0,0/pci@18,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:10:df:71
c10 /ssm@0,0/pci@1a,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:10:44:72
c11 /ssm@0,0/pci@1b,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:10:87:72

So, need to unconfiure and disconnect c5 and c4 and for SCSI c0,c1,c2,c3

root@ni5nrp2 # cfgadm -al | grep c[45]
c0::sg/c4t0l0 unknown connected configured unknown
c0::sg/c4t0l1 unknown connected configured unknown
c0::sg/c4t1l0 unknown connected configured unknown
c0::sg/c4t1l1 unknown connected configured unknown
c0::sg/c4t2l0 unknown connected configured unknown
c0::sg/c4t2l1 unknown connected configured unknown
c0::sg/c4t3l0 unknown connected configured unknown
c0::sg/c4t3l1 unknown connected configured unknown
c0::sg/c4t4l0 unknown connected configured unknown
c0::sg/c4t4l1 unknown connected configured unknown
c0::sg/c4t5l0 unknown connected configured unknown
c0::sg/c4t5l1 unknown connected configured unknown
c0::sg/c4t6l0 unknown connected configured unknown
c0::sg/c4t6l1 unknown connected configured unknown
c1::sg/c5t0l0 unknown connected configured unknown
c1::sg/c5t0l1 unknown connected configured unknown
c1::sg/c5t1l0 unknown connected configured unknown
c1::sg/c5t1l1 unknown connected configured unknown
c1::sg/c5t2l0 unknown connected configured unknown
c1::sg/c5t2l1 unknown connected configured unknown
c1::sg/c5t3l0 unknown connected configured unknown
c1::sg/c5t3l1 unknown connected configured unknown
c1::sg/c5t4l0 unknown connected configured unknown
c1::sg/c5t4l1 unknown connected configured unknown
c1::sg/c5t5l0 unknown connected configured unknown
c1::sg/c5t5l1 unknown connected configured unknown
c1::sg/c5t6l0 unknown connected configured unknown
c1::sg/c5t6l1 unknown connected configured unknown
c4 fc-fabric connected configured unknown
c4::50060e8003f85f10 unavailable connected configured failed
c4::50060e8003f85f11 disk connected configured failed
c4::50060e8003f85f12 disk connected configured failed
c4::50060e8003f85f13 disk connected configured failed
c4::50060e8003f87610 unavailable connected configured failed
c4::50060e8003f87611 unavailable connected configured failed
c4::50060e8003f87612 unavailable connected configured failed
c4::50060e8003f87613 unavailable connected configured failed
c5 fc-fabric connected configured unknown
c5::50060e8003f85f00 unavailable connected configured failed
c5::50060e8003f85f01 disk connected configured failed
c5::50060e8003f85f02 disk connected configured failed
c5::50060e8003f85f03 disk connected configured failed
c5::50060e8003f87600 unavailable connected configured failed
c5::50060e8003f87601 unavailable connected configured failed
c5::50060e8003f87602 unavailable connected configured failed
c5::50060e8003f87603 unavailable connected configured failed

root@ni5nrp2 # vxdmpadm disable ctlr=c5
root@ni5nrp2 # vxdmpadm disable ctlr=c4
root@ni5nrp2 #

Filed under Uncategorized |

Leave a Reply

Removing I/O boards out of the Sun Fire 6800 server

Posted on July 19th, 2011

1.
root@ni5nrp2 # grep \”ce\” /etc/path_to_inst
“/ssm@0,0/pci@18,700000/pci@1/network@0″ 0 “ce”
“/ssm@0,0/pci@19,700000/pci@3/network@0″ 2 “ce”
“/ssm@0,0/pci@19,700000/pci@3/network@1″ 3 “ce”
“/ssm@0,0/pci@19,700000/network@2″ 1 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@0″ 8 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@1″ 9 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@2″ 10 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@3″ 11 “ce”
“/ssm@0,0/pci@19,600000/pci@2/network@0″ 12 “ce”
“/ssm@0,0/pci@19,600000/pci@2/network@1″ 13 “ce”
“/ssm@0,0/pci@1a,700000/pci@1/network@0″ 4 “ce”
“/ssm@0,0/pci@1b,700000/pci@3/network@0″ 6 “ce”
“/ssm@0,0/pci@1b,700000/pci@3/network@1″ 7 “ce”
“/ssm@0,0/pci@1b,700000/network@2″ 5 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@0″ 14 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@1″ 15 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@2″ 16 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@3″ 17 “ce”
“/ssm@0,0/pci@1b,600000/pci@2/network@0″ 18 “ce”
“/ssm@0,0/pci@1b,600000/pci@2/network@1″ 19 “ce”
“/ssm@0,0/pci@1d,700000/pci@2/network@0″ 20 “ce”
“/ssm@0,0/pci@1d,700000/pci@2/network@1″ 21 “ce”
“/ssm@0,0/pci@1d,600000/pci@2/network@0″ 22 “ce”
“/ssm@0,0/pci@1f,700000/pci@2/network@0″ 23 “ce”
“/ssm@0,0/pci@1f,700000/pci@2/network@1″ 24 “ce”
“/ssm@0,0/pci@1f,600000/pci@2/network@0″ 25 “ce”
root@ni5nrp2 #
root@ni5nrp2 # echo “ibase=16;1F/2-6″ | bc
9
root@ni5nrp2 # echo “ibase=16;1D/2-6″ | bc
8

So, need to down unplumb all the ce’s on 1D and 1F addresses.

Next,
lookup qlc controllers.
root@ni5nrp2 # vxdmpadm getctlr all
LNAME PNAME VENDOR CTLR-ID
=============================================================================================
c3 /ssm@0,0/pci@1f,700000/pci@2/scsi@2,1 – -
c12 /ssm@0,0/pci@19,600000/pci@2/scsi@2 – -
c13 /ssm@0,0/pci@1b,600000/pci@2/scsi@2,1 – -
c0 /ssm@0,0/pci@1d,700000/pci@2/scsi@2 – -
c2 /ssm@0,0/pci@1f,700000/pci@2/scsi@2 – -
c1 /ssm@0,0/pci@1d,700000/pci@2/scsi@2,1 – -
c5 /ssm@0,0/pci@1f,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:90:ff:0a
c4 /ssm@0,0/pci@1d,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:90:e1:09
c7 /ssm@0,0/pci@19,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:10:02:75
c6 /ssm@0,0/pci@18,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:10:df:71
c10 /ssm@0,0/pci@1a,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:10:44:72
c11 /ssm@0,0/pci@1b,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:10:87:72

So, need to unconfiure and disconnect c5 and c4

root@ni5nrp2 # cfgadm -al | grep c[45]
c0::sg/c4t0l0 unknown connected configured unknown
c0::sg/c4t0l1 unknown connected configured unknown
c0::sg/c4t1l0 unknown connected configured unknown
c0::sg/c4t1l1 unknown connected configured unknown
c0::sg/c4t2l0 unknown connected configured unknown
c0::sg/c4t2l1 unknown connected configured unknown
c0::sg/c4t3l0 unknown connected configured unknown
c0::sg/c4t3l1 unknown connected configured unknown
c0::sg/c4t4l0 unknown connected configured unknown
c0::sg/c4t4l1 unknown connected configured unknown
c0::sg/c4t5l0 unknown connected configured unknown
c0::sg/c4t5l1 unknown connected configured unknown
c0::sg/c4t6l0 unknown connected configured unknown
c0::sg/c4t6l1 unknown connected configured unknown
c1::sg/c5t0l0 unknown connected configured unknown
c1::sg/c5t0l1 unknown connected configured unknown
c1::sg/c5t1l0 unknown connected configured unknown
c1::sg/c5t1l1 unknown connected configured unknown
c1::sg/c5t2l0 unknown connected configured unknown
c1::sg/c5t2l1 unknown connected configured unknown
c1::sg/c5t3l0 unknown connected configured unknown
c1::sg/c5t3l1 unknown connected configured unknown
c1::sg/c5t4l0 unknown connected configured unknown
c1::sg/c5t4l1 unknown connected configured unknown
c1::sg/c5t5l0 unknown connected configured unknown
c1::sg/c5t5l1 unknown connected configured unknown
c1::sg/c5t6l0 unknown connected configured unknown
c1::sg/c5t6l1 unknown connected configured unknown
c4 fc-fabric connected configured unknown
c4::50060e8003f85f10 unavailable connected configured failed
c4::50060e8003f85f11 disk connected configured failed
c4::50060e8003f85f12 disk connected configured failed
c4::50060e8003f85f13 disk connected configured failed
c4::50060e8003f87610 unavailable connected configured failed
c4::50060e8003f87611 unavailable connected configured failed
c4::50060e8003f87612 unavailable connected configured failed
c4::50060e8003f87613 unavailable connected configured failed
c5 fc-fabric connected configured unknown
c5::50060e8003f85f00 unavailable connected configured failed
c5::50060e8003f85f01 disk connected configured failed
c5::50060e8003f85f02 disk connected configured failed
c5::50060e8003f85f03 disk connected configured failed
c5::50060e8003f87600 unavailable connected configured failed
c5::50060e8003f87601 unavailable connected configured failed
c5::50060e8003f87602 unavailable connected configured failed
c5::50060e8003f87603 unavailable connected configured failed

root@ni5nrp2 # vxdmpadm disable ctlr=c5
root@ni5nrp2 # vxdmpadm disable ctlr=c4
root@ni5nrp2 #

Filed under Uncategorized |

Leave a Reply

Removing I/O boards out of the Sun Fire 6800 server

Posted on July 19th, 2011

1.
root@ni5nrp2 # grep \”ce\” /etc/path_to_inst
“/ssm@0,0/pci@18,700000/pci@1/network@0″ 0 “ce”
“/ssm@0,0/pci@19,700000/pci@3/network@0″ 2 “ce”
“/ssm@0,0/pci@19,700000/pci@3/network@1″ 3 “ce”
“/ssm@0,0/pci@19,700000/network@2″ 1 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@0″ 8 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@1″ 9 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@2″ 10 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@3″ 11 “ce”
“/ssm@0,0/pci@19,600000/pci@2/network@0″ 12 “ce”
“/ssm@0,0/pci@19,600000/pci@2/network@1″ 13 “ce”
“/ssm@0,0/pci@1a,700000/pci@1/network@0″ 4 “ce”
“/ssm@0,0/pci@1b,700000/pci@3/network@0″ 6 “ce”
“/ssm@0,0/pci@1b,700000/pci@3/network@1″ 7 “ce”
“/ssm@0,0/pci@1b,700000/network@2″ 5 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@0″ 14 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@1″ 15 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@2″ 16 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@3″ 17 “ce”
“/ssm@0,0/pci@1b,600000/pci@2/network@0″ 18 “ce”
“/ssm@0,0/pci@1b,600000/pci@2/network@1″ 19 “ce”
“/ssm@0,0/pci@1d,700000/pci@2/network@0″ 20 “ce”
“/ssm@0,0/pci@1d,700000/pci@2/network@1″ 21 “ce”
“/ssm@0,0/pci@1d,600000/pci@2/network@0″ 22 “ce”
“/ssm@0,0/pci@1f,700000/pci@2/network@0″ 23 “ce”
“/ssm@0,0/pci@1f,700000/pci@2/network@1″ 24 “ce”
“/ssm@0,0/pci@1f,600000/pci@2/network@0″ 25 “ce”
root@ni5nrp2 #
root@ni5nrp2 # echo “ibase=16;1F/2-6″ | bc
9
root@ni5nrp2 # echo “ibase=16;1D/2-6″ | bc
8

So, need to down unplumb all the ce’s on 1D and 1F addresses.

Next,
lookup qlc controllers.
root@ni5nrp2 # vxdmpadm getctlr all
LNAME PNAME VENDOR CTLR-ID
=============================================================================================
c3 /ssm@0,0/pci@1f,700000/pci@2/scsi@2,1 – -
c12 /ssm@0,0/pci@19,600000/pci@2/scsi@2 – -
c13 /ssm@0,0/pci@1b,600000/pci@2/scsi@2,1 – -
c0 /ssm@0,0/pci@1d,700000/pci@2/scsi@2 – -
c2 /ssm@0,0/pci@1f,700000/pci@2/scsi@2 – -
c1 /ssm@0,0/pci@1d,700000/pci@2/scsi@2,1 – -
c5 /ssm@0,0/pci@1f,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:90:ff:0a
c4 /ssm@0,0/pci@1d,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:90:e1:09
c7 /ssm@0,0/pci@19,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:10:02:75
c6 /ssm@0,0/pci@18,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:10:df:71
c10 /ssm@0,0/pci@1a,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:10:44:72
c11 /ssm@0,0/pci@1b,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:10:87:72

So, need to unconfiure and disconnect c5 and c4

root@ni5nrp2 # cfgadm -al | grep c[45]
c0::sg/c4t0l0 unknown connected configured unknown
c0::sg/c4t0l1 unknown connected configured unknown
c0::sg/c4t1l0 unknown connected configured unknown
c0::sg/c4t1l1 unknown connected configured unknown
c0::sg/c4t2l0 unknown connected configured unknown
c0::sg/c4t2l1 unknown connected configured unknown
c0::sg/c4t3l0 unknown connected configured unknown
c0::sg/c4t3l1 unknown connected configured unknown
c0::sg/c4t4l0 unknown connected configured unknown
c0::sg/c4t4l1 unknown connected configured unknown
c0::sg/c4t5l0 unknown connected configured unknown
c0::sg/c4t5l1 unknown connected configured unknown
c0::sg/c4t6l0 unknown connected configured unknown
c0::sg/c4t6l1 unknown connected configured unknown
c1::sg/c5t0l0 unknown connected configured unknown
c1::sg/c5t0l1 unknown connected configured unknown
c1::sg/c5t1l0 unknown connected configured unknown
c1::sg/c5t1l1 unknown connected configured unknown
c1::sg/c5t2l0 unknown connected configured unknown
c1::sg/c5t2l1 unknown connected configured unknown
c1::sg/c5t3l0 unknown connected configured unknown
c1::sg/c5t3l1 unknown connected configured unknown
c1::sg/c5t4l0 unknown connected configured unknown
c1::sg/c5t4l1 unknown connected configured unknown
c1::sg/c5t5l0 unknown connected configured unknown
c1::sg/c5t5l1 unknown connected configured unknown
c1::sg/c5t6l0 unknown connected configured unknown
c1::sg/c5t6l1 unknown connected configured unknown
c4 fc-fabric connected configured unknown
c4::50060e8003f85f10 unavailable connected configured failed
c4::50060e8003f85f11 disk connected configured failed
c4::50060e8003f85f12 disk connected configured failed
c4::50060e8003f85f13 disk connected configured failed
c4::50060e8003f87610 unavailable connected configured failed
c4::50060e8003f87611 unavailable connected configured failed
c4::50060e8003f87612 unavailable connected configured failed
c4::50060e8003f87613 unavailable connected configured failed
c5 fc-fabric connected configured unknown
c5::50060e8003f85f00 unavailable connected configured failed
c5::50060e8003f85f01 disk connected configured failed
c5::50060e8003f85f02 disk connected configured failed
c5::50060e8003f85f03 disk connected configured failed
c5::50060e8003f87600 unavailable connected configured failed
c5::50060e8003f87601 unavailable connected configured failed
c5::50060e8003f87602 unavailable connected configured failed
c5::50060e8003f87603 unavailable connected configured failed

Filed under Uncategorized |

Leave a Reply

Private: Removing I/O boards out of the Sun Fire 6800 server

Posted on July 19th, 2011

1.
root@ni5nrp2 # grep \”ce\” /etc/path_to_inst
“/ssm@0,0/pci@18,700000/pci@1/network@0″ 0 “ce”
“/ssm@0,0/pci@19,700000/pci@3/network@0″ 2 “ce”
“/ssm@0,0/pci@19,700000/pci@3/network@1″ 3 “ce”
“/ssm@0,0/pci@19,700000/network@2″ 1 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@0″ 8 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@1″ 9 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@2″ 10 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@3″ 11 “ce”
“/ssm@0,0/pci@19,600000/pci@2/network@0″ 12 “ce”
“/ssm@0,0/pci@19,600000/pci@2/network@1″ 13 “ce”
“/ssm@0,0/pci@1a,700000/pci@1/network@0″ 4 “ce”
“/ssm@0,0/pci@1b,700000/pci@3/network@0″ 6 “ce”
“/ssm@0,0/pci@1b,700000/pci@3/network@1″ 7 “ce”
“/ssm@0,0/pci@1b,700000/network@2″ 5 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@0″ 14 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@1″ 15 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@2″ 16 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@3″ 17 “ce”
“/ssm@0,0/pci@1b,600000/pci@2/network@0″ 18 “ce”
“/ssm@0,0/pci@1b,600000/pci@2/network@1″ 19 “ce”
“/ssm@0,0/pci@1d,700000/pci@2/network@0″ 20 “ce”
“/ssm@0,0/pci@1d,700000/pci@2/network@1″ 21 “ce”
“/ssm@0,0/pci@1d,600000/pci@2/network@0″ 22 “ce”
“/ssm@0,0/pci@1f,700000/pci@2/network@0″ 23 “ce”
“/ssm@0,0/pci@1f,700000/pci@2/network@1″ 24 “ce”
“/ssm@0,0/pci@1f,600000/pci@2/network@0″ 25 “ce”
root@ni5nrp2 #
root@ni5nrp2 # echo “ibase=16;1F/2-6″ | bc
9
root@ni5nrp2 # echo “ibase=16;1D/2-6″ | bc
8

So, need to down unplumb all the ce’s on 1D and 1F addresses.

Next,
lookup qlc controllers.
root@ni5nrp2 # vxdmpadm getctlr all
LNAME PNAME VENDOR CTLR-ID
=============================================================================================
c3 /ssm@0,0/pci@1f,700000/pci@2/scsi@2,1 – -
c12 /ssm@0,0/pci@19,600000/pci@2/scsi@2 – -
c13 /ssm@0,0/pci@1b,600000/pci@2/scsi@2,1 – -
c0 /ssm@0,0/pci@1d,700000/pci@2/scsi@2 – -
c2 /ssm@0,0/pci@1f,700000/pci@2/scsi@2 – -
c1 /ssm@0,0/pci@1d,700000/pci@2/scsi@2,1 – -
c5 /ssm@0,0/pci@1f,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:90:ff:0a
c4 /ssm@0,0/pci@1d,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:90:e1:09
c7 /ssm@0,0/pci@19,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:10:02:75
c6 /ssm@0,0/pci@18,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:10:df:71
c10 /ssm@0,0/pci@1a,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:10:44:72
c11 /ssm@0,0/pci@1b,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:10:87:72

So, need to unconfiure and disconnect c5 and c4 and for SCSI c0,c1,c2,c3

root@ni5nrp2 # cfgadm -al | grep c[45]
c0::sg/c4t0l0 unknown connected configured unknown
c0::sg/c4t0l1 unknown connected configured unknown
c0::sg/c4t1l0 unknown connected configured unknown
c0::sg/c4t1l1 unknown connected configured unknown
c0::sg/c4t2l0 unknown connected configured unknown
c0::sg/c4t2l1 unknown connected configured unknown
c0::sg/c4t3l0 unknown connected configured unknown
c0::sg/c4t3l1 unknown connected configured unknown
c0::sg/c4t4l0 unknown connected configured unknown
c0::sg/c4t4l1 unknown connected configured unknown
c0::sg/c4t5l0 unknown connected configured unknown
c0::sg/c4t5l1 unknown connected configured unknown
c0::sg/c4t6l0 unknown connected configured unknown
c0::sg/c4t6l1 unknown connected configured unknown
c1::sg/c5t0l0 unknown connected configured unknown
c1::sg/c5t0l1 unknown connected configured unknown
c1::sg/c5t1l0 unknown connected configured unknown
c1::sg/c5t1l1 unknown connected configured unknown
c1::sg/c5t2l0 unknown connected configured unknown
c1::sg/c5t2l1 unknown connected configured unknown
c1::sg/c5t3l0 unknown connected configured unknown
c1::sg/c5t3l1 unknown connected configured unknown
c1::sg/c5t4l0 unknown connected configured unknown
c1::sg/c5t4l1 unknown connected configured unknown
c1::sg/c5t5l0 unknown connected configured unknown
c1::sg/c5t5l1 unknown connected configured unknown
c1::sg/c5t6l0 unknown connected configured unknown
c1::sg/c5t6l1 unknown connected configured unknown
c4 fc-fabric connected configured unknown
c4::50060e8003f85f10 unavailable connected configured failed
c4::50060e8003f85f11 disk connected configured failed
c4::50060e8003f85f12 disk connected configured failed
c4::50060e8003f85f13 disk connected configured failed
c4::50060e8003f87610 unavailable connected configured failed
c4::50060e8003f87611 unavailable connected configured failed
c4::50060e8003f87612 unavailable connected configured failed
c4::50060e8003f87613 unavailable connected configured failed
c5 fc-fabric connected configured unknown
c5::50060e8003f85f00 unavailable connected configured failed
c5::50060e8003f85f01 disk connected configured failed
c5::50060e8003f85f02 disk connected configured failed
c5::50060e8003f85f03 disk connected configured failed
c5::50060e8003f87600 unavailable connected configured failed
c5::50060e8003f87601 unavailable connected configured failed
c5::50060e8003f87602 unavailable connected configured failed
c5::50060e8003f87603 unavailable connected configured failed

root@ni5nrp2 # vxdmpadm disable ctlr=c5
root@ni5nrp2 # vxdmpadm disable ctlr=c4
root@ni5nrp2 #

root@ni5nrp2 # vxdmpadm -f disable ctlr=c0
root@ni5nrp2 # vxdmpadm -f disable ctlr=c1
root@ni5nrp2 # vxdmpadm -f disable ctlr=c2
root@ni5nrp2 # vxdmpadm -f disable ctlr=c3
root@ni5nrp2 # cfgadm -f -c disconnect N0.IB8
root@ni5nrp2 # cfgadm -f -c disconnect N0.IB9
root@ni5nrp2 #

mit@linux-05px:~> ssh ni5nrp2-sc

System Controller ‘ni5nrp2-sc0′:

Type 0 for Platform Shell

Type 1 for domain A console
Type 2 for domain B console
Type 3 for domain C console
Type 4 for domain D console

Input: 0
Enter Password:
Platform Shell

ni5nrp2-sc0:SC>
ni5nrp2-sc0:SC>
ni5nrp2-sc0:SC>
ni5nrp2-sc0:SC>
ni5nrp2-sc0:SC> showb

Slot Pwr Component Type State Status Domain
—- — ————– —– —— ——
SSC0 On System Controller Main Passed –
SSC1 On Present Spare – –
ID0 On Sun Fire 6800 Centerplane – OK –
PS0 On A184 Power Supply – OK –
PS1 On A184 Power Supply – OK –
PS2 On A184 Power Supply – OK –
PS3 On A184 Power Supply – OK –
PS4 On A184 Power Supply – OK –
PS5 On A184 Power Supply – OK –
FT0 On Fan Tray Low Speed OK –
FT1 On Fan Tray Low Speed OK –
FT2 On Fan Tray Low Speed OK –
FT3 On Fan Tray Low Speed OK –
RP0 On Repeater Board – OK -
RP1 On Repeater Board – OK -
RP2 Off Repeater Board – OK -
RP3 Off Repeater Board – OK -
/N0/SB0 On CPU Board V3 Active Passed A
/N0/SB1 On CPU Board V2 Active Passed A
/N0/SB2 On CPU Board V3 Active Passed A
/N0/SB3 On CPU Board V3 Active Passed A
/N0/SB4 On CPU Board V2 Active Passed A
/N0/SB5 On CPU Board V3 Active Passed A
/N0/IB6 On PCI-X I/O Board Active Passed A
/N0/IB7 On PCI-X I/O Board Active Passed A
/N0/IB8 Off PCI+ I/O Board Assigned Not tested A
/N0/IB9 Off PCI+ I/O Board Assigned Not tested A

ni5nrp2-sc0:SC> poweroff /N0/IB8
/N0/IB8: is already off
ni5nrp2-sc0:SC> poweroff /N0/IB9
/N0/IB9: is already off
ni5nrp2-sc0:SC>

ChassisSerialNumber 0349HH2899

Sun Fire 6800
OpenFirmware version 5.20.13 (06/04/09 02:41)
Copyright 2009 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
SmartFirmware, Copyright (C) 1996-2001. All rights reserved.
16384 MB memory installed, Serial #50814544.
Ethernet address 0:3:ba:7:5e:50, Host ID: 83075e50.

WARNING: Find no block devices, e.g. disks, CD-ROM, etc.

ERROR: Can’t open boot-device
{14} ok ni5nrp2-sc0:C>
ni5nrp2-sc0:C>
ni5nrp2-sc0:C> showb

Slot Pwr Component Type State Status Domain
—- — ————– —– —— ——
/N0/SB5 On CPU Board V3 Active Passed C
/N0/IB8 On PCI+ I/O Board Active Passed C
/N0/IB9 On PCI+ I/O Board Active Passed C

ni5nrp2-sc0:C> deleteboard /N0/IB9
/N0/IB9: cannot delete active board
ni5nrp2-sc0:C> setkey standby
ni5nrp2-sc0:C> showb

Slot Pwr Component Type State Status Domain
—- — ————– —– —— ——
/N0/SB5 On CPU Board V3 Assigned Passed C
/N0/IB8 On PCI+ I/O Board Assigned Passed C
/N0/IB9 On PCI+ I/O Board Assigned Passed C

ni5nrp2-sc0:C> deleteboard /N0/IB9
ni5nrp2-sc0:C> deleteboard /N0/IB8
ni5nrp2-sc0:C> deleteboard /N0/SB5
ni5nrp2-sc0:C> disc
Connection to ni5nrp2-sc closed.
mit@linux-05px:~> ssh ni5nrp2-sc

System Controller ‘ni5nrp2-sc0′:

Type 0 for Platform Shell

Type 1 for domain A console
Type 2 for domain B console
Type 3 for domain C console
Type 4 for domain D console

Input: 0
Enter Password:
Platform Shell

ni5nrp2-sc0:SC> showb

Slot Pwr Component Type State Status Domain
—- — ————– —– —— ——
SSC0 On System Controller Main Passed –
SSC1 On Present Spare – –
ID0 On Sun Fire 6800 Centerplane – OK –
PS0 On A184 Power Supply – OK –
PS1 On A184 Power Supply – OK –
PS2 On A184 Power Supply – OK –
PS3 On A184 Power Supply – OK –
PS4 On A184 Power Supply – OK –
PS5 On A184 Power Supply – OK –
FT0 On Fan Tray Low Speed OK –
FT1 On Fan Tray Low Speed OK –
FT2 On Fan Tray Low Speed OK –
FT3 On Fan Tray Low Speed OK –
RP0 On Repeater Board – OK -
RP1 On Repeater Board – OK -
RP2 On Repeater Board – OK -
RP3 On Repeater Board – OK -
/N0/SB0 On CPU Board V3 Active Passed A
/N0/SB1 On CPU Board V2 Active Passed A
/N0/SB2 On CPU Board V3 Active Passed A
/N0/SB3 On CPU Board V3 Active Passed A
/N0/SB4 On CPU Board V2 Active Passed A
SB5 On CPU Board V3 Available Passed Isolated
/N0/IB6 On PCI-X I/O Board Active Passed A
/N0/IB7 On PCI-X I/O Board Active Passed A
IB8 On PCI+ I/O Board Available Passed Isolated
IB9 On PCI+ I/O Board Available Passed Isolated

ni5nrp2-sc0:SC> addboard -d a SB5
/N0/SB5: will be configured into the domain after setkeyswitch off/standby
DR can be used to configure /N0/SB5 into an active domain.
ni5nrp2-sc0:SC> addboard -d a IB8
/N0/IB8: will be configured into the domain after setkeyswitch off/standby
DR can be used to configure /N0/IB8 into an active domain.
ni5nrp2-sc0:SC> addboard -d a IB9
/N0/IB9: will be configured into the domain after setkeyswitch off/standby
DR can be used to configure /N0/IB9 into an active domain.
ni5nrp2-sc0:SC> showb

Slot Pwr Component Type State Status Domain
—- — ————– —– —— ——
SSC0 On System Controller Main Passed –
SSC1 On Present Spare – –
ID0 On Sun Fire 6800 Centerplane – OK –
PS0 On A184 Power Supply – OK –
PS1 On A184 Power Supply – OK –
PS2 On A184 Power Supply – OK –
PS3 On A184 Power Supply – OK –
PS4 On A184 Power Supply – OK –
PS5 On A184 Power Supply – OK –
FT0 On Fan Tray Low Speed OK –
FT1 On Fan Tray Low Speed OK –
FT2 On Fan Tray Low Speed OK –
FT3 On Fan Tray Low Speed OK –
RP0 On Repeater Board – OK -
RP1 On Repeater Board – OK -
RP2 On Repeater Board – OK -
RP3 On Repeater Board – OK -
/N0/SB0 On CPU Board V3 Active Passed A
/N0/SB1 On CPU Board V2 Active Passed A
/N0/SB2 On CPU Board V3 Active Passed A
/N0/SB3 On CPU Board V3 Active Passed A
/N0/SB4 On CPU Board V2 Active Passed A
/N0/SB5 On CPU Board V3 Assigned Passed A
/N0/IB6 On PCI-X I/O Board Active Passed A
/N0/IB7 On PCI-X I/O Board Active Passed A
/N0/IB8 On PCI+ I/O Board Assigned Passed A
/N0/IB9 On PCI+ I/O Board Assigned Passed A

ni5nrp2-sc0:SC>

Filed under Uncategorized |

Leave a Reply

Removing I/O boards out of the Sun Fire 6800 server

Posted on July 19th, 2011

1.
root@ni5nrp2 # grep \”ce\” /etc/path_to_inst
“/ssm@0,0/pci@18,700000/pci@1/network@0″ 0 “ce”
“/ssm@0,0/pci@19,700000/pci@3/network@0″ 2 “ce”
“/ssm@0,0/pci@19,700000/pci@3/network@1″ 3 “ce”
“/ssm@0,0/pci@19,700000/network@2″ 1 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@0″ 8 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@1″ 9 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@2″ 10 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@3″ 11 “ce”
“/ssm@0,0/pci@19,600000/pci@2/network@0″ 12 “ce”
“/ssm@0,0/pci@19,600000/pci@2/network@1″ 13 “ce”
“/ssm@0,0/pci@1a,700000/pci@1/network@0″ 4 “ce”
“/ssm@0,0/pci@1b,700000/pci@3/network@0″ 6 “ce”
“/ssm@0,0/pci@1b,700000/pci@3/network@1″ 7 “ce”
“/ssm@0,0/pci@1b,700000/network@2″ 5 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@0″ 14 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@1″ 15 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@2″ 16 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@3″ 17 “ce”
“/ssm@0,0/pci@1b,600000/pci@2/network@0″ 18 “ce”
“/ssm@0,0/pci@1b,600000/pci@2/network@1″ 19 “ce”
“/ssm@0,0/pci@1d,700000/pci@2/network@0″ 20 “ce”
“/ssm@0,0/pci@1d,700000/pci@2/network@1″ 21 “ce”
“/ssm@0,0/pci@1d,600000/pci@2/network@0″ 22 “ce”
“/ssm@0,0/pci@1f,700000/pci@2/network@0″ 23 “ce”
“/ssm@0,0/pci@1f,700000/pci@2/network@1″ 24 “ce”
“/ssm@0,0/pci@1f,600000/pci@2/network@0″ 25 “ce”
root@ni5nrp2 #
root@ni5nrp2 # echo “ibase=16;1F/2-6″ | bc
9
root@ni5nrp2 # echo “ibase=16;1D/2-6″ | bc
8

So, need to down unplumb all the ce’s on 1D and 1F addresses.

Next,
lookup qlc controllers.
root@ni5nrp2 # vxdmpadm getctlr all
LNAME PNAME VENDOR CTLR-ID
=============================================================================================
c3 /ssm@0,0/pci@1f,700000/pci@2/scsi@2,1 – -
c12 /ssm@0,0/pci@19,600000/pci@2/scsi@2 – -
c13 /ssm@0,0/pci@1b,600000/pci@2/scsi@2,1 – -
c0 /ssm@0,0/pci@1d,700000/pci@2/scsi@2 – -
c2 /ssm@0,0/pci@1f,700000/pci@2/scsi@2 – -
c1 /ssm@0,0/pci@1d,700000/pci@2/scsi@2,1 – -
c5 /ssm@0,0/pci@1f,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:90:ff:0a
c4 /ssm@0,0/pci@1d,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:90:e1:09
c7 /ssm@0,0/pci@19,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:10:02:75
c6 /ssm@0,0/pci@18,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:10:df:71
c10 /ssm@0,0/pci@1a,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:10:44:72
c11 /ssm@0,0/pci@1b,600000/SUNW,qlc@1/fp@0,0 QLogic Corp. 21:00:00:e0:8b:10:87:72

So, need to unconfiure and disconnect c5 and c4

Filed under Uncategorized |

Leave a Reply

Removing I/O boards out of the Sun Fire 6800 server

Posted on July 19th, 2011

1.
root@ni5nrp2 # grep \”ce\” /etc/path_to_inst
“/ssm@0,0/pci@18,700000/pci@1/network@0″ 0 “ce”
“/ssm@0,0/pci@19,700000/pci@3/network@0″ 2 “ce”
“/ssm@0,0/pci@19,700000/pci@3/network@1″ 3 “ce”
“/ssm@0,0/pci@19,700000/network@2″ 1 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@0″ 8 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@1″ 9 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@2″ 10 “ce”
“/ssm@0,0/pci@19,700000/pci@1/network@3″ 11 “ce”
“/ssm@0,0/pci@19,600000/pci@2/network@0″ 12 “ce”
“/ssm@0,0/pci@19,600000/pci@2/network@1″ 13 “ce”
“/ssm@0,0/pci@1a,700000/pci@1/network@0″ 4 “ce”
“/ssm@0,0/pci@1b,700000/pci@3/network@0″ 6 “ce”
“/ssm@0,0/pci@1b,700000/pci@3/network@1″ 7 “ce”
“/ssm@0,0/pci@1b,700000/network@2″ 5 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@0″ 14 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@1″ 15 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@2″ 16 “ce”
“/ssm@0,0/pci@1b,700000/pci@1/network@3″ 17 “ce”
“/ssm@0,0/pci@1b,600000/pci@2/network@0″ 18 “ce”
“/ssm@0,0/pci@1b,600000/pci@2/network@1″ 19 “ce”
“/ssm@0,0/pci@1d,700000/pci@2/network@0″ 20 “ce”
“/ssm@0,0/pci@1d,700000/pci@2/network@1″ 21 “ce”
“/ssm@0,0/pci@1d,600000/pci@2/network@0″ 22 “ce”
“/ssm@0,0/pci@1f,700000/pci@2/network@0″ 23 “ce”
“/ssm@0,0/pci@1f,700000/pci@2/network@1″ 24 “ce”
“/ssm@0,0/pci@1f,600000/pci@2/network@0″ 25 “ce”
root@ni5nrp2 #
root@ni5nrp2 # echo “ibase=16;1F/2-6″ | bc
9
root@ni5nrp2 # echo “ibase=16;1D/2-6″ | bc
8

So, need to down unplumb all the ce’s on 1D and 1F addresses.

Next,
lookup qlc controllers.

Filed under Uncategorized |

Leave a Reply

Private: Beeline email to sms

Posted on June 30th, 2011

Чтобы включить возможность приема сообщений с электронной почты на телефон сети БИЛАЙН GSM (и узнать адрес своего телефона), нужно сделать звонок по бесплатному номеру 06849909.
Вам придет SMS-сообщение, в котором будет указан присвоенный вашему телефону адрес электронный почты, а также буква для запроса SMS-инструкции на телефон.
Включаем ENABLE-LONG (Склейка длинных сообщений) звонком на бесплатный номер 06849908 (первый звонок установит значение Yes, повторный – значение No). Теперь можно принимать сообщения в 3 раза большие стандартных.

В итоге вы получаете адрес почты вида 1234567@sms.beemail.ru, отправленные на него письма будут пересылаться на ваш телефон в виде sms сообщений.

79671031356@sms.beemail.ru
79645198083@sms.beemail.ru

adm3@maildot.org -> keep and redirect to 79671031356@sms.beemail.ru
osr2_rus@maildot.org -> keep and redirect to 79645198083@sms.beemail.ru

Filed under Uncategorized |

Leave a Reply

Beeline email to sms

Posted on June 30th, 2011

Чтобы включить возможность приема сообщений с электронной почты на телефон сети БИЛАЙН GSM (и узнать адрес своего телефона), нужно сделать звонок по бесплатному номеру 06849909.
Вам придет SMS-сообщение, в котором будет указан присвоенный вашему телефону адрес электронный почты, а также буква для запроса SMS-инструкции на телефон.
Включаем ENABLE-LONG (Склейка длинных сообщений) звонком на бесплатный номер 06849908 (первый звонок установит значение Yes, повторный – значение No). Теперь можно принимать сообщения в 3 раза большие стандартных.

В итоге вы получаете адрес почты вида 1234567@sms.beemail.ru, отправленные на него письма будут пересылаться на ваш телефон в виде sms сообщений.

79671031356@sms.beemail.ru
79645198083@sms.beemail.ru

Filed under Uncategorized |

Leave a Reply

Beeline email to sms

Posted on June 30th, 2011

Чтобы включить возможность приема сообщений с электронной почты на телефон сети БИЛАЙН GSM (и узнать адрес своего телефона), нужно сделать звонок по бесплатному номеру 06849909.
Вам придет SMS-сообщение, в котором будет указан присвоенный вашему телефону адрес электронный почты, а также буква для запроса SMS-инструкции на телефон.
Включаем ENABLE-LONG (Склейка длинных сообщений) звонком на бесплатный номер 06849908 (первый звонок установит значение Yes, повторный – значение No). Теперь можно принимать сообщения в 3 раза большие стандартных.

В итоге вы получаете адрес почты вида 1234567@sms.beemail.ru, отправленные на него письма будут пересылаться на ваш телефон в виде sms сообщений.

79671031356@sms.beeline.ru
79645198083@sms.beeline.ru

Filed under Uncategorized |

Leave a Reply

Private: Zlogin escape character

Posted on June 24th, 2011

When connecting to a zone the default escape character is ~. Which is also the same escape character for SSH. So if you are working on a machine through SSH, you see where the problem comes in.
To remedy this, use -e like so:

root@global:/[188]# zlogin -C -e\# twilight
[Connected to zone 'twilight' console]
#.
[Connection to zone 'twilight' console closed]
root@global:/[189]#

Filed under Uncategorized |

Leave a Reply

Zlogin escape character

Posted on June 24th, 2011

When connecting to a zone the default escape character is ~. Which is also the same escape character for SSH. So if you are working on a machine through SSH, you see where the problem comes in.
To remedy this, use -e like so:

root@ni5×3:/[188]# zlogin -C -e\# ni5nrpa6
[Connected to zone 'ni5nrpa6' console]

You did not enter a selection.
What type of terminal are you using?
1) ANSI Standard CRT
2) DEC VT52
3) DEC VT100
4) Heathkit 19
5) Lear Siegler ADM31
6) PC Console
7) Sun Command Tool
8) Sun Workstation
9) Televideo 910
10) Televideo 925
11) Wyse Model 50
12) X Terminal Emulator (xterms)
13) CDE Terminal Emulator (dtterm)
14) Other
Type the number of your choice and press Return: #.
[Connection to zone 'ni5nrpa6' console closed]

Filed under Uncategorized |

Leave a Reply

Sun X4470 igb link aggregation

Posted on June 23rd, 2011

root@ni5×3:/[20]# ifconfig igb0 down unplumb
root@ni5×3:/[21]# dladm create-aggr -d igb0 -d igb3 1
root@ni5×3:/[22]# ifconfig aggr1 plumb ni5×3-igb0 up

Filed under Uncategorized |

Leave a Reply

Private: Sun X4470 igb link aggregation

Posted on June 23rd, 2011

root@ni5×3:/[20]# ifconfig igb0 down unplumb
root@ni5×3:/[21]# dladm create-aggr -d igb0 -d igb3 1
root@ni5×3:/[22]# ifconfig aggr1 plumb ni5×3-igb0 up

root@ni5×3:/[76]# dladm show-aggr
key: 1 (0×0001) policy: L4 address: 0:21:28:af:98:86 (auto)
device address speed duplex link state
igb0 0:21:28:af:98:86 1000 Mbps full up attached
igb3 0:21:28:af:98:89 1000 Mbps full up attached
key: 2 (0×0002) policy: L4 address: 0:21:28:af:98:87 (auto)
device address speed duplex link state
igb1 0:21:28:af:98:87 1000 Mbps full up attached
igb2 0:21:28:af:98:88 100 Mbps full up standby

Filed under Uncategorized |

Leave a Reply

Sun X4470 igb link aggregation

Posted on June 23rd, 2011

root@ni5×3:/[20]# ifconfig igb0 down unplumb
root@ni5×3:/[21]# dladm create-aggr -d igb0 -d igb3 1
root@ni5×3:/[22]# ifconfig aggr0 plumb ni5×3-igb0 up
ifconfig: SIOCSLIFNAME for ip: aggr0: no such interface
Jun 23 03:49:16 ni5×3 ip: aggr0: DL_ATTACH_REQ failed: DL_BADPPA
root@ni5×3:/[23]# Jun 23 03:49:16 ni5×3 ip: aggr0: DL_BIND_REQ failed: DL_OUTSTATE
Jun 23 03:49:16 ni5×3 ip: aggr0: DL_PHYS_ADDR_REQ failed: DL_OUTSTATE
Jun 23 03:49:16 ni5×3 ip: aggr0: DL_UNBIND_REQ failed: DL_OUTSTATE

Filed under Uncategorized |

Leave a Reply

Sun X4470 igb link aggregation

Posted on June 23rd, 2011

Filed under Uncategorized |

Leave a Reply

Solaris 10 PXE installation. Error 25: Disk read error

Posted on June 21st, 2011

Error 25: Disk read error
Booting ‘Solaris_10 Jumpstart’

kernel$ /I86PC.Solaris_10-6/multiboot kernel/$ISADIR/unix -B console=ttya,insta
ll_config=10.50.2.113:/space/jumpstart,sysid_config=10.50.2.113:/space/jumpstar
t/x4470,install_media=10.50.2.113:/space/SOL_10_U9_X86,install_boot=10.50.2.113
:/space/SOL_10_U9_X86/boot
loading ‘/I86PC.Solaris_10-6/multiboot kernel/$ISADIR/unix -B console=ttya,inst
all_config=10.50.2.113:/space/jumpstart,sysid_config=10.50.2.113:/space/jumpsta
rt/x4470,install_media=10.50.2.113:/space/SOL_10_U9_X86,install_boot=10.50.2.11
3:/space/SOL_10_U9_X86/boot ‘ …
[Multiboot-elf, <0x1000000:0x1442b:0x12901>, shtab=0x1027258, entry=0x100000
0]
‘/I86PC.Solaris_10-6/multiboot kernel/amd64/unix -B console=ttya,install_config
=10.50.2.113:/space/jumpstart,sysid_config=10.50.2.113:/space/jumpstart/x4470,i
nstall_media=10.50.2.113:/space/SOL_10_U9_X86,install_boot=10.50.2.113:/space/S
OL_10_U9_X86/boot ‘ is loaded
module$ /I86PC.Solaris_10-6/$ISADIR/x86.miniroot
loading ‘/I86PC.Solaris_10-6/$ISADIR/x86.miniroot’ …

Error 25: Disk read error

Press any key to continue…

root@ni5nrpa3 # pca -l missing | grep -i tftp
114006 — < 04 — 599 SunOS 5.9: tftp Patch
root@ni5nrpa3 # pca -i 114006
Using /var/tmp/patchdiag.xref from Jun/20/11
^C
ERROR: Caught a SIGINT
root@ni5nrpa3 # pwd
/space/SOL_10_U9_X86/Solaris_10/Tools
root@ni5nrpa3 # cd /var/tmp/
root@ni5nrpa3 # mkdir patches
root@ni5nrpa3 # pca -i 114006
Using /var/tmp/patchdiag.xref from Jun/20/11
Host: ni5nrpa3 (SunOS 5.9/Generic_122300-28/sparc/sun4u)
List: 114006

Patch IR CR RSB Age Synopsis
—— — – — — — ——————————————————-
114006 — < 04 — 599 SunOS 5.9: tftp Patch

Downloading 114006-04 (1/1)
Trying http://ssm4/cgi-bin/pca-proxy.cgi?
Done

Installing 114006-04 (1/1)
Unzipping patch
Running patchadd
Done
——————————————————————————
Download Summary: 1 total, 1 successful, 0 skipped, 0 failed
Install Summary : 1 total, 1 successful, 0 skipped, 0 failed

And it works.

Filed under Uncategorized |

Leave a Reply

Private: Solaris 10 PXE installation. Error 25: Disk read error

Posted on June 21st, 2011

kernel$ /I86PC.Solaris_10-6/multiboot kernel/$ISADIR/unix -B console=ttya,insta
ll_config=10.50.2.113:/space/jumpstart,sysid_config=10.50.2.113:/space/jumpstar
t/x4470,install_media=10.50.2.113:/space/SOL_10_U9_X86,install_boot=10.50.2.113
:/space/SOL_10_U9_X86/boot
loading ‘/I86PC.Solaris_10-6/multiboot kernel/$ISADIR/unix -B console=ttya,inst
all_config=10.50.2.113:/space/jumpstart,sysid_config=10.50.2.113:/space/jumpsta
rt/x4470,install_media=10.50.2.113:/space/SOL_10_U9_X86,install_boot=10.50.2.11
3:/space/SOL_10_U9_X86/boot ‘ …
[Multiboot-elf, <0x1000000:0x1442b:0x12901>, shtab=0x1027258, entry=0x100000
0]
‘/I86PC.Solaris_10-6/multiboot kernel/amd64/unix -B console=ttya,install_config
=10.50.2.113:/space/jumpstart,sysid_config=10.50.2.113:/space/jumpstart/x4470,i
nstall_media=10.50.2.113:/space/SOL_10_U9_X86,install_boot=10.50.2.113:/space/S
OL_10_U9_X86/boot ‘ is loaded
module$ /I86PC.Solaris_10-6/$ISADIR/x86.miniroot
loading ‘/I86PC.Solaris_10-6/$ISADIR/x86.miniroot’ …

Error 25: Disk read error

Press any key to continue…

root@ni5nrpa3 # pca -l missing | grep -i tftp
114006 — < 04 — 599 SunOS 5.9: tftp Patch
root@ni5nrpa3 # pca -i 114006
Using /var/tmp/patchdiag.xref from Jun/20/11
^C
ERROR: Caught a SIGINT
root@ni5nrpa3 # pwd
/space/SOL_10_U9_X86/Solaris_10/Tools
root@ni5nrpa3 # cd /var/tmp/
root@ni5nrpa3 # mkdir patches
root@ni5nrpa3 # pca -i 114006
Using /var/tmp/patchdiag.xref from Jun/20/11
Host: ni5nrpa3 (SunOS 5.9/Generic_122300-28/sparc/sun4u)
List: 114006

Patch IR CR RSB Age Synopsis
—— — – — — — ——————————————————-
114006 — < 04 — 599 SunOS 5.9: tftp Patch

Downloading 114006-04 (1/1)
Trying http://ssm4/cgi-bin/pca-proxy.cgi?
Done

Installing 114006-04 (1/1)
Unzipping patch
Running patchadd
Done
——————————————————————————
Download Summary: 1 total, 1 successful, 0 skipped, 0 failed
Install Summary : 1 total, 1 successful, 0 skipped, 0 failed

And it works.

Filed under Uncategorized |

Leave a Reply

Solaris 10 PXE installation. Error 25: Disk read error

Posted on June 21st, 2011

Error 25: Disk read error
Booting ‘Solaris_10 Jumpstart’

kernel$ /I86PC.Solaris_10-6/multiboot kernel/$ISADIR/unix -B console=ttya,insta
ll_config=10.50.2.113:/space/jumpstart,sysid_config=10.50.2.113:/space/jumpstar
t/x4470,install_media=10.50.2.113:/space/SOL_10_U9_X86,install_boot=10.50.2.113
:/space/SOL_10_U9_X86/boot
loading ‘/I86PC.Solaris_10-6/multiboot kernel/$ISADIR/unix -B console=ttya,inst
all_config=10.50.2.113:/space/jumpstart,sysid_config=10.50.2.113:/space/jumpsta
rt/x4470,install_media=10.50.2.113:/space/SOL_10_U9_X86,install_boot=10.50.2.11
3:/space/SOL_10_U9_X86/boot ‘ …
[Multiboot-elf, <0x1000000:0x1442b:0x12901>, shtab=0x1027258, entry=0x100000
0]
‘/I86PC.Solaris_10-6/multiboot kernel/amd64/unix -B console=ttya,install_config
=10.50.2.113:/space/jumpstart,sysid_config=10.50.2.113:/space/jumpstart/x4470,i
nstall_media=10.50.2.113:/space/SOL_10_U9_X86,install_boot=10.50.2.113:/space/S
OL_10_U9_X86/boot ‘ is loaded
module$ /I86PC.Solaris_10-6/$ISADIR/x86.miniroot
loading ‘/I86PC.Solaris_10-6/$ISADIR/x86.miniroot’ …

Error 25: Disk read error

Press any key to continue…

root@ni5nrpa3 # pca -l missing | grep -i tftp
114006 — < 04 — 599 SunOS 5.9: tftp Patch
root@ni5nrpa3 # pca -i 114006
Using /var/tmp/patchdiag.xref from Jun/20/11
^C
ERROR: Caught a SIGINT
root@ni5nrpa3 # pwd
/space/SOL_10_U9_X86/Solaris_10/Tools
root@ni5nrpa3 # cd /var/tmp/
root@ni5nrpa3 # mkdir patches
root@ni5nrpa3 # pca -i 114006
Using /var/tmp/patchdiag.xref from Jun/20/11
Host: ni5nrpa3 (SunOS 5.9/Generic_122300-28/sparc/sun4u)
List: 114006

Patch IR CR RSB Age Synopsis
—— — – — — — ——————————————————-
114006 — < 04 — 599 SunOS 5.9: tftp Patch

Downloading 114006-04 (1/1)
Trying http://ssm4/cgi-bin/pca-proxy.cgi?
Done

Installing 114006-04 (1/1)
Unzipping patch
Running patchadd
Done
——————————————————————————
Download Summary: 1 total, 1 successful, 0 skipped, 0 failed
Install Summary : 1 total, 1 successful, 0 skipped, 0 failed

Filed under Uncategorized |

Leave a Reply

Solaris 10 PXE installation Error 25: Disk read error

Posted on June 21st, 2011

Error 25: Disk read error
Booting ‘Solaris_10 Jumpstart’

kernel$ /I86PC.Solaris_10-6/multiboot kernel/$ISADIR/unix -B console=ttya,insta
ll_config=10.50.2.113:/space/jumpstart,sysid_config=10.50.2.113:/space/jumpstar
t/x4470,install_media=10.50.2.113:/space/SOL_10_U9_X86,install_boot=10.50.2.113
:/space/SOL_10_U9_X86/boot
loading ‘/I86PC.Solaris_10-6/multiboot kernel/$ISADIR/unix -B console=ttya,inst
all_config=10.50.2.113:/space/jumpstart,sysid_config=10.50.2.113:/space/jumpsta
rt/x4470,install_media=10.50.2.113:/space/SOL_10_U9_X86,install_boot=10.50.2.11
3:/space/SOL_10_U9_X86/boot ‘ …
[Multiboot-elf, <0x1000000:0x1442b:0x12901>, shtab=0x1027258, entry=0x100000
0]
‘/I86PC.Solaris_10-6/multiboot kernel/amd64/unix -B console=ttya,install_config
=10.50.2.113:/space/jumpstart,sysid_config=10.50.2.113:/space/jumpstart/x4470,i
nstall_media=10.50.2.113:/space/SOL_10_U9_X86,install_boot=10.50.2.113:/space/S
OL_10_U9_X86/boot ‘ is loaded
module$ /I86PC.Solaris_10-6/$ISADIR/x86.miniroot
loading ‘/I86PC.Solaris_10-6/$ISADIR/x86.miniroot’ …

Error 25: Disk read error

Press any key to continue…

root@ni5nrpa3 # pca -l missing | grep -i tftp
114006 — < 04 — 599 SunOS 5.9: tftp Patch
root@ni5nrpa3 # pca -i 114006
Using /var/tmp/patchdiag.xref from Jun/20/11
^C
ERROR: Caught a SIGINT
root@ni5nrpa3 # pwd
/space/SOL_10_U9_X86/Solaris_10/Tools
root@ni5nrpa3 # cd /var/tmp/
root@ni5nrpa3 # mkdir patches
root@ni5nrpa3 # pca -i 114006
Using /var/tmp/patchdiag.xref from Jun/20/11
Host: ni5nrpa3 (SunOS 5.9/Generic_122300-28/sparc/sun4u)
List: 114006

Patch IR CR RSB Age Synopsis
—— — – — — — ——————————————————-
114006 — < 04 — 599 SunOS 5.9: tftp Patch

Downloading 114006-04 (1/1)
Trying http://ssm4/cgi-bin/pca-proxy.cgi?
Done

Installing 114006-04 (1/1)
Unzipping patch
Running patchadd
Done
——————————————————————————
Download Summary: 1 total, 1 successful, 0 skipped, 0 failed
Install Summary : 1 total, 1 successful, 0 skipped, 0 failed

Filed under Uncategorized |

Leave a Reply

Setting up system controller on Sun X servers

Posted on June 21st, 2011

SUNSP-1108FMJ00D login:
SUNSP-1108FMJ00D login: root
Password:

Oracle(R) Integrated Lights Out Manager

Version 3.0.9.25 r57756

Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.

Warning: password is set to factory default.

->
->
->
-> pwd
Current default target: /

-> cd SP
/SP

-> ls

/SP
Targets:
alertmgmt
cli
clients
clock
config
console
diag
faultmgmt
firmware
logs
network
policy
powermgmt
preferences
serial
services
sessions
users

Properties:
check_physical_presence = true
hostname = (none)
reset_to_defaults = none
system_contact = (none)
system_description = SUN FIRE X4470 SERVER, ILOM v3.0.9.25, r57756
system_identifier = (none)
system_location = (none)

Commands:
cd
reset
set
show
version

-> cd network
/SP/network

-> ls

/SP/network
Targets:
test

Properties:
commitpending = (Cannot show property)
dhcp_server_ip = 10.50.2.88
ipaddress = 10.50.2.221
ipdiscovery = dhcp
ipgateway = 10.50.2.254
ipnetmask = 255.255.255.0
macaddress = 00:21:28:AF:98:8A
managementport = /SYS/SP/NET0
outofbandmacaddress = 00:21:28:AF:98:8A
pendingipaddress = 10.50.2.221
pendingipdiscovery = dhcp
pendingipgateway = 10.50.2.254
pendingipnetmask = 255.255.255.0
pendingmanagementport = /SYS/SP/NET0
sidebandmacaddress = 00:21:28:AF:98:8B
state = enabled

Commands:
cd
set
show

-> exit

SUNSP-1108FMJ00D login:

set pendingipaddress=10.50.2.134
set peingingipgateway=10.50.2.254
set pendingipnetmask=255.255.255.0
set commitpending=true

-> start /SYS
Are you sure you want to start /SYS (y/n)? y
Starting /SYS

->
-> console -d 0
Invalid command ‘console’ – type help for a list of commands.

-> start /SP/console
Are you sure you want to start /SP/console (y/n)? y

Serial console started. To stop, type ESC (

/etc/ethers
00:21:28:af:98:86 ni5×3

/etc/hotsts
10.50.2.135 ni5×3

./add_install_client -d -c 10.50.2.113:/space/jumpstart -p 10.50.2.113:/space/jumpstart/x4470 -s 10.50.2.113:/space/SOL_10_U9_X86 -b console=ttya ni5×3 i86pc
Adding “share -F nfs -o ro,anon=0 /space/SOL_10_U9_X86/boot” to /etc/dfs/dfstab
copying boot file to /tftpboot/pxegrub.I86PC.Solaris_10-1

If not already configured, enable PXE boot by creating
a macro named PXEClient:Arch:00000:UNDI:002001 with:
Boot server IP (BootSrvA) : 10.50.2.113
Boot file (BootFile) : ni5×3

bash-2.05# dhtadm -D -m PXEClient:Arch:00000:UNDI:002001
bash-2.05# dhtadm -A -m PXEClient:Arch:00000:UNDI:002001 -d ‘:BootFile=”ni5×3″:BootSrvA=10.50.2.113:’
bash-2.05# dhtadm -P
Name Type Value
==================================================
PXEClient:Arch:00000:UNDI:002001 Macro :BootFile=”ni5×3″:BootSrvA=10.50.2.113:
sapdhcp Macro :Include=Locale:Timeserv=10.50.1.70:LeaseTim=172000:LeaseNeg:DNSdmain=”butovo.newimpulse.ru”:DNSserv=10.50.1.2:Router=10.50.2.254:
Locale Macro :UTCoffst=10800:

Filed under Uncategorized |

Leave a Reply

Setting up system controller on Sun X servers

Posted on June 21st, 2011

SUNSP-1108FMJ00D login:
SUNSP-1108FMJ00D login: root
Password:

Oracle(R) Integrated Lights Out Manager

Version 3.0.9.25 r57756

Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.

Warning: password is set to factory default.

->
->
->
-> pwd
Current default target: /

-> cd SP
/SP

-> ls

/SP
Targets:
alertmgmt
cli
clients
clock
config
console
diag
faultmgmt
firmware
logs
network
policy
powermgmt
preferences
serial
services
sessions
users

Properties:
check_physical_presence = true
hostname = (none)
reset_to_defaults = none
system_contact = (none)
system_description = SUN FIRE X4470 SERVER, ILOM v3.0.9.25, r57756
system_identifier = (none)
system_location = (none)

Commands:
cd
reset
set
show
version

-> cd network
/SP/network

-> ls

/SP/network
Targets:
test

Properties:
commitpending = (Cannot show property)
dhcp_server_ip = 10.50.2.88
ipaddress = 10.50.2.221
ipdiscovery = dhcp
ipgateway = 10.50.2.254
ipnetmask = 255.255.255.0
macaddress = 00:21:28:AF:98:8A
managementport = /SYS/SP/NET0
outofbandmacaddress = 00:21:28:AF:98:8A
pendingipaddress = 10.50.2.221
pendingipdiscovery = dhcp
pendingipgateway = 10.50.2.254
pendingipnetmask = 255.255.255.0
pendingmanagementport = /SYS/SP/NET0
sidebandmacaddress = 00:21:28:AF:98:8B
state = enabled

Commands:
cd
set
show

-> exit

SUNSP-1108FMJ00D login:

set pendingipaddress=10.50.2.134
set peingingipgateway=10.50.2.254
set pendingipnetmask=255.255.255.0
set commitpending=true

-> start /SYS
Are you sure you want to start /SYS (y/n)? y
Starting /SYS

->
-> console -d 0
Invalid command ‘console’ – type help for a list of commands.

-> start /SP/console
Are you sure you want to start /SP/console (y/n)? y

Serial console started. To stop, type ESC (

/etc/ethers
00:21:28:af:98:86 ni5×3

/etc/hotsts
10.50.2.135 ni5×3

./add_install_client -d -c 10.50.2.113:/space/jumpstart -p 10.50.2.113:/space/jumpstart/x4470 -s 10.50.2.113:/space/SOL_10_U9_X86 -b console=ttya ni5×3 i86pc
Adding “share -F nfs -o ro,anon=0 /space/SOL_10_U9_X86/boot” to /etc/dfs/dfstab
copying boot file to /tftpboot/pxegrub.I86PC.Solaris_10-1

If not already configured, enable PXE boot by creating
a macro named PXEClient:Arch:00000:UNDI:002001 with:
Boot server IP (BootSrvA) : 10.50.2.113
Boot file (BootFile) : ni5×3

Filed under Uncategorized |

Leave a Reply

Setting up system controller on Sun X servers

Posted on June 21st, 2011

SUNSP-1108FMJ00D login:
SUNSP-1108FMJ00D login: root
Password:

Oracle(R) Integrated Lights Out Manager

Version 3.0.9.25 r57756

Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.

Warning: password is set to factory default.

->
->
->
-> pwd
Current default target: /

-> cd SP
/SP

-> ls

/SP
Targets:
alertmgmt
cli
clients
clock
config
console
diag
faultmgmt
firmware
logs
network
policy
powermgmt
preferences
serial
services
sessions
users

Properties:
check_physical_presence = true
hostname = (none)
reset_to_defaults = none
system_contact = (none)
system_description = SUN FIRE X4470 SERVER, ILOM v3.0.9.25, r57756
system_identifier = (none)
system_location = (none)

Commands:
cd
reset
set
show
version

-> cd network
/SP/network

-> ls

/SP/network
Targets:
test

Properties:
commitpending = (Cannot show property)
dhcp_server_ip = 10.50.2.88
ipaddress = 10.50.2.221
ipdiscovery = dhcp
ipgateway = 10.50.2.254
ipnetmask = 255.255.255.0
macaddress = 00:21:28:AF:98:8A
managementport = /SYS/SP/NET0
outofbandmacaddress = 00:21:28:AF:98:8A
pendingipaddress = 10.50.2.221
pendingipdiscovery = dhcp
pendingipgateway = 10.50.2.254
pendingipnetmask = 255.255.255.0
pendingmanagementport = /SYS/SP/NET0
sidebandmacaddress = 00:21:28:AF:98:8B
state = enabled

Commands:
cd
set
show

-> exit

SUNSP-1108FMJ00D login:

set pendingipaddress=10.50.2.134
set peingingipgateway=10.50.2.254
set pendingipnetmask=255.255.255.0
set commitpending=true

-> start /SYS
Are you sure you want to start /SYS (y/n)? y
Starting /SYS

->
-> console -d 0
Invalid command ‘console’ – type help for a list of commands.

-> start /SP/console
Are you sure you want to start /SP/console (y/n)? y

Serial console started. To stop, type ESC (

/etc/ethers
00:21:28:af:98:86 ni5×3

/etc/hotsts
10.50.2.135 ni5×3

./add_install_client -d -c 10.50.2.113:/space/jumpstart -p 10.50.2.113:/space/jumpstart/x4470 -s 10.50.2.113:/space/SOL_10_U9_X86 -b console=ttya ni5×3 i86pc

Filed under Uncategorized |

Leave a Reply

Setting up system controller on Sun X servers

Posted on June 21st, 2011

SUNSP-1108FMJ00D login:
SUNSP-1108FMJ00D login: root
Password:

Oracle(R) Integrated Lights Out Manager

Version 3.0.9.25 r57756

Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.

Warning: password is set to factory default.

->
->
->
-> pwd
Current default target: /

-> cd SP
/SP

-> ls

/SP
Targets:
alertmgmt
cli
clients
clock
config
console
diag
faultmgmt
firmware
logs
network
policy
powermgmt
preferences
serial
services
sessions
users

Properties:
check_physical_presence = true
hostname = (none)
reset_to_defaults = none
system_contact = (none)
system_description = SUN FIRE X4470 SERVER, ILOM v3.0.9.25, r57756
system_identifier = (none)
system_location = (none)

Commands:
cd
reset
set
show
version

-> cd network
/SP/network

-> ls

/SP/network
Targets:
test

Properties:
commitpending = (Cannot show property)
dhcp_server_ip = 10.50.2.88
ipaddress = 10.50.2.221
ipdiscovery = dhcp
ipgateway = 10.50.2.254
ipnetmask = 255.255.255.0
macaddress = 00:21:28:AF:98:8A
managementport = /SYS/SP/NET0
outofbandmacaddress = 00:21:28:AF:98:8A
pendingipaddress = 10.50.2.221
pendingipdiscovery = dhcp
pendingipgateway = 10.50.2.254
pendingipnetmask = 255.255.255.0
pendingmanagementport = /SYS/SP/NET0
sidebandmacaddress = 00:21:28:AF:98:8B
state = enabled

Commands:
cd
set
show

-> exit

SUNSP-1108FMJ00D login:

set pendingipaddress=10.50.2.134
set peingingipgateway=10.50.2.254
set pendingipnetmask=255.255.255.0
set commitpending=true

-> start /SYS
Are you sure you want to start /SYS (y/n)? y
Starting /SYS

->
-> console -d 0
Invalid command ‘console’ – type help for a list of commands.

-> start /SP/console
Are you sure you want to start /SP/console (y/n)? y

Serial console started. To stop, type ESC (

/etc/ethers
00:21:28:af:98:86 ni5×3

/etc/hotsts

./add_install_client -d -c 10.50.2.113:/space/jumpstart -p 10.50.2.113:/space/jumpstart/x4470 -s 10.50.2.113:/space/SOL_10_U9_X86 -b console=ttya ni5×3 i86pc

Filed under Uncategorized |

Leave a Reply

Setting up system controller on Sun X servers

Posted on June 21st, 2011

SUNSP-1108FMJ00D login:
SUNSP-1108FMJ00D login: root
Password:

Oracle(R) Integrated Lights Out Manager

Version 3.0.9.25 r57756

Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.

Warning: password is set to factory default.

->
->
->
-> pwd
Current default target: /

-> cd SP
/SP

-> ls

/SP
Targets:
alertmgmt
cli
clients
clock
config
console
diag
faultmgmt
firmware
logs
network
policy
powermgmt
preferences
serial
services
sessions
users

Properties:
check_physical_presence = true
hostname = (none)
reset_to_defaults = none
system_contact = (none)
system_description = SUN FIRE X4470 SERVER, ILOM v3.0.9.25, r57756
system_identifier = (none)
system_location = (none)

Commands:
cd
reset
set
show
version

-> cd network
/SP/network

-> ls

/SP/network
Targets:
test

Properties:
commitpending = (Cannot show property)
dhcp_server_ip = 10.50.2.88
ipaddress = 10.50.2.221
ipdiscovery = dhcp
ipgateway = 10.50.2.254
ipnetmask = 255.255.255.0
macaddress = 00:21:28:AF:98:8A
managementport = /SYS/SP/NET0
outofbandmacaddress = 00:21:28:AF:98:8A
pendingipaddress = 10.50.2.221
pendingipdiscovery = dhcp
pendingipgateway = 10.50.2.254
pendingipnetmask = 255.255.255.0
pendingmanagementport = /SYS/SP/NET0
sidebandmacaddress = 00:21:28:AF:98:8B
state = enabled

Commands:
cd
set
show

-> exit

SUNSP-1108FMJ00D login:

set pendingipaddress=10.50.2.134
set peingingipgateway=10.50.2.254
set pendingipnetmask=255.255.255.0
set commitpending=true

-> start /SYS
Are you sure you want to start /SYS (y/n)? y
Starting /SYS

->
-> console -d 0
Invalid command ‘console’ – type help for a list of commands.

-> start /SP/console
Are you sure you want to start /SP/console (y/n)? y

Serial console started. To stop, type ESC (

Filed under Uncategorized |

Leave a Reply

Setting up system controller on Sun X servers

Posted on June 21st, 2011

SUNSP-1108FMJ00D login:
SUNSP-1108FMJ00D login: root
Password:

Oracle(R) Integrated Lights Out Manager

Version 3.0.9.25 r57756

Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.

Warning: password is set to factory default.

->
->
->
-> pwd
Current default target: /

-> cd SP
/SP

-> ls

/SP
Targets:
alertmgmt
cli
clients
clock
config
console
diag
faultmgmt
firmware
logs
network
policy
powermgmt
preferences
serial
services
sessions
users

Properties:
check_physical_presence = true
hostname = (none)
reset_to_defaults = none
system_contact = (none)
system_description = SUN FIRE X4470 SERVER, ILOM v3.0.9.25, r57756
system_identifier = (none)
system_location = (none)

Commands:
cd
reset
set
show
version

-> cd network
/SP/network

-> ls

/SP/network
Targets:
test

Properties:
commitpending = (Cannot show property)
dhcp_server_ip = 10.50.2.88
ipaddress = 10.50.2.221
ipdiscovery = dhcp
ipgateway = 10.50.2.254
ipnetmask = 255.255.255.0
macaddress = 00:21:28:AF:98:8A
managementport = /SYS/SP/NET0
outofbandmacaddress = 00:21:28:AF:98:8A
pendingipaddress = 10.50.2.221
pendingipdiscovery = dhcp
pendingipgateway = 10.50.2.254
pendingipnetmask = 255.255.255.0
pendingmanagementport = /SYS/SP/NET0
sidebandmacaddress = 00:21:28:AF:98:8B
state = enabled

Commands:
cd
set
show

-> exit

SUNSP-1108FMJ00D login:

set pendingipaddress=10.50.2.134
set peingingipgateway=10.50.2.254
set pendingipnetmask=255.255.255.0
set commitpending=true

Filed under Uncategorized |

Leave a Reply

Private: Setting up system controller on Sun X servers

Posted on June 21st, 2011

SUNSP-1108FMJ00D login:
SUNSP-1108FMJ00D login: root
Password:

Oracle(R) Integrated Lights Out Manager

Version 3.0.9.25 r57756

Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.

Warning: password is set to factory default.

->
->
->
-> pwd
Current default target: /

-> cd SP
/SP

-> ls

/SP
Targets:
alertmgmt
cli
clients
clock
config
console
diag
faultmgmt
firmware
logs
network
policy
powermgmt
preferences
serial
services
sessions
users

Properties:
check_physical_presence = true
hostname = (none)
reset_to_defaults = none
system_contact = (none)
system_description = SUN FIRE X4470 SERVER, ILOM v3.0.9.25, r57756
system_identifier = (none)
system_location = (none)

Commands:
cd
reset
set
show
version

-> cd network
/SP/network

-> ls

/SP/network
Targets:
test

Properties:
commitpending = (Cannot show property)
dhcp_server_ip = 10.50.2.88
ipaddress = 10.50.2.221
ipdiscovery = dhcp
ipgateway = 10.50.2.254
ipnetmask = 255.255.255.0
macaddress = 00:21:28:AF:98:8A
managementport = /SYS/SP/NET0
outofbandmacaddress = 00:21:28:AF:98:8A
pendingipaddress = 10.50.2.221
pendingipdiscovery = dhcp
pendingipgateway = 10.50.2.254
pendingipnetmask = 255.255.255.0
pendingmanagementport = /SYS/SP/NET0
sidebandmacaddress = 00:21:28:AF:98:8B
state = enabled

Commands:
cd
set
show

-> exit

SUNSP-1108FMJ00D login:

set pendingipaddress=10.50.2.134
set peingingipgateway=10.50.2.254
set pendingipnetmask=255.255.255.0
set commitpending=true

-> start /SYS
Are you sure you want to start /SYS (y/n)? y
Starting /SYS

->
-> console -d 0
Invalid command ‘console’ – type help for a list of commands.

-> start /SP/console
Are you sure you want to start /SP/console (y/n)? y

Serial console started. To stop, type ESC (

/etc/ethers
00:21:28:af:98:86 ni5×3

/etc/hotsts
10.50.2.135 ni5×3

./add_install_client -d -c 10.50.2.113:/space/jumpstart -p 10.50.2.113:/space/jumpstart/x4470 -s 10.50.2.113:/space/SOL_10_U9_X86 -b console=ttya ni5×3 i86pc
Adding “share -F nfs -o ro,anon=0 /space/SOL_10_U9_X86/boot” to /etc/dfs/dfstab
copying boot file to /tftpboot/pxegrub.I86PC.Solaris_10-1

If not already configured, enable PXE boot by creating
a macro named PXEClient:Arch:00000:UNDI:002001 with:
Boot server IP (BootSrvA) : 10.50.2.113
Boot file (BootFile) : ni5×3

bash-2.05# dhtadm -D -m PXEClient:Arch:00000:UNDI:002001
bash-2.05# dhtadm -A -m PXEClient:Arch:00000:UNDI:002001 -d ‘:BootFile=”ni5×3″:BootSrvA=10.50.2.113:’
bash-2.05# dhtadm -P
Name Type Value
==================================================
PXEClient:Arch:00000:UNDI:002001 Macro :BootFile=”ni5×3″:BootSrvA=10.50.2.113:
sapdhcp Macro :Include=Locale:Timeserv=10.50.1.70:LeaseTim=172000:LeaseNeg:DNSdmain=”butovo.newimpulse.ru”:DNSserv=10.50.1.2:Router=10.50.2.254:
Locale Macro :UTCoffst=10800:

-> set password
Enter new password: ********
Enter new password again: ********

-> pwd
Current default target: /SP/users/root

->

Filed under Uncategorized |

Leave a Reply

Setting up system controller on Sun X servers

Posted on June 21st, 2011

Filed under Uncategorized |

Leave a Reply

Setting up system controller on Sun X servers

Posted on June 21st, 2011

Filed under Uncategorized |

Leave a Reply

Private: Upating Emulex firmware after patching Solaris 10

Posted on June 20th, 2011

HBA Port WWN: 10000000c9ae1ede
        OS Device Name: /dev/cfg/c2
        Manufacturer: Emulex
        Model: LPe12002-S
        Firmware Version: 1.11a5 (U3D1.11A5)
        FCode/BIOS Version: Boot:5.03a0 Fcode:3.01a1
        Serial Number: 0999VM0-1051001JVP
        Driver Name: emlxs
        Driver Version: 2.60h (2010.10.22.16.55)
        Type: N-port
        State: online
        Supported Speeds: 2Gb 4Gb 8Gb 
        Current Speed: 8Gb 
        Node WWN: 20000000c9ae1ede
HBA Port WWN: 10000000c9ae1edf
        OS Device Name: /dev/cfg/c3
        Manufacturer: Emulex
        Model: LPe12002-S
        Firmware Version: 1.11a5 (U3D1.11A5)
        FCode/BIOS Version: Boot:5.03a0 Fcode:3.01a1
        Serial Number: 0999VM0-1051001JVP
        Driver Name: emlxs
        Driver Version: 2.60h (2010.10.22.16.55)
        Type: N-port
        State: online
        Supported Speeds: 2Gb 4Gb 8Gb 
        Current Speed: 8Gb 
        Node WWN: 20000000c9ae1edf
HBA Port WWN: 10000000c9ae0930
        OS Device Name: /dev/cfg/c4
        Manufacturer: Emulex
        Model: LPe12002-S
        Firmware Version: 1.11a5 (U3D1.11A5)
        FCode/BIOS Version: Boot:5.03a0 Fcode:3.01a1
        Serial Number: 0999VM0-1051001JWC
        Driver Name: emlxs
        Driver Version: 2.60h (2010.10.22.16.55)
        Type: N-port
        State: online
        Supported Speeds: 2Gb 4Gb 8Gb 
        Current Speed: 8Gb 
        Node WWN: 20000000c9ae0930
HBA Port WWN: 10000000c9ae0931
        OS Device Name: /dev/cfg/c5
        Manufacturer: Emulex
        Model: LPe12002-S
        Firmware Version: 1.11a5 (U3D1.11A5)
        FCode/BIOS Version: Boot:5.03a0 Fcode:3.01a1
        Serial Number: 0999VM0-1051001JWC
        Driver Name: emlxs
        Driver Version: 2.60h (2010.10.22.16.55)
        Type: N-port
        State: online
        Supported Speeds: 2Gb 4Gb 8Gb 
        Current Speed: 8Gb 
        Node WWN: 20000000c9ae0931
root@ni5nrp1:/root[1055]#

dmesg

Jun  6 15:30:06 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 1.0340]emlxs0:WARNING:1540: Firmware update required. (A manual HBA reset or link reset (using luxadm or fcadm) is required.)
Jun  6 15:30:20 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 1.0340]emlxs1:WARNING:1540: Firmware update required. (A manual HBA reset or link reset (using luxadm or fcadm) is required.)
Jun  6 15:30:24 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 1.0340]emlxs2:WARNING:1540: Firmware update required. (A manual HBA reset or link reset (using luxadm or fcadm) is required.)
Jun  6 15:30:35 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 1.0340]emlxs3:WARNING:1540: Firmware update required. (A manual HBA reset or link reset (using luxadm or fcadm) is required.)

doing forcelip

for i in 2 3 4 5 ; do luxadm -e forcelip /dev/cfg/c$i; done

dmesg:

Jun  7 11:20:39 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 5.031F]emlxs0: NOTICE: 710: Link down.
Jun  7 11:20:45 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [13.02C0]emlxs0: NOTICE: 200: Adapter initialization. (Firmware update needed. Updating. id=68 fw=6)
Jun  7 11:20:45 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0ECB]emlxs0: NOTICE:1520: Firmware download. (AWC file: KERN: old=1.10a5  new=1.10a8  Update.)
Jun  7 11:20:45 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0EEB]emlxs0: NOTICE:1520: Firmware download. (DWC file: TEST:             new=1.00a4  Update.)
Jun  7 11:20:45 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0EFF]emlxs0: NOTICE:1520: Firmware download. (DWC file: STUB: old=1.11a5  new=2.00a3  Update.)
Jun  7 11:20:45 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0F1D]emlxs0: NOTICE:1520: Firmware download. (DWC file: SLI2: old=1.11a5  new=2.00a3  Update.)
Jun  7 11:20:45 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0F2C]emlxs0: NOTICE:1520: Firmware download. (DWC file: SLI3: old=1.11a5  new=2.00a3  Update.)
Jun  7 11:20:54 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0143]emlxs0: NOTICE:1521: Firmware download complete. (Status good.)
Jun  7 11:20:58 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 5.031F]emlxs1: NOTICE: 710: Link down.
Jun  7 11:20:59 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 5.0549]emlxs0: NOTICE: 720: Link up. (8Gb, fabric, initiator)
Jun  7 11:20:59 ni5nrp1-tmp fctl: [ID 517869 kern.warning] WARNING: fp(0)::b0c00 NS failure pkt state=d reason=9, expln=1, NSCMD=0100, NSRSP=8002
Jun  7 11:20:59 ni5nrp1-tmp last message repeated 1 time
Jun  7 11:21:03 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [13.02C0]emlxs1: NOTICE: 200: Adapter initialization. (Firmware update needed. Updating. id=68 fw=6)
Jun  7 11:21:03 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0ECB]emlxs1: NOTICE:1520: Firmware download. (AWC file: KERN: old=1.10a5  new=1.10a8  Update.)
Jun  7 11:21:03 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0EEB]emlxs1: NOTICE:1520: Firmware download. (DWC file: TEST:             new=1.00a4  Update.)
Jun  7 11:21:03 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0EFF]emlxs1: NOTICE:1520: Firmware download. (DWC file: STUB: old=1.11a5  new=2.00a3  Update.)
Jun  7 11:21:03 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0F1D]emlxs1: NOTICE:1520: Firmware download. (DWC file: SLI2: old=1.11a5  new=2.00a3  Update.)
Jun  7 11:21:03 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0F2C]emlxs1: NOTICE:1520: Firmware download. (DWC file: SLI3: old=1.11a5  new=2.00a3  Update.)
Jun  7 11:21:13 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0143]emlxs1: NOTICE:1521: Firmware download complete. (Status good.)
Jun  7 11:21:17 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 5.031F]emlxs2: NOTICE: 710: Link down.
Jun  7 11:21:18 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 5.0549]emlxs1: NOTICE: 720: Link up. (8Gb, fabric, initiator)
Jun  7 11:21:18 ni5nrp1-tmp fctl: [ID 517869 kern.warning] WARNING: fp(4)::c0900 NS failure pkt state=d reason=9, expln=1, NSCMD=0100, NSRSP=8002
Jun  7 11:21:18 ni5nrp1-tmp last message repeated 1 time
Jun  7 11:21:22 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [13.02C0]emlxs2: NOTICE: 200: Adapter initialization. (Firmware update needed. Updating. id=68 fw=6)
Jun  7 11:21:22 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0ECB]emlxs2: NOTICE:1520: Firmware download. (AWC file: KERN: old=1.10a5  new=1.10a8  Update.)
Jun  7 11:21:22 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0EEB]emlxs2: NOTICE:1520: Firmware download. (DWC file: TEST:             new=1.00a4  Update.)
Jun  7 11:21:22 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0EFF]emlxs2: NOTICE:1520: Firmware download. (DWC file: STUB: old=1.11a5  new=2.00a3  Update.)
Jun  7 11:21:22 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0F1D]emlxs2: NOTICE:1520: Firmware download. (DWC file: SLI2: old=1.11a5  new=2.00a3  Update.)
Jun  7 11:21:22 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0F2C]emlxs2: NOTICE:1520: Firmware download. (DWC file: SLI3: old=1.11a5  new=2.00a3  Update.)
Jun  7 11:21:31 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0143]emlxs2: NOTICE:1521: Firmware download complete. (Status good.)
Jun  7 11:21:35 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 5.031F]emlxs3: NOTICE: 710: Link down.
Jun  7 11:21:36 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 5.0549]emlxs2: NOTICE: 720: Link up. (8Gb, fabric, initiator)
Jun  7 11:21:36 ni5nrp1-tmp fctl: [ID 517869 kern.warning] WARNING: fp(3)::b0800 NS failure pkt state=d reason=9, expln=1, NSCMD=0100, NSRSP=8002
Jun  7 11:21:36 ni5nrp1-tmp last message repeated 1 time
Jun  7 11:21:40 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [13.02C0]emlxs3: NOTICE: 200: Adapter initialization. (Firmware update needed. Updating. id=68 fw=6)
Jun  7 11:21:40 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0ECB]emlxs3: NOTICE:1520: Firmware download. (AWC file: KERN: old=1.10a5  new=1.10a8  Update.)
Jun  7 11:21:40 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0EEB]emlxs3: NOTICE:1520: Firmware download. (DWC file: TEST:             new=1.00a4  Update.)
Jun  7 11:21:40 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0EFF]emlxs3: NOTICE:1520: Firmware download. (DWC file: STUB: old=1.11a5  new=2.00a3  Update.)
Jun  7 11:21:40 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0F1D]emlxs3: NOTICE:1520: Firmware download. (DWC file: SLI2: old=1.11a5  new=2.00a3  Update.)
Jun  7 11:21:40 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0F2C]emlxs3: NOTICE:1520: Firmware download. (DWC file: SLI3: old=1.11a5  new=2.00a3  Update.)
Jun  7 11:21:49 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0143]emlxs3: NOTICE:1521: Firmware download complete. (Status good.)
Jun  7 11:21:54 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 5.0549]emlxs3: NOTICE: 720: Link up. (8Gb, fabric, initiator)
Jun  7 11:21:55 ni5nrp1-tmp fctl: [ID 517869 kern.warning] WARNING: fp(6)::c0800 NS failure pkt state=d reason=9, expln=1, NSCMD=0100, NSRSP=8002
Jun  7 11:21:55 ni5nrp1-tmp last message repeated 1 time

But fcinfo shows old version of firware:

root@ni5nrp1:/root[1058]# more fcinfo_after_forcelip.txt 
HBA Port WWN: 10000000c9ae1ede
        OS Device Name: /dev/cfg/c2
        Manufacturer: Emulex
        Model: LPe12002-S
        Firmware Version: 1.11a5 (U3D1.11A5)
        FCode/BIOS Version: Boot:5.03a0 Fcode:3.01a1
        Serial Number: 0999VM0-1051001JVP
        Driver Name: emlxs
        Driver Version: 2.60h (2010.10.22.16.55)
        Type: N-port
        State: online
        Supported Speeds: 2Gb 4Gb 8Gb 
        Current Speed: 8Gb 
        Node WWN: 20000000c9ae1ede
HBA Port WWN: 10000000c9ae1edf
        OS Device Name: /dev/cfg/c3
        Manufacturer: Emulex
        Model: LPe12002-S
        Firmware Version: 1.11a5 (U3D1.11A5)
        FCode/BIOS Version: Boot:5.03a0 Fcode:3.01a1
        Serial Number: 0999VM0-1051001JVP
        Driver Name: emlxs
        Driver Version: 2.60h (2010.10.22.16.55)
        Type: N-port
        State: online
        Supported Speeds: 2Gb 4Gb 8Gb 
        Current Speed: 8Gb 
        Node WWN: 20000000c9ae1edf
HBA Port WWN: 10000000c9ae0930
        OS Device Name: /dev/cfg/c4
        Manufacturer: Emulex
        Model: LPe12002-S
        Firmware Version: 1.11a5 (U3D1.11A5)
        FCode/BIOS Version: Boot:5.03a0 Fcode:3.01a1
        Serial Number: 0999VM0-1051001JWC
        Driver Name: emlxs
        Driver Version: 2.60h (2010.10.22.16.55)
        Type: N-port
        State: online
        Supported Speeds: 2Gb 4Gb 8Gb 
        Current Speed: 8Gb 
        Node WWN: 20000000c9ae0930
HBA Port WWN: 10000000c9ae0931
        OS Device Name: /dev/cfg/c5
        Manufacturer: Emulex
        Model: LPe12002-S
        Firmware Version: 1.11a5 (U3D1.11A5)
        FCode/BIOS Version: Boot:5.03a0 Fcode:3.01a1
        Serial Number: 0999VM0-1051001JWC
        Driver Name: emlxs
        Driver Version: 2.60h (2010.10.22.16.55)
        Type: N-port
        State: online
        Supported Speeds: 2Gb 4Gb 8Gb 
        Current Speed: 8Gb 
        Node WWN: 20000000c9ae0931
root@ni5nrp1:/root[1059]#

After rebooting the server fcinfo shows right version

root@ni5nrp1:/root[1059]# more fcinfo_after_forcelip_and_reboot.txt 
HBA Port WWN: 10000000c9ae1ede
        OS Device Name: /dev/cfg/c2
        Manufacturer: Emulex
        Model: LPe12002-S
        Firmware Version: 2.00a3 (U3D2.00A3)
        FCode/BIOS Version: Boot:5.03a0 Fcode:3.01a1
        Serial Number: 0999VM0-1051001JVP
        Driver Name: emlxs
        Driver Version: 2.60h (2010.10.22.16.55)
        Type: N-port
        State: online
        Supported Speeds: 2Gb 4Gb 8Gb 
        Current Speed: 8Gb 
        Node WWN: 20000000c9ae1ede
HBA Port WWN: 10000000c9ae1edf
        OS Device Name: /dev/cfg/c3
        Manufacturer: Emulex
        Model: LPe12002-S
        Firmware Version: 2.00a3 (U3D2.00A3)
        FCode/BIOS Version: Boot:5.03a0 Fcode:3.01a1
        Serial Number: 0999VM0-1051001JVP
        Driver Name: emlxs
        Driver Version: 2.60h (2010.10.22.16.55)
        Type: N-port
        State: online
        Supported Speeds: 2Gb 4Gb 8Gb 
        Current Speed: 8Gb 
        Node WWN: 20000000c9ae1edf
HBA Port WWN: 10000000c9ae0930
        OS Device Name: /dev/cfg/c4
        Manufacturer: Emulex
        Model: LPe12002-S
        Firmware Version: 2.00a3 (U3D2.00A3)
        FCode/BIOS Version: Boot:5.03a0 Fcode:3.01a1
        Serial Number: 0999VM0-1051001JWC
        Driver Name: emlxs
        Driver Version: 2.60h (2010.10.22.16.55)
        Type: N-port
        State: online
        Supported Speeds: 2Gb 4Gb 8Gb 
        Current Speed: 8Gb 
        Node WWN: 20000000c9ae0930
HBA Port WWN: 10000000c9ae0931
        OS Device Name: /dev/cfg/c5
        Manufacturer: Emulex
        Model: LPe12002-S
        Firmware Version: 2.00a3 (U3D2.00A3)
        FCode/BIOS Version: Boot:5.03a0 Fcode:3.01a1
        Serial Number: 0999VM0-1051001JWC
        Driver Name: emlxs
        Driver Version: 2.60h (2010.10.22.16.55)
        Type: N-port
        State: online
        Supported Speeds: 2Gb 4Gb 8Gb 
        Current Speed: 8Gb 
        Node WWN: 20000000c9ae0931
root@ni5nrp1:/root[1060]#

Filed under Solaris |

Leave a Reply

Upating Emulex firmware after patching Solaris 10

Posted on June 20th, 2011

HBA Port WWN: 10000000c9ae1ede
        OS Device Name: /dev/cfg/c2
        Manufacturer: Emulex
        Model: LPe12002-S
        Firmware Version: 1.11a5 (U3D1.11A5)
        FCode/BIOS Version: Boot:5.03a0 Fcode:3.01a1
        Serial Number: 0999VM0-1051001JVP
        Driver Name: emlxs
        Driver Version: 2.60h (2010.10.22.16.55)
        Type: N-port
        State: online
        Supported Speeds: 2Gb 4Gb 8Gb 
        Current Speed: 8Gb 
        Node WWN: 20000000c9ae1ede
HBA Port WWN: 10000000c9ae1edf
        OS Device Name: /dev/cfg/c3
        Manufacturer: Emulex
        Model: LPe12002-S
        Firmware Version: 1.11a5 (U3D1.11A5)
        FCode/BIOS Version: Boot:5.03a0 Fcode:3.01a1
        Serial Number: 0999VM0-1051001JVP
        Driver Name: emlxs
        Driver Version: 2.60h (2010.10.22.16.55)
        Type: N-port
        State: online
        Supported Speeds: 2Gb 4Gb 8Gb 
        Current Speed: 8Gb 
        Node WWN: 20000000c9ae1edf
HBA Port WWN: 10000000c9ae0930
        OS Device Name: /dev/cfg/c4
        Manufacturer: Emulex
        Model: LPe12002-S
        Firmware Version: 1.11a5 (U3D1.11A5)
        FCode/BIOS Version: Boot:5.03a0 Fcode:3.01a1
        Serial Number: 0999VM0-1051001JWC
        Driver Name: emlxs
        Driver Version: 2.60h (2010.10.22.16.55)
        Type: N-port
        State: online
        Supported Speeds: 2Gb 4Gb 8Gb 
        Current Speed: 8Gb 
        Node WWN: 20000000c9ae0930
HBA Port WWN: 10000000c9ae0931
        OS Device Name: /dev/cfg/c5
        Manufacturer: Emulex
        Model: LPe12002-S
        Firmware Version: 1.11a5 (U3D1.11A5)
        FCode/BIOS Version: Boot:5.03a0 Fcode:3.01a1
        Serial Number: 0999VM0-1051001JWC
        Driver Name: emlxs
        Driver Version: 2.60h (2010.10.22.16.55)
        Type: N-port
        State: online
        Supported Speeds: 2Gb 4Gb 8Gb 
        Current Speed: 8Gb 
        Node WWN: 20000000c9ae0931
root@ni5nrp1:/root[1055]#

dmesg

Jun  6 15:30:06 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 1.0340]emlxs0:WARNING:1540: Firmware update required. (A manual HBA reset or link reset (using luxadm or fcadm) is required.)
Jun  6 15:30:20 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 1.0340]emlxs1:WARNING:1540: Firmware update required. (A manual HBA reset or link reset (using luxadm or fcadm) is required.)
Jun  6 15:30:24 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 1.0340]emlxs2:WARNING:1540: Firmware update required. (A manual HBA reset or link reset (using luxadm or fcadm) is required.)
Jun  6 15:30:35 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 1.0340]emlxs3:WARNING:1540: Firmware update required. (A manual HBA reset or link reset (using luxadm or fcadm) is required.)

doing forcelip

for i in 2 3 4 5 ; do luxadm -e forcelip /dev/cfg/c$i; done

dmesg:

Jun  7 11:20:39 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 5.031F]emlxs0: NOTICE: 710: Link down.
Jun  7 11:20:45 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [13.02C0]emlxs0: NOTICE: 200: Adapter initialization. (Firmware update needed. Updating. id=68 fw=6)
Jun  7 11:20:45 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0ECB]emlxs0: NOTICE:1520: Firmware download. (AWC file: KERN: old=1.10a5  new=1.10a8  Update.)
Jun  7 11:20:45 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0EEB]emlxs0: NOTICE:1520: Firmware download. (DWC file: TEST:             new=1.00a4  Update.)
Jun  7 11:20:45 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0EFF]emlxs0: NOTICE:1520: Firmware download. (DWC file: STUB: old=1.11a5  new=2.00a3  Update.)
Jun  7 11:20:45 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0F1D]emlxs0: NOTICE:1520: Firmware download. (DWC file: SLI2: old=1.11a5  new=2.00a3  Update.)
Jun  7 11:20:45 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0F2C]emlxs0: NOTICE:1520: Firmware download. (DWC file: SLI3: old=1.11a5  new=2.00a3  Update.)
Jun  7 11:20:54 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0143]emlxs0: NOTICE:1521: Firmware download complete. (Status good.)
Jun  7 11:20:58 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 5.031F]emlxs1: NOTICE: 710: Link down.
Jun  7 11:20:59 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 5.0549]emlxs0: NOTICE: 720: Link up. (8Gb, fabric, initiator)
Jun  7 11:20:59 ni5nrp1-tmp fctl: [ID 517869 kern.warning] WARNING: fp(0)::b0c00 NS failure pkt state=d reason=9, expln=1, NSCMD=0100, NSRSP=8002
Jun  7 11:20:59 ni5nrp1-tmp last message repeated 1 time
Jun  7 11:21:03 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [13.02C0]emlxs1: NOTICE: 200: Adapter initialization. (Firmware update needed. Updating. id=68 fw=6)
Jun  7 11:21:03 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0ECB]emlxs1: NOTICE:1520: Firmware download. (AWC file: KERN: old=1.10a5  new=1.10a8  Update.)
Jun  7 11:21:03 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0EEB]emlxs1: NOTICE:1520: Firmware download. (DWC file: TEST:             new=1.00a4  Update.)
Jun  7 11:21:03 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0EFF]emlxs1: NOTICE:1520: Firmware download. (DWC file: STUB: old=1.11a5  new=2.00a3  Update.)
Jun  7 11:21:03 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0F1D]emlxs1: NOTICE:1520: Firmware download. (DWC file: SLI2: old=1.11a5  new=2.00a3  Update.)
Jun  7 11:21:03 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0F2C]emlxs1: NOTICE:1520: Firmware download. (DWC file: SLI3: old=1.11a5  new=2.00a3  Update.)
Jun  7 11:21:13 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0143]emlxs1: NOTICE:1521: Firmware download complete. (Status good.)
Jun  7 11:21:17 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 5.031F]emlxs2: NOTICE: 710: Link down.
Jun  7 11:21:18 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 5.0549]emlxs1: NOTICE: 720: Link up. (8Gb, fabric, initiator)
Jun  7 11:21:18 ni5nrp1-tmp fctl: [ID 517869 kern.warning] WARNING: fp(4)::c0900 NS failure pkt state=d reason=9, expln=1, NSCMD=0100, NSRSP=8002
Jun  7 11:21:18 ni5nrp1-tmp last message repeated 1 time
Jun  7 11:21:22 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [13.02C0]emlxs2: NOTICE: 200: Adapter initialization. (Firmware update needed. Updating. id=68 fw=6)
Jun  7 11:21:22 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0ECB]emlxs2: NOTICE:1520: Firmware download. (AWC file: KERN: old=1.10a5  new=1.10a8  Update.)
Jun  7 11:21:22 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0EEB]emlxs2: NOTICE:1520: Firmware download. (DWC file: TEST:             new=1.00a4  Update.)
Jun  7 11:21:22 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0EFF]emlxs2: NOTICE:1520: Firmware download. (DWC file: STUB: old=1.11a5  new=2.00a3  Update.)
Jun  7 11:21:22 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0F1D]emlxs2: NOTICE:1520: Firmware download. (DWC file: SLI2: old=1.11a5  new=2.00a3  Update.)
Jun  7 11:21:22 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0F2C]emlxs2: NOTICE:1520: Firmware download. (DWC file: SLI3: old=1.11a5  new=2.00a3  Update.)
Jun  7 11:21:31 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0143]emlxs2: NOTICE:1521: Firmware download complete. (Status good.)
Jun  7 11:21:35 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 5.031F]emlxs3: NOTICE: 710: Link down.
Jun  7 11:21:36 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 5.0549]emlxs2: NOTICE: 720: Link up. (8Gb, fabric, initiator)
Jun  7 11:21:36 ni5nrp1-tmp fctl: [ID 517869 kern.warning] WARNING: fp(3)::b0800 NS failure pkt state=d reason=9, expln=1, NSCMD=0100, NSRSP=8002
Jun  7 11:21:36 ni5nrp1-tmp last message repeated 1 time
Jun  7 11:21:40 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [13.02C0]emlxs3: NOTICE: 200: Adapter initialization. (Firmware update needed. Updating. id=68 fw=6)
Jun  7 11:21:40 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0ECB]emlxs3: NOTICE:1520: Firmware download. (AWC file: KERN: old=1.10a5  new=1.10a8  Update.)
Jun  7 11:21:40 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0EEB]emlxs3: NOTICE:1520: Firmware download. (DWC file: TEST:             new=1.00a4  Update.)
Jun  7 11:21:40 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0EFF]emlxs3: NOTICE:1520: Firmware download. (DWC file: STUB: old=1.11a5  new=2.00a3  Update.)
Jun  7 11:21:40 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0F1D]emlxs3: NOTICE:1520: Firmware download. (DWC file: SLI2: old=1.11a5  new=2.00a3  Update.)
Jun  7 11:21:40 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0F2C]emlxs3: NOTICE:1520: Firmware download. (DWC file: SLI3: old=1.11a5  new=2.00a3  Update.)
Jun  7 11:21:49 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 3.0143]emlxs3: NOTICE:1521: Firmware download complete. (Status good.)
Jun  7 11:21:54 ni5nrp1-tmp emlxs: [ID 349649 kern.info] [ 5.0549]emlxs3: NOTICE: 720: Link up. (8Gb, fabric, initiator)
Jun  7 11:21:55 ni5nrp1-tmp fctl: [ID 517869 kern.warning] WARNING: fp(6)::c0800 NS failure pkt state=d reason=9, expln=1, NSCMD=0100, NSRSP=8002
Jun  7 11:21:55 ni5nrp1-tmp last message repeated 1 time

But fcinfo shows old version of firware:

root@ni5nrp1:/root[1058]# more fcinfo_after_forcelip.txt 
HBA Port WWN: 10000000c9ae1ede
        OS Device Name: /dev/cfg/c2
        Manufacturer: Emulex
        Model: LPe12002-S
        Firmware Version: 1.11a5 (U3D1.11A5)
        FCode/BIOS Version: Boot:5.03a0 Fcode:3.01a1
        Serial Number: 0999VM0-1051001JVP
        Driver Name: emlxs
        Driver Version: 2.60h (2010.10.22.16.55)
        Type: N-port
        State: online
        Supported Speeds: 2Gb 4Gb 8Gb 
        Current Speed: 8Gb 
        Node WWN: 20000000c9ae1ede
HBA Port WWN: 10000000c9ae1edf
        OS Device Name: /dev/cfg/c3
        Manufacturer: Emulex
        Model: LPe12002-S
        Firmware Version: 1.11a5 (U3D1.11A5)
        FCode/BIOS Version: Boot:5.03a0 Fcode:3.01a1
        Serial Number: 0999VM0-1051001JVP
        Driver Name: emlxs
        Driver Version: 2.60h (2010.10.22.16.55)
        Type: N-port
        State: online
        Supported Speeds: 2Gb 4Gb 8Gb 
        Current Speed: 8Gb 
        Node WWN: 20000000c9ae1edf
HBA Port WWN: 10000000c9ae0930
        OS Device Name: /dev/cfg/c4
        Manufacturer: Emulex
        Model: LPe12002-S
        Firmware Version: 1.11a5 (U3D1.11A5)
        FCode/BIOS Version: Boot:5.03a0 Fcode:3.01a1
        Serial Number: 0999VM0-1051001JWC
        Driver Name: emlxs
        Driver Version: 2.60h (2010.10.22.16.55)
        Type: N-port
        State: online
        Supported Speeds: 2Gb 4Gb 8Gb 
        Current Speed: 8Gb 
        Node WWN: 20000000c9ae0930
HBA Port WWN: 10000000c9ae0931
        OS Device Name: /dev/cfg/c5
        Manufacturer: Emulex
        Model: LPe12002-S
        Firmware Version: 1.11a5 (U3D1.11A5)
        FCode/BIOS Version: Boot:5.03a0 Fcode:3.01a1
        Serial Number: 0999VM0-1051001JWC
        Driver Name: emlxs
        Driver Version: 2.60h (2010.10.22.16.55)
        Type: N-port
        State: online
        Supported Speeds: 2Gb 4Gb 8Gb 
        Current Speed: 8Gb 
        Node WWN: 20000000c9ae0931
root@ni5nrp1:/root[1059]#

After reboi

Filed under Uncategorized |

Leave a Reply

Recovering from PSUE state using CCI tools and HDS COW snapshot

Posted on June 15th, 2011

1085 CONFIG_FILE=/opt/VRTSnbu/snapshot/ni_snapshot_backup.conf
1086 HORCM_GROUP=`awk ‘{ if ( $1 == “HORCM_GROUP” ) { print $2 } }’ ${CONFIG_FILE}`
1087 HORCMINST=`awk ‘{ if ( $1 == “HORCM_INSTANCE” ) { print $2 } }’ ${CONFIG_FILE}`
1088 VXVM_GROUP=`awk ‘{ if ( $1 == “VXVM_GROUP” ) { print $2 } }’ ${CONFIG_FILE}`
1089 MOUNT_ROOT=`awk ‘{ if ( $1 == “MOUNT_ROOT” ) { print $2 } }’ ${CONFIG_FILE}`
1090 VXVM_CLONE_GROUP=${VXVM_GROUP}_clone
1091 HORCC_MRCF=0
1092 PATH=/usr/bin:/usr/sbin
1093 export HORCMINST HORCC_MRCF PATH
1094 more /opt/VRTSnbu/snapshot/ni_snapshot_backup.sh
1095 pairdisplay -g oradg

root@ni5nrp2:/usr/openv/netbackup/bin[1097]# pairdisplay -g oradg
Group PairVol(L/R) (Port#,TID, LU-M) ,Seq#,LDEV#.P/S,Status, Seq#,P-LDEV# M
oradg oradg_1_50(L) (CL1-A-3, 0, 50-0 )87011551 50.P-VOL PSUE,87011551 100 -
oradg oradg_1_50(R) (CL1-A-3, 0, 74-0 )87011551 100.S-VOL PSUE,—– 50 N
oradg oradg_1_51(L) (CL1-A-3, 0, 51-0 )87011551 51.P-VOL PSUE,87011551 101 -
oradg oradg_1_51(R) (CL1-A-3, 0, 75-0 )87011551 101.S-VOL PSUE,—– 51 N
oradg oradg_1_52(L) (CL1-A-3, 0, 52-0 )87011551 52.P-VOL PSUE,87011551 102 -
oradg oradg_1_52(R) (CL1-A-3, 0, 76-0 )87011551 102.S-VOL PSUE,—– 52 N
oradg oradg_1_53(L) (CL1-A-3, 0, 53-0 )87011551 53.P-VOL PSUE,87011551 103 -
oradg oradg_1_53(R) (CL1-A-3, 0, 77-0 )87011551 103.S-VOL PSUE,—– 53 N
oradg oradg_1_54(L) (CL1-A-3, 0, 54-0 )87011551 54.P-VOL PSUE,87011551 104 -
oradg oradg_1_54(R) (CL1-A-3, 0, 78-0 )87011551 104.S-VOL PSUE,—– 54 N
oradg oradg_1_55(L) (CL1-A-3, 0, 55-0 )87011551 55.P-VOL PSUE,87011551 105 -
oradg oradg_1_55(R) (CL1-A-3, 0, 79-0 )87011551 105.S-VOL PSUE,—– 55 N
oradg oradg_1_56(L) (CL1-A-3, 0, 56-0 )87011551 56.P-VOL PSUE,87011551 106 -
oradg oradg_1_56(R) (CL1-A-3, 0, 80-0 )87011551 106.S-VOL PSUE,—– 56 N
oradg oradg_1_57(L) (CL1-A-3, 0, 57-0 )87011551 57.P-VOL PSUE,87011551 107 -
oradg oradg_1_57(R) (CL1-A-3, 0, 81-0 )87011551 107.S-VOL PSUE,—– 57 N
oradg oradg_1_58(L) (CL1-A-3, 0, 58-0 )87011551 58.P-VOL PSUE,87011551 108 -
oradg oradg_1_58(R) (CL1-A-3, 0, 82-0 )87011551 108.S-VOL PSUE,—– 58 N
oradg oradg_1_59(L) (CL1-A-3, 0, 59-0 )87011551 59.P-VOL PSUE,87011551 109 -
oradg oradg_1_59(R) (CL1-A-3, 0, 83-0 )87011551 109.S-VOL PSUE,—– 59 N
Group PairVol(L/R) (Port#,TID, LU-M) ,Seq#,LDEV#.P/S,Status, Seq#,P-LDEV# M
oradg oradg_1_60(L) (CL1-A-3, 0, 60-0 )87011551 60.P-VOL PSUE,87011551 110 -
oradg oradg_1_60(R) (CL1-A-3, 0, 84-0 )87011551 110.S-VOL PSUE,—– 60 N
oradg oradg_1_61(L) (CL1-A-3, 0, 61-0 )87011551 61.P-VOL PSUE,87011551 111 -
oradg oradg_1_61(R) (CL1-A-3, 0, 85-0 )87011551 111.S-VOL PSUE,—– 61 N
oradg oradg_1_62(L) (CL1-A-3, 0, 62-0 )87011551 62.P-VOL PSUE,87011551 112 -
oradg oradg_1_62(R) (CL1-A-3, 0, 86-0 )87011551 112.S-VOL PSUE,—– 62 N
oradg oradg_1_63(L) (CL1-A-3, 0, 63-0 )87011551 63.P-VOL PSUE,87011551 113 -
oradg oradg_1_63(R) (CL1-A-3, 0, 87-0 )87011551 113.S-VOL PSUE,—– 63 N
oradg oradg_1_64(L) (CL1-A-3, 0, 64-0 )87011551 64.P-VOL PSUE,87011551 114 -
oradg oradg_1_64(R) (CL1-A-3, 0, 88-0 )87011551 114.S-VOL PSUE,—– 64 N
oradg oradg_1_65(L) (CL1-A-3, 0, 65-0 )87011551 65.P-VOL PSUE,87011551 115 -
oradg oradg_1_65(R) (CL1-A-3, 0, 89-0 )87011551 115.S-VOL PSUE,—– 65 N
oradg oradg_1_66(L) (CL1-A-3, 0, 66-0 )87011551 66.P-VOL PSUE,87011551 116 -
oradg oradg_1_66(R) (CL1-A-3, 0, 90-0 )87011551 116.S-VOL PSUE,—– 66 N
oradg oradg_1_67(L) (CL1-A-3, 0, 67-0 )87011551 67.P-VOL PSUE,87011551 117 -
oradg oradg_1_67(R) (CL1-A-3, 0, 91-0 )87011551 117.S-VOL PSUE,—– 67 N
oradg oradg_1_68(L) (CL1-A-3, 0, 68-0 )87011551 68.P-VOL PSUE,87011551 118 -
oradg oradg_1_68(R) (CL1-A-3, 0, 92-0 )87011551 118.S-VOL PSUE,—– 68 N
oradg oradg_1_69(L) (CL1-A-3, 0, 69-0 )87011551 69.P-VOL PSUE,87011551 119 -
oradg oradg_1_69(R) (CL1-A-3, 0, 93-0 )87011551 119.S-VOL PSUE,—– 69 N
Group PairVol(L/R) (Port#,TID, LU-M) ,Seq#,LDEV#.P/S,Status, Seq#,P-LDEV# M
oradg oradg_1_70(L) (CL1-A-3, 0, 70-0 )87011551 70.P-VOL PSUE,87011551 120 -
oradg oradg_1_70(R) (CL1-A-3, 0, 94-0 )87011551 120.S-VOL PSUE,—– 70 N
oradg oradg_1_71(L) (CL1-A-3, 0, 71-0 )87011551 71.P-VOL PSUE,87011551 121 -
oradg oradg_1_71(R) (CL1-A-3, 0, 95-0 )87011551 121.S-VOL PSUE,—– 71 N
oradg oradg_1_72(L) (CL1-A-3, 0, 72-0 )87011551 72.P-VOL PSUE,87011551 122 -
oradg oradg_1_72(R) (CL1-A-3, 0, 96-0 )87011551 122.S-VOL PSUE,—– 72 N
oradg oradg_1_73(L) (CL1-A-3, 0, 73-0 )87011551 73.P-VOL PSUE,87011551 123 -
oradg oradg_1_73(R) (CL1-A-3, 0, 97-0 )87011551 123.S-VOL PSUE,—– 73 N

/etc/horcm0.conf
root@ni5nrp2:/usr/openv/netbackup/bin[1099]# more /etc/horcm0.conf
HORCM_MON
#ip_address service poll(10ms) timeout(10ms)
ni5nrp-backup horcm0 1000 3000
HORCM_CMD
#dev_name dev_name dev_name
/dev/rdsk/c7t50060E80100542F0d0s2
HORCM_DEV
HORCM_LDEV
#dev_group dev_name Serial# CU:LDEV(LDEV#) MU#
oradg oradg_1_50 87011551 50 0
oradg oradg_1_51 87011551 51 0
oradg oradg_1_52 87011551 52 0
oradg oradg_1_53 87011551 53 0
oradg oradg_1_54 87011551 54 0
oradg oradg_1_55 87011551 55 0
oradg oradg_1_56 87011551 56 0
oradg oradg_1_57 87011551 57 0
oradg oradg_1_58 87011551 58 0
oradg oradg_1_59 87011551 59 0
oradg oradg_1_60 87011551 60 0
oradg oradg_1_61 87011551 61 0
oradg oradg_1_62 87011551 62 0
oradg oradg_1_63 87011551 63 0
oradg oradg_1_64 87011551 64 0
oradg oradg_1_65 87011551 65 0
oradg oradg_1_66 87011551 66 0
oradg oradg_1_67 87011551 67 0
oradg oradg_1_68 87011551 68 0
oradg oradg_1_69 87011551 69 0
oradg oradg_1_70 87011551 70 0
oradg oradg_1_71 87011551 71 0
oradg oradg_1_72 87011551 72 0
oradg oradg_1_73 87011551 73 0
HORCM_INST
#dev_group ip_address service
oradg ni5nrp-backup horcm1
root@ni5nrp2:/usr/openv/netbackup/bin[1100]#

more /etc/horcm1.conf
root@ni5nrp2:/usr/openv/netbackup/bin[1100]# more /etc/horcm1.conf
HORCM_MON
#ip_address service poll(10ms) timeout(10ms)
ni5nrp-backup horcm1 1000 3000
HORCM_CMD
#dev_name dev_name dev_name
/dev/rdsk/c7t50060E80100542F0d0s2
HORCM_DEV
HORCM_LDEV
#dev_group dev_name Serial# CU:LDEV(LDEV#) MU#
oradg oradg_1_50 87011551 100 0
oradg oradg_1_51 87011551 101 0
oradg oradg_1_52 87011551 102 0
oradg oradg_1_53 87011551 103 0
oradg oradg_1_54 87011551 104 0
oradg oradg_1_55 87011551 105 0
oradg oradg_1_56 87011551 106 0
oradg oradg_1_57 87011551 107 0
oradg oradg_1_58 87011551 108 0
oradg oradg_1_59 87011551 109 0
oradg oradg_1_60 87011551 110 0
oradg oradg_1_61 87011551 111 0
oradg oradg_1_62 87011551 112 0
oradg oradg_1_63 87011551 113 0
oradg oradg_1_64 87011551 114 0
oradg oradg_1_65 87011551 115 0
oradg oradg_1_66 87011551 116 0
oradg oradg_1_67 87011551 117 0
oradg oradg_1_68 87011551 118 0
oradg oradg_1_69 87011551 119 0
oradg oradg_1_70 87011551 120 0
oradg oradg_1_71 87011551 121 0
oradg oradg_1_72 87011551 122 0
oradg oradg_1_73 87011551 123 0
HORCM_INST
#dev_group ip_address service
oradg ni5nrp-backup horcm0
root@ni5nrp2:/usr/openv/netbackup/bin[1101]# echo $HORCMINST
0
root@ni5nrp2:/usr/openv/netbackup/bin[1105]# pairsplit -g oradg -S
root@ni5nrp2:/usr/openv/netbackup/bin[1106]# pairdisplay -g oradg
Group PairVol(L/R) (Port#,TID, LU-M) ,Seq#,LDEV#.P/S,Status, Seq#,P-LDEV# M
oradg oradg_1_50(L) (CL1-A-3, 0, 50-0 )87011551 50.SMPL —-,—– —– -
oradg oradg_1_50(R) (CL1-A-3, 0, 74-0 )87011551 100.SMPL —-,—– —– -
oradg oradg_1_51(L) (CL1-A-3, 0, 51-0 )87011551 51.SMPL —-,—– —– -
oradg oradg_1_51(R) (CL1-A-3, 0, 75-0 )87011551 101.SMPL —-,—– —– -
oradg oradg_1_52(L) (CL1-A-3, 0, 52-0 )87011551 52.SMPL —-,—– —– -
oradg oradg_1_52(R) (CL1-A-3, 0, 76-0 )87011551 102.SMPL —-,—– —– -
oradg oradg_1_53(L) (CL1-A-3, 0, 53-0 )87011551 53.SMPL —-,—– —– -
oradg oradg_1_53(R) (CL1-A-3, 0, 77-0 )87011551 103.SMPL —-,—– —– -
oradg oradg_1_54(L) (CL1-A-3, 0, 54-0 )87011551 54.SMPL —-,—– —– -
oradg oradg_1_54(R) (CL1-A-3, 0, 78-0 )87011551 104.SMPL —-,—– —– -
oradg oradg_1_55(L) (CL1-A-3, 0, 55-0 )87011551 55.SMPL —-,—– —– -
oradg oradg_1_55(R) (CL1-A-3, 0, 79-0 )87011551 105.SMPL —-,—– —– -
oradg oradg_1_56(L) (CL1-A-3, 0, 56-0 )87011551 56.SMPL —-,—– —– -
oradg oradg_1_56(R) (CL1-A-3, 0, 80-0 )87011551 106.SMPL —-,—– —– -
oradg oradg_1_57(L) (CL1-A-3, 0, 57-0 )87011551 57.SMPL —-,—– —– -
oradg oradg_1_57(R) (CL1-A-3, 0, 81-0 )87011551 107.SMPL —-,—– —– -
oradg oradg_1_58(L) (CL1-A-3, 0, 58-0 )87011551 58.SMPL —-,—– —– -
oradg oradg_1_58(R) (CL1-A-3, 0, 82-0 )87011551 108.SMPL —-,—– —– -
oradg oradg_1_59(L) (CL1-A-3, 0, 59-0 )87011551 59.SMPL —-,—– —– -
oradg oradg_1_59(R) (CL1-A-3, 0, 83-0 )87011551 109.SMPL —-,—– —– -
Group PairVol(L/R) (Port#,TID, LU-M) ,Seq#,LDEV#.P/S,Status, Seq#,P-LDEV# M
oradg oradg_1_60(L) (CL1-A-3, 0, 60-0 )87011551 60.SMPL —-,—– —– -
oradg oradg_1_60(R) (CL1-A-3, 0, 84-0 )87011551 110.SMPL —-,—– —– -
oradg oradg_1_61(L) (CL1-A-3, 0, 61-0 )87011551 61.SMPL —-,—– —– -
oradg oradg_1_61(R) (CL1-A-3, 0, 85-0 )87011551 111.SMPL —-,—– —– -
oradg oradg_1_62(L) (CL1-A-3, 0, 62-0 )87011551 62.SMPL —-,—– —– -
oradg oradg_1_62(R) (CL1-A-3, 0, 86-0 )87011551 112.SMPL —-,—– —– -
oradg oradg_1_63(L) (CL1-A-3, 0, 63-0 )87011551 63.SMPL —-,—– —– -
oradg oradg_1_63(R) (CL1-A-3, 0, 87-0 )87011551 113.SMPL —-,—– —– -
oradg oradg_1_64(L) (CL1-A-3, 0, 64-0 )87011551 64.SMPL —-,—– —– -
oradg oradg_1_64(R) (CL1-A-3, 0, 88-0 )87011551 114.SMPL —-,—– —– -
oradg oradg_1_65(L) (CL1-A-3, 0, 65-0 )87011551 65.SMPL —-,—– —– -
oradg oradg_1_65(R) (CL1-A-3, 0, 89-0 )87011551 115.SMPL —-,—– —– -
oradg oradg_1_66(L) (CL1-A-3, 0, 66-0 )87011551 66.SMPL —-,—– —– -
oradg oradg_1_66(R) (CL1-A-3, 0, 90-0 )87011551 116.SMPL —-,—– —– -
oradg oradg_1_67(L) (CL1-A-3, 0, 67-0 )87011551 67.SMPL —-,—– —– -
oradg oradg_1_67(R) (CL1-A-3, 0, 91-0 )87011551 117.SMPL —-,—– —– -
oradg oradg_1_68(L) (CL1-A-3, 0, 68-0 )87011551 68.SMPL —-,—– —– -
oradg oradg_1_68(R) (CL1-A-3, 0, 92-0 )87011551 118.SMPL —-,—– —– -
oradg oradg_1_69(L) (CL1-A-3, 0, 69-0 )87011551 69.SMPL —-,—– —– -
oradg oradg_1_69(R) (CL1-A-3, 0, 93-0 )87011551 119.SMPL —-,—– —– -
Group PairVol(L/R) (Port#,TID, LU-M) ,Seq#,LDEV#.P/S,Status, Seq#,P-LDEV# M
oradg oradg_1_70(L) (CL1-A-3, 0, 70-0 )87011551 70.SMPL —-,—– —– -
oradg oradg_1_70(R) (CL1-A-3, 0, 94-0 )87011551 120.SMPL —-,—– —– -
oradg oradg_1_71(L) (CL1-A-3, 0, 71-0 )87011551 71.SMPL —-,—– —– -
oradg oradg_1_71(R) (CL1-A-3, 0, 95-0 )87011551 121.SMPL —-,—– —– -
oradg oradg_1_72(L) (CL1-A-3, 0, 72-0 )87011551 72.SMPL —-,—– —– -
oradg oradg_1_72(R) (CL1-A-3, 0, 96-0 )87011551 122.SMPL —-,—– —– -
oradg oradg_1_73(L) (CL1-A-3, 0, 73-0 )87011551 73.SMPL —-,—– —– -
oradg oradg_1_73(R) (CL1-A-3, 0, 97-0 )87011551 123.SMPL —-,—– —– -
root@ni5nrp2:/usr/openv/netbackup/bin[1107]#

root@ni5nrp2:/usr/openv/netbackup/bin[1113]# paircreate -g oradg -vl -split
root@ni5nrp2:/usr/openv/netbackup/bin[1114]# pairdisplay -g oradg
Group PairVol(L/R) (Port#,TID, LU-M) ,Seq#,LDEV#.P/S,Status, Seq#,P-LDEV# M
oradg oradg_1_50(L) (CL1-A-3, 0, 50-0 )87011551 50.P-VOL PSUS,87011551 100 W
oradg oradg_1_50(R) (CL1-A-3, 0, 74-0 )87011551 100.S-VOL SSUS,—– 50 -
oradg oradg_1_51(L) (CL1-A-3, 0, 51-0 )87011551 51.P-VOL PSUS,87011551 101 W
oradg oradg_1_51(R) (CL1-A-3, 0, 75-0 )87011551 101.S-VOL SSUS,—– 51 -
oradg oradg_1_52(L) (CL1-A-3, 0, 52-0 )87011551 52.P-VOL PSUS,87011551 102 W
oradg oradg_1_52(R) (CL1-A-3, 0, 76-0 )87011551 102.S-VOL SSUS,—– 52 -
oradg oradg_1_53(L) (CL1-A-3, 0, 53-0 )87011551 53.P-VOL PSUS,87011551 103 W
oradg oradg_1_53(R) (CL1-A-3, 0, 77-0 )87011551 103.S-VOL SSUS,—– 53 -
oradg oradg_1_54(L) (CL1-A-3, 0, 54-0 )87011551 54.P-VOL PSUS,87011551 104 W
oradg oradg_1_54(R) (CL1-A-3, 0, 78-0 )87011551 104.S-VOL SSUS,—– 54 -
oradg oradg_1_55(L) (CL1-A-3, 0, 55-0 )87011551 55.P-VOL PSUS,87011551 105 W
oradg oradg_1_55(R) (CL1-A-3, 0, 79-0 )87011551 105.S-VOL SSUS,—– 55 -
oradg oradg_1_56(L) (CL1-A-3, 0, 56-0 )87011551 56.P-VOL PSUS,87011551 106 W
oradg oradg_1_56(R) (CL1-A-3, 0, 80-0 )87011551 106.S-VOL SSUS,—– 56 -
oradg oradg_1_57(L) (CL1-A-3, 0, 57-0 )87011551 57.P-VOL PSUS,87011551 107 W
oradg oradg_1_57(R) (CL1-A-3, 0, 81-0 )87011551 107.S-VOL SSUS,—– 57 -
oradg oradg_1_58(L) (CL1-A-3, 0, 58-0 )87011551 58.P-VOL PSUS,87011551 108 W
oradg oradg_1_58(R) (CL1-A-3, 0, 82-0 )87011551 108.S-VOL SSUS,—– 58 -
oradg oradg_1_59(L) (CL1-A-3, 0, 59-0 )87011551 59.P-VOL PSUS,87011551 109 W
oradg oradg_1_59(R) (CL1-A-3, 0, 83-0 )87011551 109.S-VOL SSUS,—– 59 -
Group PairVol(L/R) (Port#,TID, LU-M) ,Seq#,LDEV#.P/S,Status, Seq#,P-LDEV# M
oradg oradg_1_60(L) (CL1-A-3, 0, 60-0 )87011551 60.P-VOL PSUS,87011551 110 W
oradg oradg_1_60(R) (CL1-A-3, 0, 84-0 )87011551 110.S-VOL SSUS,—– 60 -
oradg oradg_1_61(L) (CL1-A-3, 0, 61-0 )87011551 61.P-VOL PSUS,87011551 111 W
oradg oradg_1_61(R) (CL1-A-3, 0, 85-0 )87011551 111.S-VOL SSUS,—– 61 -
oradg oradg_1_62(L) (CL1-A-3, 0, 62-0 )87011551 62.P-VOL PSUS,87011551 112 W
oradg oradg_1_62(R) (CL1-A-3, 0, 86-0 )87011551 112.S-VOL SSUS,—– 62 -
oradg oradg_1_63(L) (CL1-A-3, 0, 63-0 )87011551 63.P-VOL PSUS,87011551 113 W
oradg oradg_1_63(R) (CL1-A-3, 0, 87-0 )87011551 113.S-VOL SSUS,—– 63 -
oradg oradg_1_64(L) (CL1-A-3, 0, 64-0 )87011551 64.P-VOL PSUS,87011551 114 W
oradg oradg_1_64(R) (CL1-A-3, 0, 88-0 )87011551 114.S-VOL SSUS,—– 64 -
oradg oradg_1_65(L) (CL1-A-3, 0, 65-0 )87011551 65.P-VOL PSUS,87011551 115 W
oradg oradg_1_65(R) (CL1-A-3, 0, 89-0 )87011551 115.S-VOL SSUS,—– 65 -
oradg oradg_1_66(L) (CL1-A-3, 0, 66-0 )87011551 66.P-VOL PSUS,87011551 116 W
oradg oradg_1_66(R) (CL1-A-3, 0, 90-0 )87011551 116.S-VOL SSUS,—– 66 -
oradg oradg_1_67(L) (CL1-A-3, 0, 67-0 )87011551 67.P-VOL PSUS,87011551 117 W
oradg oradg_1_67(R) (CL1-A-3, 0, 91-0 )87011551 117.S-VOL SSUS,—– 67 -
oradg oradg_1_68(L) (CL1-A-3, 0, 68-0 )87011551 68.P-VOL PSUS,87011551 118 W
oradg oradg_1_68(R) (CL1-A-3, 0, 92-0 )87011551 118.S-VOL SSUS,—– 68 -
oradg oradg_1_69(L) (CL1-A-3, 0, 69-0 )87011551 69.P-VOL PSUS,87011551 119 W
oradg oradg_1_69(R) (CL1-A-3, 0, 93-0 )87011551 119.S-VOL SSUS,—– 69 -
Group PairVol(L/R) (Port#,TID, LU-M) ,Seq#,LDEV#.P/S,Status, Seq#,P-LDEV# M
oradg oradg_1_70(L) (CL1-A-3, 0, 70-0 )87011551 70.P-VOL PSUS,87011551 120 W
oradg oradg_1_70(R) (CL1-A-3, 0, 94-0 )87011551 120.S-VOL SSUS,—– 70 -
oradg oradg_1_71(L) (CL1-A-3, 0, 71-0 )87011551 71.P-VOL PSUS,87011551 121 W
oradg oradg_1_71(R) (CL1-A-3, 0, 95-0 )87011551 121.S-VOL SSUS,—– 71 -
oradg oradg_1_72(L) (CL1-A-3, 0, 72-0 )87011551 72.P-VOL PSUS,87011551 122 W
oradg oradg_1_72(R) (CL1-A-3, 0, 96-0 )87011551 122.S-VOL SSUS,—– 72 -
oradg oradg_1_73(L) (CL1-A-3, 0, 73-0 )87011551 73.P-VOL PSUS,87011551 123 W
oradg oradg_1_73(R) (CL1-A-3, 0, 97-0 )87011551 123.S-VOL SSUS,—– 73 -
root@ni5nrp2:/usr/openv/netbackup/bin[1115]#

Filed under Uncategorized |

Leave a Reply

Recovering from PSUE state using CCI tools and HDS COW snapshot

Posted on June 15th, 2011

1085 CONFIG_FILE=/opt/VRTSnbu/snapshot/ni_snapshot_backup.conf
1086 HORCM_GROUP=`awk ‘{ if ( $1 == “HORCM_GROUP” ) { print $2 } }’ ${CONFIG_FILE}`
1087 HORCMINST=`awk ‘{ if ( $1 == “HORCM_INSTANCE” ) { print $2 } }’ ${CONFIG_FILE}`
1088 VXVM_GROUP=`awk ‘{ if ( $1 == “VXVM_GROUP” ) { print $2 } }’ ${CONFIG_FILE}`
1089 MOUNT_ROOT=`awk ‘{ if ( $1 == “MOUNT_ROOT” ) { print $2 } }’ ${CONFIG_FILE}`
1090 VXVM_CLONE_GROUP=${VXVM_GROUP}_clone
1091 HORCC_MRCF=0
1092 PATH=/usr/bin:/usr/sbin
1093 export HORCMINST HORCC_MRCF PATH
1094 more /opt/VRTSnbu/snapshot/ni_snapshot_backup.sh
1095 pairdisplay -g oradg

root@ni5nrp2:/usr/openv/netbackup/bin[1097]# pairdisplay -g oradg
Group PairVol(L/R) (Port#,TID, LU-M) ,Seq#,LDEV#.P/S,Status, Seq#,P-LDEV# M
oradg oradg_1_50(L) (CL1-A-3, 0, 50-0 )87011551 50.P-VOL PSUE,87011551 100 -
oradg oradg_1_50(R) (CL1-A-3, 0, 74-0 )87011551 100.S-VOL PSUE,—– 50 N
oradg oradg_1_51(L) (CL1-A-3, 0, 51-0 )87011551 51.P-VOL PSUE,87011551 101 -
oradg oradg_1_51(R) (CL1-A-3, 0, 75-0 )87011551 101.S-VOL PSUE,—– 51 N
oradg oradg_1_52(L) (CL1-A-3, 0, 52-0 )87011551 52.P-VOL PSUE,87011551 102 -
oradg oradg_1_52(R) (CL1-A-3, 0, 76-0 )87011551 102.S-VOL PSUE,—– 52 N
oradg oradg_1_53(L) (CL1-A-3, 0, 53-0 )87011551 53.P-VOL PSUE,87011551 103 -
oradg oradg_1_53(R) (CL1-A-3, 0, 77-0 )87011551 103.S-VOL PSUE,—– 53 N
oradg oradg_1_54(L) (CL1-A-3, 0, 54-0 )87011551 54.P-VOL PSUE,87011551 104 -
oradg oradg_1_54(R) (CL1-A-3, 0, 78-0 )87011551 104.S-VOL PSUE,—– 54 N
oradg oradg_1_55(L) (CL1-A-3, 0, 55-0 )87011551 55.P-VOL PSUE,87011551 105 -
oradg oradg_1_55(R) (CL1-A-3, 0, 79-0 )87011551 105.S-VOL PSUE,—– 55 N
oradg oradg_1_56(L) (CL1-A-3, 0, 56-0 )87011551 56.P-VOL PSUE,87011551 106 -
oradg oradg_1_56(R) (CL1-A-3, 0, 80-0 )87011551 106.S-VOL PSUE,—– 56 N
oradg oradg_1_57(L) (CL1-A-3, 0, 57-0 )87011551 57.P-VOL PSUE,87011551 107 -
oradg oradg_1_57(R) (CL1-A-3, 0, 81-0 )87011551 107.S-VOL PSUE,—– 57 N
oradg oradg_1_58(L) (CL1-A-3, 0, 58-0 )87011551 58.P-VOL PSUE,87011551 108 -
oradg oradg_1_58(R) (CL1-A-3, 0, 82-0 )87011551 108.S-VOL PSUE,—– 58 N
oradg oradg_1_59(L) (CL1-A-3, 0, 59-0 )87011551 59.P-VOL PSUE,87011551 109 -
oradg oradg_1_59(R) (CL1-A-3, 0, 83-0 )87011551 109.S-VOL PSUE,—– 59 N
Group PairVol(L/R) (Port#,TID, LU-M) ,Seq#,LDEV#.P/S,Status, Seq#,P-LDEV# M
oradg oradg_1_60(L) (CL1-A-3, 0, 60-0 )87011551 60.P-VOL PSUE,87011551 110 -
oradg oradg_1_60(R) (CL1-A-3, 0, 84-0 )87011551 110.S-VOL PSUE,—– 60 N
oradg oradg_1_61(L) (CL1-A-3, 0, 61-0 )87011551 61.P-VOL PSUE,87011551 111 -
oradg oradg_1_61(R) (CL1-A-3, 0, 85-0 )87011551 111.S-VOL PSUE,—– 61 N
oradg oradg_1_62(L) (CL1-A-3, 0, 62-0 )87011551 62.P-VOL PSUE,87011551 112 -
oradg oradg_1_62(R) (CL1-A-3, 0, 86-0 )87011551 112.S-VOL PSUE,—– 62 N
oradg oradg_1_63(L) (CL1-A-3, 0, 63-0 )87011551 63.P-VOL PSUE,87011551 113 -
oradg oradg_1_63(R) (CL1-A-3, 0, 87-0 )87011551 113.S-VOL PSUE,—– 63 N
oradg oradg_1_64(L) (CL1-A-3, 0, 64-0 )87011551 64.P-VOL PSUE,87011551 114 -
oradg oradg_1_64(R) (CL1-A-3, 0, 88-0 )87011551 114.S-VOL PSUE,—– 64 N
oradg oradg_1_65(L) (CL1-A-3, 0, 65-0 )87011551 65.P-VOL PSUE,87011551 115 -
oradg oradg_1_65(R) (CL1-A-3, 0, 89-0 )87011551 115.S-VOL PSUE,—– 65 N
oradg oradg_1_66(L) (CL1-A-3, 0, 66-0 )87011551 66.P-VOL PSUE,87011551 116 -
oradg oradg_1_66(R) (CL1-A-3, 0, 90-0 )87011551 116.S-VOL PSUE,—– 66 N
oradg oradg_1_67(L) (CL1-A-3, 0, 67-0 )87011551 67.P-VOL PSUE,87011551 117 -
oradg oradg_1_67(R) (CL1-A-3, 0, 91-0 )87011551 117.S-VOL PSUE,—– 67 N
oradg oradg_1_68(L) (CL1-A-3, 0, 68-0 )87011551 68.P-VOL PSUE,87011551 118 -
oradg oradg_1_68(R) (CL1-A-3, 0, 92-0 )87011551 118.S-VOL PSUE,—– 68 N
oradg oradg_1_69(L) (CL1-A-3, 0, 69-0 )87011551 69.P-VOL PSUE,87011551 119 -
oradg oradg_1_69(R) (CL1-A-3, 0, 93-0 )87011551 119.S-VOL PSUE,—– 69 N
Group PairVol(L/R) (Port#,TID, LU-M) ,Seq#,LDEV#.P/S,Status, Seq#,P-LDEV# M
oradg oradg_1_70(L) (CL1-A-3, 0, 70-0 )87011551 70.P-VOL PSUE,87011551 120 -
oradg oradg_1_70(R) (CL1-A-3, 0, 94-0 )87011551 120.S-VOL PSUE,—– 70 N
oradg oradg_1_71(L) (CL1-A-3, 0, 71-0 )87011551 71.P-VOL PSUE,87011551 121 -
oradg oradg_1_71(R) (CL1-A-3, 0, 95-0 )87011551 121.S-VOL PSUE,—– 71 N
oradg oradg_1_72(L) (CL1-A-3, 0, 72-0 )87011551 72.P-VOL PSUE,87011551 122 -
oradg oradg_1_72(R) (CL1-A-3, 0, 96-0 )87011551 122.S-VOL PSUE,—– 72 N
oradg oradg_1_73(L) (CL1-A-3, 0, 73-0 )87011551 73.P-VOL PSUE,87011551 123 -
oradg oradg_1_73(R) (CL1-A-3, 0, 97-0 )87011551 123.S-VOL PSUE,—– 73 N

/etc/horcm0.conf
root@ni5nrp2:/usr/openv/netbackup/bin[1099]# more /etc/horcm0.conf
HORCM_MON
#ip_address service poll(10ms) timeout(10ms)
ni5nrp-backup horcm0 1000 3000
HORCM_CMD
#dev_name dev_name dev_name
/dev/rdsk/c7t50060E80100542F0d0s2
HORCM_DEV
HORCM_LDEV
#dev_group dev_name Serial# CU:LDEV(LDEV#) MU#
oradg oradg_1_50 87011551 50 0
oradg oradg_1_51 87011551 51 0
oradg oradg_1_52 87011551 52 0
oradg oradg_1_53 87011551 53 0
oradg oradg_1_54 87011551 54 0
oradg oradg_1_55 87011551 55 0
oradg oradg_1_56 87011551 56 0
oradg oradg_1_57 87011551 57 0
oradg oradg_1_58 87011551 58 0
oradg oradg_1_59 87011551 59 0
oradg oradg_1_60 87011551 60 0
oradg oradg_1_61 87011551 61 0
oradg oradg_1_62 87011551 62 0
oradg oradg_1_63 87011551 63 0
oradg oradg_1_64 87011551 64 0
oradg oradg_1_65 87011551 65 0
oradg oradg_1_66 87011551 66 0
oradg oradg_1_67 87011551 67 0
oradg oradg_1_68 87011551 68 0
oradg oradg_1_69 87011551 69 0
oradg oradg_1_70 87011551 70 0
oradg oradg_1_71 87011551 71 0
oradg oradg_1_72 87011551 72 0
oradg oradg_1_73 87011551 73 0
HORCM_INST
#dev_group ip_address service
oradg ni5nrp-backup horcm1
root@ni5nrp2:/usr/openv/netbackup/bin[1100]#

more /etc/horcm1.conf
root@ni5nrp2:/usr/openv/netbackup/bin[1100]# more /etc/horcm1.conf
HORCM_MON
#ip_address service poll(10ms) timeout(10ms)
ni5nrp-backup horcm1 1000 3000
HORCM_CMD
#dev_name dev_name dev_name
/dev/rdsk/c7t50060E80100542F0d0s2
HORCM_DEV
HORCM_LDEV
#dev_group dev_name Serial# CU:LDEV(LDEV#) MU#
oradg oradg_1_50 87011551 100 0
oradg oradg_1_51 87011551 101 0
oradg oradg_1_52 87011551 102 0
oradg oradg_1_53 87011551 103 0
oradg oradg_1_54 87011551 104 0
oradg oradg_1_55 87011551 105 0
oradg oradg_1_56 87011551 106 0
oradg oradg_1_57 87011551 107 0
oradg oradg_1_58 87011551 108 0
oradg oradg_1_59 87011551 109 0
oradg oradg_1_60 87011551 110 0
oradg oradg_1_61 87011551 111 0
oradg oradg_1_62 87011551 112 0
oradg oradg_1_63 87011551 113 0
oradg oradg_1_64 87011551 114 0
oradg oradg_1_65 87011551 115 0
oradg oradg_1_66 87011551 116 0
oradg oradg_1_67 87011551 117 0
oradg oradg_1_68 87011551 118 0
oradg oradg_1_69 87011551 119 0
oradg oradg_1_70 87011551 120 0
oradg oradg_1_71 87011551 121 0
oradg oradg_1_72 87011551 122 0
oradg oradg_1_73 87011551 123 0
HORCM_INST
#dev_group ip_address service
oradg ni5nrp-backup horcm0
root@ni5nrp2:/usr/openv/netbackup/bin[1101]# echo $HORCMINST
0
root@ni5nrp2:/usr/openv/netbackup/bin[1105]# pairsplit -g oradg -S
root@ni5nrp2:/usr/openv/netbackup/bin[1106]# pairdisplay -g oradg
Group PairVol(L/R) (Port#,TID, LU-M) ,Seq#,LDEV#.P/S,Status, Seq#,P-LDEV# M
oradg oradg_1_50(L) (CL1-A-3, 0, 50-0 )87011551 50.SMPL —-,—– —– -
oradg oradg_1_50(R) (CL1-A-3, 0, 74-0 )87011551 100.SMPL —-,—– —– -
oradg oradg_1_51(L) (CL1-A-3, 0, 51-0 )87011551 51.SMPL —-,—– —– -
oradg oradg_1_51(R) (CL1-A-3, 0, 75-0 )87011551 101.SMPL —-,—– —– -
oradg oradg_1_52(L) (CL1-A-3, 0, 52-0 )87011551 52.SMPL —-,—– —– -
oradg oradg_1_52(R) (CL1-A-3, 0, 76-0 )87011551 102.SMPL —-,—– —– -
oradg oradg_1_53(L) (CL1-A-3, 0, 53-0 )87011551 53.SMPL —-,—– —– -
oradg oradg_1_53(R) (CL1-A-3, 0, 77-0 )87011551 103.SMPL —-,—– —– -
oradg oradg_1_54(L) (CL1-A-3, 0, 54-0 )87011551 54.SMPL —-,—– —– -
oradg oradg_1_54(R) (CL1-A-3, 0, 78-0 )87011551 104.SMPL —-,—– —– -
oradg oradg_1_55(L) (CL1-A-3, 0, 55-0 )87011551 55.SMPL —-,—– —– -
oradg oradg_1_55(R) (CL1-A-3, 0, 79-0 )87011551 105.SMPL —-,—– —– -
oradg oradg_1_56(L) (CL1-A-3, 0, 56-0 )87011551 56.SMPL —-,—– —– -
oradg oradg_1_56(R) (CL1-A-3, 0, 80-0 )87011551 106.SMPL —-,—– —– -
oradg oradg_1_57(L) (CL1-A-3, 0, 57-0 )87011551 57.SMPL —-,—– —– -
oradg oradg_1_57(R) (CL1-A-3, 0, 81-0 )87011551 107.SMPL —-,—– —– -
oradg oradg_1_58(L) (CL1-A-3, 0, 58-0 )87011551 58.SMPL —-,—– —– -
oradg oradg_1_58(R) (CL1-A-3, 0, 82-0 )87011551 108.SMPL —-,—– —– -
oradg oradg_1_59(L) (CL1-A-3, 0, 59-0 )87011551 59.SMPL —-,—– —– -
oradg oradg_1_59(R) (CL1-A-3, 0, 83-0 )87011551 109.SMPL —-,—– —– -
Group PairVol(L/R) (Port#,TID, LU-M) ,Seq#,LDEV#.P/S,Status, Seq#,P-LDEV# M
oradg oradg_1_60(L) (CL1-A-3, 0, 60-0 )87011551 60.SMPL —-,—– —– -
oradg oradg_1_60(R) (CL1-A-3, 0, 84-0 )87011551 110.SMPL —-,—– —– -
oradg oradg_1_61(L) (CL1-A-3, 0, 61-0 )87011551 61.SMPL —-,—– —– -
oradg oradg_1_61(R) (CL1-A-3, 0, 85-0 )87011551 111.SMPL —-,—– —– -
oradg oradg_1_62(L) (CL1-A-3, 0, 62-0 )87011551 62.SMPL —-,—– —– -
oradg oradg_1_62(R) (CL1-A-3, 0, 86-0 )87011551 112.SMPL —-,—– —– -
oradg oradg_1_63(L) (CL1-A-3, 0, 63-0 )87011551 63.SMPL —-,—– —– -
oradg oradg_1_63(R) (CL1-A-3, 0, 87-0 )87011551 113.SMPL —-,—– —– -
oradg oradg_1_64(L) (CL1-A-3, 0, 64-0 )87011551 64.SMPL —-,—– —– -
oradg oradg_1_64(R) (CL1-A-3, 0, 88-0 )87011551 114.SMPL —-,—– —– -
oradg oradg_1_65(L) (CL1-A-3, 0, 65-0 )87011551 65.SMPL —-,—– —– -
oradg oradg_1_65(R) (CL1-A-3, 0, 89-0 )87011551 115.SMPL —-,—– —– -
oradg oradg_1_66(L) (CL1-A-3, 0, 66-0 )87011551 66.SMPL —-,—– —– -
oradg oradg_1_66(R) (CL1-A-3, 0, 90-0 )87011551 116.SMPL —-,—– —– -
oradg oradg_1_67(L) (CL1-A-3, 0, 67-0 )87011551 67.SMPL —-,—– —– -
oradg oradg_1_67(R) (CL1-A-3, 0, 91-0 )87011551 117.SMPL —-,—– —– -
oradg oradg_1_68(L) (CL1-A-3, 0, 68-0 )87011551 68.SMPL —-,—– —– -
oradg oradg_1_68(R) (CL1-A-3, 0, 92-0 )87011551 118.SMPL —-,—– —– -
oradg oradg_1_69(L) (CL1-A-3, 0, 69-0 )87011551 69.SMPL —-,—– —– -
oradg oradg_1_69(R) (CL1-A-3, 0, 93-0 )87011551 119.SMPL —-,—– —– -
Group PairVol(L/R) (Port#,TID, LU-M) ,Seq#,LDEV#.P/S,Status, Seq#,P-LDEV# M
oradg oradg_1_70(L) (CL1-A-3, 0, 70-0 )87011551 70.SMPL —-,—– —– -
oradg oradg_1_70(R) (CL1-A-3, 0, 94-0 )87011551 120.SMPL —-,—– —– -
oradg oradg_1_71(L) (CL1-A-3, 0, 71-0 )87011551 71.SMPL —-,—– —– -
oradg oradg_1_71(R) (CL1-A-3, 0, 95-0 )87011551 121.SMPL —-,—– —– -
oradg oradg_1_72(L) (CL1-A-3, 0, 72-0 )87011551 72.SMPL —-,—– —– -
oradg oradg_1_72(R) (CL1-A-3, 0, 96-0 )87011551 122.SMPL —-,—– —– -
oradg oradg_1_73(L) (CL1-A-3, 0, 73-0 )87011551 73.SMPL —-,—– —– -
oradg oradg_1_73(R) (CL1-A-3, 0, 97-0 )87011551 123.SMPL —-,—– —– -
root@ni5nrp2:/usr/openv/netbackup/bin[1107]#

Filed under Uncategorized |

Leave a Reply

Private: Recovering from PSUE state using CCI tools and HDS COW snapshot

Posted on June 15th, 2011

1085 CONFIG_FILE=/opt/VRTSnbu/snapshot/ni_snapshot_backup.conf
1086 HORCM_GROUP=`awk ‘{ if ( $1 == “HORCM_GROUP” ) { print $2 } }’ ${CONFIG_FILE}`
1087 HORCMINST=`awk ‘{ if ( $1 == “HORCM_INSTANCE” ) { print $2 } }’ ${CONFIG_FILE}`
1088 VXVM_GROUP=`awk ‘{ if ( $1 == “VXVM_GROUP” ) { print $2 } }’ ${CONFIG_FILE}`
1089 MOUNT_ROOT=`awk ‘{ if ( $1 == “MOUNT_ROOT” ) { print $2 } }’ ${CONFIG_FILE}`
1090 VXVM_CLONE_GROUP=${VXVM_GROUP}_clone
1091 HORCC_MRCF=0
1092 PATH=/usr/bin:/usr/sbin
1093 export HORCMINST HORCC_MRCF PATH
1094 more /opt/VRTSnbu/snapshot/ni_snapshot_backup.sh
1095 pairdisplay -g oradg

root@ni5nrp2:/usr/openv/netbackup/bin[1097]# pairdisplay -g oradg
Group PairVol(L/R) (Port#,TID, LU-M) ,Seq#,LDEV#.P/S,Status, Seq#,P-LDEV# M
oradg oradg_1_50(L) (CL1-A-3, 0, 50-0 )87011551 50.P-VOL PSUE,87011551 100 -
oradg oradg_1_50(R) (CL1-A-3, 0, 74-0 )87011551 100.S-VOL PSUE,—– 50 N
oradg oradg_1_51(L) (CL1-A-3, 0, 51-0 )87011551 51.P-VOL PSUE,87011551 101 -
oradg oradg_1_51(R) (CL1-A-3, 0, 75-0 )87011551 101.S-VOL PSUE,—– 51 N
oradg oradg_1_52(L) (CL1-A-3, 0, 52-0 )87011551 52.P-VOL PSUE,87011551 102 -
oradg oradg_1_52(R) (CL1-A-3, 0, 76-0 )87011551 102.S-VOL PSUE,—– 52 N
oradg oradg_1_53(L) (CL1-A-3, 0, 53-0 )87011551 53.P-VOL PSUE,87011551 103 -
oradg oradg_1_53(R) (CL1-A-3, 0, 77-0 )87011551 103.S-VOL PSUE,—– 53 N
oradg oradg_1_54(L) (CL1-A-3, 0, 54-0 )87011551 54.P-VOL PSUE,87011551 104 -
oradg oradg_1_54(R) (CL1-A-3, 0, 78-0 )87011551 104.S-VOL PSUE,—– 54 N
oradg oradg_1_55(L) (CL1-A-3, 0, 55-0 )87011551 55.P-VOL PSUE,87011551 105 -
oradg oradg_1_55(R) (CL1-A-3, 0, 79-0 )87011551 105.S-VOL PSUE,—– 55 N
oradg oradg_1_56(L) (CL1-A-3, 0, 56-0 )87011551 56.P-VOL PSUE,87011551 106 -
oradg oradg_1_56(R) (CL1-A-3, 0, 80-0 )87011551 106.S-VOL PSUE,—– 56 N
oradg oradg_1_57(L) (CL1-A-3, 0, 57-0 )87011551 57.P-VOL PSUE,87011551 107 -
oradg oradg_1_57(R) (CL1-A-3, 0, 81-0 )87011551 107.S-VOL PSUE,—– 57 N
oradg oradg_1_58(L) (CL1-A-3, 0, 58-0 )87011551 58.P-VOL PSUE,87011551 108 -
oradg oradg_1_58(R) (CL1-A-3, 0, 82-0 )87011551 108.S-VOL PSUE,—– 58 N
oradg oradg_1_59(L) (CL1-A-3, 0, 59-0 )87011551 59.P-VOL PSUE,87011551 109 -
oradg oradg_1_59(R) (CL1-A-3, 0, 83-0 )87011551 109.S-VOL PSUE,—– 59 N
Group PairVol(L/R) (Port#,TID, LU-M) ,Seq#,LDEV#.P/S,Status, Seq#,P-LDEV# M
oradg oradg_1_60(L) (CL1-A-3, 0, 60-0 )87011551 60.P-VOL PSUE,87011551 110 -
oradg oradg_1_60(R) (CL1-A-3, 0, 84-0 )87011551 110.S-VOL PSUE,—– 60 N
oradg oradg_1_61(L) (CL1-A-3, 0, 61-0 )87011551 61.P-VOL PSUE,87011551 111 -
oradg oradg_1_61(R) (CL1-A-3, 0, 85-0 )87011551 111.S-VOL PSUE,—– 61 N
oradg oradg_1_62(L) (CL1-A-3, 0, 62-0 )87011551 62.P-VOL PSUE,87011551 112 -
oradg oradg_1_62(R) (CL1-A-3, 0, 86-0 )87011551 112.S-VOL PSUE,—– 62 N
oradg oradg_1_63(L) (CL1-A-3, 0, 63-0 )87011551 63.P-VOL PSUE,87011551 113 -
oradg oradg_1_63(R) (CL1-A-3, 0, 87-0 )87011551 113.S-VOL PSUE,—– 63 N
oradg oradg_1_64(L) (CL1-A-3, 0, 64-0 )87011551 64.P-VOL PSUE,87011551 114 -
oradg oradg_1_64(R) (CL1-A-3, 0, 88-0 )87011551 114.S-VOL PSUE,—– 64 N
oradg oradg_1_65(L) (CL1-A-3, 0, 65-0 )87011551 65.P-VOL PSUE,87011551 115 -
oradg oradg_1_65(R) (CL1-A-3, 0, 89-0 )87011551 115.S-VOL PSUE,—– 65 N
oradg oradg_1_66(L) (CL1-A-3, 0, 66-0 )87011551 66.P-VOL PSUE,87011551 116 -
oradg oradg_1_66(R) (CL1-A-3, 0, 90-0 )87011551 116.S-VOL PSUE,—– 66 N
oradg oradg_1_67(L) (CL1-A-3, 0, 67-0 )87011551 67.P-VOL PSUE,87011551 117 -
oradg oradg_1_67(R) (CL1-A-3, 0, 91-0 )87011551 117.S-VOL PSUE,—– 67 N
oradg oradg_1_68(L) (CL1-A-3, 0, 68-0 )87011551 68.P-VOL PSUE,87011551 118 -
oradg oradg_1_68(R) (CL1-A-3, 0, 92-0 )87011551 118.S-VOL PSUE,—– 68 N
oradg oradg_1_69(L) (CL1-A-3, 0, 69-0 )87011551 69.P-VOL PSUE,87011551 119 -
oradg oradg_1_69(R) (CL1-A-3, 0, 93-0 )87011551 119.S-VOL PSUE,—– 69 N
Group PairVol(L/R) (Port#,TID, LU-M) ,Seq#,LDEV#.P/S,Status, Seq#,P-LDEV# M
oradg oradg_1_70(L) (CL1-A-3, 0, 70-0 )87011551 70.P-VOL PSUE,87011551 120 -
oradg oradg_1_70(R) (CL1-A-3, 0, 94-0 )87011551 120.S-VOL PSUE,—– 70 N
oradg oradg_1_71(L) (CL1-A-3, 0, 71-0 )87011551 71.P-VOL PSUE,87011551 121 -
oradg oradg_1_71(R) (CL1-A-3, 0, 95-0 )87011551 121.S-VOL PSUE,—– 71 N
oradg oradg_1_72(L) (CL1-A-3, 0, 72-0 )87011551 72.P-VOL PSUE,87011551 122 -
oradg oradg_1_72(R) (CL1-A-3, 0, 96-0 )87011551 122.S-VOL PSUE,—– 72 N
oradg oradg_1_73(L) (CL1-A-3, 0, 73-0 )87011551 73.P-VOL PSUE,87011551 123 -
oradg oradg_1_73(R) (CL1-A-3, 0, 97-0 )87011551 123.S-VOL PSUE,—– 73 N

/etc/horcm0.conf
root@ni5nrp2:/usr/openv/netbackup/bin[1099]# more /etc/horcm0.conf
HORCM_MON
#ip_address service poll(10ms) timeout(10ms)
ni5nrp-backup horcm0 1000 3000
HORCM_CMD
#dev_name dev_name dev_name
/dev/rdsk/c7t50060E80100542F0d0s2
HORCM_DEV
HORCM_LDEV
#dev_group dev_name Serial# CU:LDEV(LDEV#) MU#
oradg oradg_1_50 87011551 50 0
oradg oradg_1_51 87011551 51 0
oradg oradg_1_52 87011551 52 0
oradg oradg_1_53 87011551 53 0
oradg oradg_1_54 87011551 54 0
oradg oradg_1_55 87011551 55 0
oradg oradg_1_56 87011551 56 0
oradg oradg_1_57 87011551 57 0
oradg oradg_1_58 87011551 58 0
oradg oradg_1_59 87011551 59 0
oradg oradg_1_60 87011551 60 0
oradg oradg_1_61 87011551 61 0
oradg oradg_1_62 87011551 62 0
oradg oradg_1_63 87011551 63 0
oradg oradg_1_64 87011551 64 0
oradg oradg_1_65 87011551 65 0
oradg oradg_1_66 87011551 66 0
oradg oradg_1_67 87011551 67 0
oradg oradg_1_68 87011551 68 0
oradg oradg_1_69 87011551 69 0
oradg oradg_1_70 87011551 70 0
oradg oradg_1_71 87011551 71 0
oradg oradg_1_72 87011551 72 0
oradg oradg_1_73 87011551 73 0
HORCM_INST
#dev_group ip_address service
oradg ni5nrp-backup horcm1
root@ni5nrp2:/usr/openv/netbackup/bin[1100]#

more /etc/horcm1.conf
root@ni5nrp2:/usr/openv/netbackup/bin[1100]# more /etc/horcm1.conf
HORCM_MON
#ip_address service poll(10ms) timeout(10ms)
ni5nrp-backup horcm1 1000 3000
HORCM_CMD
#dev_name dev_name dev_name
/dev/rdsk/c7t50060E80100542F0d0s2
HORCM_DEV
HORCM_LDEV
#dev_group dev_name Serial# CU:LDEV(LDEV#) MU#
oradg oradg_1_50 87011551 100 0
oradg oradg_1_51 87011551 101 0
oradg oradg_1_52 87011551 102 0
oradg oradg_1_53 87011551 103 0
oradg oradg_1_54 87011551 104 0
oradg oradg_1_55 87011551 105 0
oradg oradg_1_56 87011551 106 0
oradg oradg_1_57 87011551 107 0
oradg oradg_1_58 87011551 108 0
oradg oradg_1_59 87011551 109 0
oradg oradg_1_60 87011551 110 0
oradg oradg_1_61 87011551 111 0
oradg oradg_1_62 87011551 112 0
oradg oradg_1_63 87011551 113 0
oradg oradg_1_64 87011551 114 0
oradg oradg_1_65 87011551 115 0
oradg oradg_1_66 87011551 116 0
oradg oradg_1_67 87011551 117 0
oradg oradg_1_68 87011551 118 0
oradg oradg_1_69 87011551 119 0
oradg oradg_1_70 87011551 120 0
oradg oradg_1_71 87011551 121 0
oradg oradg_1_72 87011551 122 0
oradg oradg_1_73 87011551 123 0
HORCM_INST
#dev_group ip_address service
oradg ni5nrp-backup horcm0
root@ni5nrp2:/usr/openv/netbackup/bin[1101]# echo $HORCMINST
0
root@ni5nrp2:/usr/openv/netbackup/bin[1105]# pairsplit -g oradg -S
root@ni5nrp2:/usr/openv/netbackup/bin[1106]# pairdisplay -g oradg
Group PairVol(L/R) (Port#,TID, LU-M) ,Seq#,LDEV#.P/S,Status, Seq#,P-LDEV# M
oradg oradg_1_50(L) (CL1-A-3, 0, 50-0 )87011551 50.SMPL —-,—– —– -
oradg oradg_1_50(R) (CL1-A-3, 0, 74-0 )87011551 100.SMPL —-,—– —– -
oradg oradg_1_51(L) (CL1-A-3, 0, 51-0 )87011551 51.SMPL —-,—– —– -
oradg oradg_1_51(R) (CL1-A-3, 0, 75-0 )87011551 101.SMPL —-,—– —– -
oradg oradg_1_52(L) (CL1-A-3, 0, 52-0 )87011551 52.SMPL —-,—– —– -
oradg oradg_1_52(R) (CL1-A-3, 0, 76-0 )87011551 102.SMPL —-,—– —– -
oradg oradg_1_53(L) (CL1-A-3, 0, 53-0 )87011551 53.SMPL —-,—– —– -
oradg oradg_1_53(R) (CL1-A-3, 0, 77-0 )87011551 103.SMPL —-,—– —– -
oradg oradg_1_54(L) (CL1-A-3, 0, 54-0 )87011551 54.SMPL —-,—– —– -
oradg oradg_1_54(R) (CL1-A-3, 0, 78-0 )87011551 104.SMPL —-,—– —– -
oradg oradg_1_55(L) (CL1-A-3, 0, 55-0 )87011551 55.SMPL —-,—– —– -
oradg oradg_1_55(R) (CL1-A-3, 0, 79-0 )87011551 105.SMPL —-,—– —– -
oradg oradg_1_56(L) (CL1-A-3, 0, 56-0 )87011551 56.SMPL —-,—– —– -
oradg oradg_1_56(R) (CL1-A-3, 0, 80-0 )87011551 106.SMPL —-,—– —– -
oradg oradg_1_57(L) (CL1-A-3, 0, 57-0 )87011551 57.SMPL —-,—– —– -
oradg oradg_1_57(R) (CL1-A-3, 0, 81-0 )87011551 107.SMPL —-,—– —– -
oradg oradg_1_58(L) (CL1-A-3, 0, 58-0 )87011551 58.SMPL —-,—– —– -
oradg oradg_1_58(R) (CL1-A-3, 0, 82-0 )87011551 108.SMPL —-,—– —– -
oradg oradg_1_59(L) (CL1-A-3, 0, 59-0 )87011551 59.SMPL —-,—– —– -
oradg oradg_1_59(R) (CL1-A-3, 0, 83-0 )87011551 109.SMPL —-,—– —– -
Group PairVol(L/R) (Port#,TID, LU-M) ,Seq#,LDEV#.P/S,Status, Seq#,P-LDEV# M
oradg oradg_1_60(L) (CL1-A-3, 0, 60-0 )87011551 60.SMPL —-,—– —– -
oradg oradg_1_60(R) (CL1-A-3, 0, 84-0 )87011551 110.SMPL —-,—– —– -
oradg oradg_1_61(L) (CL1-A-3, 0, 61-0 )87011551 61.SMPL —-,—– —– -
oradg oradg_1_61(R) (CL1-A-3, 0, 85-0 )87011551 111.SMPL —-,—– —– -
oradg oradg_1_62(L) (CL1-A-3, 0, 62-0 )87011551 62.SMPL —-,—– —– -
oradg oradg_1_62(R) (CL1-A-3, 0, 86-0 )87011551 112.SMPL —-,—– —– -
oradg oradg_1_63(L) (CL1-A-3, 0, 63-0 )87011551 63.SMPL —-,—– —– -
oradg oradg_1_63(R) (CL1-A-3, 0, 87-0 )87011551 113.SMPL —-,—– —– -
oradg oradg_1_64(L) (CL1-A-3, 0, 64-0 )87011551 64.SMPL —-,—– —– -
oradg oradg_1_64(R) (CL1-A-3, 0, 88-0 )87011551 114.SMPL —-,—– —– -
oradg oradg_1_65(L) (CL1-A-3, 0, 65-0 )87011551 65.SMPL —-,—– —– -
oradg oradg_1_65(R) (CL1-A-3, 0, 89-0 )87011551 115.SMPL —-,—– —– -
oradg oradg_1_66(L) (CL1-A-3, 0, 66-0 )87011551 66.SMPL —-,—– —– -
oradg oradg_1_66(R) (CL1-A-3, 0, 90-0 )87011551 116.SMPL —-,—– —– -
oradg oradg_1_67(L) (CL1-A-3, 0, 67-0 )87011551 67.SMPL —-,—– —– -
oradg oradg_1_67(R) (CL1-A-3, 0, 91-0 )87011551 117.SMPL —-,—– —– -
oradg oradg_1_68(L) (CL1-A-3, 0, 68-0 )87011551 68.SMPL —-,—– —– -
oradg oradg_1_68(R) (CL1-A-3, 0, 92-0 )87011551 118.SMPL —-,—– —– -
oradg oradg_1_69(L) (CL1-A-3, 0, 69-0 )87011551 69.SMPL —-,—– —– -
oradg oradg_1_69(R) (CL1-A-3, 0, 93-0 )87011551 119.SMPL —-,—– —– -
Group PairVol(L/R) (Port#,TID, LU-M) ,Seq#,LDEV#.P/S,Status, Seq#,P-LDEV# M
oradg oradg_1_70(L) (CL1-A-3, 0, 70-0 )87011551 70.SMPL —-,—– —– -
oradg oradg_1_70(R) (CL1-A-3, 0, 94-0 )87011551 120.SMPL —-,—– —– -
oradg oradg_1_71(L) (CL1-A-3, 0, 71-0 )87011551 71.SMPL —-,—– —– -
oradg oradg_1_71(R) (CL1-A-3, 0, 95-0 )87011551 121.SMPL —-,—– —– -
oradg oradg_1_72(L) (CL1-A-3, 0, 72-0 )87011551 72.SMPL —-,—– —– -
oradg oradg_1_72(R) (CL1-A-3, 0, 96-0 )87011551 122.SMPL —-,—– —– -
oradg oradg_1_73(L) (CL1-A-3, 0, 73-0 )87011551 73.SMPL —-,—– —– -
oradg oradg_1_73(R) (CL1-A-3, 0, 97-0 )87011551 123.SMPL —-,—– —– -
root@ni5nrp2:/usr/openv/netbackup/bin[1107]#

root@ni5nrp2:/usr/openv/netbackup/bin[1113]# paircreate -g oradg -vl -split
root@ni5nrp2:/usr/openv/netbackup/bin[1114]# pairdisplay -g oradg
Group PairVol(L/R) (Port#,TID, LU-M) ,Seq#,LDEV#.P/S,Status, Seq#,P-LDEV# M
oradg oradg_1_50(L) (CL1-A-3, 0, 50-0 )87011551 50.P-VOL PSUS,87011551 100 W
oradg oradg_1_50(R) (CL1-A-3, 0, 74-0 )87011551 100.S-VOL SSUS,—– 50 -
oradg oradg_1_51(L) (CL1-A-3, 0, 51-0 )87011551 51.P-VOL PSUS,87011551 101 W
oradg oradg_1_51(R) (CL1-A-3, 0, 75-0 )87011551 101.S-VOL SSUS,—– 51 -
oradg oradg_1_52(L) (CL1-A-3, 0, 52-0 )87011551 52.P-VOL PSUS,87011551 102 W
oradg oradg_1_52(R) (CL1-A-3, 0, 76-0 )87011551 102.S-VOL SSUS,—– 52 -
oradg oradg_1_53(L) (CL1-A-3, 0, 53-0 )87011551 53.P-VOL PSUS,87011551 103 W
oradg oradg_1_53(R) (CL1-A-3, 0, 77-0 )87011551 103.S-VOL SSUS,—– 53 -
oradg oradg_1_54(L) (CL1-A-3, 0, 54-0 )87011551 54.P-VOL PSUS,87011551 104 W
oradg oradg_1_54(R) (CL1-A-3, 0, 78-0 )87011551 104.S-VOL SSUS,—– 54 -
oradg oradg_1_55(L) (CL1-A-3, 0, 55-0 )87011551 55.P-VOL PSUS,87011551 105 W
oradg oradg_1_55(R) (CL1-A-3, 0, 79-0 )87011551 105.S-VOL SSUS,—– 55 -
oradg oradg_1_56(L) (CL1-A-3, 0, 56-0 )87011551 56.P-VOL PSUS,87011551 106 W
oradg oradg_1_56(R) (CL1-A-3, 0, 80-0 )87011551 106.S-VOL SSUS,—– 56 -
oradg oradg_1_57(L) (CL1-A-3, 0, 57-0 )87011551 57.P-VOL PSUS,87011551 107 W
oradg oradg_1_57(R) (CL1-A-3, 0, 81-0 )87011551 107.S-VOL SSUS,—– 57 -
oradg oradg_1_58(L) (CL1-A-3, 0, 58-0 )87011551 58.P-VOL PSUS,87011551 108 W
oradg oradg_1_58(R) (CL1-A-3, 0, 82-0 )87011551 108.S-VOL SSUS,—– 58 -
oradg oradg_1_59(L) (CL1-A-3, 0, 59-0 )87011551 59.P-VOL PSUS,87011551 109 W
oradg oradg_1_59(R) (CL1-A-3, 0, 83-0 )87011551 109.S-VOL SSUS,—– 59 -
Group PairVol(L/R) (Port#,TID, LU-M) ,Seq#,LDEV#.P/S,Status, Seq#,P-LDEV# M
oradg oradg_1_60(L) (CL1-A-3, 0, 60-0 )87011551 60.P-VOL PSUS,87011551 110 W
oradg oradg_1_60(R) (CL1-A-3, 0, 84-0 )87011551 110.S-VOL SSUS,—– 60 -
oradg oradg_1_61(L) (CL1-A-3, 0, 61-0 )87011551 61.P-VOL PSUS,87011551 111 W
oradg oradg_1_61(R) (CL1-A-3, 0, 85-0 )87011551 111.S-VOL SSUS,—– 61 -
oradg oradg_1_62(L) (CL1-A-3, 0, 62-0 )87011551 62.P-VOL PSUS,87011551 112 W
oradg oradg_1_62(R) (CL1-A-3, 0, 86-0 )87011551 112.S-VOL SSUS,—– 62 -
oradg oradg_1_63(L) (CL1-A-3, 0, 63-0 )87011551 63.P-VOL PSUS,87011551 113 W
oradg oradg_1_63(R) (CL1-A-3, 0, 87-0 )87011551 113.S-VOL SSUS,—– 63 -
oradg oradg_1_64(L) (CL1-A-3, 0, 64-0 )87011551 64.P-VOL PSUS,87011551 114 W
oradg oradg_1_64(R) (CL1-A-3, 0, 88-0 )87011551 114.S-VOL SSUS,—– 64 -
oradg oradg_1_65(L) (CL1-A-3, 0, 65-0 )87011551 65.P-VOL PSUS,87011551 115 W
oradg oradg_1_65(R) (CL1-A-3, 0, 89-0 )87011551 115.S-VOL SSUS,—– 65 -
oradg oradg_1_66(L) (CL1-A-3, 0, 66-0 )87011551 66.P-VOL PSUS,87011551 116 W
oradg oradg_1_66(R) (CL1-A-3, 0, 90-0 )87011551 116.S-VOL SSUS,—– 66 -
oradg oradg_1_67(L) (CL1-A-3, 0, 67-0 )87011551 67.P-VOL PSUS,87011551 117 W
oradg oradg_1_67(R) (CL1-A-3, 0, 91-0 )87011551 117.S-VOL SSUS,—– 67 -
oradg oradg_1_68(L) (CL1-A-3, 0, 68-0 )87011551 68.P-VOL PSUS,87011551 118 W
oradg oradg_1_68(R) (CL1-A-3, 0, 92-0 )87011551 118.S-VOL SSUS,—– 68 -
oradg oradg_1_69(L) (CL1-A-3, 0, 69-0 )87011551 69.P-VOL PSUS,87011551 119 W
oradg oradg_1_69(R) (CL1-A-3, 0, 93-0 )87011551 119.S-VOL SSUS,—– 69 -
Group PairVol(L/R) (Port#,TID, LU-M) ,Seq#,LDEV#.P/S,Status, Seq#,P-LDEV# M
oradg oradg_1_70(L) (CL1-A-3, 0, 70-0 )87011551 70.P-VOL PSUS,87011551 120 W
oradg oradg_1_70(R) (CL1-A-3, 0, 94-0 )87011551 120.S-VOL SSUS,—– 70 -
oradg oradg_1_71(L) (CL1-A-3, 0, 71-0 )87011551 71.P-VOL PSUS,87011551 121 W
oradg oradg_1_71(R) (CL1-A-3, 0, 95-0 )87011551 121.S-VOL SSUS,—– 71 -
oradg oradg_1_72(L) (CL1-A-3, 0, 72-0 )87011551 72.P-VOL PSUS,87011551 122 W
oradg oradg_1_72(R) (CL1-A-3, 0, 96-0 )87011551 122.S-VOL SSUS,—– 72 -
oradg oradg_1_73(L) (CL1-A-3, 0, 73-0 )87011551 73.P-VOL PSUS,87011551 123 W
oradg oradg_1_73(R) (CL1-A-3, 0, 97-0 )87011551 123.S-VOL SSUS,—– 73 -
root@ni5nrp2:/usr/openv/netbackup/bin[1115]#

Filed under Uncategorized |

Leave a Reply

Recovering from PSUE state using CCI tools and HDS COW snapshot

Posted on June 15th, 2011

1085 CONFIG_FILE=/opt/VRTSnbu/snapshot/ni_snapshot_backup.conf
1086 HORCM_GROUP=`awk ‘{ if ( $1 == “HORCM_GROUP” ) { print $2 } }’ ${CONFIG_FILE}`
1087 HORCMINST=`awk ‘{ if ( $1 == “HORCM_INSTANCE” ) { print $2 } }’ ${CONFIG_FILE}`
1088 VXVM_GROUP=`awk ‘{ if ( $1 == “VXVM_GROUP” ) { print $2 } }’ ${CONFIG_FILE}`
1089 MOUNT_ROOT=`awk ‘{ if ( $1 == “MOUNT_ROOT” ) { print $2 } }’ ${CONFIG_FILE}`
1090 VXVM_CLONE_GROUP=${VXVM_GROUP}_clone
1091 HORCC_MRCF=0
1092 PATH=/usr/bin:/usr/sbin
1093 export HORCMINST HORCC_MRCF PATH
1094 more /opt/VRTSnbu/snapshot/ni_snapshot_backup.sh
1095 pairdisplay -g oradg

root@ni5nrp2:/usr/openv/netbackup/bin[1097]# pairdisplay -g oradg
Group PairVol(L/R) (Port#,TID, LU-M) ,Seq#,LDEV#.P/S,Status, Seq#,P-LDEV# M
oradg oradg_1_50(L) (CL1-A-3, 0, 50-0 )87011551 50.P-VOL PSUE,87011551 100 -
oradg oradg_1_50(R) (CL1-A-3, 0, 74-0 )87011551 100.S-VOL PSUE,—– 50 N
oradg oradg_1_51(L) (CL1-A-3, 0, 51-0 )87011551 51.P-VOL PSUE,87011551 101 -
oradg oradg_1_51(R) (CL1-A-3, 0, 75-0 )87011551 101.S-VOL PSUE,—– 51 N
oradg oradg_1_52(L) (CL1-A-3, 0, 52-0 )87011551 52.P-VOL PSUE,87011551 102 -
oradg oradg_1_52(R) (CL1-A-3, 0, 76-0 )87011551 102.S-VOL PSUE,—– 52 N
oradg oradg_1_53(L) (CL1-A-3, 0, 53-0 )87011551 53.P-VOL PSUE,87011551 103 -
oradg oradg_1_53(R) (CL1-A-3, 0, 77-0 )87011551 103.S-VOL PSUE,—– 53 N
oradg oradg_1_54(L) (CL1-A-3, 0, 54-0 )87011551 54.P-VOL PSUE,87011551 104 -
oradg oradg_1_54(R) (CL1-A-3, 0, 78-0 )87011551 104.S-VOL PSUE,—– 54 N
oradg oradg_1_55(L) (CL1-A-3, 0, 55-0 )87011551 55.P-VOL PSUE,87011551 105 -
oradg oradg_1_55(R) (CL1-A-3, 0, 79-0 )87011551 105.S-VOL PSUE,—– 55 N
oradg oradg_1_56(L) (CL1-A-3, 0, 56-0 )87011551 56.P-VOL PSUE,87011551 106 -
oradg oradg_1_56(R) (CL1-A-3, 0, 80-0 )87011551 106.S-VOL PSUE,—– 56 N
oradg oradg_1_57(L) (CL1-A-3, 0, 57-0 )87011551 57.P-VOL PSUE,87011551 107 -
oradg oradg_1_57(R) (CL1-A-3, 0, 81-0 )87011551 107.S-VOL PSUE,—– 57 N
oradg oradg_1_58(L) (CL1-A-3, 0, 58-0 )87011551 58.P-VOL PSUE,87011551 108 -
oradg oradg_1_58(R) (CL1-A-3, 0, 82-0 )87011551 108.S-VOL PSUE,—– 58 N
oradg oradg_1_59(L) (CL1-A-3, 0, 59-0 )87011551 59.P-VOL PSUE,87011551 109 -
oradg oradg_1_59(R) (CL1-A-3, 0, 83-0 )87011551 109.S-VOL PSUE,—– 59 N
Group PairVol(L/R) (Port#,TID, LU-M) ,Seq#,LDEV#.P/S,Status, Seq#,P-LDEV# M
oradg oradg_1_60(L) (CL1-A-3, 0, 60-0 )87011551 60.P-VOL PSUE,87011551 110 -
oradg oradg_1_60(R) (CL1-A-3, 0, 84-0 )87011551 110.S-VOL PSUE,—– 60 N
oradg oradg_1_61(L) (CL1-A-3, 0, 61-0 )87011551 61.P-VOL PSUE,87011551 111 -
oradg oradg_1_61(R) (CL1-A-3, 0, 85-0 )87011551 111.S-VOL PSUE,—– 61 N
oradg oradg_1_62(L) (CL1-A-3, 0, 62-0 )87011551 62.P-VOL PSUE,87011551 112 -
oradg oradg_1_62(R) (CL1-A-3, 0, 86-0 )87011551 112.S-VOL PSUE,—– 62 N
oradg oradg_1_63(L) (CL1-A-3, 0, 63-0 )87011551 63.P-VOL PSUE,87011551 113 -
oradg oradg_1_63(R) (CL1-A-3, 0, 87-0 )87011551 113.S-VOL PSUE,—– 63 N
oradg oradg_1_64(L) (CL1-A-3, 0, 64-0 )87011551 64.P-VOL PSUE,87011551 114 -
oradg oradg_1_64(R) (CL1-A-3, 0, 88-0 )87011551 114.S-VOL PSUE,—– 64 N
oradg oradg_1_65(L) (CL1-A-3, 0, 65-0 )87011551 65.P-VOL PSUE,87011551 115 -
oradg oradg_1_65(R) (CL1-A-3, 0, 89-0 )87011551 115.S-VOL PSUE,—– 65 N
oradg oradg_1_66(L) (CL1-A-3, 0, 66-0 )87011551 66.P-VOL PSUE,87011551 116 -
oradg oradg_1_66(R) (CL1-A-3, 0, 90-0 )87011551 116.S-VOL PSUE,—– 66 N
oradg oradg_1_67(L) (CL1-A-3, 0, 67-0 )87011551 67.P-VOL PSUE,87011551 117 -
oradg oradg_1_67(R) (CL1-A-3, 0, 91-0 )87011551 117.S-VOL PSUE,—– 67 N
oradg oradg_1_68(L) (CL1-A-3, 0, 68-0 )87011551 68.P-VOL PSUE,87011551 118 -
oradg oradg_1_68(R) (CL1-A-3, 0, 92-0 )87011551 118.S-VOL PSUE,—– 68 N
oradg oradg_1_69(L) (CL1-A-3, 0, 69-0 )87011551 69.P-VOL PSUE,87011551 119 -
oradg oradg_1_69(R) (CL1-A-3, 0, 93-0 )87011551 119.S-VOL PSUE,—– 69 N
Group PairVol(L/R) (Port#,TID, LU-M) ,Seq#,LDEV#.P/S,Status, Seq#,P-LDEV# M
oradg oradg_1_70(L) (CL1-A-3, 0, 70-0 )87011551 70.P-VOL PSUE,87011551 120 -
oradg oradg_1_70(R) (CL1-A-3, 0, 94-0 )87011551 120.S-VOL PSUE,—– 70 N
oradg oradg_1_71(L) (CL1-A-3, 0, 71-0 )87011551 71.P-VOL PSUE,87011551 121 -
oradg oradg_1_71(R) (CL1-A-3, 0, 95-0 )87011551 121.S-VOL PSUE,—– 71 N
oradg oradg_1_72(L) (CL1-A-3, 0, 72-0 )87011551 72.P-VOL PSUE,87011551 122 -
oradg oradg_1_72(R) (CL1-A-3, 0, 96-0 )87011551 122.S-VOL PSUE,—– 72 N
oradg oradg_1_73(L) (CL1-A-3, 0, 73-0 )87011551 73.P-VOL PSUE,87011551 123 -
oradg oradg_1_73(R) (CL1-A-3, 0, 97-0 )87011551 123.S-VOL PSUE,—– 73 N

/etc/horcm0.conf
root@ni5nrp2:/usr/openv/netbackup/bin[1099]# more /etc/horcm0.conf
HORCM_MON
#ip_address service poll(10ms) timeout(10ms)
ni5nrp-backup horcm0 1000 3000
HORCM_CMD
#dev_name dev_name dev_name
/dev/rdsk/c7t50060E80100542F0d0s2
HORCM_DEV
HORCM_LDEV
#dev_group dev_name Serial# CU:LDEV(LDEV#) MU#
oradg oradg_1_50 87011551 50 0
oradg oradg_1_51 87011551 51 0
oradg oradg_1_52 87011551 52 0
oradg oradg_1_53 87011551 53 0
oradg oradg_1_54 87011551 54 0
oradg oradg_1_55 87011551 55 0
oradg oradg_1_56 87011551 56 0
oradg oradg_1_57 87011551 57 0
oradg oradg_1_58 87011551 58 0
oradg oradg_1_59 87011551 59 0
oradg oradg_1_60 87011551 60 0
oradg oradg_1_61 87011551 61 0
oradg oradg_1_62 87011551 62 0
oradg oradg_1_63 87011551 63 0
oradg oradg_1_64 87011551 64 0
oradg oradg_1_65 87011551 65 0
oradg oradg_1_66 87011551 66 0
oradg oradg_1_67 87011551 67 0
oradg oradg_1_68 87011551 68 0
oradg oradg_1_69 87011551 69 0
oradg oradg_1_70 87011551 70 0
oradg oradg_1_71 87011551 71 0
oradg oradg_1_72 87011551 72 0
oradg oradg_1_73 87011551 73 0
HORCM_INST
#dev_group ip_address service
oradg ni5nrp-backup horcm1
root@ni5nrp2:/usr/openv/netbackup/bin[1100]#

more /etc/horcm1.conf
root@ni5nrp2:/usr/openv/netbackup/bin[1100]# more /etc/horcm1.conf
HORCM_MON
#ip_address service poll(10ms) timeout(10ms)
ni5nrp-backup horcm1 1000 3000
HORCM_CMD
#dev_name dev_name dev_name
/dev/rdsk/c7t50060E80100542F0d0s2
HORCM_DEV
HORCM_LDEV
#dev_group dev_name Serial# CU:LDEV(LDEV#) MU#
oradg oradg_1_50 87011551 100 0
oradg oradg_1_51 87011551 101 0
oradg oradg_1_52 87011551 102 0
oradg oradg_1_53 87011551 103 0
oradg oradg_1_54 87011551 104 0
oradg oradg_1_55 87011551 105 0
oradg oradg_1_56 87011551 106 0
oradg oradg_1_57 87011551 107 0
oradg oradg_1_58 87011551 108 0
oradg oradg_1_59 87011551 109 0
oradg oradg_1_60 87011551 110 0
oradg oradg_1_61 87011551 111 0
oradg oradg_1_62 87011551 112 0
oradg oradg_1_63 87011551 113 0
oradg oradg_1_64 87011551 114 0
oradg oradg_1_65 87011551 115 0
oradg oradg_1_66 87011551 116 0
oradg oradg_1_67 87011551 117 0
oradg oradg_1_68 87011551 118 0
oradg oradg_1_69 87011551 119 0
oradg oradg_1_70 87011551 120 0
oradg oradg_1_71 87011551 121 0
oradg oradg_1_72 87011551 122 0
oradg oradg_1_73 87011551 123 0
HORCM_INST
#dev_group ip_address service
oradg ni5nrp-backup horcm0
root@ni5nrp2:/usr/openv/netbackup/bin[1101]# echo $HORCMINST
0

Filed under Uncategorized |

Leave a Reply

Recovering from PSUE state using CCI tools and HDS COW snapshot

Posted on June 15th, 2011

1085 CONFIG_FILE=/opt/VRTSnbu/snapshot/ni_snapshot_backup.conf
1086 HORCM_GROUP=`awk ‘{ if ( $1 == “HORCM_GROUP” ) { print $2 } }’ ${CONFIG_FILE}`
1087 HORCMINST=`awk ‘{ if ( $1 == “HORCM_INSTANCE” ) { print $2 } }’ ${CONFIG_FILE}`
1088 VXVM_GROUP=`awk ‘{ if ( $1 == “VXVM_GROUP” ) { print $2 } }’ ${CONFIG_FILE}`
1089 MOUNT_ROOT=`awk ‘{ if ( $1 == “MOUNT_ROOT” ) { print $2 } }’ ${CONFIG_FILE}`
1090 VXVM_CLONE_GROUP=${VXVM_GROUP}_clone
1091 HORCC_MRCF=0
1092 PATH=/usr/bin:/usr/sbin
1093 export HORCMINST HORCC_MRCF PATH
1094 more /opt/VRTSnbu/snapshot/ni_snapshot_backup.sh
1095 pairdisplay -g oradg

root@ni5nrp2:/usr/openv/netbackup/bin[1097]# pairdisplay -g oradg
Group PairVol(L/R) (Port#,TID, LU-M) ,Seq#,LDEV#.P/S,Status, Seq#,P-LDEV# M
oradg oradg_1_50(L) (CL1-A-3, 0, 50-0 )87011551 50.P-VOL PSUE,87011551 100 -
oradg oradg_1_50(R) (CL1-A-3, 0, 74-0 )87011551 100.S-VOL PSUE,—– 50 N
oradg oradg_1_51(L) (CL1-A-3, 0, 51-0 )87011551 51.P-VOL PSUE,87011551 101 -
oradg oradg_1_51(R) (CL1-A-3, 0, 75-0 )87011551 101.S-VOL PSUE,—– 51 N
oradg oradg_1_52(L) (CL1-A-3, 0, 52-0 )87011551 52.P-VOL PSUE,87011551 102 -
oradg oradg_1_52(R) (CL1-A-3, 0, 76-0 )87011551 102.S-VOL PSUE,—– 52 N
oradg oradg_1_53(L) (CL1-A-3, 0, 53-0 )87011551 53.P-VOL PSUE,87011551 103 -
oradg oradg_1_53(R) (CL1-A-3, 0, 77-0 )87011551 103.S-VOL PSUE,—– 53 N
oradg oradg_1_54(L) (CL1-A-3, 0, 54-0 )87011551 54.P-VOL PSUE,87011551 104 -
oradg oradg_1_54(R) (CL1-A-3, 0, 78-0 )87011551 104.S-VOL PSUE,—– 54 N
oradg oradg_1_55(L) (CL1-A-3, 0, 55-0 )87011551 55.P-VOL PSUE,87011551 105 -
oradg oradg_1_55(R) (CL1-A-3, 0, 79-0 )87011551 105.S-VOL PSUE,—– 55 N
oradg oradg_1_56(L) (CL1-A-3, 0, 56-0 )87011551 56.P-VOL PSUE,87011551 106 -
oradg oradg_1_56(R) (CL1-A-3, 0, 80-0 )87011551 106.S-VOL PSUE,—– 56 N
oradg oradg_1_57(L) (CL1-A-3, 0, 57-0 )87011551 57.P-VOL PSUE,87011551 107 -
oradg oradg_1_57(R) (CL1-A-3, 0, 81-0 )87011551 107.S-VOL PSUE,—– 57 N
oradg oradg_1_58(L) (CL1-A-3, 0, 58-0 )87011551 58.P-VOL PSUE,87011551 108 -
oradg oradg_1_58(R) (CL1-A-3, 0, 82-0 )87011551 108.S-VOL PSUE,—– 58 N
oradg oradg_1_59(L) (CL1-A-3, 0, 59-0 )87011551 59.P-VOL PSUE,87011551 109 -
oradg oradg_1_59(R) (CL1-A-3, 0, 83-0 )87011551 109.S-VOL PSUE,—– 59 N
Group PairVol(L/R) (Port#,TID, LU-M) ,Seq#,LDEV#.P/S,Status, Seq#,P-LDEV# M
oradg oradg_1_60(L) (CL1-A-3, 0, 60-0 )87011551 60.P-VOL PSUE,87011551 110 -
oradg oradg_1_60(R) (CL1-A-3, 0, 84-0 )87011551 110.S-VOL PSUE,—– 60 N
oradg oradg_1_61(L) (CL1-A-3, 0, 61-0 )87011551 61.P-VOL PSUE,87011551 111 -
oradg oradg_1_61(R) (CL1-A-3, 0, 85-0 )87011551 111.S-VOL PSUE,—– 61 N
oradg oradg_1_62(L) (CL1-A-3, 0, 62-0 )87011551 62.P-VOL PSUE,87011551 112 -
oradg oradg_1_62(R) (CL1-A-3, 0, 86-0 )87011551 112.S-VOL PSUE,—– 62 N
oradg oradg_1_63(L) (CL1-A-3, 0, 63-0 )87011551 63.P-VOL PSUE,87011551 113 -
oradg oradg_1_63(R) (CL1-A-3, 0, 87-0 )87011551 113.S-VOL PSUE,—– 63 N
oradg oradg_1_64(L) (CL1-A-3, 0, 64-0 )87011551 64.P-VOL PSUE,87011551 114 -
oradg oradg_1_64(R) (CL1-A-3, 0, 88-0 )87011551 114.S-VOL PSUE,—– 64 N
oradg oradg_1_65(L) (CL1-A-3, 0, 65-0 )87011551 65.P-VOL PSUE,87011551 115 -
oradg oradg_1_65(R) (CL1-A-3, 0, 89-0 )87011551 115.S-VOL PSUE,—– 65 N
oradg oradg_1_66(L) (CL1-A-3, 0, 66-0 )87011551 66.P-VOL PSUE,87011551 116 -
oradg oradg_1_66(R) (CL1-A-3, 0, 90-0 )87011551 116.S-VOL PSUE,—– 66 N
oradg oradg_1_67(L) (CL1-A-3, 0, 67-0 )87011551 67.P-VOL PSUE,87011551 117 -
oradg oradg_1_67(R) (CL1-A-3, 0, 91-0 )87011551 117.S-VOL PSUE,—– 67 N
oradg oradg_1_68(L) (CL1-A-3, 0, 68-0 )87011551 68.P-VOL PSUE,87011551 118 -
oradg oradg_1_68(R) (CL1-A-3, 0, 92-0 )87011551 118.S-VOL PSUE,—– 68 N
oradg oradg_1_69(L) (CL1-A-3, 0, 69-0 )87011551 69.P-VOL PSUE,87011551 119 -
oradg oradg_1_69(R) (CL1-A-3, 0, 93-0 )87011551 119.S-VOL PSUE,—– 69 N
Group PairVol(L/R) (Port#,TID, LU-M) ,Seq#,LDEV#.P/S,Status, Seq#,P-LDEV# M
oradg oradg_1_70(L) (CL1-A-3, 0, 70-0 )87011551 70.P-VOL PSUE,87011551 120 -
oradg oradg_1_70(R) (CL1-A-3, 0, 94-0 )87011551 120.S-VOL PSUE,—– 70 N
oradg oradg_1_71(L) (CL1-A-3, 0, 71-0 )87011551 71.P-VOL PSUE,87011551 121 -
oradg oradg_1_71(R) (CL1-A-3, 0, 95-0 )87011551 121.S-VOL PSUE,—– 71 N
oradg oradg_1_72(L) (CL1-A-3, 0, 72-0 )87011551 72.P-VOL PSUE,87011551 122 -
oradg oradg_1_72(R) (CL1-A-3, 0, 96-0 )87011551 122.S-VOL PSUE,—– 72 N
oradg oradg_1_73(L) (CL1-A-3, 0, 73-0 )87011551 73.P-VOL PSUE,87011551 123 -
oradg oradg_1_73(R) (CL1-A-3, 0, 97-0 )87011551 123.S-VOL PSUE,—– 73 N

/etc/horcm0.conf
root@ni5nrp2:/usr/openv/netbackup/bin[1099]# more /etc/horcm0.conf
HORCM_MON
#ip_address service poll(10ms) timeout(10ms)
ni5nrp-backup horcm0 1000 3000
HORCM_CMD
#dev_name dev_name dev_name
/dev/rdsk/c7t50060E80100542F0d0s2
HORCM_DEV
HORCM_LDEV
#dev_group dev_name Serial# CU:LDEV(LDEV#) MU#
oradg oradg_1_50 87011551 50 0
oradg oradg_1_51 87011551 51 0
oradg oradg_1_52 87011551 52 0
oradg oradg_1_53 87011551 53 0
oradg oradg_1_54 87011551 54 0
oradg oradg_1_55 87011551 55 0
oradg oradg_1_56 87011551 56 0
oradg oradg_1_57 87011551 57 0
oradg oradg_1_58 87011551 58 0
oradg oradg_1_59 87011551 59 0
oradg oradg_1_60 87011551 60 0
oradg oradg_1_61 87011551 61 0
oradg oradg_1_62 87011551 62 0
oradg oradg_1_63 87011551 63 0
oradg oradg_1_64 87011551 64 0
oradg oradg_1_65 87011551 65 0
oradg oradg_1_66 87011551 66 0
oradg oradg_1_67 87011551 67 0
oradg oradg_1_68 87011551 68 0
oradg oradg_1_69 87011551 69 0
oradg oradg_1_70 87011551 70 0
oradg oradg_1_71 87011551 71 0
oradg oradg_1_72 87011551 72 0
oradg oradg_1_73 87011551 73 0
HORCM_INST
#dev_group ip_address service
oradg ni5nrp-backup horcm1
root@ni5nrp2:/usr/openv/netbackup/bin[1100]#

more /etc/horcm1.conf
root@ni5nrp2:/usr/openv/netbackup/bin[1100]# more /etc/horcm1.conf
HORCM_MON
#ip_address service poll(10ms) timeout(10ms)
ni5nrp-backup horcm1 1000 3000
HORCM_CMD
#dev_name dev_name dev_name
/dev/rdsk/c7t50060E80100542F0d0s2
HORCM_DEV
HORCM_LDEV
#dev_group dev_name Serial# CU:LDEV(LDEV#) MU#
oradg oradg_1_50 87011551 100 0
oradg oradg_1_51 87011551 101 0
oradg oradg_1_52 87011551 102 0
oradg oradg_1_53 87011551 103 0
oradg oradg_1_54 87011551 104 0
oradg oradg_1_55 87011551 105 0
oradg oradg_1_56 87011551 106 0
oradg oradg_1_57 87011551 107 0
oradg oradg_1_58 87011551 108 0
oradg oradg_1_59 87011551 109 0
oradg oradg_1_60 87011551 110 0
oradg oradg_1_61 87011551 111 0
oradg oradg_1_62 87011551 112 0
oradg oradg_1_63 87011551 113 0
oradg oradg_1_64 87011551 114 0
oradg oradg_1_65 87011551 115 0
oradg oradg_1_66 87011551 116 0
oradg oradg_1_67 87011551 117 0
oradg oradg_1_68 87011551 118 0
oradg oradg_1_69 87011551 119 0
oradg oradg_1_70 87011551 120 0
oradg oradg_1_71 87011551 121 0
oradg oradg_1_72 87011551 122 0
oradg oradg_1_73 87011551 123 0
HORCM_INST
#dev_group ip_address service
oradg ni5nrp-backup horcm0

Filed under Uncategorized |

Leave a Reply

Private: Changing Veritas read policies on volume

Posted on June 14th, 2011

Problem

What are the read policies for plexes in VERITAS Volume Manager ™?
Solution

When a volume has more than one enabled associated plex, VERITAS Volume Manager (VxVM) can distribute reads between the plexes to distribute the I/O load and thus increase total possible bandwidth of reads through the volume. The read policy can be set by the administrator. Possible policies are:

1.Preferred plex
This read policy specifies a particular named plex that is used to satisfy read requests. In the event that a read request cannot be satisfied by the preferred plex, this policy changes to round-robin.

2.Round-robin
For every other read operation, distribute the operation across all of the available plexes. Given three plexes, this switches between each of the three plexes, so each plex gets one third of the read requests.

3.Select
This read policy is the default policy, and adjusts to use an appropriate read policy based on the set of plexes associated with the volume. If exactly one enabled read-write striped plex is associated with the volume, then that plex is chosen automatically as the preferred plex; otherwise, the round-robin policy is used. If a volume has one striped plex and one non-striped plex, preferring the striped plex often yields better throughput.

To change the read-policy to a volume, use the following command:

# vxvol -g rdpol

For example, to set the read policy for volume vol01 in disk group datadg to round-robin, use the following command:

# vxvol -g datadg rdpol round vol01

Filed under Uncategorized |

Leave a Reply

Changing Veritas read policies on volume

Posted on June 14th, 2011

Filed under Uncategorized |

Leave a Reply

Private: Veritas Volume manager slow volume resync

Posted on June 14th, 2011

root@ni5nrp1:/[1008]# vxprint -g oradg -F%fastresync sapdata62
on
root@ni5nrp1:/[1009]# vxprint -g oradg -F%hasdcolog sapdata62
off

Persistent FastResync holds copies of the FastResync maps on disk. If a system is rebooted, you can use these copies to quickly recover mirrored volumes. To use this form of FastResync, you must first associate a version 0 or a version 20 data change object (DCO) and DCO volume with the volume

Filed under Uncategorized |

Leave a Reply

Veritas Volume manager slow volume resync

Posted on June 14th, 2011

root@ni5nrp1:/[1008]# vxprint -g oradg -F%fastresync sapdata62
on
root@ni5nrp1:/[1009]# vxprint -g oradg -F%hasdcolog sapdata62
off

Filed under Uncategorized |

Leave a Reply

Veritas Volume manager slow volume resync

Posted on June 14th, 2011

Filed under Uncategorized |

Leave a Reply

Private: Updating firmware on Emulex FC hba by running pca

Posted on June 7th, 2011

for i in `fcinfo hba-port | grep cfg | awk ‘{print $NF}’`; do luxadm -e forcelip $i; done

Filed under Uncategorized |

Leave a Reply

Updating firmware on Emulex FC hba by running pca

Posted on June 7th, 2011

Filed under Uncategorized |

Leave a Reply

Solaris setup server

Posted on June 2nd, 2011

unzip sol-10-u9-ga-sparc-dvd.iso.zip
losetup -a /space/sol-10-u9-ga-sparc-dvd.iso
/dev/lofi/1

mount -F hsfs /dev/lofi/1 /mnt/1
cd /mnt/1/Solaris_10/Tools
./setup_install_server /space/SOL_10_U9_SPARC
echo 10.50.2.37 ni5nrp1-tmp >> /etc/hosts
echo 0:21:28:7e:35:f2 ni5nrp1-tmp >> /etc/ethers

./add_install_client -c 10.50.2.113:/space/jumpstart -p 10.50.2.113:/space/jumpstart -s 10.50.2.113:/space/SOL_10_U9_SPARC ni5nrp1-tmp sun4u

Filed under Uncategorized |

Leave a Reply

Solaris setup server

Posted on June 2nd, 2011

unzip sol-10-u9-ga-sparc-dvd.iso.zip
losetup -a /space/sol-10-u9-ga-sparc-dvd.iso
/dev/lofi/1

mount -F hsfs /dev/lofi/1 /mnt/1
cd /mnt/1/Solaris_10/Tools
./setup_install_server /space/SOL_10_U9_SPARC
echo 10.50.2.37 ni5nrp1-tmp >> /etc/hosts
echo 0:21:28:7e:35:f2 ni5nrp1-tmp >> /etc/ethers

Filed under Uncategorized |

Leave a Reply

Private: Solaris setup server

Posted on June 2nd, 2011

unzip sol-10-u9-ga-sparc-dvd.iso.zip
losetup -a /space/sol-10-u9-ga-sparc-dvd.iso
/dev/lofi/1

mount -F hsfs /dev/lofi/1 /mnt/1
cd /mnt/1/Solaris_10/Tools
./setup_install_server /space/SOL_10_U9_SPARC
echo 10.50.2.37 ni5nrp1-tmp >> /etc/hosts
echo 0:21:28:7e:35:f2 ni5nrp1-tmp >> /etc/ethers

./add_install_client -c 10.50.2.113:/space/jumpstart -p 10.50.2.113:/space/jumpstart -s 10.50.2.113:/space/SOL_10_U9_SPARC ni5nrp1-tmp sun4u
Adding “share -F nfs -o ro,anon=0 /mnt/1/Solaris_10/Tools/Boot” to /etc/dfs/dfstab
updating /etc/bootparams
copying boot file to /tftpboot/inetboot.SUN4U.Solaris_10-2

Filed under Uncategorized |

Leave a Reply

Solaris setup server

Posted on June 2nd, 2011

unzip sol-10-u9-ga-sparc-dvd.iso.zip
losetup -a /space/sol-10-u9-ga-sparc-dvd.iso
/dev/lofi/1

mount -F hsfs /dev/lofi/1 /mnt/1
cd /mnt/1/Solaris_10/Tools
./setup_install_server /space/SOL_10_U9_SPARC
echo 10.50.2.37 ni5nrp1-tmp >> /etc/hosts
echo 0:21:28:7e:35:f2 ni5nrp1-tmp >> /etc/ethers

Filed under Uncategorized |

Leave a Reply

Solaris setup server

Posted on June 2nd, 2011

unzip sol-10-u9-ga-sparc-dvd.iso.zip
losetup -a /space/sol-10-u9-ga-sparc-dvd.iso
/dev/lofi/1

mount -F hsfs /dev/lofi/1 /mnt/1
cd /mnt/1/Solaris_10/Tools
./setup_install_server /space/SOL_10_U9_SPARC

Filed under Uncategorized |

Leave a Reply

Replacing FC tape drive with Netbackup

Posted on May 26th, 2011

1. physically replace the drive
2. alidelete, alicreate, cfgenable

cfgadm -c configure c17::500507630061c3ff
cfgadm -al
c17::500507630061c3ff tape connected configured unknown

ls -l /dev/rmt/*cbn | grep c3ff
lrwxrwxrwx 1 root root 80 May 26 16:40 /dev/rmt/3cbn -> ../../devices/ssm@0,0/pci@1a,600000/SUNW,qlc@2/fp@0,0/st@w500507630061c3ff,0:cbn

root@ni5nrp2:/opt/openv/volmgr/bin[1337]# cd /usr/openv/volmgr/bin/driver
root@ni5nrp2:/usr/openv/volmgr/bin/driver[1338]# /usr/openv/volmgr/bin/sg.build all -mt 15 -ml 1
The file ./st.conf should be appended to /kernel/drv/st.conf.
A reboot may be necessary to create any new device files.
Created file ./sg.conf.
Created file ./sg.links.

root@ni5nrp2:/usr/openv/volmgr/bin/driver[1347]# /usr/openv/volmgr/bin/driver/sg.install

Copied files to /kernel/drv and to /kernel/drv/sparcv9.

Doing add_drv of the sg driver
Removing old /dev/sg entries.
Editing /etc/devlink.tab…
Copying original /etc/devlink.tab to /etc/devlink.tab.05-26-11-17:06:53.
Added entry in /etc/devlink.tab file.
Made links in /dev/sg

root@ni5nrp2:/usr/openv/volmgr/bin[1350]# ./sgscan
/dev/sg/c0t0l0: Disk (/dev/rdsk/c12t0d0): “HITACHI DK32EJ72NSUN72G”
/dev/sg/c0t2l0: Processor: “Sun D240″
/dev/sg/c0t6l0: Disk (/dev/rdsk/c12t6d0): “HITACHI DK32EJ72NSUN72G”
/dev/sg/c0tw500104f0006e4931l0: Changer: “STK L180″
/dev/sg/c0tw500507630061556al0: Tape (/dev/rmt/4): “IBM ULTRIUM-TD2″
/dev/sg/c0tw5005076300615937l0: Tape (/dev/rmt/7): “IBM ULTRIUM-TD2″
/dev/sg/c0tw5005076300615978l0: Tape (/dev/rmt/0): “IBM ULTRIUM-TD2″
/dev/sg/c0tw5005076300615b41l0: Tape (/dev/rmt/2): “IBM ULTRIUM-TD2″
/dev/sg/c0tw5005076300615ba3l0: Tape (/dev/rmt/6): “IBM ULTRIUM-TD2″
/dev/sg/c0tw5005076300615d9bl0: Tape (/dev/rmt/5): “IBM ULTRIUM-TD2″
/dev/sg/c0tw500507630061c3ffl0: Tape (/dev/rmt/3): “IBM ULTRIUM-TD2″
/dev/sg/c0tw5005076313601184l0: Tape (/dev/rmt/1): “IBM ULTRIUM-TD2″

delete all the drives from netbackup admin menu
root@ni5nrp2:/usr/openv/volmgr/bin[1360]# ./tpautoconf -a

Filed under Uncategorized |

Leave a Reply

Replacing FC tape drive with Netbackup

Posted on May 26th, 2011

1. physically replace the drive
2. alidelete, alicreate, cfgenable

cfgadm -c configure c17::500507630061c3ff
cfgadm -al
c17::500507630061c3ff tape connected configured unknown

ls -l /dev/rmt/*cbn | grep c3ff
lrwxrwxrwx 1 root root 80 May 26 16:40 /dev/rmt/3cbn -> ../../devices/ssm@0,0/pci@1a,600000/SUNW,qlc@2/fp@0,0/st@w500507630061c3ff,0:cbn

root@ni5nrp2:/opt/openv/volmgr/bin[1337]# cd /usr/openv/volmgr/bin/driver
root@ni5nrp2:/usr/openv/volmgr/bin/driver[1338]# /usr/openv/volmgr/bin/sg.build all -mt 15 -ml 1
The file ./st.conf should be appended to /kernel/drv/st.conf.
A reboot may be necessary to create any new device files.
Created file ./sg.conf.
Created file ./sg.links.

root@ni5nrp2:/usr/openv/volmgr/bin/driver[1347]# /usr/openv/volmgr/bin/driver/sg.install

Copied files to /kernel/drv and to /kernel/drv/sparcv9.

Doing add_drv of the sg driver
Removing old /dev/sg entries.
Editing /etc/devlink.tab…
Copying original /etc/devlink.tab to /etc/devlink.tab.05-26-11-17:06:53.
Added entry in /etc/devlink.tab file.
Made links in /dev/sg

root@ni5nrp2:/usr/openv/volmgr/bin[1350]# ./sgscan
/dev/sg/c0t0l0: Disk (/dev/rdsk/c12t0d0): “HITACHI DK32EJ72NSUN72G”
/dev/sg/c0t2l0: Processor: “Sun D240″
/dev/sg/c0t6l0: Disk (/dev/rdsk/c12t6d0): “HITACHI DK32EJ72NSUN72G”
/dev/sg/c0tw500104f0006e4931l0: Changer: “STK L180″
/dev/sg/c0tw500507630061556al0: Tape (/dev/rmt/4): “IBM ULTRIUM-TD2″
/dev/sg/c0tw5005076300615937l0: Tape (/dev/rmt/7): “IBM ULTRIUM-TD2″
/dev/sg/c0tw5005076300615978l0: Tape (/dev/rmt/0): “IBM ULTRIUM-TD2″
/dev/sg/c0tw5005076300615b41l0: Tape (/dev/rmt/2): “IBM ULTRIUM-TD2″
/dev/sg/c0tw5005076300615ba3l0: Tape (/dev/rmt/6): “IBM ULTRIUM-TD2″
/dev/sg/c0tw5005076300615d9bl0: Tape (/dev/rmt/5): “IBM ULTRIUM-TD2″
/dev/sg/c0tw500507630061c3ffl0: Tape (/dev/rmt/3): “IBM ULTRIUM-TD2″
/dev/sg/c0tw5005076313601184l0: Tape (/dev/rmt/1): “IBM ULTRIUM-TD2″

root@ni5nrp2:/usr/openv/volmgr/bin[1360]# ./tpautoconf -a

Filed under Uncategorized |

Leave a Reply

Replacing FC tape drive with Netbackup

Posted on May 26th, 2011

1. physically replace the drive
2. alidelete, alicreate, cfgenable

cfgadm -c configure c17::500507630061c3ff
cfgadm -al
c17::500507630061c3ff tape connected configured unknown

ls -l /dev/rmt/*cbn | grep c3ff
lrwxrwxrwx 1 root root 80 May 26 16:40 /dev/rmt/3cbn -> ../../devices/ssm@0,0/pci@1a,600000/SUNW,qlc@2/fp@0,0/st@w500507630061c3ff,0:cbn

root@ni5nrp2:/opt/openv/volmgr/bin[1337]# cd /usr/openv/volmgr/bin/driver
root@ni5nrp2:/usr/openv/volmgr/bin/driver[1338]# /usr/openv/volmgr/bin/sg.build all -mt 15 -ml 1
The file ./st.conf should be appended to /kernel/drv/st.conf.
A reboot may be necessary to create any new device files.
Created file ./sg.conf.
Created file ./sg.links.

root@ni5nrp2:/usr/openv/volmgr/bin/driver[1347]# /usr/openv/volmgr/bin/driver/sg.install

Copied files to /kernel/drv and to /kernel/drv/sparcv9.

Doing add_drv of the sg driver
Removing old /dev/sg entries.
Editing /etc/devlink.tab…
Copying original /etc/devlink.tab to /etc/devlink.tab.05-26-11-17:06:53.
Added entry in /etc/devlink.tab file.
Made links in /dev/sg

root@ni5nrp2:/usr/openv/volmgr/bin[1350]# ./sgscan
/dev/sg/c0t0l0: Disk (/dev/rdsk/c12t0d0): “HITACHI DK32EJ72NSUN72G”
/dev/sg/c0t2l0: Processor: “Sun D240″
/dev/sg/c0t6l0: Disk (/dev/rdsk/c12t6d0): “HITACHI DK32EJ72NSUN72G”
/dev/sg/c0tw500104f0006e4931l0: Changer: “STK L180″
/dev/sg/c0tw500507630061556al0: Tape (/dev/rmt/4): “IBM ULTRIUM-TD2″
/dev/sg/c0tw5005076300615937l0: Tape (/dev/rmt/7): “IBM ULTRIUM-TD2″
/dev/sg/c0tw5005076300615978l0: Tape (/dev/rmt/0): “IBM ULTRIUM-TD2″
/dev/sg/c0tw5005076300615b41l0: Tape (/dev/rmt/2): “IBM ULTRIUM-TD2″
/dev/sg/c0tw5005076300615ba3l0: Tape (/dev/rmt/6): “IBM ULTRIUM-TD2″
/dev/sg/c0tw5005076300615d9bl0: Tape (/dev/rmt/5): “IBM ULTRIUM-TD2″
/dev/sg/c0tw500507630061c3ffl0: Tape (/dev/rmt/3): “IBM ULTRIUM-TD2″
/dev/sg/c0tw5005076313601184l0: Tape (/dev/rmt/1): “IBM ULTRIUM-TD2″

Filed under Uncategorized |

Leave a Reply

Replacing FC tape drive with Netbackup

Posted on May 26th, 2011

1. physically replace the drive
2. alidelete, alicreate, cfgenable

cfgadm -c configure c17::500507630061c3ff
cfgadm -al
c17::500507630061c3ff tape connected configured unknown

ls -l /dev/rmt/*cbn | grep c3ff
lrwxrwxrwx 1 root root 80 May 26 16:40 /dev/rmt/3cbn -> ../../devices/ssm@0,0/pci@1a,600000/SUNW,qlc@2/fp@0,0/st@w500507630061c3ff,0:cbn

root@ni5nrp2:/opt/openv/volmgr/bin[1337]# cd /usr/openv/volmgr/bin/driver
root@ni5nrp2:/usr/openv/volmgr/bin/driver[1338]# /usr/openv/volmgr/bin/sg.build all -mt 15 -ml 1
The file ./st.conf should be appended to /kernel/drv/st.conf.
A reboot may be necessary to create any new device files.
Created file ./sg.conf.
Created file ./sg.links.

Filed under Uncategorized |

Leave a Reply

Replacing FC tape drive with Netbackup

Posted on May 26th, 2011

1. physically replace the drive
2. alidelete, alicreate, cfgenable

cfgadm -c configure c17::500507630061c3ff
cfgadm -al
c17::500507630061c3ff tape connected configured unknown

ls -l /dev/rmt/*cbn | grep c3ff
lrwxrwxrwx 1 root root 80 May 26 16:40 /dev/rmt/3cbn -> ../../devices/ssm@0,0/pci@1a,600000/SUNW,qlc@2/fp@0,0/st@w500507630061c3ff,0:cbn

Filed under Uncategorized |

Leave a Reply

Replacing FC tape drive with Netbackup

Posted on May 26th, 2011

1. physically replace the drive
2. alidelete, alicreate, cfgenable

cfgadm -c configure c17::500507630061c3ff
cfgadm -al
c17::500507630061c3ff tape connected configured unknown

Filed under Uncategorized |

Leave a Reply

Private: Replacing FC tape drive with Netbackup

Posted on May 26th, 2011

1. physically replace the drive
2. alidelete, alicreate, cfgenable

cfgadm -c configure c17::500507630061c3ff
cfgadm -al
c17::500507630061c3ff tape connected configured unknown

ls -l /dev/rmt/*cbn | grep c3ff
lrwxrwxrwx 1 root root 80 May 26 16:40 /dev/rmt/3cbn -> ../../devices/ssm@0,0/pci@1a,600000/SUNW,qlc@2/fp@0,0/st@w500507630061c3ff,0:cbn

root@ni5nrp2:/opt/openv/volmgr/bin[1337]# cd /usr/openv/volmgr/bin/driver
root@ni5nrp2:/usr/openv/volmgr/bin/driver[1338]# /usr/openv/volmgr/bin/sg.build all -mt 15 -ml 1
The file ./st.conf should be appended to /kernel/drv/st.conf.
A reboot may be necessary to create any new device files.
Created file ./sg.conf.
Created file ./sg.links.

root@ni5nrp2:/usr/openv/volmgr/bin/driver[1347]# /usr/openv/volmgr/bin/driver/sg.install

Copied files to /kernel/drv and to /kernel/drv/sparcv9.

Doing add_drv of the sg driver
Removing old /dev/sg entries.
Editing /etc/devlink.tab…
Copying original /etc/devlink.tab to /etc/devlink.tab.05-26-11-17:06:53.
Added entry in /etc/devlink.tab file.
Made links in /dev/sg

root@ni5nrp2:/usr/openv/volmgr/bin[1350]# ./sgscan
/dev/sg/c0t0l0: Disk (/dev/rdsk/c12t0d0): “HITACHI DK32EJ72NSUN72G”
/dev/sg/c0t2l0: Processor: “Sun D240″
/dev/sg/c0t6l0: Disk (/dev/rdsk/c12t6d0): “HITACHI DK32EJ72NSUN72G”
/dev/sg/c0tw500104f0006e4931l0: Changer: “STK L180″
/dev/sg/c0tw500507630061556al0: Tape (/dev/rmt/4): “IBM ULTRIUM-TD2″
/dev/sg/c0tw5005076300615937l0: Tape (/dev/rmt/7): “IBM ULTRIUM-TD2″
/dev/sg/c0tw5005076300615978l0: Tape (/dev/rmt/0): “IBM ULTRIUM-TD2″
/dev/sg/c0tw5005076300615b41l0: Tape (/dev/rmt/2): “IBM ULTRIUM-TD2″
/dev/sg/c0tw5005076300615ba3l0: Tape (/dev/rmt/6): “IBM ULTRIUM-TD2″
/dev/sg/c0tw5005076300615d9bl0: Tape (/dev/rmt/5): “IBM ULTRIUM-TD2″
/dev/sg/c0tw500507630061c3ffl0: Tape (/dev/rmt/3): “IBM ULTRIUM-TD2″
/dev/sg/c0tw5005076313601184l0: Tape (/dev/rmt/1): “IBM ULTRIUM-TD2″

delete all the drives from netbackup admin menu
root@ni5nrp2:/usr/openv/volmgr/bin[1360]# ./tpautoconf -a

Filed under Uncategorized |

Leave a Reply

Replacing FC tape drive with Netbackup

Posted on May 26th, 2011

1. physically replace the drive
2. alidelete, alicreate, cfgenable

Filed under Uncategorized |

Leave a Reply

Replacing FC tape drive with Netbackup

Posted on May 26th, 2011

Filed under Uncategorized |

Leave a Reply

Limiting resource usage for Solaris zones

Posted on May 18th, 2011

Global zone: 75% cpu shares, all ram
SAP zone: 25% cpu shares 8G RAM, 20G swap

global
/etc/init.d/cpushares
(try smf as mentioned in sun blueprint about zone architecture)

#!/sbin/sh
/usr/bin/prctl -n zone.cpu-shares -v 75 -r -i zone global
/usr/bin/prctl -r -n zone.cpu-shares -v 75 -i process $$
exit 0

rcapadm -E
rcapadm -i sample=2

bash-3.00# rcapadm
state: enabled
memory cap enforcement threshold: 0%
process scan rate (sec): 15
reconfiguration rate (sec): 60
report rate (sec): 5
RSS sampling rate (sec): 2
bash-3.00# svcs -a | grep rcap
online May_14 svc:/system/rcap:default
bash-3.00#

move all the processes to FSS sheduler

# dispadmin -d FSS
# priocntl -s -c FSS -i all

zonecfg -z sap
zonecfg:sap> add rctl
zonecfg:sap:rctl> set name=zone.cpu-shares
zonecfg:sap:rctl> set value=(priv=privileged,limit=25,action=none)
zonecfg:sap:rctl> end
add capped-memory
set physical=8G
set swap=20G
end
zonecfg:sap> verify
zonecfg:sap> commit
zonecfg:sap> exit
zoneadm -z sap reboot

monitoring:

dynamiaclly adjust memory limit for zone
rcapadm -m 10G -z sap

Filed under Uncategorized |

Leave a Reply

Limiting resource usage for Solaris zones

Posted on May 18th, 2011

Global zone: 75% cpu shares, all ram
SAP zone: 25% cpu shares 8G RAM, 20G swap

global
/etc/init.d/cpushares
(try smf as mentioned in sun blueprint about zone architecture)

#!/sbin/sh
/usr/bin/prctl -n zone.cpu-shares -v 75 -r -i zone global
/usr/bin/prctl -r -n zone.cpu-shares -v 75 -i process $$
exit 0

rcapadm -E
rcapadm -i sample=2

bash-3.00# rcapadm
state: enabled
memory cap enforcement threshold: 0%
process scan rate (sec): 15
reconfiguration rate (sec): 60
report rate (sec): 5
RSS sampling rate (sec): 2
bash-3.00# svcs -a | grep rcap
online May_14 svc:/system/rcap:default
bash-3.00#

move all the processes to FSS sheduler

# dispadmin -d FSS
# priocntl -s -c FSS -i all

zonecfg -z sap
zonecfg:sap> add rctl
zonecfg:sap:rctl> set name=zone.cpu-shares
zonecfg:sap:rctl> set value=(priv=privileged,limit=25,action=none)
zonecfg:sap:rctl> end
add capped-memory
set physical=8G
set swap=20G
end
zonecfg:sap> verify
zonecfg:sap> commit
zonecfg:sap> exit
zoneadm -z sap reboot

dynamiaclly adjust memory limit for zone
rcapadm -m 10G -z sap

Filed under Uncategorized |

Leave a Reply

Limiting resource usage for Solaris zones

Posted on May 18th, 2011

Global zone: 75% cpu shares, all ram
SAP zone: 25% cpu shares 8G RAM, 20G swap

global
/etc/init.d/cpushares
#!/sbin/sh
/usr/bin/prctl -n zone.cpu-shares -v 75 -r -i zone global
/usr/bin/prctl -r -n zone.cpu-shares -v 75 -i process $$
exit 0

rcapadm -E
rcapadm -i sample=2

bash-3.00# rcapadm
state: enabled
memory cap enforcement threshold: 0%
process scan rate (sec): 15
reconfiguration rate (sec): 60
report rate (sec): 5
RSS sampling rate (sec): 2
bash-3.00# svcs -a | grep rcap
online May_14 svc:/system/rcap:default
bash-3.00#

move all the processes to FSS sheduler

# dispadmin -d FSS
# priocntl -s -c FSS -i all

zonecfg -z sap
zonecfg:sap> add rctl
zonecfg:sap:rctl> set name=zone.cpu-shares
zonecfg:sap:rctl> set value=(priv=privileged,limit=25,action=none)
zonecfg:sap:rctl> end
add capped-memory
set physical=8G
set swap=20G
end
zonecfg:sap> verify
zonecfg:sap> commit
zonecfg:sap> exit
zoneadm -z sap reboot

dynamiaclly adjust memory limit for zone
rcapadm -m 10G -z sap

Filed under Uncategorized |

Leave a Reply

Limiting resource usage for Solaris zones

Posted on May 18th, 2011

Global zone: 75% cpu shares, all ram
SAP zone: 25% cpu shares 8G RAM, 20G swap

global
/etc/init.d/cpushares
(try smf as mentioned in sun blueprint about zone architecture)

#!/sbin/sh
/usr/bin/prctl -n zone.cpu-shares -v 75 -r -i zone global
/usr/bin/prctl -r -n zone.cpu-shares -v 75 -i process $$
exit 0

rcapadm -E
rcapadm -i sample=2

bash-3.00# rcapadm
state: enabled
memory cap enforcement threshold: 0%
process scan rate (sec): 15
reconfiguration rate (sec): 60
report rate (sec): 5
RSS sampling rate (sec): 2
bash-3.00# svcs -a | grep rcap
online May_14 svc:/system/rcap:default
bash-3.00#

move all the processes to FSS sheduler

# dispadmin -d FSS
# priocntl -s -c FSS -i all

zonecfg -z sap
zonecfg:sap> add rctl
zonecfg:sap:rctl> set name=zone.cpu-shares
zonecfg:sap:rctl> set value=(priv=privileged,limit=25,action=none)
zonecfg:sap:rctl> end
add capped-memory
set physical=8G
set swap=20G
end
zonecfg:sap> verify
zonecfg:sap> commit
zonecfg:sap> exit
zoneadm -z sap reboot

monitoring:
bash-3.00# rcapstat -z 5
id zone nproc vm rss cap at avgat pg avgpg
63 ni5bip – 13G 4968M 8192M 0K 0K 0K 0K
63 ni5bip – 13G 4969M 8192M 0K 0K 0K 0K
63 ni5bip – 13G 4969M 8192M 0K 0K 0K 0K
63 ni5bip – 13G 4969M 8192M 0K 0K 0K 0K

dynamiaclly adjust memory limit for zone
rcapadm -m 10G -z sap

Filed under Uncategorized |

Leave a Reply

Limiting resource usage for Solaris zones

Posted on May 18th, 2011

Global zone: 75% cpu shares, all ram
SAP zone: 25% cpu shares 8G RAM, 20G swap

global
/etc/init.d/cpushares
#!/sbin/sh
/usr/bin/prctl -n zone.cpu-shares -v 75 -r -i zone global
/usr/bin/prctl -r -n zone.cpu-shares -v 75 -i process $$
exit 0

rcapadm -E
rcapadm -i sample=2

bash-3.00# rcapadm
state: enabled
memory cap enforcement threshold: 0%
process scan rate (sec): 15
reconfiguration rate (sec): 60
report rate (sec): 5
RSS sampling rate (sec): 2
bash-3.00# svcs -a | grep rcap
online May_14 svc:/system/rcap:default
bash-3.00#

move all the processes to FSS sheduler

# dispadmin -d FSS
# priocntl -s -c FSS -i all

zonecfg -z sap
zonecfg:sap> add rctl
zonecfg:sap:rctl> set name=zone.cpu-shares
zonecfg:sap:rctl> set value=(priv=privileged,limit=25,action=none)
zonecfg:sap:rctl> end
add capped-memory
set physical=8G
set swap=20G
end
zonecfg:sap> verify
zonecfg:sap> commit
zonecfg:sap> exit
zoneadm -z sap reboot

Filed under Uncategorized |

Leave a Reply

Limiting resource usage for Solaris zones

Posted on May 18th, 2011

Global zone: 75% cpu shares, all ram
SAP zone: 25% cpu shares 8G RAM, 20G swap

global
/etc/init.d/cpushares
#!/sbin/sh
/usr/bin/prctl -n zone.cpu-shares -v 75 -r -i zone global
/usr/bin/prctl -r -n zone.cpu-shares -v 75 -i process $$
exit 0

rcapadm -E

bash-3.00# rcapadm
state: enabled
memory cap enforcement threshold: 0%
process scan rate (sec): 15
reconfiguration rate (sec): 60
report rate (sec): 5
RSS sampling rate (sec): 2
bash-3.00# svcs -a | grep rcap
online May_14 svc:/system/rcap:default
bash-3.00#

move all the processes to FSS sheduler

# dispadmin -d FSS
# priocntl -s -c FSS -i all

zonecfg -z sap
zonecfg:sap> add rctl
zonecfg:sap:rctl> set name=zone.cpu-shares
zonecfg:sap:rctl> set value=(priv=privileged,limit=25,action=none)
zonecfg:sap:rctl> end
add capped-memory
set physical=8G
set swap
zonecfg:sap> verify
zonecfg:sap> commit
zonecfg:sap> exit
zoneadm -z sap reboot

Filed under Uncategorized |

Leave a Reply

Private: Monitoring Solaris zone resource usage with extended accounting

Posted on May 18th, 2011

Filed under Solaris |

Leave a Reply

Monitoring Solaris zone resource usage with extended accounting

Posted on May 18th, 2011

Filed under Uncategorized |

Leave a Reply

Private: Monitoring Solaris zone with Nagios

Posted on May 18th, 2011

Edit community string in
/etc/sma/snmp/snmpd.conf

svcadm disable sma
svcadm enable sma

Filed under Uncategorized |

Leave a Reply

Monitoring Solaris zone with Nagios

Posted on May 18th, 2011

Edit community string in
/etc/sma/snmp/snmpd.conf

svcadm refresh sma

Filed under Uncategorized |

Leave a Reply

Monitoring Solaris zone with Nagios

Posted on May 18th, 2011

Edit community string in
/etc/snmp/conf/snmpd.conf

svcadm refresh snmpdx

Filed under Uncategorized |

Leave a Reply

Install and configure xmonad in OpenSUSE 11.4

Posted on May 4th, 2011

1. Install haskell

zypper ar http://download.opensuse.org/repositories/devel:/languages:/haskell/openSUSE_Factory/devel:languages:haskell.repo

2. Install Haskell compiler, rxvt, terminus font for rxvt.

zypper in ghc terminus-font rxvt-unicode

3. Install cabal-install.

wget http://hackage.haskell.org/packages/archive/cabal-install/0.10.2/cabal-install-0.10.2.tar.gz
tar zxf tar zxfv cabal-install-0.10.2.tar.gz
cd cabal-install-0.10.2
sh bootstrap.sh
echo "export PATH=$PATH:~/.cabal/bin" >> ~/.profile
. ~/.profile

4. Install xmonad

cabal update
cabal install xmonad
cabal install xmonad-contrib --flags="-use_xft"
cabal install xmobar

5. Configure xmonad
create xmonad configuration directory

mkdir ~/.xmonad

copy xmonad.hs and xmobarc into .xmonad directory
and

xmonad --recompile

6. Install .Xdefaults, .xinitrc
7. install trayer from rpm

rpm -i trayer-1.0-5mdv2010.0.src.rpm
vi /usr/src/packages/SPECS/trayer.spec (correct spec release)
zypper in gtk2-devel
rpmbuild --nodeps -bb /usr/src/packages/SPECS/trayer.spec
rpm -Uvh /usr/src/packages/RPMS/i586/trayer-1.0-5.i586.rpm

8. Enable use of xdm by editing /etc/sysconfig/displaymanager and setting DISPLAYMANAGER=”xdm”
9. Restart Xorg. Enjoy :)

Filed under Uncategorized |

Leave a Reply

Install and configure xmonad in OpenSUSE 11.4

Posted on May 4th, 2011

1. Install haskell

zypper ar http://download.opensuse.org/repositories/devel:/languages:/haskell/openSUSE_Factory/devel:languages:haskell.repo

2. Install Haskell compiler, rxvt, terminus font for rxvt.

zypper in ghc terminus-font rxvt-unicode

3. Install cabal-install.

wget http://hackage.haskell.org/packages/archive/cabal-install/0.10.2/cabal-install-0.10.2.tar.gz
tar zxf tar zxfv cabal-install-0.10.2.tar.gz
cd cabal-install-0.10.2
sh bootstrap.sh
echo "export PATH=$PATH:~/.cabal/bin" >> ~/.profile
. ~/.profile

4. Install xmonad

cabal update
cabal install xmonad
cabal install xmonad-contrib --flags="-use_xft"
cabal install xmobar

5. Configure xmonad
create xmonad configuration directory

mkdir ~/.xmonad

copy xmonad.hs and xmobarc into .xmonad directory
and

xmonad --recompile

6. Install .Xdefaults, .xinitrc
7. install trayer from rpm

rpm -i trayer-1.0-5mdv2010.0.src.rpm
vi /usr/src/packages/SPECS/trayer.spec (correct spec release)
zypper in gtk2-devel
rpmbuild --nodeps -bb /usr/src/packages/SPECS/trayer.spec
rpm -Uvh /usr/src/packages/RPMS/i586/trayer-1.0-5.i586.rpm

8. Enable use of xdm by editing /etc/sysconfig/displaymanager and setting DISPLAYMANAGER=”xdm”

Filed under Uncategorized |

Leave a Reply

Install and configure xmonad in OpenSUSE 11.4

Posted on May 4th, 2011

1. Install haskell

zypper ar http://download.opensuse.org/repositories/devel:/languages:/haskell/openSUSE_Factory/devel:languages:haskell.repo

2. Install Haskell compiler, rxvt, terminus font for rxvt.

zypper in ghc terminus-font rxvt-unicode

3. Install cabal-install.

wget http://hackage.haskell.org/packages/archive/cabal-install/0.10.2/cabal-install-0.10.2.tar.gz
tar zxf tar zxfv cabal-install-0.10.2.tar.gz
cd cabal-install-0.10.2
sh bootstrap.sh
echo "export PATH=$PATH:~/.cabal/bin" >> ~/.profile
. ~/.profile

4. Install xmonad

cabal update
cabal install xmonad
cabal install xmonad-contrib --flags="-use_xft"
cabal install xmobar

5. Configure xmonad
create xmonad configuration directory

mkdir ~/.xmonad

copy xmonad.hs and xmobarc into .xmonad directory
and

xmonad --recompile

6. Install .Xdefaults, .xinitrc
7. install trayer from rpm

rpm -i trayer-1.0-5mdv2010.0.src.rpm
vi /usr/src/packages/SPECS/trayer.spec (correct spec release)
zypper in gtk2-devel
rpmbuild --nodeps -bb /usr/src/packages/SPECS/trayer.spec
rpm -Uvh /usr/src/packages/RPMS/i586/trayer-1.0-5.i586.rpm

ToDo: replace trayer with another tray application

8. Enable use of xdm by editing /etc/sysconfig/displaymanager and setting DISPLAYMANAGER=”xdm”

Filed under Uncategorized |

Leave a Reply

Install and configure xmonad in OpenSUSE 11.4

Posted on May 4th, 2011

1. Install haskell

zypper ar http://download.opensuse.org/repositories/devel:/languages:/haskell/openSUSE_Factory/devel:languages:haskell.repo

2. Install Haskell compiler, rxvt, terminus font for rxvt.

zypper in ghc terminus-font rxvt-unicode

3. Install cabal-install.

wget http://hackage.haskell.org/packages/archive/cabal-install/0.10.2/cabal-install-0.10.2.tar.gz
tar zxf tar zxfv cabal-install-0.10.2.tar.gz
cd cabal-install-0.10.2
sh bootstrap.sh
echo "export PATH=$PATH:~/.cabal/bin" >> ~/.profile
. ~/.profile

4. Install xmonad

cabal update
cabal install xmonad
cabal install xmonad-contrib --flags="-use_xft"
cabal install xmobar

5. Configure xmonad
create xmonad configuration directory

mkdir ~/.xmonad

copy xmonad.hs and xmobarc into .xmonad directory
and

xmonad --recompile

6. Install .Xdefaults, .xinitrc
7. install trayer from rpm

rpm -i trayer-1.0-5mdv2010.0.src.rpm
vi /usr/src/packages/SPECS/trayer.spec

ToDo: replace trayer with another tray application

8. Enable use of xdm by editing /etc/sysconfig/displaymanager and setting DISPLAYMANAGER=”xdm”

Filed under Uncategorized |

Leave a Reply

Install and configure xmonad in OpenSUSE 11.4

Posted on May 4th, 2011

1. Install haskell

zypper ar http://download.opensuse.org/repositories/devel:/languages:/haskell/openSUSE_Factory/devel:languages:haskell.repo

2. Install Haskell compiler, rxvt, terminus font for rxvt.

zypper in ghc terminus-font rxvt-unicode

3. Install cabal-install.

wget http://hackage.haskell.org/packages/archive/cabal-install/0.10.2/cabal-install-0.10.2.tar.gz
tar zxf tar zxfv cabal-install-0.10.2.tar.gz
cd cabal-install-0.10.2
sh bootstrap.sh
echo "export PATH=$PATH:~/.cabal/bin" >> ~/.profile
. ~/.profile

4. Install xmonad

cabal update
cabal install xmonad
cabal install xmonad-contrib --flags="-use_xft"
cabal install xmobar

5. Configure xmonad
create xmonad configuration directory

mkdir ~/.xmonad

copy xmonad.hs and xmobarc into .xmonad directory
and

xmonad --recompile

6. Install .Xdefaults, .xinitrc
7. install trayer from rpm

 

ToDo: replace trayer with another tray application

8. Enable use of xdm by editing /etc/sysconfig/displaymanager and setting DISPLAYMANAGER=”xdm”

Filed under Uncategorized |

Leave a Reply

Install and configure xmonad in OpenSUSE 11.4

Posted on May 4th, 2011

1. Install haskell

zypper ar http://download.opensuse.org/repositories/devel:/languages:/haskell/openSUSE_Factory/devel:languages:haskell.repo

2. Install Haskell compiler, rxvt, terminus font for rxvt.

zypper in ghc terminus-font rxvt-unicode

3. Install cabal-install.

wget http://hackage.haskell.org/packages/archive/cabal-install/0.10.2/cabal-install-0.10.2.tar.gz
tar zxf tar zxfv cabal-install-0.10.2.tar.gz
cd cabal-install-0.10.2
sh bootstrap.sh
echo "export PATH=$PATH:~/.cabal/bin" >> ~/.profile
. ~/.profile

4. Install xmonad

cabal update
cabal install xmonad
cabal install xmonad-contrib --flags="-use_xft"
cabal install xmobar

5. Configure xmonad
create xmonad configuration directory

mkdir ~/.xmonad

copy xmonad.hs and xmobarc into .xmonad directory
and

xmonad --recompile

6. Install .Xdefaults, .xinitrc
7. install trayer from rpm

 

ToDo: replace trayer with another tray application

Filed under Uncategorized |

Leave a Reply

Install and configure xmonad in OpenSUSE 11.4

Posted on May 4th, 2011

1. Install haskell

zypper ar http://download.opensuse.org/repositories/devel:/languages:/haskell/openSUSE_Factory/devel:languages:haskell.repo

2. Install Haskell compiler, rxvt, terminus font for rxvt.

zypper in ghc terminus-font rxvt-unicode

3. Install cabal-install.

wget http://hackage.haskell.org/packages/archive/cabal-install/0.10.2/cabal-install-0.10.2.tar.gz
tar zxf tar zxfv cabal-install-0.10.2.tar.gz
cd cabal-install-0.10.2
sh bootstrap.sh
echo "export PATH=$PATH:~/.cabal/bin" >> ~/.profile
. ~/.profile

4. Install xmonad

cabal update
cabal install xmonad
cabal install xmonad-contrib --flags="-use_xft"
cabal install xmobar

5. Configure xmonad
create xmonad configuration directory

mkdir ~/.xmonad

copy xmonad.hs and xmobarc into .xmonad directory
and

xmonad --recompile

6. Install .Xdefaults, .xinitrc
7. install trayer
ToDo: replace trayer with another tray application

Filed under Uncategorized |

Leave a Reply

Install and configure xmonad in OpenSUSE 11.4

Posted on May 4th, 2011

1. Install haskell

zypper ar http://download.opensuse.org/repositories/devel:/languages:/haskell/openSUSE_Factory/devel:languages:haskell.repo

2. Install Haskell compiler, rxvt, terminus font for rxvt.

zypper in ghc terminus-font rxvt-unicode

3. Install cabal-install.

wget http://hackage.haskell.org/packages/archive/cabal-install/0.10.2/cabal-install-0.10.2.tar.gz
tar zxf tar zxfv cabal-install-0.10.2.tar.gz
cd cabal-install-0.10.2
sh bootstrap.sh
echo "export PATH=$PATH:~/.cabal/bin" >> ~/.profile
. ~/.profile

4. Install xmonad

cabal update
cabal install xmonad
cabal install xmonad-contrib --flags="-use_xft"
cabal install xmobar

5. Configure xmonad
create xmonad configuration directory

mkdir ~/.xmonad

copy xmonad.hs and xmobarc into .xmonad directory
and

xmonad --recompile

6. Install .Xdefaults, .xinitrc

Filed under Uncategorized |

Leave a Reply

Install and configure xmonad in OpenSUSE 11.4

Posted on May 4th, 2011

1. Install haskell

zypper ar http://download.opensuse.org/repositories/devel:/languages:/haskell/openSUSE_Factory/devel:languages:haskell.repo

2. Install Haskell compiler, rxvt, terminus font for rxvt.

zypper in ghc terminus-font rxvt-unicode

3. Install cabal-install.

wget http://hackage.haskell.org/packages/archive/cabal-install/0.10.2/cabal-install-0.10.2.tar.gz
tar zxf tar zxfv cabal-install-0.10.2.tar.gz
cd cabal-install-0.10.2
sh bootstrap.sh
echo "export PATH=$PATH:~/.cabal/bin" >> ~/.profile
. ~/.profile

4. Install xmonad

cabal update
cabal install xmonad
cabal install xmonad-contrib --flags="-use_xft"
cabal install xmobar

5. Configure xmonad
create xmonad configuration directory

mkdir ~/.xmonad

copy xmonad.hs and xmobarc into .xmonad directory
and

xmonad --recompile

6. Install and configure bells and whistels.

 

Filed under Uncategorized |

Leave a Reply

Install and configure xmonad in OpenSUSE 11.4

Posted on May 4th, 2011

1. Install haskell

zypper ar http://download.opensuse.org/repositories/devel:/languages:/haskell/openSUSE_Factory/devel:languages:haskell.repo

2. Install Haskell compiler

zypper in ghc

3. Install cabal-install.

wget http://hackage.haskell.org/packages/archive/cabal-install/0.10.2/cabal-install-0.10.2.tar.gz
tar zxf tar zxfv cabal-install-0.10.2.tar.gz
cd cabal-install-0.10.2
sh bootstrap.sh
echo "export PATH=$PATH:~/.cabal/bin" >> ~/.profile
. ~/.profile

4. Install xmonad

cabal update
cabal install xmonad
cabal install xmonad-contrib --flags="-use_xft"
cabal install xmobar

5. Configure xmonad
create xmonad configuration directory

mkdir ~/.xmonad

copy xmonad.hs and xmobarc into .xmonad directory
and

xmonad --recompile

6. Install and configure bells and whistels.

 

Filed under Uncategorized |

Leave a Reply

Install and configure xmonad in OpenSUSE 11.4

Posted on May 4th, 2011

1. Install haskell

zypper ar http://download.opensuse.org/repositories/devel:/languages:/haskell/openSUSE_Factory/devel:languages:haskell.repo

2. Install Haskell compiler

zypper in ghc

3. Install cabal-install.

wget http://hackage.haskell.org/packages/archive/cabal-install/0.10.2/cabal-install-0.10.2.tar.gz
tar zxf tar zxfv cabal-install-0.10.2.tar.gz
cd cabal-install-0.10.2
sh bootstrap.sh
echo "export PATH=$PATH:~/.cabal/bin" >> ~/.profile
. ~/.profile

4. Install xmonad

cabal update
cabal install xmonad
cabal install xmonad-contrib --flags="-use_xft"

5. Configure xmonad
create xmonad configuration directory

mkdir ~/.xmonad

copy xmonad.hs and xmobarc into .xmonad directory
and

xmonad --recompile

6. Install and configure bells and whistels.

 

Filed under Uncategorized |

Leave a Reply

Install and configure xmonad in OpenSUSE 11.4

Posted on May 4th, 2011

1. Install haskell

zypper ar http://download.opensuse.org/repositories/devel:/languages:/haskell/openSUSE_Factory/devel:languages:haskell.repo

2. Install Haskell compiler

zypper in ghc

3. Install cabal-install.

wget http://hackage.haskell.org/packages/archive/cabal-install/0.10.2/cabal-install-0.10.2.tar.gz
tar zxf tar zxfv cabal-install-0.10.2.tar.gz
cd cabal-install-0.10.2
sh bootstrap.sh
echo "export PATH=$PATH:~/.cabal/bin" >> ~/.profile
. ~/.profile

4. Install xmonad

cabal update
cabal install xmonad
cabal install xmonad-contrib --flags="-use_xft"

5. Configure xmonad
create xmonad configuration directory

mkdir ~/.xmonad

and copy xmonad.hs and xmobarc
and

xmonad --recompile

6. Install and configure bells and whistels.

 

Filed under Uncategorized |

Leave a Reply

Install and configure xmonad in OpenSUSE 11.4

Posted on May 4th, 2011

1. Install haskell

zypper ar http://download.opensuse.org/repositories/devel:/languages:/haskell/openSUSE_Factory/devel:languages:haskell.repo

2. Install Haskell compiler

zypper in ghc

3. Install cabal-install.

wget http://hackage.haskell.org/packages/archive/cabal-install/0.10.2/cabal-install-0.10.2.tar.gz
tar zxf tar zxfv cabal-install-0.10.2.tar.gz
cd cabal-install-0.10.2
sh bootstrap.sh
echo "export PATH=$PATH:~/.cabal/bin" >> ~/.profile
. ~/.profile

4. Install xmonad

cabal update
cabal install xmonad
cabal install xmonad-contrib --flags="-use_xft"

5. Configure xmonad
create xmonad configuration directory

mkdir ~/.xmonad

and copy xmonad.hs and xmobarc

6. Install and configure bells and whistels.

 

Filed under Uncategorized |

Leave a Reply

Install and configure xmonad in OpenSUSE 11.4

Posted on May 4th, 2011

1. Install haskell

zypper ar http://download.opensuse.org/repositories/devel:/languages:/haskell/openSUSE_Factory/devel:languages:haskell.repo

2. Install Haskell compiler

zypper in ghc

3. Install cabal-install.

wget http://hackage.haskell.org/packages/archive/cabal-install/0.10.2/cabal-install-0.10.2.tar.gz
tar zxf tar zxfv cabal-install-0.10.2.tar.gz
cd cabal-install-0.10.2
sh bootstrap.sh
echo "export PATH=$PATH:~/.cabal/bin" >> ~/.profile
. ~/.profile

4. Install xmonad

cabal update
cabal install xmonad

5. Configure xmonad
create xmonad configuration directory

mkdir ~/.xmonad

and copy xmonad.hs and xmobarc

6. Install and configure bells and whistels.

 

Filed under Uncategorized |

Leave a Reply

Install and configure xmonad in OpenSUSE 11.4

Posted on May 4th, 2011

1. Install haskell

zypper ar http://download.opensuse.org/repositories/devel:/languages:/haskell/openSUSE_Factory/devel:languages:haskell.repo

2. Install Haskell compiler

zypper in ghc

3. Install cabal-install.

wget http://hackage.haskell.org/packages/archive/cabal-install/0.10.2/cabal-install-0.10.2.tar.gz
tar zxf tar zxfv cabal-install-0.10.2.tar.gz
cd cabal-install-0.10.2
sh bootstrap.sh
echo "export PATH=$PATH:~/.cabal/bin" >> ~/.profile
. ~/.profile

4. Install xmonad

cabal update
cabal install xmonad

Filed under Uncategorized |

Leave a Reply

Install and configure xmonad in OpenSUSE 11.4

Posted on May 4th, 2011

1. Install haskell

zypper ar http://download.opensuse.org/repositories/devel:/languages:/haskell/openSUSE_Factory/devel:languages:haskell.repo
Добавление репозитория 'Haskell (openSUSE_Factory)' [готово]
Репозиторий 'Haskell (openSUSE_Factory)' успешно добавлен
Включён: Да
Автоматическое обновление: Нет
URI: http://download.opensuse.org/repositories/devel:/languages:/haskell/openSUSE_Factory/

2. Install Haskell compiler

zypper in ghc

3. Install cabal-install.

wget http://hackage.haskell.org/packages/archive/cabal-install/0.10.2/cabal-install-0.10.2.tar.gz
tar zxf tar zxfv cabal-install-0.10.2.tar.gz
cd cabal-install-0.10.2
sh bootstrap.sh
echo "export PATH=$PATH:~/.cabal/bin" >> ~/.profile
. ~/.profile

4. Install xmonad

cabal update
cabal install xmonad

Filed under Uncategorized |

Leave a Reply

Install and configure xmonad in OpenSUSE 11.4

Posted on May 4th, 2011

1. Install haskell

zypper ar http://download.opensuse.org/repositories/devel:/languages:/haskell/openSUSE_Factory/devel:languages:haskell.repo
Добавление репозитория 'Haskell (openSUSE_Factory)' [готово]
Репозиторий 'Haskell (openSUSE_Factory)' успешно добавлен
Включён: Да
Автоматическое обновление: Нет
URI: http://download.opensuse.org/repositories/devel:/languages:/haskell/openSUSE_Factory/

2. Install Haskell compiler

zypper in ghc

Filed under Uncategorized |

Leave a Reply

Install and configure xmonad in OpenSUSE 11.4

Posted on May 4th, 2011

1. Install haskell

zypper ar http://download.opensuse.org/repositories/devel:/languages:/haskell/openSUSE_Factory/devel:languages:haskell.repo

2. Install Haskell compiler, rxvt, terminus font for rxvt.

zypper in ghc terminus-font rxvt-unicode

3. Install cabal-install.

wget http://hackage.haskell.org/packages/archive/cabal-install/0.10.2/cabal-install-0.10.2.tar.gz
tar zxf tar zxfv cabal-install-0.10.2.tar.gz
cd cabal-install-0.10.2
sh bootstrap.sh
echo "export PATH=$PATH:~/.cabal/bin" >> ~/.profile
. ~/.profile

4. Install xmonad

cabal update
cabal install xmonad
cabal install xmonad-contrib --flags="-use_xft"
cabal install xmobar

5. Configure xmonad
create xmonad configuration directory

mkdir ~/.xmonad

copy xmonad.hs and xmobarc into .xmonad directory
and

xmonad --recompile

6. Install .Xdefaults, .xinitrc
7. install trayer from rpm

rpm -i trayer-1.0-5mdv2010.0.src.rpm
vi /usr/src/packages/SPECS/trayer.spec (correct spec release)
zypper in gtk2-devel
rpmbuild --nodeps -bb /usr/src/packages/SPECS/trayer.spec
rpm -Uvh /usr/src/packages/RPMS/i586/trayer-1.0-5.i586.rpm

8. Enable use of xdm by editing /etc/sysconfig/displaymanager and setting DISPLAYMANAGER=”xdm”
9. Restart Xorg. Enjoy :)

Filed under openSUSE, xmonad |

One Response to “Install and configure xmonad in OpenSUSE 11.4”

  1. Rickard Dybeck Says:
    July 21st, 2011 at 8:06 am

    Thanks, but I’m getting

    xmobar: /home/mit/.xmonad/xmobarc: file not found!

    when trying xmonad –recompile

    with grep showing:
    Binary file ./.xmonad/xmonad.o matches
    Binary file ./.xmonad/xmonad-x86_64-linux matches

    so is your home path compiled into the binaries or am I missing something?

Leave a Reply

Install and configure xmonad in OpenSUSE 11.4

Posted on May 4th, 2011

1. Install haskell

zypper ar http://download.opensuse.org/repositories/devel:/languages:/haskell/openSUSE_Factory/devel:languages:haskell.repo
Добавление репозитория 'Haskell (openSUSE_Factory)' [готово]
Репозиторий 'Haskell (openSUSE_Factory)' успешно добавлен
Включён: Да
Автоматическое обновление: Нет
URI: http://download.opensuse.org/repositories/devel:/languages:/haskell/openSUSE_Factory/

Filed under Uncategorized |

Leave a Reply

Install and configure xmonad in OpenSUSE 11.4

Posted on May 4th, 2011

1. Install haskell

Filed under Uncategorized |

Leave a Reply

How to install perl module into custom location

Posted on April 19th, 2011

You need to install Text::Wrapper into your home directory

wget http://search.cpan.org/CPAN/authors/id/C/CJ/CJM/Text-Wrapper-1.02.tar.gz
tar zxf Text-Wrapper-1.02.tar.gz
cd Text-Wrapper-1.02
 perl Build.PL
./Build destdir=$HOME install_base=$HOME
./Build destdir=$HOME install_base=$HOME install

If your module
If you are using perl -MCPAN -e shell then you need to change makepl_arg, destdir and install_base args
in ~/.cpan/CPAN/MyConfig.pm

....
'destdir' => q[~/],
'install_base' => q[~/],
'makepl_arg' => q[SITELIBEXP=~/lib/perl5
 LIB=~/lib/perl5
 INSTALLMAN1DIR=~/share/man/man1
 INSTALLMAN3DIR=~/share/man/man3
 INSTALLSITEMAN1DIR=~/share/man/man1 NSTALLSITEMAN3DIR=~/share/man/man3],
...

If you need to use your home-dir-placed modules in apache mod_perl or perl cgi, add

SetEnv PERL5LIB /home/you/lib/perl5:/home/you/lib

presuming that you have placed your perl modules under /home/you/lib/perl5 and /home/you/lib directories
If you need custom build of some module requiring another module in non-standard location, just export PERL5LIB shell variable. For example, you need to build RRD::Simple, which requires RRDs.pm, but RRDs.pm is not distributed via CPAN, so you have downloaded rrdtool and unpacked it in some location.

wget http://search.cpan.org/CPAN/authors/id/N/NI/NICOLAW/RRD-Simple-1.44.tar.gz
tar zxf RRD-Simple-1.44.tar.gz 
gunzip -cd RRD-Simple-1.44.tar.gz | tar xf -
export PERL5LIB=/usr/local/rrdtool-1.2.19/lib/perl/5.8.7/i86pc-solaris
perl Makefile.PL
make && make install

and then dont forget to

use lib "/usr/local/rrdtool-1.2.19/lib/perl/5.8.7/i86pc-solaris";

in your perl program.

Filed under Uncategorized |

Leave a Reply

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 red
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 Uncategorized |

Leave a Reply

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/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 red
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 Uncategorized |

Leave a Reply

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
cd /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: red: 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/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 red
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 Uncategorized |

Leave a Reply

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
cd /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: red: 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.10:/backup /backup
bash-3.00# cd /backup/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 red
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 Uncategorized |

Leave a Reply

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 |

Leave a Reply

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
cd /backup
bash-3.00# cd /backup/
bash-3.00# ls
lost+found  red
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 red
bash-3.00# chown orared:sapsys red
chown: red: Permission denied

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

bash-3.00# mount -o vers=3 10.70.2.50:/backup /backup
bash-3.00# cd /backup/red/
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 red
bash-3.00# chown orared:sapsys red
bash-3.00# ls -l                  
total 0
drwxr-xr-x   2 root     root          96 Apr 12 09:52 lost+found
drwxr-xr-x   2 orared   sapsys        96 Apr 13 17:33 red

Filed under Uncategorized |

Leave a Reply

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
cd /backup
bash-3.00# cd /backup/
bash-3.00# ls
lost+found  red
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 red
bash-3.00# chown orared:sapsys red
chown: red: Permission denied

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

bash-3.00# mount -o vers=3 10.70.2.50:/backup /backup
bash-3.00# cd /backup/red/
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 red
bash-3.00# chown orared:sapsys red
bash-3.00# ls -l                  
total 0
drwxr-xr-x   2 root     root          96 Apr 12 09:52 lost+found
drwxr-xr-x   2 orared   sapsys        96 Apr 13 17:33 red

Filed under Uncategorized |

Leave a Reply

How to create environment for new users in Solaris

Posted on April 13th, 2011

You need to customize environment for new users of your nice Sun server.
No problem. Just create skeleton profile for bash:
/etc/skel/.bash_profile

if [ "`tty`" != "not a tty" ]
 then           
     if [ "`tty`" = "/dev/console" ]
     then
         TERM=vt100
         export TERM
         echo ""
         echo "TERM=$TERM"
         echo ""
     else
         LOGINFROM=`who am i | cut -f2 -d"(" | cut -f1 -d")"`
         DISPLAY=${LOGINFROM}:0.0
         EDITOR=vi
         PS1="\u@\h:\w-(\!)->"
         PATH=$PATH:/usr/local/bin:/bin:/usr/bin:/usr/ccs/bin:/opt/SUNWspro/bin
         export LOGINFROM DISPLAY EDITOR PS1 PATH
         echo ""
         echo "DISPLAY=$DISPLAY"
         echo ""
     fi
 fi

And add user:

useradd -D -b /export/home
groupadd bob
useradd -g bob -s /bin/bash -m bob
passwd bob

Next time bob login he sees nice bash prompt, and other environment variables he needs.

 

Filed under Uncategorized |

Leave a Reply

Several terminal programs

Posted on April 13th, 2011

Sometimes you need to access your Sun server using laptop. Just use one of these nice programs :) (Assuming you are running one of Linux distributions on your lapt

screen /dev/ttyUSB0 9600
cu -l /dev/ttyUSB0 -s 9600
minicom -s

Filed under Uncategorized |

Leave a Reply

Disable ftpaccess in Solaris 10

Posted on April 13th, 2011

You want to get rid of annoying ftp security. Ok. Just tell ftpd not to use /etc/ftp/ftpaccess

# inetadm -m ftp exec="/usr/sbin/in.ftpd -A"

Filed under Uncategorized |

Leave a Reply

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 |

Leave a Reply

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 Uncategorized |

Leave a Reply

Disable ftpaccess in Solaris 10

Posted on April 8th, 2011

You want to get rid of annoying ftp security. Ok. Just tell ftpd not to use /etc/ftp/ftpaccess

# inetadm -m ftp exec="/usr/sbin/in.ftpd -A"

Filed under Solaris |

Leave a Reply

Disable ftpaccess in Solaris 10

Posted on April 8th, 2011

You want to get rid of annoying ftp security. Ok. Just tell ftpd not to use /etc/ftp/ftpaccess

# inetadm -m ftp exec="/usr/sbin/in.ftpd -A"

Filed under Uncategorized |

Leave a Reply

Disable ftpaccess in Solaris 10

Posted on April 8th, 2011

You want to get rid of annoying ftp security. Ok. Just tell ftpd not to use /etc/ftp/ftpaccess

# inetadm -m ftp exec="/usr/sbin/in.ftpd -A"

Filed under Uncategorized |

Leave a Reply

Several terminal programs

Posted on March 24th, 2011

Sometimes you need to access your Sun server using laptop. Just use one of these nice programs :) (Assuming you are running one of Linux distributions on your laptop)

screen /dev/ttyUSB0 9600
cu -l /dev/ttyUSB0 -s 9600
minicom -s

Filed under Serial Communication |

Leave a Reply

Several terminal programs

Posted on March 24th, 2011

screen /dev/ttyUSB0 9600
cu -l /dev/ttyUSB0 -s 9600
minicom -s

Filed under Uncategorized |

Leave a Reply

Several terminal programs

Posted on March 24th, 2011

Filed under Uncategorized |

Leave a Reply

Private: resizing sapdata62

Posted on March 18th, 2011

516 vxdg -g oradg adddisk oradg_0_54=AMS2500_DC1_54
517 vxdg -g oradg adddisk oradg_1_54=AMS2500_DC2_54
518 /etc/vx/bin/vxdisksetup -i AMS2500_DC2_54
519 vxdg -g oradg adddisk oradg_1_54=AMS2500_DC2_54
520 vxprint -htf -v sapdata12
521 df -h
522 vxprint -htf -v sapdata62
523 history | grep resize
524 vxassist -g oradg maxgrow sapdata12 layout=mirror-concat oradg_0_57 oradg_1_57 oradg_0_54 oradg_1_54
525 /etc/vx/bin/vxresize -g oradg sapdata12 2288431104 layout=mirror-concat oradg_0_57 oradg_1_57 oradg_0_54 oradg_1_54

Filed under Uncategorized |

Leave a Reply

resizing sapdata62

Posted on March 18th, 2011

Filed under Uncategorized |

Leave a Reply

How to create environment for new users in Solaris

Posted on March 17th, 2011

You need to customize environment for new users of your nice Sun server.
No problem. Just create skeleton profile for bash:
/etc/skel/.bash_profile

if [ "`tty`" != "not a tty" ]
 then           
     if [ "`tty`" = "/dev/console" ]
     then
         TERM=vt100
         export TERM
         echo ""
         echo "TERM=$TERM"
         echo ""
     else
         LOGINFROM=`who am i | cut -f2 -d"(" | cut -f1 -d")"`
         DISPLAY=${LOGINFROM}:0.0
         EDITOR=vi
         PS1="\u@\h:\w-(\!)->"
         PATH=$PATH:/usr/local/bin:/bin:/usr/bin:/usr/ccs/bin:/opt/SUNWspro/bin
         export LOGINFROM DISPLAY EDITOR PS1 PATH
         echo ""
         echo "DISPLAY=$DISPLAY"
         echo ""
     fi
 fi

And add user:

useradd -D -b /export/home
groupadd bob
useradd -g bob -s /bin/bash -m bob
passwd bob

Next time bob login he sees nice bash prompt, and other environment variables he needs.

bob@sunserver:~-(1)->

Filed under Uncategorized |

Leave a Reply

How to create environment for new users in Solaris

Posted on March 17th, 2011

/etc/skel/.bash_profile

\ if [ "`tty`" != "not a tty" ]
 then           
     if [ "`tty`" = "/dev/console" ]
     then
         TERM=vt100
         export TERM
         echo ""
         echo "TERM=$TERM"
         echo ""
     else
         LOGINFROM=`who am i | cut -f2 -d"(" | cut -f1 -d")"`
         DISPLAY=${LOGINFROM}:0.0
         EDITOR=vi
         PS1="\u@\h:\w-(\!)->"
         PATH=$PATH:/usr/local/bin:/bin:/usr/bin:/usr/ccs/bin:/opt/SUNWspro/bin
         export LOGINFROM DISPLAY EDITOR PS1 PATH
         echo ""
         echo "DISPLAY=$DISPLAY"
         echo ""
     fi
 fi

Add user:

useradd -D -b /export/home
groupadd bob
useradd -g bob -s /bin/bash -m bob

Filed under Uncategorized |

Leave a Reply

How to create environment for new users in Solaris

Posted on March 17th, 2011

/etc/skel/.bash_profile

\ if [ "`tty`" != "not a tty" ]
 then           
     if [ "`tty`" = "/dev/console" ]
     then
         TERM=vt100
         export TERM
         echo ""
         echo "TERM=$TERM"
         echo ""
     else
         LOGINFROM=`who am i | cut -f2 -d"(" | cut -f1 -d")"`
         DISPLAY=${LOGINFROM}:0.0
         EDITOR=vi
         PS1="\u@\h:\w-(\!)->"
         PATH=$PATH:/usr/local/bin:/bin:/usr/bin:/usr/ccs/bin:/opt/SUNWspro/bin
         export LOGINFROM DISPLAY EDITOR PS1 PATH
         echo ""
         echo "DISPLAY=$DISPLAY"
         echo ""
     fi
 fi

Add user:

useradd -D -b /export/home

Filed under Uncategorized |

Leave a Reply

Private: Booting from mirror requires installboot to be executed against mirrored root disk

Posted on March 17th, 2011

5-slot Sun Enterprise E3500, No Keyboard
OpenBoot 3.2.30, 4096 MB memory installed, Serial #13479440.
Copyright 2002 Sun Microsystems, Inc. All rights reserved
Ethernet address 8:0:20:cd:ae:10, Host ID: 80cdae10.

Rebooting with command: boot bootmirror
Boot device: /sbus@2,0/SUNW,socal@d,10000/sf@1,0/ssd@w21000004cfa16a5c,0:a File and args:

Port#1 received soc-status=14
Port#0 received soc-status=14 loop 1 is ONLINE
:217: The file just loaded does not appear to be executable.
{6} ok

Sun E3500:
{6} ok show-disks
a) /sbus@3,0/SUNW,fas@3,8800000/sd
b) /sbus@2,0/SUNW,socal@d,10000/sf@1,0/ssd
c) /sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd
q) NO SELECTION
Enter Selection, q to quit: b
/sbus@2,0/SUNW,socal@d,10000/sf@1,0/ssd has been selected.
Type ^Y ( Control-Y ) to insert it in the command line.
e.g. ok nvalias mydev ^Y
for creating devalias mydev for
/sbus@2,0/SUNW,socal@d,10000/sf@1,0/ssd
{6} ok nvalias bootdisk /sbus@2,0/SUNW,socal@d,10000/sf@1,0/ssd
{6} ok show-disks
a) /sbus@3,0/SUNW,fas@3,8800000/sd
b) /sbus@2,0/SUNW,socal@d,10000/sf@1,0/ssd
c) /sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd
q) NO SELECTION
Enter Selection, q to quit: c
/sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd has been selected.
Type ^Y ( Control-Y ) to insert it in the command line.
e.g. ok nvalias mydev ^Y
for creating devalias mydev for
/sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd
{6} ok nvalias bootmirror /sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd
{6} ok nvstore

Filed under Uncategorized |

Leave a Reply

Booting from mirror requires installboot to be executed against mirrored root disk

Posted on March 17th, 2011

5-slot Sun Enterprise E3500, No Keyboard
OpenBoot 3.2.30, 4096 MB memory installed, Serial #13479440.
Copyright 2002 Sun Microsystems, Inc. All rights reserved
Ethernet address 8:0:20:cd:ae:10, Host ID: 80cdae10.

Rebooting with command: boot bootmirror
Boot device: /sbus@2,0/SUNW,socal@d,10000/sf@1,0/ssd@w21000004cfa16a5c,0:a File and args:

Port#1 received soc-status=14
Port#0 received soc-status=14 loop 1 is ONLINE
:217: The file just loaded does not appear to be executable.
{6} ok

Sun E3500:

Filed under Uncategorized |

Leave a Reply

Using inheritance-like configuration in nagios

Posted on March 15th, 2011

timeperiods.cfg:

define timeperiod {
        timeperiod_name 24x7
        alias           24 Hours A Day, 7 Days A Week
        sunday          00:00-24:00
        monday          00:00-24:00
        tuesday         00:00-24:00
        wednesday       00:00-24:00
        thursday        00:00-24:00
        friday          00:00-24:00
        saturday        00:00-24:00
        }

contacts.cfg:

define contact{
        contact_name                    mit-email
        use                             generic-contact
        alias                           mit-email
        email                           mit@akamit.com
        }
 
define contact{
        contact_name                    mit-jabber
        use                             xmpp-contact
        alias                           mit-jabber
        email                           mit@akamit.com
        }
 
define contactgroup{
        contactgroup_name       admins_email
        members                 mit-email
}
 
define contactgroup{
        contactgroup_name       admins_xmpp
        members                 mit-jabber
}

templates.cfg:

define contact{
        name                            xmpp-contact   
        service_notification_period     24x7    
        host_notification_period        24x7
        service_notification_options    w,u,c,r,f,s     
        host_notification_options       d,u,r,f,s
        service_notification_commands   notify-service-by-xmpp
        host_notification_commands      notify-host-by-xmpp
        register                        0               
}

commands.cfg:

define command {
        command_name notify-host-by-xmpp
        command_line /usr/bin/printf "%b" "Service: $SERVICEDESC$\nHost: $HOSTALIAS$\nState: SERVICESTATE$\nDate: $LONGDATETIME$\n$SERVICEOUTPUT$" | /usr/local/nagios/libexec/notify-by-jabber.sh $CONTACTEMAIL$
}
 
define command{
        command_name    notify-service-by-xmpp
        command_line    /usr/bin/printf "%b" "Service: $SERVICEDESC$\nHost: $HOSTALIAS$\nState: SERVICESTATE$\nDate: $LONGDATETIME$\n$SERVICEOUTPUT$" | /usr/local/nagios/libexec/notify-by-jabber.sh $CONTACTEMAIL$
}
#!/bin/bash
# $Header: $
# vim:nu:ai:sw=4:ts=4:
#
# Jabber notification script for Nagios
#
# Created by Wolfram Schlich <wschlich@gentoo.org>
# Licensed under the GNU GPLv2 or later
#
 
log=/var/nagios/jabber.log
#log=/dev/null
sendxmpprc=/var/nagios/.sendxmpprc
sendxmpp_args="-t" # use TLS
jabber_resource=nagios
 
host=$(hostname)
rcvd_timestamp=$(date +%Y%m%d-%H%M%S)
pid=${$}
rcpt=${1}; shift
subj=${1}; shift
#body=${1}; shift
body=$(cat)
 
umask 0077
{
        echo
        echo "STARTED $(date +%Y%m%d-%H%M%S) (PID: ${pid})"
        echo
        echo "*** processing new nagios notification..."
        echo "rcpt: ${rcpt}"
        echo "subj: ${subj}"
        echo "body:"
        echo "--8<--"
        echo "${body}"
        echo "--8<--"
        echo "*** sending notification via sendxmpp..."
        {
                echo
                echo "${body}"
                echo
                echo "-- "
                echo "Received by nagios jabber notification script on ${host} at ${rcvd_timestamp}"
        } | sendxmpp ${sendxmpp_args} \
                -f "${sendxmpprc}" \
                -r "${jabber_resource}" \
                -s "${subj}" \
                "${rcpt}"
        sendxmpp_exit_code=${?}
        echo "*** sendxmpp exit code: ${sendxmpp_exit_code}"
        echo
        echo "FINISHED: $(date +%Y%m%d-%H%M%S) (PID: ${pid})"
        echo
} >> "${log}" 2>&1
 
exit 0

templates.cfg:

define host{
        name                            common_host    
        notifications_enabled           1               
        event_handler_enabled           1               
        flap_detection_enabled          1               
        failure_prediction_enabled      1               
        process_perf_data               1               
        retain_status_information       1               
        retain_nonstatus_information    1               
        check_command                   check-host-alive
        check_period                    24x7
        check_interval                  1
        retry_interval                  1
        max_check_attempts              5 
        notification_period             24x7
        notification_interval           120
        notification_options            d,u,r
        register                        0
        }
 
define service {
        name                            common_service
        active_checks_enabled           1
        passive_checks_enabled          1
        parallelize_check               1
        obsess_over_service             1
        check_freshness                 0
        notifications_enabled           1
        event_handler_enabled           1
        flap_detection_enabled          1
        failure_prediction_enabled      1
        process_perf_data               1
        retain_status_information       1
        retain_nonstatus_information    1
        is_volatile                     0
        register                        0
}
 
define host {
        name                            alltime_email
        contact_groups                  admins_email,admins_xmpp
        register                        0
}
 
define service {
        name                            alltime_email
        contact_groups                  admins_email,admins_xmpp
        notification_options            w,u,c,r
        notification_interval           120
        notification_period             24x7
        register                        0
}

Filed under Uncategorized |

Leave a Reply

Using inheritance-like configuration in nagios

Posted on March 15th, 2011

timeperiods.cfg:

define timeperiod {
        timeperiod_name 24x7
        alias           24 Hours A Day, 7 Days A Week
        sunday          00:00-24:00
        monday          00:00-24:00
        tuesday         00:00-24:00
        wednesday       00:00-24:00
        thursday        00:00-24:00
        friday          00:00-24:00
        saturday        00:00-24:00
        }

contacts.cfg:

define contact{
        contact_name                    mit-email
        use                             generic-contact
        alias                           mit-email
        email                           mit@akamit.com
        }
 
define contact{
        contact_name                    mit-jabber
        use                             xmpp-contact
        alias                           mit-jabber
        email                           mit@akamit.com
        }
 
define contactgroup{
        contactgroup_name       admins_email
        members                 mit-email
}
 
define contactgroup{
        contactgroup_name       admins_xmpp
        members                 mit-jabber
}

templates.cfg:

define contact{
        name                            xmpp-contact   
        service_notification_period     24x7    
        host_notification_period        24x7
        service_notification_options    w,u,c,r,f,s     
        host_notification_options       d,u,r,f,s
        service_notification_commands   notify-service-by-xmpp
        host_notification_commands      notify-host-by-xmpp
        register                        0               
}

commands.cfg:

define command {
        command_name notify-host-by-xmpp
        command_line /usr/bin/printf "%b" "Service: $SERVICEDESC$\nHost: $HOSTALIAS$\nState: SERVICESTATE$\nDate: $LONGDATETIME$\n$SERVICEOUTPUT$" | /usr/local/nagios/libexec/notify-by-jabber.sh $CONTACTEMAIL$
}
 
define command{
        command_name    notify-service-by-xmpp
        command_line    /usr/bin/printf "%b" "Service: $SERVICEDESC$\nHost: $HOSTALIAS$\nState: SERVICESTATE$\nDate: $LONGDATETIME$\n$SERVICEOUTPUT$" | /usr/local/nagios/libexec/notify-by-jabber.sh $CONTACTEMAIL$
}
#!/bin/bash
# $Header: $
# vim:nu:ai:sw=4:ts=4:
#
# Jabber notification script for Nagios
#
# Created by Wolfram Schlich <wschlich@gentoo.org>
# Licensed under the GNU GPLv2 or later
#
 
log=/var/nagios/jabber.log
#log=/dev/null
sendxmpprc=/var/nagios/.sendxmpprc
sendxmpp_args="-t" # use TLS
jabber_resource=nagios
 
host=$(hostname)
rcvd_timestamp=$(date +%Y%m%d-%H%M%S)
pid=${$}
rcpt=${1}; shift
subj=${1}; shift
#body=${1}; shift
body=$(cat)
 
umask 0077
{
        echo
        echo "STARTED $(date +%Y%m%d-%H%M%S) (PID: ${pid})"
        echo
        echo "*** processing new nagios notification..."
        echo "rcpt: ${rcpt}"
        echo "subj: ${subj}"
        echo "body:"
        echo "--8<--"
        echo "${body}"
        echo "--8<--"
        echo "*** sending notification via sendxmpp..."
        {
                echo
                echo "${body}"
                echo
                echo "-- "
                echo "Received by nagios jabber notification script on ${host} at ${rcvd_timestamp}"
        } | sendxmpp ${sendxmpp_args} \
                -f "${sendxmpprc}" \
                -r "${jabber_resource}" \
                -s "${subj}" \
                "${rcpt}"
        sendxmpp_exit_code=${?}
        echo "*** sendxmpp exit code: ${sendxmpp_exit_code}"
        echo
        echo "FINISHED: $(date +%Y%m%d-%H%M%S) (PID: ${pid})"
        echo
} >> "${log}" 2>&1
 
exit 0

templates.cfg:

define host{
        name                            common_host    
        notifications_enabled           1               
        event_handler_enabled           1               
        flap_detection_enabled          1               
        failure_prediction_enabled      1               
        process_perf_data               1               
        retain_status_information       1               
        retain_nonstatus_information    1               
        check_command                   check-host-alive
        check_period                    24x7
        check_interval                  1
        retry_interval                  1
        max_check_attempts              5 
        notification_period             24x7
        notification_interval           120
        notification_options            d,u,r
        register                        0
        }
 
define service {
        name                            common_service
        active_checks_enabled           1
        passive_checks_enabled          1
        parallelize_check               1
        obsess_over_service             1
        check_freshness                 0
        notifications_enabled           1
        event_handler_enabled           1
        flap_detection_enabled          1
        failure_prediction_enabled      1
        process_perf_data               1
        retain_status_information       1
        retain_nonstatus_information    1
        is_volatile                     0
        register                        0
}

Filed under Uncategorized |

Leave a Reply

Using inheritance-like configuration in nagios

Posted on March 15th, 2011

timeperiods.cfg:

define timeperiod {
        timeperiod_name 24x7
        alias           24 Hours A Day, 7 Days A Week
        sunday          00:00-24:00
        monday          00:00-24:00
        tuesday         00:00-24:00
        wednesday       00:00-24:00
        thursday        00:00-24:00
        friday          00:00-24:00
        saturday        00:00-24:00
        }

contacts.cfg:

define contact{
        contact_name                    mit-email
        use                             generic-contact
        alias                           mit-email
        email                           mit@akamit.com
        }
 
define contact{
        contact_name                    mit-jabber
        use                             xmpp-contact
        alias                           mit-jabber
        email                           mit@akamit.com
        }
 
define contactgroup{
        contactgroup_name       admins_email
        members                 mit-email
}
 
define contactgroup{
        contactgroup_name       admins_xmpp
        members                 mit-jabber
}

templates.cfg:

define contact{
        name                            xmpp-contact   
        service_notification_period     24x7    
        host_notification_period        24x7
        service_notification_options    w,u,c,r,f,s     
        host_notification_options       d,u,r,f,s
        service_notification_commands   notify-service-by-xmpp
        host_notification_commands      notify-host-by-xmpp
        register                        0               
}

commands.cfg:

define command {
        command_name notify-host-by-xmpp
        command_line /usr/bin/printf "%b" "Service: $SERVICEDESC$\nHost: $HOSTALIAS$\nState: SERVICESTATE$\nDate: $LONGDATETIME$\n$SERVICEOUTPUT$" | /usr/local/nagios/libexec/notify-by-jabber.sh $CONTACTEMAIL$
}
 
define command{
        command_name    notify-service-by-xmpp
        command_line    /usr/bin/printf "%b" "Service: $SERVICEDESC$\nHost: $HOSTALIAS$\nState: SERVICESTATE$\nDate: $LONGDATETIME$\n$SERVICEOUTPUT$" | /usr/local/nagios/libexec/notify-by-jabber.sh $CONTACTEMAIL$
}
#!/bin/bash
# $Header: $
# vim:nu:ai:sw=4:ts=4:
#
# Jabber notification script for Nagios
#
# Created by Wolfram Schlich <wschlich@gentoo.org>
# Licensed under the GNU GPLv2 or later
#
 
log=/var/nagios/jabber.log
#log=/dev/null
sendxmpprc=/var/nagios/.sendxmpprc
sendxmpp_args="-t" # use TLS
jabber_resource=nagios
 
host=$(hostname)
rcvd_timestamp=$(date +%Y%m%d-%H%M%S)
pid=${$}
rcpt=${1}; shift
subj=${1}; shift
#body=${1}; shift
body=$(cat)
 
umask 0077
{
        echo
        echo "STARTED $(date +%Y%m%d-%H%M%S) (PID: ${pid})"
        echo
        echo "*** processing new nagios notification..."
        echo "rcpt: ${rcpt}"
        echo "subj: ${subj}"
        echo "body:"
        echo "--8<--"
        echo "${body}"
        echo "--8<--"
        echo "*** sending notification via sendxmpp..."
        {
                echo
                echo "${body}"
                echo
                echo "-- "
                echo "Received by nagios jabber notification script on ${host} at ${rcvd_timestamp}"
        } | sendxmpp ${sendxmpp_args} \
                -f "${sendxmpprc}" \
                -r "${jabber_resource}" \
                -s "${subj}" \
                "${rcpt}"
        sendxmpp_exit_code=${?}
        echo "*** sendxmpp exit code: ${sendxmpp_exit_code}"
        echo
        echo "FINISHED: $(date +%Y%m%d-%H%M%S) (PID: ${pid})"
        echo
} >> "${log}" 2>&1
 
exit 0

templates.cfg:

define host{
        name                            common_host    
        notifications_enabled           1               
        event_handler_enabled           1               
        flap_detection_enabled          1               
        failure_prediction_enabled      1               
        process_perf_data               1               
        retain_status_information       1               
        retain_nonstatus_information    1               
        check_command                   check-host-alive
        check_period                    24x7
        check_interval                  1
        retry_interval                  1
        max_check_attempts              5 
        notification_period             24x7
        notification_interval           120
        notification_options            d,u,r
        register                        0
        }
 
define service {
        name                            common_service
        active_checks_enabled           1
        passive_checks_enabled          1
        parallelize_check               1
        obsess_over_service             1
        check_freshness                 0
        notifications_enabled           1
        event_handler_enabled           1
        flap_detection_enabled          1
        failure_prediction_enabled      1
        process_perf_data               1
        retain_status_information       1
        retain_nonstatus_information    1
        is_volatile                     0
        register                        0
}

Filed under Uncategorized |

Leave a Reply

Using inheritance-like configuration in nagios

Posted on March 15th, 2011

timeperiods.cfg:

define timeperiod {
        timeperiod_name 24x7
        alias           24 Hours A Day, 7 Days A Week
        sunday          00:00-24:00
        monday          00:00-24:00
        tuesday         00:00-24:00
        wednesday       00:00-24:00
        thursday        00:00-24:00
        friday          00:00-24:00
        saturday        00:00-24:00
        }

contacts.cfg:

define contact{
        contact_name                    mit-email
        use                             generic-contact
        alias                           mit-email
        email                           mit@akamit.com
        }
 
define contact{
        contact_name                    mit-jabber
        use                             xmpp-contact
        alias                           mit-jabber
        email                           mit@akamit.com
        }
 
define contactgroup{
        contactgroup_name       admins_email
        members                 mit-email
}
 
define contactgroup{
        contactgroup_name       admins_xmpp
        members                 mit-jabber
}

templates.cfg:

define contact{
        name                            xmpp-contact   
        service_notification_period     24x7    
        host_notification_period        24x7
        service_notification_options    w,u,c,r,f,s     
        host_notification_options       d,u,r,f,s
        service_notification_commands   notify-service-by-xmpp
        host_notification_commands      notify-host-by-xmpp
        register                        0               
}

commands.cfg:

define command {
        command_name notify-host-by-xmpp
        command_line /usr/bin/printf "%b" "Service: $SERVICEDESC$\nHost: $HOSTALIAS$\nState: SERVICESTATE$\nDate: $LONGDATETIME$\n$SERVICEOUTPUT$" | /usr/local/nagios/libexec/notify-by-jabber.sh $CONTACTEMAIL$
}
 
define command{
        command_name    notify-service-by-xmpp
        command_line    /usr/bin/printf "%b" "Service: $SERVICEDESC$\nHost: $HOSTALIAS$\nState: SERVICESTATE$\nDate: $LONGDATETIME$\n$SERVICEOUTPUT$" | /usr/local/nagios/libexec/notify-by-jabber.sh $CONTACTEMAIL$
}
#!/bin/bash
# $Header: $
# vim:nu:ai:sw=4:ts=4:
#
# Jabber notification script for Nagios
#
# Created by Wolfram Schlich <wschlich@gentoo.org>
# Licensed under the GNU GPLv2 or later
#
 
log=/var/nagios/jabber.log
#log=/dev/null
sendxmpprc=/var/nagios/.sendxmpprc
sendxmpp_args="-t" # use TLS
jabber_resource=nagios
 
host=$(hostname)
rcvd_timestamp=$(date +%Y%m%d-%H%M%S)
pid=${$}
rcpt=${1}; shift
subj=${1}; shift
#body=${1}; shift
body=$(cat)
 
umask 0077
{
        echo
        echo "STARTED $(date +%Y%m%d-%H%M%S) (PID: ${pid})"
        echo
        echo "*** processing new nagios notification..."
        echo "rcpt: ${rcpt}"
        echo "subj: ${subj}"
        echo "body:"
        echo "--8<--"
        echo "${body}"
        echo "--8<--"
        echo "*** sending notification via sendxmpp..."
        {
                echo
                echo "${body}"
                echo
                echo "-- "
                echo "Received by nagios jabber notification script on ${host} at ${rcvd_timestamp}"
        } | sendxmpp ${sendxmpp_args} \
                -f "${sendxmpprc}" \
                -r "${jabber_resource}" \
                -s "${subj}" \
                "${rcpt}"
        sendxmpp_exit_code=${?}
        echo "*** sendxmpp exit code: ${sendxmpp_exit_code}"
        echo
        echo "FINISHED: $(date +%Y%m%d-%H%M%S) (PID: ${pid})"
        echo
} >> "${log}" 2>&1
 
exit 0

Filed under Uncategorized |

Leave a Reply

Using inheritance-like configuration in nagios

Posted on March 15th, 2011

timeperiods.cfg:

define timeperiod {
        timeperiod_name 24x7
        alias           24 Hours A Day, 7 Days A Week
        sunday          00:00-24:00
        monday          00:00-24:00
        tuesday         00:00-24:00
        wednesday       00:00-24:00
        thursday        00:00-24:00
        friday          00:00-24:00
        saturday        00:00-24:00
        }

contacts.cfg:

define contact{
        contact_name                    mit-email
        use                             generic-contact
        alias                           mit-email
        email                           mit@akamit.com
        }
 
define contact{
        contact_name                    mit-jabber
        use                             xmpp-contact
        alias                           mit-jabber
        email                           mit@akamit.com
        }
 
define contactgroup{
        contactgroup_name       admins_email
        members                 mit-email
}
 
define contactgroup{
        contactgroup_name       admins_xmpp
        members                 mit-jabber
}

templates.cfg:

define contact{
        name                            xmpp-contact   
        service_notification_period     24x7    
        host_notification_period        24x7
        service_notification_options    w,u,c,r,f,s     
        host_notification_options       d,u,r,f,s
        service_notification_commands   notify-service-by-xmpp
        host_notification_commands      notify-host-by-xmpp
        register                        0               
}

commands.cfg:

define command {
        command_name notify-host-by-xmpp
        command_line /usr/bin/printf "%b" "Service: $SERVICEDESC$\nHost: $HOSTALIAS$\nState: SERVICESTATE$\nDate: $LONGDATETIME$\n$SERVICEOUTPUT$" | /usr/local/nagios/libexec/notify-by-jabber.sh $CONTACTEMAIL$
}
 
define command{
        command_name    notify-service-by-xmpp
        command_line    /usr/bin/printf "%b" "Service: $SERVICEDESC$\nHost: $HOSTALIAS$\nState: SERVICESTATE$\nDate: $LONGDATETIME$\n$SERVICEOUTPUT$" | /usr/local/nagios/libexec/notify-by-jabber.sh $CONTACTEMAIL$
}

Filed under Uncategorized |

Leave a Reply

Using inheritance-like configuration in nagios

Posted on March 15th, 2011

timeperiods.cfg:

define timeperiod {
        timeperiod_name 24x7
        alias           24 Hours A Day, 7 Days A Week
        sunday          00:00-24:00
        monday          00:00-24:00
        tuesday         00:00-24:00
        wednesday       00:00-24:00
        thursday        00:00-24:00
        friday          00:00-24:00
        saturday        00:00-24:00
        }

contacts.cfg:

define contact{
        contact_name                    mit-email
        use                             generic-contact
        alias                           mit-email
        email                           mit@akamit.com
        }
 
define contact{
        contact_name                    mit-jabber
        use                             xmpp-contact
        alias                           mit-jabber
        email                           mit@akamit.com
        }
 
define contactgroup{
        contactgroup_name       admins_email
        members                 mit-email
}
 
define contactgroup{
        contactgroup_name       admins_xmpp
        members                 mit-jabber
}

templates.cfg:

define contact{
        name                            xmpp-contact   
        service_notification_period     24x7    
        host_notification_period        24x7
        service_notification_options    w,u,c,r,f,s     
        host_notification_options       d,u,r,f,s
        service_notification_commands   notify-service-by-xmpp
        host_notification_commands      notify-host-by-xmpp
        register                        0               
}

Filed under Uncategorized |

Leave a Reply

Private: Using inheritance-like configuration in nagios

Posted on March 15th, 2011

timeperiods.cfg:

define timeperiod {
        timeperiod_name 24x7
        alias           24 Hours A Day, 7 Days A Week
        sunday          00:00-24:00
        monday          00:00-24:00
        tuesday         00:00-24:00
        wednesday       00:00-24:00
        thursday        00:00-24:00
        friday          00:00-24:00
        saturday        00:00-24:00
        }

contacts.cfg:

define contact{
        contact_name                    mit-email
        use                             generic-contact
        alias                           mit-email
        email                           mit@akamit.com
        }
 
define contact{
        contact_name                    mit-jabber
        use                             xmpp-contact
        alias                           mit-jabber
        email                           mit@akamit.com
        }
 
define contactgroup{
        contactgroup_name       admins_email
        members                 mit-email
}
 
define contactgroup{
        contactgroup_name       admins_xmpp
        members                 mit-jabber
}

templates.cfg:

define contact{
        name                            xmpp-contact   
        service_notification_period     24x7    
        host_notification_period        24x7
        service_notification_options    w,u,c,r,f,s     
        host_notification_options       d,u,r,f,s
        service_notification_commands   notify-service-by-xmpp
        host_notification_commands      notify-host-by-xmpp
        register                        0               
}

commands.cfg:

define command {
        command_name notify-host-by-xmpp
        command_line /usr/bin/printf "%b" "Service: $SERVICEDESC$\nHost: $HOSTALIAS$\nState: SERVICESTATE$\nDate: $LONGDATETIME$\n$SERVICEOUTPUT$" | /usr/local/nagios/libexec/notify-by-jabber.sh $CONTACTEMAIL$
}
 
define command{
        command_name    notify-service-by-xmpp
        command_line    /usr/bin/printf "%b" "Service: $SERVICEDESC$\nHost: $HOSTALIAS$\nState: SERVICESTATE$\nDate: $LONGDATETIME$\n$SERVICEOUTPUT$" | /usr/local/nagios/libexec/notify-by-jabber.sh $CONTACTEMAIL$
}
#!/bin/bash
# $Header: $
# vim:nu:ai:sw=4:ts=4:
#
# Jabber notification script for Nagios
#
# Created by Wolfram Schlich <wschlich@gentoo.org>
# Licensed under the GNU GPLv2 or later
#
 
log=/var/nagios/jabber.log
#log=/dev/null
sendxmpprc=/var/nagios/.sendxmpprc
sendxmpp_args="-t" # use TLS
jabber_resource=nagios
 
host=$(hostname)
rcvd_timestamp=$(date +%Y%m%d-%H%M%S)
pid=${$}
rcpt=${1}; shift
subj=${1}; shift
#body=${1}; shift
body=$(cat)
 
umask 0077
{
        echo
        echo "STARTED $(date +%Y%m%d-%H%M%S) (PID: ${pid})"
        echo
        echo "*** processing new nagios notification..."
        echo "rcpt: ${rcpt}"
        echo "subj: ${subj}"
        echo "body:"
        echo "--8<--"
        echo "${body}"
        echo "--8<--"
        echo "*** sending notification via sendxmpp..."
        {
                echo
                echo "${body}"
                echo
                echo "-- "
                echo "Received by nagios jabber notification script on ${host} at ${rcvd_timestamp}"
        } | sendxmpp ${sendxmpp_args} \
                -f "${sendxmpprc}" \
                -r "${jabber_resource}" \
                -s "${subj}" \
                "${rcpt}"
        sendxmpp_exit_code=${?}
        echo "*** sendxmpp exit code: ${sendxmpp_exit_code}"
        echo
        echo "FINISHED: $(date +%Y%m%d-%H%M%S) (PID: ${pid})"
        echo
} >> "${log}" 2>&1
 
exit 0

templates.cfg:

define host{
        name                            common_host    
        notifications_enabled           1               
        event_handler_enabled           1               
        flap_detection_enabled          1               
        failure_prediction_enabled      1               
        process_perf_data               1               
        retain_status_information       1               
        retain_nonstatus_information    1               
        check_command                   check-host-alive
        check_period                    24x7
        check_interval                  1
        retry_interval                  1
        max_check_attempts              5 
        notification_period             24x7
        notification_interval           120
        notification_options            d,u,r
        register                        0
        }
 
define service {
        name                            common_service
        active_checks_enabled           1
        passive_checks_enabled          1
        parallelize_check               1
        obsess_over_service             1
        check_freshness                 0
        notifications_enabled           1
        event_handler_enabled           1
        flap_detection_enabled          1
        failure_prediction_enabled      1
        process_perf_data               1
        retain_status_information       1
        retain_nonstatus_information    1
        is_volatile                     0
        register                        0
}
 
define host {
        name                            alltime_email
        contact_groups                  admins_email,admins_xmpp
        register                        0
}
 
define service {
        name                            alltime_email
        contact_groups                  admins_email,admins_xmpp
        notification_options            w,u,c,r
        notification_interval           120
        notification_period             24x7
        register                        0
}
 
define service {
        name                            http_vhost
        check_period                    24x7
        max_check_attempts              2
        normal_check_interval           10
        retry_check_interval            5
        register                        0
}

Filed under Nagios Configuration |

Leave a Reply

Using inheritance-like configuration in nagios

Posted on March 15th, 2011

timeperiods.cfg:

define timeperiod {
        timeperiod_name 24x7
        alias           24 Hours A Day, 7 Days A Week
        sunday          00:00-24:00
        monday          00:00-24:00
        tuesday         00:00-24:00
        wednesday       00:00-24:00
        thursday        00:00-24:00
        friday          00:00-24:00
        saturday        00:00-24:00
        }

contacts.cfg:

define contact{
        contact_name                    mit-email
        use                             generic-contact
        alias                           mit-email
        email                           mit@akamit.com
        }
 
define contact{
        contact_name                    mit-jabber
        use                             xmpp-contact
        alias                           mit-jabber
        email                           mit@akamit.com
        }
 
define contactgroup{
        contactgroup_name       admins_email
        members                 mit-email
}
 
define contactgroup{
        contactgroup_name       admins_xmpp
        members                 mit-jabber
}

Filed under Uncategorized |

Leave a Reply

Using inheritance-like configuration in nagios

Posted on March 15th, 2011

timeperiio

define timeperiod {
        timeperiod_name 24x7
        alias           24 Hours A Day, 7 Days A Week
        sunday          00:00-24:00
        monday          00:00-24:00
        tuesday         00:00-24:00
        wednesday       00:00-24:00
        thursday        00:00-24:00
        friday          00:00-24:00
        saturday        00:00-24:00
        }

Filed under Uncategorized |

Leave a Reply

How to clone ports from one FreeBSD installation to another

Posted on March 11th, 2011

First, get a list of installed ports

portmaster --list-origins > installed-port-list

On your target system, use that list as input to portmaster

portmaster `cat installed-port-list`

Filed under Uncategorized |

Leave a Reply

How to clone ports from one FreeBSD installation to another

Posted on March 11th, 2011

First, get a list of installed ports

portmaster --list-origins > installed-port-list

On your target system, use that list as input to portmaster

portmaster -y --no-confirm `cat installed-port-list`

Filed under FreeBSD |

Leave a Reply

How to clone ports from one FreeBSD installation to another

Posted on March 11th, 2011

First, get a list of installed ports

portmaster --list-origins > installed-port-list

On your target system, use that list as input to portmaster

portmaster `cat installed-port-list`

Filed under Uncategorized |

Leave a Reply

How to clone ports from one FreeBSD installation to another

Posted on March 11th, 2011

First, get a list of installed ports

portmaster --list-origins > installed-port-list

Filed under Uncategorized |

Leave a Reply

How to make use of http proxy

Posted on January 19th, 2011

zypper

export http_proxy=http://proxy:8080
export ZYPP_ARIA2C=0
zypper refresh

git

export http_proxy=http://10.60.2.243:8118
linux-ruga:/opt/toolchains/arm920t-eabi # git config --get http.proxy
linux-ruga:/opt/toolchains/arm920t-eabi # git config --global http.proxy $http_proxy
linux-ruga:/opt/toolchains/arm920t-eabi # git config --get http.proxy
http://10.60.2.243:8118

Filed under Uncategorized |

Leave a Reply

How to use proxy with misc tools

Posted on January 19th, 2011

export http_proxy=http://proxy:8080
export ZYPP_ARIA2C=0
zypper refresh

git

export http_proxy=http://10.60.2.243:8118
linux-ruga:/opt/toolchains/arm920t-eabi # git config --get http.proxy
linux-ruga:/opt/toolchains/arm920t-eabi # git config --global http.proxy $http_proxy
linux-ruga:/opt/toolchains/arm920t-eabi # git config --get http.proxy
http://10.60.2.243:8118

Filed under Uncategorized |

Leave a Reply

Installing QtMoko v31 on Openmoko GTA02

Posted on January 19th, 2011

Filed under Uncategorized |

Leave a Reply

How to make zypper use proxy

Posted on January 17th, 2011

export http_proxy=http://proxy:8080
export ZYPP_ARIA2C=0
zypper refresh

Filed under Uncategorized |

Leave a Reply

How to make zypper use proxy

Posted on January 17th, 2011

export http_proxy=http://proxy:8080
export ZYPP_ARIA2C=0
zypper refresh

Filed under Uncategorized |

Leave a Reply

How to make zypper use proxy

Posted on January 12th, 2011

export http_proxy=http://proxy:8080
export ZYPP_ARIA2C=0
zypper refresh

Filed under Uncategorized |

Leave a Reply

How to make use of http proxy

Posted on January 12th, 2011

zypper

export http_proxy=http://proxy:8080
export ZYPP_ARIA2C=0
zypper refresh

git

export http_proxy=http://10.60.2.243:8118
linux-ruga:/opt/toolchains/arm920t-eabi # git config --get http.proxy
linux-ruga:/opt/toolchains/arm920t-eabi # git config --global http.proxy $http_proxy
linux-ruga:/opt/toolchains/arm920t-eabi # git config --get http.proxy
http://10.60.2.243:8118
linux-ruga:/opt # git clone http://github.com/radekp/qtmoko.git

Filed under openSUSE |

Leave a Reply

How to make zypper use proxy

Posted on January 12th, 2011

export http_proxy=http://proxy:8080
export ZYPP_ARIA2C=0
zypper refresh

Filed under Uncategorized |

Leave a Reply

How to make zypper use proxy

Posted on January 12th, 2011

Filed under Uncategorized |

Leave a Reply

ofbiz setup with jboss

Posted on January 11th, 2011

1. download and unpack ofbiz archive.

wget http://www.sai.msu.su/apache//ofbiz/apache-ofbiz-09.04.zip
unzip -q apache-ofbiz-09.04.zip

2. copy mysql driver

 
cd /opt/apache-ofbiz-09.04/
cp /opt/jboss/server/all/lib/mysql-connector-java-5.1.13-bin.jar .

3. create mysql database for ofbiz.

export PATH=$PATH:/opt/csw/mysql5/bin
bash-3.00#  mysql -u root                        
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 61044
Server version: 5.0.90 Source distribution
 
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
 
mysql> 
mysql> create database ofbiz;
Query OK, 1 row affected (0.02 sec)
 
mysql>  create user 'ofbiz' IDENTIFIED BY 'ZabPassw0rd';
Query OK, 0 rows affected (0.05 sec)
mysql> GRANT ALL ON ofbiz.* TO ofbiz IDENTIFIED BY 'ZabPassw0rd';
Query OK, 0 rows affected (0.02 sec)

3. Edit config for database and change default database from derby to mysql.
vi /opt/apache-ofbiz-09.04//framework/entity/config/entityengine.xml
If using the default OFBiz transaction manager and connection pool, update the data URI, username and password in the inline-jdbc tag.
If you want your OFBiz tables in a special schema first create that schema in your database, then set the schema-name attribute on the datasource tag.
Find the “default” delegator near the top of the file and change the datasource-name attribute value in the group-map tag under it to the name of the data source you modified or created.

<datasource name="net-mysql"
            helper-class="org.ofbiz.entity.datasource.GenericHelperDAO"
            field-type-name="mysql"
            check-on-start="true"
            add-missing-on-start="true"
            check-pks-on-start="false"
            use-foreign-keys="true"
            join-style="ansi-no-parenthesis"
            alias-view-columns="false"
            drop-fk-use-foreign-key-keyword="true"
            table-type="InnoDB"
            character-set="latin1"
            collate="latin1_general_cs">
        <read-data reader-name="seed"/>
        <read-data reader-name="seed-initial"/>
        <read-data reader-name="demo"/>
        <read-data reader-name="ext"/>
        <inline-jdbc
                jdbc-driver="com.mysql.jdbc.Driver"
                jdbc-uri="jdbc:mysql://mysql1/ofbiz?autoReconnect=true"
                jdbc-username="ofbiz"
                jdbc-password="ZabPassw0rd"
                isolation-level="ReadCommitted"
                pool-minsize="2"
                pool-maxsize="250"/>
        <!-- <jndi-jdbc jndi-server-name="localjndi" jndi-name="java:/MySqlDataSource" isolation-level="Serializable"/> -->
    </datasource>

for example it was

<group-map group-name="org.ofbiz" datasource-name="localderby"/>
<group-map group-name="org.ofbiz.olap" datasource-name="localderbyolap"/>

changed to

<group-map group-name="org.ofbiz" datasource-name="net-mysql"/>
<group-map group-name="org.ofbiz.olap" datasource-name="net-mysql"/>
wget http://www.sai.msu.su/apache//ant/binaries/apache-ant-1.8.2-bin.zip
unzip apache-ant-1.8.2-bin.zip 
rm apache-ant-1.8.2-bin.zip 
mv apache-ant-1.8.2 ant
chown jboss:jboss apache-ofbiz-09.04
chown jboss:jboss ant
cd /opt/apache-ofbiz-09.04
ant run-install

change port 8080 to 8181 for example
1099 to 1199

framework/base/config/ofbiz-containers.xml

Filed under Uncategorized |

Leave a Reply

ofbiz setup with jboss

Posted on January 11th, 2011

1. download and unpack ofbiz archive.

wget http://www.sai.msu.su/apache//ofbiz/apache-ofbiz-09.04.zip
unzip -q apache-ofbiz-09.04.zip

2. copy mysql driver

 
cd /opt/apache-ofbiz-09.04/
cp /opt/jboss/server/all/lib/mysql-connector-java-5.1.13-bin.jar .

3. create mysql database for ofbiz.

export PATH=$PATH:/opt/csw/mysql5/bin
bash-3.00#  mysql -u root                        
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 61044
Server version: 5.0.90 Source distribution
 
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
 
mysql> 
mysql> create database ofbiz;
Query OK, 1 row affected (0.02 sec)
 
mysql>  create user 'ofbiz' IDENTIFIED BY 'ZabPassw0rd';
Query OK, 0 rows affected (0.05 sec)
mysql> GRANT ALL ON ofbiz.* TO ofbiz IDENTIFIED BY 'ZabPassw0rd';
Query OK, 0 rows affected (0.02 sec)

3. Edit config for database and change default database from derby to mysql.
vi /opt/apache-ofbiz-09.04//framework/entity/config/entityengine.xml
If using the default OFBiz transaction manager and connection pool, update the data URI, username and password in the inline-jdbc tag.
If you want your OFBiz tables in a special schema first create that schema in your database, then set the schema-name attribute on the datasource tag.
Find the “default” delegator near the top of the file and change the datasource-name attribute value in the group-map tag under it to the name of the data source you modified or created.

<datasource name="net-mysql"
            helper-class="org.ofbiz.entity.datasource.GenericHelperDAO"
            field-type-name="mysql"
            check-on-start="true"
            add-missing-on-start="true"
            check-pks-on-start="false"
            use-foreign-keys="true"
            join-style="ansi-no-parenthesis"
            alias-view-columns="false"
            drop-fk-use-foreign-key-keyword="true"
            table-type="InnoDB"
            character-set="latin1"
            collate="latin1_general_cs">
        <read-data reader-name="seed"/>
        <read-data reader-name="seed-initial"/>
        <read-data reader-name="demo"/>
        <read-data reader-name="ext"/>
        <inline-jdbc
                jdbc-driver="com.mysql.jdbc.Driver"
                jdbc-uri="jdbc:mysql://mysql1/ofbiz?autoReconnect=true"
                jdbc-username="ofbiz"
                jdbc-password="ZabPassw0rd"
                isolation-level="ReadCommitted"
                pool-minsize="2"
                pool-maxsize="250"/>
        <!-- <jndi-jdbc jndi-server-name="localjndi" jndi-name="java:/MySqlDataSource" isolation-level="Serializable"/> -->
    </datasource>

for example it was

<group-map group-name="org.ofbiz" datasource-name="localderby"/>
<group-map group-name="org.ofbiz.olap" datasource-name="localderbyolap"/>

changed to

<group-map group-name="org.ofbiz" datasource-name="net-mysql"/>
<group-map group-name="org.ofbiz.olap" datasource-name="net-mysql"/>
wget http://www.sai.msu.su/apache//ant/binaries/apache-ant-1.8.2-bin.zip
unzip apache-ant-1.8.2-bin.zip 
rm apache-ant-1.8.2-bin.zip 
mv apache-ant-1.8.2 ant
chown jboss:jboss apache-ofbiz-09.04
chown jboss:jboss ant
cd /opt/apache-ofbiz-09.04
ant run-install

change port 8080 to 8181 for example

framework/base/config/ofbiz-containers.xml

Filed under Uncategorized |

Leave a Reply

ofbiz setup with jboss

Posted on January 11th, 2011

1. download and unpack ofbiz archive.

wget http://www.sai.msu.su/apache//ofbiz/apache-ofbiz-09.04.zip
unzip -q apache-ofbiz-09.04.zip

2. copy mysql driver

 
cd /opt/apache-ofbiz-09.04/
cp /opt/jboss/server/all/lib/mysql-connector-java-5.1.13-bin.jar .

3. create mysql database for ofbiz.

export PATH=$PATH:/opt/csw/mysql5/bin
bash-3.00#  mysql -u root                        
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 61044
Server version: 5.0.90 Source distribution
 
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
 
mysql> 
mysql> create database ofbiz;
Query OK, 1 row affected (0.02 sec)
 
mysql>  create user 'ofbiz' IDENTIFIED BY 'ZabPassw0rd';
Query OK, 0 rows affected (0.05 sec)
mysql> GRANT ALL ON ofbiz.* TO ofbiz IDENTIFIED BY 'ZabPassw0rd';
Query OK, 0 rows affected (0.02 sec)

3. Edit config for database and change default database from derby to mysql.
vi /opt/apache-ofbiz-09.04//framework/entity/config/entityengine.xml
If using the default OFBiz transaction manager and connection pool, update the data URI, username and password in the inline-jdbc tag.
If you want your OFBiz tables in a special schema first create that schema in your database, then set the schema-name attribute on the datasource tag.
Find the “default” delegator near the top of the file and change the datasource-name attribute value in the group-map tag under it to the name of the data source you modified or created.

<datasource name="net-mysql"
            helper-class="org.ofbiz.entity.datasource.GenericHelperDAO"
            field-type-name="mysql"
            check-on-start="true"
            add-missing-on-start="true"
            check-pks-on-start="false"
            use-foreign-keys="true"
            join-style="ansi-no-parenthesis"
            alias-view-columns="false"
            drop-fk-use-foreign-key-keyword="true"
            table-type="InnoDB"
            character-set="latin1"
            collate="latin1_general_cs">
        <read-data reader-name="seed"/>
        <read-data reader-name="seed-initial"/>
        <read-data reader-name="demo"/>
        <read-data reader-name="ext"/>
        <inline-jdbc
                jdbc-driver="com.mysql.jdbc.Driver"
                jdbc-uri="jdbc:mysql://mysql1/ofbiz?autoReconnect=true"
                jdbc-username="ofbiz"
                jdbc-password="ZabPassw0rd"
                isolation-level="ReadCommitted"
                pool-minsize="2"
                pool-maxsize="250"/>
        <!-- <jndi-jdbc jndi-server-name="localjndi" jndi-name="java:/MySqlDataSource" isolation-level="Serializable"/> -->
    </datasource>

for example it was

<group-map group-name="org.ofbiz" datasource-name="localderby"/>
<group-map group-name="org.ofbiz.olap" datasource-name="localderbyolap"/>

changed to

<group-map group-name="org.ofbiz" datasource-name="net-mysql"/>
<group-map group-name="org.ofbiz.olap" datasource-name="net-mysql"/>
wget http://www.sai.msu.su/apache//ant/binaries/apache-ant-1.8.2-bin.zip
unzip apache-ant-1.8.2-bin.zip 
rm apache-ant-1.8.2-bin.zip 
mv apache-ant-1.8.2 ant
chown jboss:jboss apache-ofbiz-09.04
chown jboss:jboss ant
cd /opt/apache-ofbiz-09.04
ant run-install

change port 8080 to 8181 for

Filed under Uncategorized |

Leave a Reply

ofbiz setup with jboss

Posted on January 11th, 2011

1. download and unpack ofbiz archive.

wget http://www.sai.msu.su/apache//ofbiz/apache-ofbiz-09.04.zip
unzip -q apache-ofbiz-09.04.zip

2. copy mysql driver

 
cd /opt/apache-ofbiz-09.04/
cp /opt/jboss/server/all/lib/mysql-connector-java-5.1.13-bin.jar .

3. create mysql database for ofbiz.

export PATH=$PATH:/opt/csw/mysql5/bin
bash-3.00#  mysql -u root                        
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 61044
Server version: 5.0.90 Source distribution
 
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
 
mysql> 
mysql> create database ofbiz;
Query OK, 1 row affected (0.02 sec)
 
mysql>  create user 'ofbiz' IDENTIFIED BY 'ZabPassw0rd';
Query OK, 0 rows affected (0.05 sec)
mysql> GRANT ALL ON ofbiz.* TO ofbiz IDENTIFIED BY 'ZabPassw0rd';
Query OK, 0 rows affected (0.02 sec)

3. Edit config for database and change default database from derby to mysql.
vi /opt/apache-ofbiz-09.04//framework/entity/config/entityengine.xml
If using the default OFBiz transaction manager and connection pool, update the data URI, username and password in the inline-jdbc tag.
If you want your OFBiz tables in a special schema first create that schema in your database, then set the schema-name attribute on the datasource tag.
Find the “default” delegator near the top of the file and change the datasource-name attribute value in the group-map tag under it to the name of the data source you modified or created.

<datasource name="net-mysql"
            helper-class="org.ofbiz.entity.datasource.GenericHelperDAO"
            field-type-name="mysql"
            check-on-start="true"
            add-missing-on-start="true"
            check-pks-on-start="false"
            use-foreign-keys="true"
            join-style="ansi-no-parenthesis"
            alias-view-columns="false"
            drop-fk-use-foreign-key-keyword="true"
            table-type="InnoDB"
            character-set="latin1"
            collate="latin1_general_cs">
        <read-data reader-name="seed"/>
        <read-data reader-name="seed-initial"/>
        <read-data reader-name="demo"/>
        <read-data reader-name="ext"/>
        <inline-jdbc
                jdbc-driver="com.mysql.jdbc.Driver"
                jdbc-uri="jdbc:mysql://mysql1/ofbiz?autoReconnect=true"
                jdbc-username="ofbiz"
                jdbc-password="ZabPassw0rd"
                isolation-level="ReadCommitted"
                pool-minsize="2"
                pool-maxsize="250"/>
        <!-- <jndi-jdbc jndi-server-name="localjndi" jndi-name="java:/MySqlDataSource" isolation-level="Serializable"/> -->
    </datasource>

for example it was

<group-map group-name="org.ofbiz" datasource-name="localderby"/>
<group-map group-name="org.ofbiz.olap" datasource-name="localderbyolap"/>

changed to

<group-map group-name="org.ofbiz" datasource-name="net-mysql"/>
<group-map group-name="org.ofbiz.olap" datasource-name="net-mysql"/>

Filed under Uncategorized |

Leave a Reply

ofbiz setup with jboss

Posted on January 11th, 2011

1. download and unpack ofbiz archive.

wget http://www.sai.msu.su/apache//ofbiz/apache-ofbiz-09.04.zip
unzip -q apache-ofbiz-09.04.zip

2. copy mysql driver

 
cd /opt/apache-ofbiz-09.04/
cp /opt/jboss/server/all/lib/mysql-connector-java-5.1.13-bin.jar .

3. create mysql database for ofbiz.

export PATH=$PATH:/opt/csw/mysql5/bin
bash-3.00#  mysql -u root                        
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 61044
Server version: 5.0.90 Source distribution
 
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
 
mysql> 
mysql> create database ofbiz;
Query OK, 1 row affected (0.02 sec)
 
mysql>  create user 'ofbiz' IDENTIFIED BY 'ZabPassw0rd';
Query OK, 0 rows affected (0.05 sec)
mysql> GRANT ALL ON ofbiz.* TO ofbiz IDENTIFIED BY 'ZabPassw0rd';
Query OK, 0 rows affected (0.02 sec)

3. Edit config for database and change default database from derby to mysql.
vi /opt/apache-ofbiz-09.04//framework/entity/config/entityengine.xml
If using the default OFBiz transaction manager and connection pool, update the data URI, username and password in the inline-jdbc tag.
If you want your OFBiz tables in a special schema first create that schema in your database, then set the schema-name attribute on the datasource tag.
Find the “default” delegator near the top of the file and change the datasource-name attribute value in the group-map tag under it to the name of the data source you modified or created.

<datasource name="net-mysql"
            helper-class="org.ofbiz.entity.datasource.GenericHelperDAO"
            field-type-name="mysql"
            check-on-start="true"
            add-missing-on-start="true"
            check-pks-on-start="false"
            use-foreign-keys="true"
            join-style="ansi-no-parenthesis"
            alias-view-columns="false"
            drop-fk-use-foreign-key-keyword="true"
            table-type="InnoDB"
            character-set="latin1"
            collate="latin1_general_cs">
        <read-data reader-name="seed"/>
        <read-data reader-name="seed-initial"/>
        <read-data reader-name="demo"/>
        <read-data reader-name="ext"/>
        <inline-jdbc
                jdbc-driver="com.mysql.jdbc.Driver"
                jdbc-uri="jdbc:mysql://mysql1/ofbiz?autoReconnect=true"
                jdbc-username="ofbiz"
                jdbc-password="ZabPassw0rd"
                isolation-level="ReadCommitted"
                pool-minsize="2"
                pool-maxsize="250"/>
        <!-- <jndi-jdbc jndi-server-name="localjndi" jndi-name="java:/MySqlDataSource" isolation-level="Serializable"/> -->
    </datasource>

Filed under Uncategorized |

Leave a Reply

Private: ofbiz setup with jboss

Posted on January 11th, 2011

1. download and unpack ofbiz archive.

wget http://www.sai.msu.su/apache//ofbiz/apache-ofbiz-09.04.zip
unzip -q apache-ofbiz-09.04.zip

2. copy mysql driver

 
cd /opt/apache-ofbiz-09.04/
cp /opt/jboss/server/all/lib/mysql-connector-java-5.1.13-bin.jar .

3. create mysql database for ofbiz.

export PATH=$PATH:/opt/csw/mysql5/bin
bash-3.00#  mysql -u root                        
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 61044
Server version: 5.0.90 Source distribution
 
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
 
mysql> 
mysql> create database ofbiz;
Query OK, 1 row affected (0.02 sec)
 
mysql>  create user 'ofbiz' IDENTIFIED BY 'ZabPassw0rd';
Query OK, 0 rows affected (0.05 sec)
mysql> GRANT ALL ON ofbiz.* TO ofbiz IDENTIFIED BY 'ZabPassw0rd';
Query OK, 0 rows affected (0.02 sec)

3. Edit config for database and change default database from derby to mysql.
vi /opt/apache-ofbiz-09.04//framework/entity/config/entityengine.xml
If using the default OFBiz transaction manager and connection pool, update the data URI, username and password in the inline-jdbc tag.
If you want your OFBiz tables in a special schema first create that schema in your database, then set the schema-name attribute on the datasource tag.
Find the “default” delegator near the top of the file and change the datasource-name attribute value in the group-map tag under it to the name of the data source you modified or created.

<datasource name="net-mysql"
            helper-class="org.ofbiz.entity.datasource.GenericHelperDAO"
            field-type-name="mysql"
            check-on-start="true"
            add-missing-on-start="true"
            check-pks-on-start="false"
            use-foreign-keys="true"
            join-style="ansi-no-parenthesis"
            alias-view-columns="false"
            drop-fk-use-foreign-key-keyword="true"
            table-type="InnoDB"
            character-set="latin1"
            collate="latin1_general_cs">
        <read-data reader-name="seed"/>
        <read-data reader-name="seed-initial"/>
        <read-data reader-name="demo"/>
        <read-data reader-name="ext"/>
        <inline-jdbc
                jdbc-driver="com.mysql.jdbc.Driver"
                jdbc-uri="jdbc:mysql://mysql1/ofbiz?autoReconnect=true"
                jdbc-username="ofbiz"
                jdbc-password="ZabPassw0rd"
                isolation-level="ReadCommitted"
                pool-minsize="2"
                pool-maxsize="250"/>
        <!-- <jndi-jdbc jndi-server-name="localjndi" jndi-name="java:/MySqlDataSource" isolation-level="Serializable"/> -->
    </datasource>

for example it was

<group-map group-name="org.ofbiz" datasource-name="localderby"/>
<group-map group-name="org.ofbiz.olap" datasource-name="localderbyolap"/>

changed to

<group-map group-name="org.ofbiz" datasource-name="net-mysql"/>
<group-map group-name="org.ofbiz.olap" datasource-name="net-mysql"/>
wget http://www.sai.msu.su/apache//ant/binaries/apache-ant-1.8.2-bin.zip
unzip apache-ant-1.8.2-bin.zip 
rm apache-ant-1.8.2-bin.zip 
mv apache-ant-1.8.2 ant
chown jboss:jboss apache-ofbiz-09.04
chown jboss:jboss ant
cd /opt/apache-ofbiz-09.04
ant run-install

change port 8080 to 8181 for example
1099 to 1199

framework/base/config/ofbiz-containers.xml

Filed under Uncategorized |

Leave a Reply

ofbiz setup with jboss

Posted on January 11th, 2011

1. download and unpack ofbiz archive.

wget http://www.sai.msu.su/apache//ofbiz/apache-ofbiz-09.04.zip
unzip -q apache-ofbiz-09.04.zip

Filed under Uncategorized |

Leave a Reply

ofbiz setup with jboss

Posted on January 11th, 2011

1. download and unpack ofbiz archive.



Filed under Uncategorized |

Leave a Reply

NRP restore

Posted on December 28th, 2010

restoring database from snapshot taken 15.12.2010 to date of 17.12.2010 20:00 using archive logs.

ni5xip2:
create zone with /etc/nodename as ni5nrp2

vxdg import restoredg
vxvol -g restoredg startall
mkdir /zones/restore
mount -o mincache=direct /dev/vx/dsk/restoredg/restore /restore
zonecfg -z restore
chmod 700 /zones/restore
zoneadm -z restore install
zoneadm -z restore boot
zlogin -C restore
zoneadm -z restore halt
umount /zones/restore
vxdg deport restoredg

ni5nrp2:

vxdg import restoredg
vxvol -g restoredg startall
mount -o mincache=direct /dev/vx/dsk/restoredg/restore /restore

relocate all data to /restore/root
relocation map file: /root/bprestore-rename-oracle.txt

change /oracle to /restore/root/oracle
change /sapmnt to /restore/root/sapmnt
change /usr/sap to /restore/root/usr/sap
change /tmp/snapshot/oradg to /restore/root/oracle/NRP
#!/bin/sh
#
# restore oracle datafiles from backup 
#
if [ $# -ne 1 ]; then
   echo "usage: $0 file
fi
LOG=/dump/logs/oracle.log
RENAME=/root/bprestore-rename-oracle.txt
DATE="-s 12/15/2010 00:30:00 -e 12/15/2010 23:00:00"
OPTS="-L $LOG -l -R $RENAME -t 0 -w 0"
FILE=$1
/usr/openv/netbackup/bin/bprestore -C ni5nrp-backup $OPTS $DATE $FILE

1. restore archive logs

/usr/openv/netbackup/bin/bprestore -C ni5nrp-oracle -L /dump/logs/oracle.log -l -R /root/bprestore-rename-oracle.txt -t 17 -s 12/15/2010 00:30:00 -e 12/15/2010 23:00:00 -w 0 /oracle/NRP

2. restore sap system files

root@ni5nrp2:/root[1018]# /usr/openv/netbackup/bin/bprestore -C ni5nrp2 -L /dump/logs/oracle.log -l -R /root/bprestore-rename-oracle.txt -t 0 -s 12/15/2010 00:00:00 -e 12/15/2010 23:00:00 -w 0 /sapmnt

3. restore oracle data files

we restore only 1 dir at once to avoid blocking regular backups
/usr/openv/netbackup/bin/bprestore -C ni5nrp-backup -L /dump/logs/oracle.log -l -R /root/bprestore-rename-oracle.txt -t 0 -s 12/15/2010 00:00:00 -e 12/15/2010 23:00:00 -w 0 /tmp/snapshot/oradg/sapdata1
/usr/openv/netbackup/bin/bprestore -C ni5nrp-backup -L /dump/logs/oracle.log -l -R /root/bprestore-rename-oracle.txt -t 0 -s 12/15/2010 00:00:00 -e 12/15/2010 23:00:00 -w 0 /tmp/snapshot/oradg/sapdata1[12]

next proceed with
sapdata6*
mirrlog*
origlog*
saptrace
sapbackup
sapreorg
sapcheck
saparch/cntrl – one of the control files – FAILED

Deport disk group

root@ni5nrp2:/[1071]# umount /restore
root@ni5nrp2:/[1072]# vxdg deport restoredg

import in xip2

bash-3.00# vxdg import restoredg
bash-3.00# vxvol -g restoredg startall
bash-3.00# mount -F vxfs -o mincache=direct  /dev/vx/dsk/restoredg/restore /zones/restore
bash-3.00# zoneadm -z restore boot

Login to zone and recover the database
copy missing control file

bash-3.00$ mkdir /oracle/NRP/saparch/cntrl
bash-3.00$ cp /oracle/NRP/sapdata1/cntrl/cntrlNRP.dbf /oracle/NRP/saparch/cntrl

next, recover the database

bash-3.00$ sqlplus /nolog
 
SQL*Plus: Release 9.2.0.8.0 - Production on Mon Dec 20 17:38:39 2010
 
Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
 
SQL> connect / as sysdba
Connected to an idle instance.
SQL> startup mount
ORACLE instance started.
 
Total System Global Area 4.8612E+10 bytes
Fixed Size		     739704 bytes
Variable Size		 7650410496 bytes
Database Buffers	 4.0960E+10 bytes
Redo Buffers		    1335296 bytes
Database mounted.
SQL> recover database until time '2010-12-15:09:00:00' using backup controlfile;
ORA-00279: change 85748906894 generated at 12/15/2010 01:52:24 needed for
thread 1
ORA-00289: suggestion : /oracle/NRP/saparch/oraarch/NRParch1_1442225.dbf
ORA-00280: change 85748906894 for thread 1 is in sequence #1442225
 
 
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
auto
ORA-00279: change 85749105304 generated at 12/15/2010 01:54:17 needed for
thread 1
ORA-00289: suggestion : /oracle/NRP/saparch/oraarch/NRParch1_1442226.dbf
ORA-00280: change 85749105304 for thread 1 is in sequence #1442226
ORA-00278: log file '/oracle/NRP/saparch/oraarch/NRParch1_1442225.dbf' no
longer needed for this recovery
 
 
...
...
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: '/oracle/NRP/sapdata4/system_1/system.data1'
 
 
ORA-01112: media recovery not started
 
SQL>
startup mount
alter database backup controlfile to trace
shutdown immediate

then go to /oracle/NRP/saptrace/usertrace and find the last trace file.

then copy it to control.sql
edit and remove first line until first sql sequence.

then connect to oracle
and @control.sql
then shutdown
and startup

SQL> @control.sql
ORACLE instance started.
 
Total System Global Area 4.8612E+10 bytes
Fixed Size                   739704 bytes
Variable Size            7650410496 bytes
Database Buffers         4.0960E+10 bytes
Redo Buffers                1335296 bytes
 
Control file created.
 
SP2-0734: unknown command beginning "Recovery i..." - rest of line ignored.
SP2-0734: unknown command beginning "or if the ..." - rest of line ignored.
Media recovery complete.
SP2-0734: unknown command beginning "All logs n..." - rest of line ignored.
 
System altered.
 
SP2-0734: unknown command beginning "Database c..." - rest of line ignored.
 
Database altered.
 
SP2-0734: unknown command beginning "No tempfil..." - rest of line ignored.
SP2-0158: unknown SET option "#2."
SP2-0734: unknown command beginning "The follow..." - rest of line ignored.
SP2-0734: unknown command beginning "to open th..." - rest of line ignored.
SP2-0734: unknown command beginning "The conten..." - rest of line ignored.
SP2-0734: unknown command beginning "be invalid..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
SP2-0734: unknown command beginning "WARNING! T..." - rest of line ignored.
SP2-0734: unknown command beginning "the datafi..." - rest of line ignored.
SP2-0734: unknown command beginning "commands p..." - rest of line ignored.
SP2-0734: unknown command beginning "Another re..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
SP2-0734: unknown command beginning "successful..." - rest of line ignored.
ORA-01081: cannot start already-running ORACLE - shut it down first
CREATE CONTROLFILE REUSE DATABASE "NRP" RESETLOGS  ARCHIVELOG
*
ERROR at line 1:
ORA-01503: CREATE CONTROLFILE failed
ORA-01100: database already mounted
 
 
SP2-0734: unknown command beginning "Recovery i..." - rest of line ignored.
SP2-0734: unknown command beginning "or if the ..." - rest of line ignored.
ORA-00283: recovery session canceled due to errors
ORA-01124: cannot recover data file 1 - file is in use or recovery
ORA-01110: data file 1: '/oracle/NRP/sapdata4/system_1/system.data1'
 
 
SP2-0734: unknown command beginning "Database c..." - rest of line ignored.
ALTER DATABASE OPEN RESETLOGS
*
ERROR at line 1:
ORA-01531: a database already open by the instance
 
 
SP2-0734: unknown command beginning "No tempfil..." - rest of line ignored.
SQL> ALTER DATABASE OPEN RESETLOGS;
ALTER DATABASE OPEN RESETLOGS
*
ERROR at line 1:
ORA-01531: a database already open by the instance
 
 
SQL> shutdown 
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
 
Total System Global Area 4.8612E+10 bytes
Fixed Size                   739704 bytes
Variable Size            7650410496 bytes
Database Buffers         4.0960E+10 bytes
Redo Buffers                1335296 bytes
Database mounted.
Database opened.
SQL>

http://www.dadbm.com/2009/09/oracle-complete-recovery-using-backup-control-file/

That SQL clause tells Oracle DB «My control files are old, they are from backup => thus, they are not synchronized with my oneline redologs => thus, complete recovery is not possible.» As a result Oracle flags your current control files as backup ones making impossible complete DB recovery. So in that case you would NOT be able to finish your recovery process as you can not open the database. RESETLOGS option does not work complaining that SYSTEM tablespace file is not old enough. You are stuck!

I shoulda try recover without “backup control file” using the same snapshot… because in snapshot control files are in sync with online redologs…

When trying to recover with no “using backup controlfile”

SQL> connect /as sysdba
Connected to an idle instance.
SQL> startup mount
ORACLE instance started.
 
Total System Global Area 4.8612E+10 bytes
Fixed Size                   739704 bytes
Variable Size            7650410496 bytes
Database Buffers         4.0960E+10 bytes
Redo Buffers                1335296 bytes
Database mounted.
SQL> recover database until time '2010-12-19:03:00:00'
ORA-00283: recovery session canceled due to errors
ORA-01122: database file 3 failed verification check
ORA-01110: data file 3: '/oracle/NRP/sapdata5/temp_1/temp.data1'
ORA-01207: file is more recent than controlfile - old controlfile
 
 
SQL>

restore backed up control files (replace date as needed)

/usr/openv/netbackup/bin/bprestore -A -C ni5nrp2 -L /dump/logs/oracle-restore.log -l -R /root/bprestore-rename-oracle.txt -t 0 -s 12/22/2010 00:00:00 -e 12/28/2010 23:00:00  /oracle/NRP/sapbackup/control_files

copy backed up control file

bash-3.00$ cp /oracle/NRP/sapbackup/control_files/2010-12-28:04:30:00.dbf  /oracle/NRP/saparch/cntrl/cntrlNRP.dbf
bash-3.00$ cp /oracle/NRP/sapdata1/cntrl/cntrlNRP.dbf /oracle/NRP/sapdata1/cntrl/cntrlNRP.dbf_old
bash-3.00$ cp /oracle/NRP/saparch/cntrl/cntrlNRP.dbf !:1
cp /oracle/NRP/saparch/cntrl/cntrlNRP.dbf /oracle/NRP/sapdata1/cntrl/cntrlNRP.dbf
bash-3.00$ cp !$ /oracle/NRP/origlogA/cntrl/
cp /oracle/NRP/sapdata1/cntrl/cntrlNRP.dbf /oracle/NRP/origlogA/cntrl/

recover database

bash-3.00$ sqlplus /nolog
 
SQL*Plus: Release 9.2.0.8.0 - Production on Tue Dec 28 15:46:52 2010
 
Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
 
SQL> connect / as sysdba
Connected to an idle instance.
SQL> startup mount
ORACLE instance started.
 
Total System Global Area 4.8612E+10 bytes
Fixed Size                   739704 bytes
Variable Size            7650410496 bytes
Database Buffers         4.0960E+10 bytes
Redo Buffers                1335296 bytes
Database mounted.
SQL> recover database until time '2010-12-21:03:00:00'; 
ORA-00283: recovery session canceled due to errors
ORA-01610: recovery using the BACKUP CONTROLFILE option must be done
 
 
SQL> recover database until time '2010-12-21:03:00:00' using backup controlfile;
ORA-00279: change 86411631254 generated at 12/21/2010 01:50:48 needed for
thread 1
ORA-00289: suggestion : /oracle/NRP/saparch/oraarch/NRParch1_1447314.dbf
ORA-00280: change 86411631254 for thread 1 is in sequence #1447314
 
 
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}

Filed under Uncategorized |

Leave a Reply

NRP restore

Posted on December 28th, 2010

restoring database from snapshot taken 15.12.2010 to date of 17.12.2010 20:00 using archive logs.

ni5xip2:
create zone with /etc/nodename as ni5nrp2

vxdg import restoredg
vxvol -g restoredg startall
mkdir /zones/restore
mount -o mincache=direct /dev/vx/dsk/restoredg/restore /restore
zonecfg -z restore
chmod 700 /zones/restore
zoneadm -z restore install
zoneadm -z restore boot
zlogin -C restore
zoneadm -z restore halt
umount /zones/restore
vxdg deport restoredg

ni5nrp2:

vxdg import restoredg
vxvol -g restoredg startall
mount -o mincache=direct /dev/vx/dsk/restoredg/restore /restore

relocate all data to /restore/root
relocation map file: /root/bprestore-rename-oracle.txt

change /oracle to /restore/root/oracle
change /sapmnt to /restore/root/sapmnt
change /usr/sap to /restore/root/usr/sap
change /tmp/snapshot/oradg to /restore/root/oracle/NRP
#!/bin/sh
#
# restore oracle datafiles from backup 
#
if [ $# -ne 1 ]; then
   echo "usage: $0 file
fi
LOG=/dump/logs/oracle.log
RENAME=/root/bprestore-rename-oracle.txt
DATE="-s 12/15/2010 00:30:00 -e 12/15/2010 23:00:00"
OPTS="-L $LOG -l -R $RENAME -t 0 -w 0"
FILE=$1
/usr/openv/netbackup/bin/bprestore -C ni5nrp-backup $OPTS $DATE $FILE

1. restore archive logs

/usr/openv/netbackup/bin/bprestore -C ni5nrp-oracle -L /dump/logs/oracle.log -l -R /root/bprestore-rename-oracle.txt -t 17 -s 12/15/2010 00:30:00 -e 12/15/2010 23:00:00 -w 0 /oracle/NRP

2. restore sap system files

root@ni5nrp2:/root[1018]# /usr/openv/netbackup/bin/bprestore -C ni5nrp2 -L /dump/logs/oracle.log -l -R /root/bprestore-rename-oracle.txt -t 0 -s 12/15/2010 00:00:00 -e 12/15/2010 23:00:00 -w 0 /sapmnt

3. restore oracle data files

we restore only 1 dir at once to avoid blocking regular backups
/usr/openv/netbackup/bin/bprestore -C ni5nrp-backup -L /dump/logs/oracle.log -l -R /root/bprestore-rename-oracle.txt -t 0 -s 12/15/2010 00:00:00 -e 12/15/2010 23:00:00 -w 0 /tmp/snapshot/oradg/sapdata1
/usr/openv/netbackup/bin/bprestore -C ni5nrp-backup -L /dump/logs/oracle.log -l -R /root/bprestore-rename-oracle.txt -t 0 -s 12/15/2010 00:00:00 -e 12/15/2010 23:00:00 -w 0 /tmp/snapshot/oradg/sapdata1[12]

next proceed with
sapdata6*
mirrlog*
origlog*
saptrace
sapbackup
sapreorg
sapcheck
saparch/cntrl – one of the control files – FAILED

Deport disk group

root@ni5nrp2:/[1071]# umount /restore
root@ni5nrp2:/[1072]# vxdg deport restoredg

import in xip2

bash-3.00# vxdg import restoredg
bash-3.00# vxvol -g restoredg startall
bash-3.00# mount -F vxfs -o mincache=direct  /dev/vx/dsk/restoredg/restore /zones/restore
bash-3.00# zoneadm -z restore boot

Login to zone and recover the database
copy missing control file

bash-3.00$ mkdir /oracle/NRP/saparch/cntrl
bash-3.00$ cp /oracle/NRP/sapdata1/cntrl/cntrlNRP.dbf /oracle/NRP/saparch/cntrl

next, recover the database

bash-3.00$ sqlplus /nolog
 
SQL*Plus: Release 9.2.0.8.0 - Production on Mon Dec 20 17:38:39 2010
 
Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
 
SQL> connect / as sysdba
Connected to an idle instance.
SQL> startup mount
ORACLE instance started.
 
Total System Global Area 4.8612E+10 bytes
Fixed Size		     739704 bytes
Variable Size		 7650410496 bytes
Database Buffers	 4.0960E+10 bytes
Redo Buffers		    1335296 bytes
Database mounted.
SQL> recover database until time '2010-12-15:09:00:00' using backup controlfile;
ORA-00279: change 85748906894 generated at 12/15/2010 01:52:24 needed for
thread 1
ORA-00289: suggestion : /oracle/NRP/saparch/oraarch/NRParch1_1442225.dbf
ORA-00280: change 85748906894 for thread 1 is in sequence #1442225
 
 
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
auto
ORA-00279: change 85749105304 generated at 12/15/2010 01:54:17 needed for
thread 1
ORA-00289: suggestion : /oracle/NRP/saparch/oraarch/NRParch1_1442226.dbf
ORA-00280: change 85749105304 for thread 1 is in sequence #1442226
ORA-00278: log file '/oracle/NRP/saparch/oraarch/NRParch1_1442225.dbf' no
longer needed for this recovery
 
 
...
...
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: '/oracle/NRP/sapdata4/system_1/system.data1'
 
 
ORA-01112: media recovery not started
 
SQL>
startup mount
alter database backup controlfile to trace
shutdown immediate

then go to /oracle/NRP/saptrace/usertrace and find the last trace file.

then copy it to control.sql
edit and remove first line until first sql sequence.

then connect to oracle
and @control.sql
then shutdown
and startup

SQL> @control.sql
ORACLE instance started.
 
Total System Global Area 4.8612E+10 bytes
Fixed Size                   739704 bytes
Variable Size            7650410496 bytes
Database Buffers         4.0960E+10 bytes
Redo Buffers                1335296 bytes
 
Control file created.
 
SP2-0734: unknown command beginning "Recovery i..." - rest of line ignored.
SP2-0734: unknown command beginning "or if the ..." - rest of line ignored.
Media recovery complete.
SP2-0734: unknown command beginning "All logs n..." - rest of line ignored.
 
System altered.
 
SP2-0734: unknown command beginning "Database c..." - rest of line ignored.
 
Database altered.
 
SP2-0734: unknown command beginning "No tempfil..." - rest of line ignored.
SP2-0158: unknown SET option "#2."
SP2-0734: unknown command beginning "The follow..." - rest of line ignore