Change the VERITAS Cluster Server (VCS) engine log size

Friday, March 26, 2010 at 7:12 AM
# halog -info
Log on csvcs3: path = /var/VRTSvcs/log/engine_A.log maxsize = 33554432 bytes tags = ABCDE
Open the VCS database:
#haconf -makerw
Change the size of the log:
# haclus -modify LogSize 2222222
Verify that the logsize has changed:
# halog -info
Log on csvcs3: path = /var/VRTSvcs/log/engine_A.log maxsize = 2222222 bytes tags = ABCDE
Close the VCS database and add the changes to the main.cf:
#haconf -dump -makero

SUN FIRE 15k / 25k Administration

at 7:04 AM
SUN FIRE 15k / 25k Administration UNIX Admin
Where will be idprom binary file will be located for domain in sc ?
/var/opt/SUNWSMS/SMS1.6/data/domain_id/ idprom.image
Where will be console information of domains can be located in sc ?
/var/opt/SUNWSMS/SMS1.6/adm/domain_d/console
Post ,dump and syslog information also located in this parent directory
After completing firmware upgrade of sc the sms not starting. What could be reason behind it?
1. The flash update might not be done correctly. You have to use different image files for fp0 and fp1. Reapply the flashupdate with correct image files
2. We have to issue reset-all command at the OBP of sc in order to recognize the new firmware version.
How to obtain device status connected to a IO board. Lets say for IO1 ?
Sc0:>Showdevices IO1
How to power on the domain Lets say A?
Sc0:> setkeyswitch –d A on
How to power off the domain Lets say A ?
Sc0:> setkeyswitch –d A off
How to make the domain A to standby ?
Sc0:>setkeyswitch –d A standby
What will happen when the domain is at standby ?
The domain be down but the boards will remain in powered on state.
How to check the keyswitch status for domain A ?
Showkeyswitch –d A
How to check the Openboot Prom variable of Domains from SC ?
Showobpparams –d A

How to set the Openboot Prom variable of Domains from SC ?
Setobpparams –d A param=value
What is degraded mode ?
If boards are using only one center plane then its called degraded mode. In normal mode all extension boards will use both center planes
How to set to degraded mode ?
Setbus –c CS0
How to set to normal mode ?
Setbus –c CS0,CS1
How to check the bus status on all domains ?
showbus
How to power on the board from sc ?
Poweron SB0
How to power off the board from sc ?
Poweroff SB0
Is it possible to power off the domain with poweroff command while domain is active ?
No. The poweroff command will fail. To shutdown domain you have to issue command setkeyswitch –d A off
SMS supports how many types of blacklists ? What are they ?
Supports three types of blacklists
1. Platform blacklists -> /etc/opt/SUNWSMS/config/platform/balcklist
2. Domain blacklists -> /etc/opt/SUNWSMS/config/domain_id/blacklist
3. ASR(Automatic System Recovery ) Black lists
How to check the blacklists of Domain/Platform ?
Showcomponent
System Board SB0 is causing problems. Currently its part of the domain A. How to define a system board ( ex: SB0 ) in a blacklist?
Disablecomponent –d A SB0
How to remove the board from blacklist of Domain and Platform ?
Enablecomponent –d A SB0
Is it possible to blacklist few components in Board and use rest of the components ?
Yes
How to check the status of all components status?
Showchs
How to reset the status of the components that has been set by ASR ?
setchs
What is the function of MAN ?
MAN ( MAnagement Network ) maintains private point-to-point network connections between the SC's and each domain .
What is I1 network ?
The point-to-point network between domains and SC is called I1 network
What is I2 network ?
The point-to-point network between SC to SC is called I2 network
What type of network name would be plumbed on SC for I1 network ?
Scman0
What type of network name would be plumbed on SC for I2 network ?
Scman1
Does IP forwarding enabled in MAN ?
No. IP forwarding will be disabled by MAN
Lists few services that MAN network will be used for between sc and domains?
1. Domain consoles
2. Message logging
3. Dynamic Reconfiguration
4. System controller heartbeats
5. Network boot/Solaris installs from sc to domains
What is pcd ?
Platform configuration database
What is the command used to show boards status ?

showboards

What is the command used to show devices connected to boards ?

Showdevices

What is the command used to show environment information ?

showenvironment

Which is the failover daemon ?

Fomd ( Failover Monitoring Daemon)

How to check the status of the failover ?

showfailover

How to check the detailed information about failover with each component status ?

Showfailover -v

How to check the role of the current sc ?

Showfailover -r

How to enable failover ?

Setfailover on

How to disable failover ?

Setfailover off

How to do manual failover ?

Setfailover force

Do the files propagate when they deleted on spare sc ?

No. The file propagation is main-centric. Only if files are modified on main sc then only they will be propagated. If required we have to manually propagate all files from main to spare.

