Map an NTFS formatted SAN Lun to Linux for Data migration

Map an NTFS formatted SAN Lun to Linux for Data migration

1. Prerequisites: allow the linux server's iscsi initator to access the san LUN on the san and install ntfs support on linux

1A. Run the following command as root user on the shell to enable the EPEL repository.

yum install epel-release

1B. Then we have to install the ntfs-3g package with yum.

yum install ntfs-3g

2. On linux server - discover SAN targets

iscsiadm --mode discoverydb --type sendtargets --portal 10.1.3.100 --discover

3. On linux server add targets to disks used by iscsi service (these become configure files in the iscsiadmin client automatically, to persist across restarts)

iscsiadm --mode node --targetname iqn.2007-11.com.nimblestorage:snapshot-backup-v435becd32c58cca6.0000000c.6f032075 --portal 10.1.3.100:3260 --login

4. Create a mount point - this is just a folder

mkdir /opt/snapshot90

5. Mount the 2nd partition on the iscsi lun /dev/sdd (the san lun linux will be sharing with iscsi)

fdisk -l (note the device id i.e /dev/sdd it's the one that has microsoft formatting) then mount it

mount -t ntfs-3g /dev/sdd2 /opt/snapshot90

6. Finish you can now copy data from the windows ntfs san volume to linux for migration

ls -l /opt/snapshot90

要查看或添加评论,请登录

Joe Brunner的更多文章

社区洞察

其他会员也浏览了