Monthly Archive for September, 2012

Understanding HP Smart Array

HP Array cards which have no BBWC only support Raid 0 and 1.

If you add a BBWC(Battery-backed write cache) it add extra memory to the cache and provides battery backup so if you lose power to the server. The data is saved in the cache which had not been written to the disk at the time of the power failure . When the power is restored to the server the raid controller continues where it left off and writes the data to the disk.

Adding a BBWC improves the performance of the raid via Array Accelerator and also provides:

  • Online RAID level migration
  • Online stripe size migration
  • Online array expansion
  • Online logical drive extension
  • Online drive firmware upgrade

To Check if you have a BBWC installed  run the following comand:

ctrl slot=1 show

Smart Array P400 in Slot 1
Bus Interface: PCI
Slot: 1
Serial Number:
Cache Serial Number:
RAID 6 (ADG) Status: Enabled
Controller Status: OK
Hardware Revision: Rev D
Firmware Version: 7.08
Rebuild Priority: Medium
Expand Priority: Medium
Surface Scan Delay: 15 secs
Surface Scan Mode: Idle
Wait for Cache Room: Disabled
Surface Analysis Inconsistency Notification: Disabled
Post Prompt Timeout: 0 secs
Cache Board Present: True
Cache Status: OK
Accelerator Ratio: 25% Read / 75% Write
Drive Write Cache: Disabled
Total Cache Size: 512 MB
No-Battery Write Cache: Disabled
Cache Backup Power Source: Batteries
Battery/Capacitor Count: 1
Battery/Capacitor Status: OK
SATA NCQ Supported: True

You can see the text in red show it has a Battery and Cache module installed and the Accelerator Ratio.

Also to see the Array Accelerator is enable on the Logiacl drive run the following command:

ctrl slot=1 ld 1 show detail

Smart Array P400 in Slot 1

array A

Logical Drive: 1
Size: 136.7 GB
Fault Tolerance: RAID 1
Heads: 255
Sectors Per Track: 32
Cylinders: 35132
Strip Size: 128 KB
Status: OK
Array Accelerator: Enabled

To do any task which you require a BBWC, make sure you have a battery present and is fully charged if you not you can not perform any of these task.

You may also notice that two options are  Drive Write Cache: and No-Battery Write Cache which are disabled. The following describes them:

Drive Write Cache: If enable means the array will use the onboard cache on the hard drive. It will write the data here first and then to the disk. If the server is not procted via UPS and looses power. Data in the cache will be lost and cause data corruption on the hard drive.

No-Battery Write Cache:If you have no battery installed or it is failed you can enable this feature to use the on-board cache of the raid controller.But if  the server is not protected via UPS and looses power. Data in the cache will be lost and cause data corruption on the hard drive.

There is a good article which describe this better:http://www.tricksguide.com/how-to-expand-array-extend-logical-drive-raid-hp-acu.html

 

24,335 total views, no views today

Useful ACU CLi Commands

Show the phyiscal and logical drives:

ctrl slot=1 show config

Output:

Smart Array P400 in Slot 1 (sn:n/A)

array A (SAS, Unused Space: 0 MB)
logicaldrive 1 (136.7 GB, RAID 1, OK)

physicaldrive 2I:1:1 (port 2I:box 1:bay 1, SAS, 146 GB, OK)
physicaldrive 2I:1:2 (port 2I:box 1:bay 2, SAS, 146 GB, OK)

unassigned

physicaldrive 2I:1:3 (port 2I:box 1:bay 3, SAS, 146 GB, OK)
physicaldrive 2I:1:4 (port 2I:box 1:bay 4, SAS, 146 GB, OK)

Show the details about the controller

ctrl slot=1 show

Smart Array P400 in Slot 1
Bus Interface: PCI
Slot: 1
Serial Number:
Cache Serial Number:
RAID 6 (ADG) Status: Enabled
Controller Status: OK
Hardware Revision: Rev D
Firmware Version: 7.08
Rebuild Priority: Medium
Expand Priority: Medium
Surface Scan Delay: 15 secs
Surface Scan Mode: Idle
Wait for Cache Room: Disabled
Surface Analysis Inconsistency Notification: Disabled
Post Prompt Timeout: 0 secs
Cache Board Present: True
Cache Status: OK
Accelerator Ratio: 25% Read / 75% Write
Drive Write Cache: Disabled
Total Cache Size: 512 MB
No-Battery Write Cache: Disabled
Cache Backup Power Source: Batteries
Battery/Capacitor Count: 1
Battery/Capacitor Status: OK
SATA NCQ Supported: True

