Showing posts with label Solaris. Show all posts
Showing posts with label Solaris. Show all posts

Wednesday, June 22, 2011

Live upgrade of ZFS root file system

1.       Create a new boot environment to patch or uprade
# lucreate –n newBE

2.       Upgrade the new Boot environment
# luupgrade –u –n newBE –s /cdrom

3.       Activate the new Boot Environment
# luactivate newBE

4.       Boot from new boot environment
# init 6

Live upgrade of Veritas mirrored system

System had two disks c1t0d0 and c1t1d0, so first break mirror and remove disk c1t1d0 from disk group.

1.       # vxplex -g rootdg dis rootvol-02 swapvol-02 home-02
2.       # vxdg -g rootdg -k rmdisk rootdg02
3.       Create a file autoreg with entry “auto_reg=disable”
4.       Modify vxlustart script and mention auto registration disable by putting –k /tmp/autoreg into command running luupgrade otherwise it will fail.
5.       ./vxlustart -u 5.10 -d c1t1d0s2  -g rootdg -s /cdrom
6.       ./vxlufinish –u 5.10 –g <new root disk group name>
7.       shutdown –y –g0 –i6
8.       After few reboots system will come up with new Boot environment, mirror the rootdisk and remove old rootdg.

Friday, October 29, 2010

How to take snapshot in M4000 for oracle support

To take snapshot for Oracle support.
1. Go to XSCF and login using admin account.
2. Connect the USB drive (FAT 32) in the Service Processor
3. XSCF> snapshot -d usb0

Copy the zip file from USB to Sun FTP site.

Tuesday, September 28, 2010

How to configure XCSF network in M4000

1. To assign an IP address to XSCF interface
XSCF> setnetwork xscf#1-lan#0 -m 255.255.255.0 192.168.0.10
2. Enable the specified network interface
XSCF> setnetwork -c up
3. XSCF> shownetwork
4. Add route
XSCF> setroute -c add -n -m -g interface
5. XSCF> applynetwork
6. To set Service Processor Host Name and DNS name
XSCF> sethostname xscf#0
7. To set Service Processor's DNS Name Server
XSCF> setnameserver ip_address
8. To enable Service Processor HTTPS service
XSCF> sethttps -c enable
9. To enable Service Processor SSH service
XSCF> setssh -c enable
XSCF> setssh -c genhostkey

How to configure XSCF in M4000

1. login to XSCF console
2. setpasswordpolicy

Thursday, September 23, 2010

How to configure DSCP Network in M4000

XSCF> setdscp
DSCP network [0.0.0.0 ] > 10.1.1.0

DSCP netmask [255.0.0.0 ] > 255.255.255.0

XSCF address [10.1.1.1 ] > [Enter]
Domain #00 address [10.1.1.2] > [Enter]
.
.
.
Commit these changes to the database? [y|n]:y

XSCF> rebootxscf

How to verify DSCP is configured on M4000

To Display DSCP information.
XSCF> showdscp

DSCP Configuration:

Network: 192.168.1.0
Netmask: 255.255.255.0

Location      Address
----------   ---------
XSCF         192.168.1.1
Domain #00   192.168.1.2
Domain #01   192.168.1.3
Domain #02   192.168.1.4
Domain #03   192.168.1.5

If it is not configured showdscp output will state this:
XSCF> showdscp
ERROR: DSCP is not configured. Please use setdscp.

Friday, September 3, 2010

First time configuration of M4000

1. connect laptop to serial port
2. Open Tera Term
3. Set the key on the operator panel to the service position (wrench icon)
4. Turn on the power
5. when login prompt appears enter "default" for the login name
6. Set the key on the operator panel to the Locked position
7. Press the RETURN key
8. Wait for 5 seconds and then set the key on the operator panel to the service position
9. Press the RETURN key
10. Confirm that the XSCF shell prompt is displayed

Saturday, July 28, 2007

Configuring an Emulex HBA

1. Install the SUN StorEdge SAN 4.4.x pkg

2. Reboot the system.

3. Check the configuration before SAN configuration.
# cfgadm -o show_FCP_dev -al

4. Configure SAN
# cfgadm -c configure c3

5. Verify configuration
# cfgadm -al

Verify that "/etc/cfg/fp/fabric_WWN_map" contains all fabric devices required.

Tuesday, May 15, 2007

Thursday, August 17, 2006

How to use an ISO image to install a product.

1. SCP/FTP file to the system

2. change to directory where iso is located.

3. # lofiadm -a `pwd` /VRTS41.iso
output from above command will be like /dev/lofi/1

4. mount -F hsfs /dev/lofi/1 /mnt

iso should be available at /mnt now.

Wednesday, March 29, 2006

How to check Network speed in Solaris 10

dladm is command for all data link adminsitration work

#dladm show-dev < will show all interface in system>

#dladm show-link

Wednesday, June 29, 2005

How to move files using rsync

To move files between two systems from system1 do following

#rsync /home/test system2:/home

Friday, April 16, 2004

How to change hostname and IP address of Solaris 10 System

Change has to be made at following places.

1. /etc/hosts
2. /etc/nodename
3. /etc/hostname.
4. /etc/defaultrouter

Reboot the system after change.

Saturday, March 15, 2003

How to add swap space in Solaris

1. Create a swap file using mkfile
/usr/sbin/mkfile 1024m /swap

2. Tell system to start using swap file.
/usr/sbin/swap -a /swap

3. Do swap -l to verify all swp available in system.