Tuesday, October 2, 2012

How to mount remote windows partition (windows share) under Linux

Procedure to mount remote windows partition (NAS share)
1) Make sure you have following information:
==> Windows username and password to access share name
==> Sharename (such as //server/share) or IP address
==> root level access on Linux
2) Login to Linux as a root user (or use su command)
3) Create the required mount point:
# mkdir -p /mnt/ntserver
4) Use the mount command as follows:
# mount -t cifs //ntserver/download -o username=vivek,password=myPassword /mnt/ntserver
Use following command if you are using Old version such as RHEL <=4 or Debian <= 3:
# mount -t smbfs -o username=vivek,password=D1W4x9sw //ntserver/download /mnt/ntserver
5) Access Windows 2003/2000/NT share using cd and ls command:
# cd /mnt/ntserver; ls -l
  • -t smbfs : File system type to be mount (outdated, use cifs)
  • -t cifs : File system type to be mount
  • -o : are options passed to mount command, in this example I had passed two options. First argument is password (vivek) and second argument is password to connect remote windows box
  • //ntserver/download : Windows 2000/NT share name
  • /mnt/ntserver Linux mount point (to access share after mounting)

Monday, October 1, 2012

HOW-TO enable multipathing on RedHat Linux 5.x

In Red Hat Enterprise Linux 5, device-mapper-multipath is installed by default. This is a change from Red Hat Enterprise Linux 4. If a third party multipathing solution is in use, device-mapper-multipath should be disabled to avoid any conflict between the multiple multipathing technologies. But RedHat multipathing is NOT ACTIVATED by default and you must enable it.

To enable it, modify the setting in /etc/sysconfig/mkinitrd/multipath file by changing MULTIPATH from NO  to YES

