Thursday, September 6, 2012

Patch Release by Oracle for Zero day Vulnerability Alert

Oracle had posted the update release information on the link below:
  1. Update release notes  - http://www.oracle.com/technetwork/java/javase/7u7-relnotes-1835816.html
  2. Description of alert (Oracle Security Alert for CVE-2012-4681) and patch information - http://www.oracle.com/technetwork/topics/security/alert-cve-2012-4681-1835715.html
For more information:
  1. The Advisory for Security Alert CVE-2012-4681 is located at http://www.oracle.com/technetwork/topics/security/alert-cve-2012-4681-1835715.html
  2. Users can verify that they’re running the most recent version of Java by visiting: http://java.com/en/download/installed.jsp 
  3. Instructions on removing older (and less secure) versions of Java can be found at http://java.com/en/download/faq/remove_olderversions.xml 

Tuesday, September 4, 2012

Adding new LUN dynamically in CentOS

After adding the new LUN(s) from SAN to CentOS Linux,

Step 1: Run the the command “rescan-scsi-bus.sh” , to dynamically detect and activate the new LUN. To understand this utility "rescan-scsi-bus.sh, see Scanning for SCSI new devices dynamically on CentOS

# /usr/bin/rescan-scsi-bus.sh -l

Host adapter 0 (aacraid) found.
Host adapter 1 (ata_piix) found.
Host adapter 2 (ata_piix) found.
Host adapter 3 (qla2xxx) found.
Host adapter 4 (qla2xxx) found.
Scanning SCSI subsystem for new devices
Scanning host 0 for  SCSI target IDs  0 1 2 3 4 5 6 7, LUNs Scanning 
0 1 2 3 4 5 6 7
Scanning for device 0 0 0 0 ...
OLD: Host: scsi0 Channel: 00 Id: 00 Lun: 00
      Vendor: ServeRA  Model: A                Rev: V1.0 
      Type:   Direct-Access                    ANSI SCSI revision: 02
Scanning for device 0 1 0 0 ...
OLD: Host: scsi0 Channel: 01 Id: 00 Lun: 00
      Vendor: IBM-ESXS Model: VPA146C3-ETS10 N Rev: A650
      Type:   Direct-Access                    ANSI SCSI revision: 05
.....
.....
..... 
0 new device(s) found.
0 device(s) removed.
Since LUN are not physical disk, there may not be "new devices" detected, but look at the middle of the information "Scanning host 0 for  SCSI target IDs  0 1 2 3 4 5 6 7, LUNs  0 1 2 3 4 5 6 7"


Step 2: Verify the LUN has been added. You the command lsscsi. If you do not have the utility, do a yum install

# yum install lsscsi

# lsscsi

..... 
.....
[3:0:0:0]    disk    IBM      1814      FAStT  0916  /dev/sdb
[3:0:0:1]    disk    IBM      1814      FAStT  0916  /dev/sdc
[3:0:0:2]    disk    IBM      1814      FAStT  0916  /dev/sdd
[3:0:0:3]    disk    IBM      1814      FAStT  0916  /dev/sde
[3:0:0:4]    disk    IBM      1814      FAStT  0916  /dev/sdf
[3:0:0:5]    disk    IBM      1814      FAStT  0916  /dev/sdg
[3:0:0:6]    disk    IBM      1814      FAStT  0916  /dev/sdn
.....
.....

Alternatively, you can use the command fdisk -l to check whether your LUN is represented in the /dev directory like /dev/sd*
# fdisk -l

.....
.....
Disk /dev/sdr: 536.8 GB, 536870912000 bytes
255 heads, 63 sectors/track, 65270 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdr1               1       65270   524281243+  83  Linux

Disk /dev/sds: 536.8 GB, 536870912000 bytes
255 heads, 63 sectors/track, 65270 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sds1               1       65270   524281243+  83  Linux

Monday, September 3, 2012

Scanning for SCSI new devices dynamically on CentOS

