Monday, May 27, 2013

iscsi initiator configuration steps in Linux -- Tutorial

iscsi initiator configuration steps:



Download the iscsi-utils rpm.

Using winscp tool , copy the downloaded iscsi-utils rpm to the remote Linux server.











Login to the remote Linux server and check the rpm was copied.

Now it was successfully copied to a remote server.





Now we need to install the iscsi-utils rpm using rpm -ivh command.

And also check rpm -qa | grep iscsi, whether it is installed.




The daemon is used for this iscsi located in /etc/init.d/iscsi

Check the status of the daemon using /etc/init.d/iscsi status

If it is not running, start using the following command.

/etc/init.d/iscsi start





/etc/iscsi/iscsi-name file contains the iqn value of the initiator.





Check the fdisk -l to list the available disks and partitions.
We have only /dev/sda alone.





For the iscsi storage server, we are using starwind iscsi storage server.





We have create a 1GB LUN .




Now in the remote linux server, discover the iscsi targets with the following command.

iscsiadm -m discovery -t sendtargets -p <ipaddress>




Then you have to restart the iscsi service.

Now you can able to get a new disk from the iscsi server.




Now if you check with fdsik -l command, you can see the new disk which doesn't have the valid partition.




Even you can check the with the location and the following file have the scsi id information.

cat /proc/scsi/scsi




Now you go the partitioning the new disk with the following command 

fdisk /dev/sdc






Once the partition got created, then you need to create a file system on the device.

mkfs -t ext3 /dev/sdc1




Once the file system created you have to mount the file system in one mount point.

mkdir /storage_san

mount -t ext3 /dev/sdc1  /storage_san

check with mount command.




Check with disk free command also. Now you have 1GB space is available.




Now you can able to create a new files and directories.





All the Best ..............

Sunday, May 26, 2013

NetApp Volume Move between two Aggregates - Tutorial


Moving Flexvol from one Aggregate to another Aggregate in 7-Mode :


Many would be in  a situation where the one aggregate is free and other aggregate is full or most used. In order to balance there is an online option in Netapp called vol move, which moves the volume from one aggregate to the other on the fly without a downtime.

Few conditions for moving:

Vol move can be performed only on aggregates in the same controller

This feature is available only from Ontap 8.0

Vol Move has three phases:


1. Start up Phase

2. Data Copy Phase

3. Cut over Phase


For this operations we need two aggregates and one source volume.

As per this example :

aggr1  --- spurce aggregate which contains the source volume (vol_source).

aggr2  --- Destination Aggregate

syntax:  vol move start <source volume>  <destination Aggregate>

vol move start vol_source aggr2



First create a volume using volume create command.

vol create vol_source aggr1 100m.



Check with vol status command. vol_source is online.

Check with vol container command.
vol container vol_source.

The volume is in aggr1.


Now you start with move command.

vol move start vol_source aggr2




Vol move process started. This would create one temp volume in the destination and start copying.



Now you can see the temp destination volume in aggr2.



Now successfully volume moved from aggr1 to aggr2.



Check with vol status ... vol_source is online.



Now you check with vol container vol_source. Now it is with aggr2.



Now check with aggr status aggr1

aggr status aggr2.

Now the vol_source volume is successfully move from aggr1 to aggr2.




All The Best  ...............