Show the details about the Logical Disks

ctrl slot=1 ld 1 show detail

Smart Array P400 in Slot 1

array A

Logical Drive: 1
Size: 136.7 GB
Fault Tolerance: RAID 1
Heads: 255
Sectors Per Track: 32
Cylinders: 35132
Strip Size: 128 KB
Status: OK
Array Accelerator: Enabled
Unique Identifier: 600508B1001046395656433041330009
Mount Points: None
Logical Drive Label: A0003B20P61620F9VVC0A313FC
Mirror Group 0:
physicaldrive 2I:1:2 (port 2I:box 1:bay 2, SAS, 146 GB, OK)
Mirror Group 1:
physicaldrive 2I:1:1 (port 2I:box 1:bay 1, SAS, 146 GB, OK)

Show a Detailed config of the Array, Logical Drives and Physical Drives

controller all show config detail

Smart Array P400 in Slot 1
Bus Interface: PCI
Slot: 1
Serial Number:
Cache Serial Number:
RAID 6 (ADG) Status: Enabled
Controller Status: OK
Hardware Revision: Rev D
Firmware Version: 7.08
Rebuild Priority: Medium
Expand Priority: Medium
Surface Scan Delay: 15 secs
Surface Scan Mode: Idle
Wait for Cache Room: Disabled
Surface Analysis Inconsistency Notification: Disabled
Post Prompt Timeout: 0 secs
Cache Board Present: True
Cache Status: OK
Accelerator Ratio: 25% Read / 75% Write
Drive Write Cache: Disabled
Total Cache Size: 512 MB
No-Battery Write Cache: Disabled
Cache Backup Power Source: Batteries
Battery/Capacitor Count: 1
Battery/Capacitor Status: OK
SATA NCQ Supported: True

Array: A
Interface Type: SAS
Unused Space: 0 MB
Status: OK

 

Logical Drive: 1
Size: 136.7 GB
Fault Tolerance: RAID 1
Heads: 255
Sectors Per Track: 32
Cylinders: 35132
Strip Size: 128 KB
Status: OK
Array Accelerator: Enabled
Unique Identifier:
Mount Points: None
Logical Drive Label:
Mirror Group 0:
physicaldrive 2I:1:2 (port 2I:box 1:bay 2, SAS, 146 GB, OK)
Mirror Group 1:
physicaldrive 2I:1:1 (port 2I:box 1:bay 1, SAS, 146 GB, OK)

physicaldrive 2I:1:1
Port: 2I
Box: 1
Bay: 1
Status: OK
Drive Type: Data Drive
Interface Type: SAS
Size: 146 GB
Rotational Speed: 10000
Firmware Revision: HPDD
Serial Number: 3
Model: HP EG0146FAWHU
Current Temperature (C): 30
Maximum Temperature (C): 36
PHY Count: 2
PHY Transfer Rate: Unknown, Unknown

physicaldrive 2I:1:2
Port: 2I
Box: 1
Bay: 2
Status: OK
Drive Type: Data Drive
Interface Type: SAS
Size: 146 GB
Rotational Speed: 10000
Firmware Revision: HPDD
Serial Number:
Model: HP EG0146FAWHU
Current Temperature (C): 30
Maximum Temperature (C): 36
PHY Count: 2
PHY Transfer Rate: Unknown, Unknown
Array: B
Interface Type: SAS
Unused Space: 0 MB
Status: OK

 

Logical Drive: 2
Size: 136.7 GB
Fault Tolerance: RAID 1
Heads: 255
Sectors Per Track: 32
Cylinders: 35132
Strip Size: 128 KB
Status: OK
Array Accelerator: Enabled
Unique Identifier:
Mount Points: None
Logical Drive Label:
Mirror Group 0:
physicaldrive 2I:1:4 (port 2I:box 1:bay 4, SAS, 146 GB, OK)
Mirror Group 1:
physicaldrive 2I:1:3 (port 2I:box 1:bay 3, SAS, 146 GB, OK)