How to forcibly propagate all the files from main to spare sc ?

Setdatasync backup

Through which network the file propagation will takes place ?

I2 network.

Does the network configuration Automatically propagates ?

No. we have to manually configure network using smsconfig -m

What is the HASram ? What's the function of it?

Its High-Availability Sram. This is used for communication between sc's apart from i2 network for redundancy.

How to check the data synchronization between two sc's ?

showdatasync

How to manually push specific file/directory from main to spare sc?

Setdatasync push filename

How to add a specific file/directory to the automatic push profile ?

Setdatasync schedule filename

How to remove a specific file/directory from the automatic push ?

Setdatsync cancel filename

What will happen to Main sc once the spare sc takes over the main role ?

Main sc will be reset by spare sc and after rebooting the main sc role becomes spare

SPARCstorage Array

Wednesday, March 17, 2010 at 3:46 AM
SPARC storage Array disk replacement

# ssaadm stop /dev/rdsk/c2t4d4s2
# ssaadm -v display /dev/rdsk/c2t4d4s2
- Getting state information from SPARCstorage Array
/devices/sbus@6,0/SUNW,soc@d,10000/SUNW,pln@b0000000,78a3e7:ctlr
- Verifying Controller is healthy
Controller is a:SUN SSA210
- Reading state of each drive
- Reading vendor's information and capacity from each drive

DEVICE PROPERTIES for device /dev/rdsk/c2t4d4s2 SCSI Port 4 Target 4
Status: Drive Spun Down

Engineer swapped disk. This resulted in the following errors in /var/adm/messages...
...
Dec 17 10:50:06 server1 unix: WARNING: /sbus@6,0/SUNW,soc@d,10000/SUNW,pln@b0000000,78a3e7/ssd@4,4 (ssd164):^M^M
Dec 17 10:50:06 server1 unix: disk not responding to selection^M^M
Dec 17 10:55:06 server1 unix: WARNING: /sbus@6,0/SUNW,soc@d,10000/SUNW,pln@b0000000,78a3e7/ssd@4,4 (ssd164):^M^M
Dec 17 10:55:06 server1 unix: disk not responding to selection^M^M

Start access to disk...
# ssaadm start /dev/rdsk/c2t4d4s2
# ssaadm -v display /dev/rdsk/c2t4d4s2
- Getting state information from SPARCstorage Array
/devices/sbus@6,0/SUNW,soc@d,10000/SUNW,pln@b0000000,78a3e7:ctlr
- Verifying Controller is healthy
Controller is a:SUN SSA210
- Reading state of each drive
- Reading vendor's information and capacity from each drive

DEVICE PROPERTIES for device /dev/rdsk/c2t4d4s2 SCSI Port 4 Target 4
Status: O.K.
Vendor: FUJITSU
Product ID: M2954ESP SUN4.2G
Firmware Rev: 2545
Serial Num: 9649603001
Unformatted Capacity: 4094.297 MByte
Fast Writes: Disabled

DISPLAY ISSUE

Monday, March 8, 2010 at 5:50 AM

# export DISPLAY=152.17.49.131:0.0
# echo $DISPLAY
152.17.49.131:0.0
# ssh -X server1

DISPLAY ISSUE

# echo $DISPLAY
localhost:10.0
# /usr/openwin/bin/xclock

You must have a X11 emulator working.


Public key is deployed for root, not for user1.
You can deployed if necessary :
Su – user1
Mkdir .ssh
Exit
Cp /root/.ssh/authorized_keys /home/user1/.ssh

SSH, SFTP issue

