Archive for January, 2010

Create/Delete State Database Replicas

1. Creating the first state database replica # metadb -a -f c0t1d0s7 # metadb flags         first blk      block count … a      u         16             8192            /dev/dsk/c0t1d0s7 Note: The -a option adds the additional state database replica to the system, and the -f option forces the creation of the first replica. Share

State Database Replicas Status [metadb]

1. To view the status of state database replicas. # metadb -i flags           first blk       block count a m  p  luo        16               8192            /dev/dsk/c1t0d0s7 a p  luo        8208             8192            /dev/dsk/c1t0d0s7 W p  luo        16               8192            /dev/dsk/c1t1d0s7 W p  luo        8208             8192            /dev/dsk/c1t1d0s7 Share

Configure DNS Client in Solaris

1. Open /etc/resolv.conf using vi editor # vi /etc/resolv.conf 2. Add DNS server IP into the /etc/resolv.conf nameserver XXX.XXX.XXX.XXX nameserver XXX.XXX.XXX.XXX 3. Copy the DNS nsswitch file # cp /etc/nsswitch.dns /etc/nsswitch.conf 4. Test your DNS # nslookup > www.asknadya.com or # ping www.asknadya.com Share

Replaced Failed SVM Mirror Drive

1. In this example, the boot disk mirror c1t1d0 failed. All submirrors on c1t1d0 were placed in “maintenance” state. # format Searching for disks…done AVAILABLE DISK SELECTIONS: 0. c1t0d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107> /pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cf222bde,0 1. c1t1d0 <drive not available: formatting> /pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w2100002037f3ce1d,0 Share

Configure Link Based Detection IPMP [Active-Active]

1. Check Solaris version. At mininum Solaris 9 12/02 is needed. #uname -a SunOS XXXXX 5.10 Generic_118833-33 sun4u sparc SUNW,Netra-XXX 2. Set local mac address to true #eeprom local-mac-address?=true Share