physicaldrive 2I:1:3
Port: 2I
Box: 1
Bay: 3
Status: OK
Drive Type: Data Drive
Interface Type: SAS
Size: 146 GB
Rotational Speed: 10000
Firmware Revision: HPDD
Serial Number:
Model: HP
Current Temperature (C): 30
Maximum Temperature (C): 37
PHY Count: 2
PHY Transfer Rate: Unknown, Unknown

physicaldrive 2I:1:4
Port: 2I
Box: 1
Bay: 4
Status: OK
Drive Type: Data Drive
Interface Type: SAS
Size: 146 GB
Rotational Speed: 10000
Firmware Revision: HPD6
Serial Number:
Model: HP DG0146FARVU
Current Temperature (C): 29
Maximum Temperature (C): 36
PHY Count: 2
PHY Transfer Rate: Unknown, Unknown

Remove Spare from Array A Logical Disk 1

ctrl slot=1 array A ld 1 remove spares=all

Create Logical Disk with all unassigned disks

ctrl slot=1 create type=ld

For more detail guide visit:

http://people.freebsd.org/~jcagle/hpacucli-readme

 

29,936 total views, no views today

Running ACU CLI on ESXi 4.1

See this Great link

http://v-front.blogspot.com/2012/03/how-to-run-hp-online-acu-cli-for-linux.html

My quick Tip

Copy the ACU folder to ESXi via Datastore Browsers. SSH on to device, and Change to the directory in the VMFS store where you upload the ACU folder.

Run the following command to fix the permission issue:

. ./fix4esxi.sh (Remember the space between the two full stop)

To start ACU CLI run the following command:

./hpacucli

 

13,476 total views, no views today

List running processes VMware ESXi 4.1 – hpacucli

On Esxi 4.1 and you are running hpacucli command line to manage array on a HP smart raid card.

If you session get discounted while you run  hpacucli. When you reconnect to host and try run the command again it will saying the process is already running. Run the following command to find the Process ID (PID):

ps | grep hpacucli

Once you have the PID run the ‘Kill’ command followed by the PID. To kill the process, you should then be able to run the  hpacucli command.

8,304 total views, no views today

vSphere 5.1 single sign on SQL named instance error

I have been testing upgrading vSphere 5.0 to 5.1, The first prerequisite is that you need to install VMware Single Sign On.

When you install this you can either use the built in SOL express or use full blown sql and then create your own database as describe in the user guide.

If you are using the SQL default instance  the install works fine. But if you are using a  SQL named instance like I was(testvc01\testsql) I could not get the setup to get past the database information screen, I could not get it talk to my  SQL named instance using  JDBC. Single Sign On uses JDBC and not DSN like vSphere and Update Manager to speak to SQL

I could not find any documentation from vmmare if the single sign on supports  SQL named instances. I found something that  it does not support SQL cluster database.

But after trial and error found out that from looking at the logs, it was get a connection refused error on port 1433. Doing  a

netstat -an |find /i "listening"

there was nothing listing on that port. Only the default instances of the SQL uses that port. All SQL named instance uses a dynamic port. If you use “SQL Server Configuration Manager”  look under Protocols  for that instance, Doube click on the TCP/IP, Then click on IP address tab and scroll down to the bottom it shown you the dymanitc port the name instance is using dynamic port in my case 49325.

On the datebase information screen, change the port from to 1433 to 49325. Making sure you have entered the FQDN of the sqlserver,Database name,Username and Password. You will be able to click next and get to the next page.

Obviously this a dynamic port which mean that it may change on the server when it get rebooted or when then the service is restarted. You can set a static port manually. Go back to the same place in “SQL Server Configuration Manager”  as before and scroll down to the bottom and you can enter a static port under used port into  the “TCP Port”. I chose 1435. Just stop and start the sql service to make the change happen.

 

 

 

6,458 total views, 1 views today