sg3_utils is a package of utilities for sending SCSI commands. For this particular blog entry, we will focus on the scanning for new SCSI new scsi dynamically without booting. Do

# yum install sg3_utils

==============================================================================
 Package                          Arch                     Version                       Repository              Size
==============================================================================
Installing:
 sg3_utils                        x86_64                   1.25-5.el5                    base                   501 k
Installing for dependencies:
 sg3_utils-libs                   x86_64                   1.25-5.el5                    base                    51 k

Transaction Summary
==============================================================================
Install      2 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 553 k
Is this ok [y/N]:

To scan the SCSI-Bus. use the command
# rescan-scsi-bus.sh

Host adapter 0 (aacraid) found.
Host adapter 1 (ata_piix) found.
Host adapter 2 (ata_piix) found.
Host adapter 3 (qla2xxx) found.
Host adapter 4 (qla2xxx) found.
Scanning SCSI subsystem for new devices
Scanning host 0 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning for device 0 0 0 0 ...
OLD: Host: scsi0 Channel: 00 Id: 00 Lun: 00
      Vendor: ServeRA  Model: A                Rev: V1.0 
      Type:   Direct-Access                    ANSI SCSI revision: 02
Scanning for device 0 1 0 0 ...
OLD: Host: scsi0 Channel: 01 Id: 00 Lun: 00
      Vendor: IBM-ESXS Model: VPA146C3-ETS10 N Rev: A650
      Type:   Direct-Access                    ANSI SCSI revision: 05
.....
.....
.....
0 new device(s) found.
0 device(s) removed.

Sunday, September 2, 2012

Green Revolution cooling announces full factory warranty from supermicro

According to the website announcement,  



Super Micro Computer, Inc. (Supermicro®) is now providing full warranty coverage for servers installed in the CarnotJet™ submersion cooling system. The assurance is a momentous step forward for Green Revolution Cooling and confirms the long-term reliability of servers installed in the CarnotJet™ system.

The warranty will cover motherboards, backplanes, add-on cards, power supplies, and processors for parts and labor. DIMM modules and SSDs are also covered in the warranty, as are all other manufacturer defects discovered during server operation in the CarnotJet™ system.

Lastly, Supermicro® is also offering a line of products available submersion-ready direct from the factory. With Supermicro® servers turn-key and fully guaranteed, it has never been easier to outfit your data center with submersion cooling from Green Revolution Cooling.

For more information of the announcement, do read Green Revolution Cooling Announces Full Factory Warranty from Supermicro®

Saturday, September 1, 2012

Restoring a snapshot from Netapp from a newbie

I am a newbie to NetApp Storage solution. Creation and restoring Snapshot in Netapp could not be easier.

Basically, NetApp provides a very easy-to-recognise snapshot features. The Snapshot schedules are
  1.  Weekly Snapshot copies are taken at 24:00 on Sunday, creating Snapshot copies called weekly.n, where n is an integer (weekly.0, weekly.1, weekly.2, and so on).
  2. Nightly Snapshot copies are taken at 24:00 Monday through Saturday, creating Snapshot copies called nightly.n, where n is an integer (nightly.0, nightly.1, and so on).
  3. Four hourly Snapshot copies are taken at 8 a.m., noon, 4 p.m., and 8 p.m., unless specified otherwise using the hourly Snapshot copy schedule in this window, creating Snapshot copies called hourly.n, where n is an integer (hourly.0, hourly.1, hourly.2, and so on).
You can easily select your snapshot schedule with some simple select and click.

If you make your snapshot directory visible, The snapshot content can be easily be seen from .shapshot directory of the NetApp volume.Restoration is very easy then. Assuming the NetApp volume is mounted as /home and you wish to recover nightly.0

# cp -avp /home/.snapshot/nightly.0/home/mysite/recover_my_folder /home/mysite/


that's it! I was quite amazed at the ease of the restoration of the lost folder.