Friday, February 19, 2010 at 9:28 AM
  1. If 'configure' can't find ssl, change the configure command to:
    ./configure --prefix=/usr --with-ssl-dir=\ /usr/local/ssl --with-tcp-wrappers 

  2. Sometimes compilation of openssh bombs out with the following error messages:
    sshd.c:1660: error: storage size of req isn't known sshd.c:1663: warning: implicit declaration of function fromhost sshd.c:1660: warning: unused variable req
  3. Another frequent problem is that configure bombs out with the message:
    configure: error: Your OpenSSL headers do not match your library 
    The easiest solution is to go to your openssl directory and type:
    make install cd include/openssl cp * /usr/include/openssl/ cp * /usr/local/ssl/include/openssl/ 
    Compile openssh, using the following command line, and substitute the appropriate path after --with-ssl-dir :
    ./configure --prefix=/usr --with-tcp-wrappers \ --with-ssl-dir=/usr/local/ssl make make install 
  4. If it says:
    Connecting to carbon...  OpenSSL version mismatch. Built against 90603f, you have 90607f  Couldn't read packet: Connection reset by peer 
    Get rid of your old libcrypto libraries in /usr/lib and rerun ldconfig:
    cd /usr/local/ssl/lib cp * /usr/lib/ ldconfig 
    Then rebuild and reinstall openssh (make clean; make; make install), and restart sshd.
  5. Sometimes ssh has the following connection problem:
    On client
    Request for subsystem 'sftp' failed on channel 0 Couldn't read packet: Connection reset by peer
    On server
    sshd[7079]: Accepted password for tjnelson from 63.127.146.196 port 32777 ssh2 sshd[7079]: subsystem request for sftp sshd[7079]: error: subsystem: cannot stat /usr/local/libexec/sftp-server:  No such file or directory sshd[7079]: subsystem request for sftp failed, subsystem not found
    To solve this problem, do the following:
    Edit /etc/ssh/sshd_config and add:
    Subsystem       sftp    /usr/local/libexec/sftp-server Protocol 2
    Create /usr/libexec and make a link to sftp-server. For some reason sshd sometimes looks there instead of the path specified in its configuration file.
    mkdir /usr/libexec cd /usr/libexec ln -s /usr/lib/ssh/sftp-server sftp-server 
    Stop and start sshd (don't restart, because the port takes a while to close).
    cd /etc/rc.d ./sshd stop ./sshd restart 
  6. If it says:
    checking for socklen_t equivalent... configure:  error: Cannot find a type to use in place of socklen_t
    this means your computer is totally screwed, and you should take it out back and shoot it.
  7. If it says:
    sshd re-exec requires execution with an absolute path
    The startup script needs to be modified to include the full path of sshd.
  8. If it says:
    Permission denied (publickey,keyboard-interactive).
    This can happen after an upgrade when you change from PAM to password authentication. Edit /etc/ssh/sshd_conf and change PasswordAuthentication to yes.

NISplus Client add to master server

Wednesday, February 3, 2010 at 5:21 AM
nisclient -c -v -o client-ser

Nisclient server:

nisclient -i -h master -a 152.9.101.17 -d domain.as

client-ser:/usr/bin# /usr/lib/nis/nisclient -i -h master -a 152.9.101.17 -d domain.as
******** ******** WARNING ******** ********
NIS+ might not be supported in a future release. Tools to aid
the migration from NIS+ to LDAP are available in the Solaris 9
operating environment. For more information, visit
http://www.sun.com/directory/nisplus/transition.html
******** ******** ******* ******** ********
Initializing client client-ser for domain "domain.as.".
Once initialization is done, you will need to reboot your
machine.

Do you want to continue? (type 'y' to continue, 'n' to exit this script) y

setting up domain information "domain.as."...

setting up the name service switch information...


Client initialization completed!!
Please reboot your machine for changes to take effect.
client-ser:/usr/bin#

master # nisclient -c -v -o client-ser

You will be adding DES credentials in domain domain.as. for
client-ser

** nisclient will overwrite existing entries in the credential
** table for hosts and users specified above.

Do you want to continue? (type 'y' to continue, 'n' to exit this script) y

checking domain.as. domain...

checking cred.org_dir.domain.as. permission...

checking info type for client-ser...
**ERROR: invalid name "client-ser".
It is neither an host nor an user name.
master #

Problem description: - ./explorer[76]: HOSTID: is read only

Thursday, October 8, 2009 at 4:53 AM

Problem description: - ./explorer[76]: HOSTID: is read only

#pwd

/opt/SUNWexplo/bin

# ./explorer

./explorer[76]: HOSTID: is read only

Solution: -

# find / -name exp_main

/opt/SUNWexplo/lib/exp_main

# file /opt/SUNWexplo/lib/exp_main

/opt/SUNWexplo/lib/exp_main: executable /bin/ksh script


# grep -i hostid /opt/SUNWexplo/lib/exp_main

# Save HOSTID

HOSTID=`hostid`

export HOSTID EXP_MAIN_VERSION

EXP_SERIAL=`eval echo $"EXP_SERIAL_${HOSTID}"`

# Translate %H to hostid

EXP_SUBJECT=`echo ${EXP_SUBJECT} | sed -e "s~%H~${HOSTID}~g"`

echo "Hostid: \c" >>${EXP_TARGET}/README

hostid >>${EXP_TARGET}/README

EXP_ID="explorer.${HOSTID}.`uname -n`-`date -u +\%Y.\%m.\%d.\%H.\%M`"

eval "EXP_SERIAL_${HOSTID}"=${exp_parms[44]}

Take backup

# cp -p /opt/SUNWexplo/lib/exp_main /opt/SUNWexplo/lib/exp_main.20090609.MUR

Comment below entry to solve this issue and then re-run the explorer script.

# vi /opt/SUNWexplo/lib/exp_main

HOSTID=`hostid`

Solaris | Powered by Blogger | Entries (RSS) | Comments (RSS) | Designed by MB Web Design | XML Coded By Cahayabiru.com