By default, /etc/multipath.conf has all devices blacklisted. If this default configuration has been changed, the change should be reverted. Comment out following three lines:
        # Blacklist all devices by default. Remove this to enable multipathing
        # on the default devices.
        blacklist  {

               devnode "\*"       
Then reboot. Enable the multipathd on boot and start it by
        chkconfig mutipathd on
        service multipathd start
At this time, you should be able to see multiple connections to the LUNs on the storage array if everything set correctly and you can verify it using   "fdisk -l". You should see  some newly enabled "dm-??" devices.  Also run "/sbin/multipath -ll" command and should see the path to each device. i.e. the path mpath2 for device dm-7 pointing to two devices sdj and sdx.   
     mpath2 (3600a0b80004879f0000004064a5b5d9f) dm-7 SUN,CSM200_R
     [size=50G][features=1 queue_if_no_path][hwhandler=1 rdac][rw]
    \\\\\\_ round-robin 0 [prio=200][active]
     \\\\\\_ 0:0:1:2 sdj  8:144  [active][ready]
     \\\\\\_ 1:0:1:2 sdx  65:112 [active][ready]
     \\\\\\_ round-robin 0 [prio=0][enabled]
     \\\\\\_ 0:0:0:2 sdc  8:32   [active][ghost]
     \\\\\\_ 1:0:0:2 sdq  65:0   [active][ghost]

You should see I/O activities on both sdj and sdx when  running dd test on dm-7.

Rescan the SCSI bus w/out rebooting

To add or remove a SCSI device explicitly, or to re-scan an entire SCSI bus without rebooting a running system:

Red Hat Enterprise Linux 4 or 5:

To rescan an entire SCSI bus and re-register all devices found:
When dealing with fibre attached storage, it is necessary to issue a LIP (loop initialization primitive) on the fabric:
shell> echo "1" > /sys/class/fc_host/host#/issue_lip

Replace the “#” with the number of the SCSI bus to be rescanned.

Note: Issueing a LIP (above) on Red Hat Enterprise Linux 5 is all that is needed to rescan fibre
attached storage. Once the LIP is issued, the bus scan may take a few seconds to complete.

To rescan all other SCSI attached storage, a rescan should be issued:
shell> echo "- - -" > /sys/class/scsi_host/host#/scan

Replace the “#” with the number of the SCSI bus to be rescanned.

In addition to re-scanning the entire bus, a specific device can be added or deleted for some versions or Red Hat Enterprise Linux as specified below.

Red Hat Enterprise Linux 4 or 5:

To remove a single existing device explicitly
shell> echo 1 > /sys/block//device/delete

Red Hat Enterprise Linux 3 or 4:

To add a single device explicitly:
shell> echo "scsi add-single-device    " > /proc/scsi/scsi
To remove a device explicitly:
shell> echo "scsi remove-single-device    " > /proc/scsi/scsi
Where are the host, bus, target, and LUN numbers for the device,as reported in /sys (2.6 kernels only) or /proc/scsi/scsi or dmesg. These numbers are sometimes refered to as “Host”, “Channel”, “Id”, and “Lun” in Linux tool output and documentation.

3Par Documentation, Best Practices, and Case Studies Repository

3Par related documents are pretty difficult to locate. I hope that this links can help you, then it will be good.  If any of you have other documents that are not listed please contact me via blog, and I will post it to this blog.


HP 3PAR Utility Storage Product Brochure
HP Financial Services offers Low Rate Financing for HP 3PAR
3cV: virtual utility computing Solution Brief
HP 3PAR Storage Technologies for VMware Server Virtualization Solution Brief
HP advantage for hosting companies (US English)
HP 3PAR Utility Storage Product Brochure
HP 3PAR Utility Storage Cloud Solutions for Hosting Service Providers (US English)
Rapid Application Recovery with HP 3PAR Utility Storage Solution Brief
HP 3PAR Nearline for Online Solution Brief
HP 3PAR System Tuner Software Solution Brief
HP 3PAR Virtual Lock Software Solution Brief
HP 3PAR System Reporter Software Solution Brief
Technology Services and Support for HP 3PAR Storage Systems (US English)
HP Storage and Microsoft Exchange
HP 3PAR Secure Service Architecture
HP 3PAR Thin Guarantee Flyer
HP Storage and Microsoft Exchange 2010 with Microsoft Hyper-V
HP 3PAR Utility Storage: Persistent Cache
HP 3PAR Autonomic Groups Software
HP Storage: Discover the SAN Solutions with a Future and Simplify moving to Microsoft Exchange 2010
HP 3PAR Management Software for VMware Solution Brief
3PAR Recovery Manager for Oracle Solution Brief
3PAR Recovery Manager for Exchange Solution Brief
3PAR Recovery Manager Software for VMware vSphere Solution Brief

HP 3PAR software family – Data sheet (US English)
HP 3PAR Storage System Installation and Startup Service data sheet – U.S. English
HP 3PAR F-Class and T-Class Storage Systems (US English)
HP P10000 3PAR Storage Systems Data Sheet (US English)
HP 3PAR Peer Motion Software (US English)
HP Cluster Extension Solution Implementation Service data sheet – US English
HP 3cV Virtual Utility Computing with HP 3PAR, HP BladeSystem and VMware vSphere (solution brief)
HP 3PAR Software Installation and Startup Service data sheet – US English
HP Storage Infrastructure Transformation from HP Storage Consulting (service brief)
HP 3PAR Hardware Storage Systems – Family data sheet (UK English)
HP 3PAR Storage Assessment Service – US English

HP 3PAR T800 Storage System 140,000 User Exchange Server 2010 Mailbox Resiliency Storage Solution
HP 3PAR Storage Systems Designed for Mission Critical High Availability
Converged Management with HP H-series Switches (US English)
HP 3PAR Remote Copy Software: Simple and Efficient Remote Replication
HP 3PAR Recovery Manager Software for Microsoft SQL Server and Microsoft Exchange
HP 3PAR Secure Service Architecture White Paper
Benchmark report for SAS Grid Manager on HP ProLiant BL460c G7 Blades and 3PAR T800 Storage System
HP 3PAR Utility Storage with VMware vSphere
HP 3PAR Utility Storage Systems tested configuration for Quantum StorNext 4.0
The HP 3PAR Architecture: Returning Simplicity to IT Infrastructures white paper
The Best Way to Build a Cloud – HP CloudSystem Matrix and HP 3PAR Utility Storage provide solid, flexible foundation
HP 3PAR Fast RAID: high performance without compromise
HP 3PAR System Reporter Software technical white paper
Utility Storage Benefits White Paper
HP 3PAR Storage Systems for Microsoft Exchange Server Technical white paper (US English)
Simplifying Storage Administration with 3PAR Autonomic Groups

ESG: HP P10000 3PAR Storage: Extending Tier-1 Storage Choice Analyst Report
Evaluator Group – Analysis of HP Peer Motion with Storage Federation – Analyst Report (US English)
Taneja Group Analysis: 3PAR Storage: Tailor-Made for Virtual Infrastructures White Paper

3PAR Architecture Overview
3PAR VMWare Best Practices
3PAR Thin Provisioning Best Practices
3PAR Terminology
3PAR T-Series Quickspecs
3PAR T-Class Maintenance Manual
3PAR T-Class Installation Guide
3PAR Software Overview
3PAR P10000 Solution Brief
3PAR InForm OS 2.31 Concepts Guide
3PAR HP0_J49 Exam Prep
3PAR HP Array Controller Types
3PAR F-Series Quickspecs
3PAR F-Class Maintenance Manual
3PAR F-Class Installation Guide
3PAR CLI 2.3.1 Reference
3PAR 4.10 InForm Management Console Users Guide
3PAR 2.31 Remote Copy Users Guide
3PAR 2.31 Concepts Guide
3PAR 2.31 CLI Administrators Manual
3PAR 2.31 CLI Admin Guide
3PAR System_Reporter
3PAR System_Reporter Release_Notes
3PAR SP Manual

How to use DiskSpd to simulate Veeam Backup & Replication disk actions

This HOW-TO contains information on how to use Microsoft© DiskSpd to simulate Veeam Backup & Replication disk actions to measure disk pe...