LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-13-2021, 07:35 PM   #1
mredc
Member
 
Registered: May 2016
Location: USA
Distribution: Debian, Ubuntu
Posts: 73

Rep: Reputation: Disabled
What happens when you move an ISCSI LUN to a different server?


This pertains to an ISCSI target setup on a nas4free VM on ESXi 5.1.0
nas4free 9.2.0.1 - Shigawire (revision 972)
FreeBSD 9.2-RELEASE-p4 (kern.osreldate: 902001).
The LUNs were created on a USB hardisk permanently attached to the VM though the VM settings controls.

I created two targets. I was mounting one in a windows system that may have been Windows XP and the other I was mounting in a Debian 8 system. The Nas4free VM became inoperable. The Windows XP box has also died. So I moved the USB hard drive to another nas4free VM that had the same setup.

I am now attempting to mount the ISCSI target with a pretty up to date Windows 10 system but the disk shows up as a raw disk. Is this normal? If so, why does it behave that way?
 
Old 06-16-2021, 12:59 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,148

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
How did you add the disk to the new NAS and tell it to not clear the disk?
 
Old 06-23-2021, 02:56 AM   #3
mxdog
LQ Newbie
 
Registered: May 2012
Posts: 7

Rep: Reputation: Disabled
Windows wont read a linux disk

If I understand your question correctly . Windows will not read the usb disk because it is (probably) formatted as some Linux file system (ext 2,3,4 or other, hopefully the data not on MD or VFS volumes ). So yes that is normal for windows. Even after all these years there is no support for Linux file systems under windows. There are some tools and drivers out there that will allow windows to use Linux filesystems. A quick search came up with Paragon having one and some others. But I have no clue if they will work with your disk as a ISCSI target disk. With windows generally speaking if windows can read/write the disk it can be used as a target but I have only ever used ntfs disks as targets.

Your best bet might be to get a raspberry or some such and install Debian on it and set that up as a ISCSI target box if it is for casual use or use an old junk pc you may have laying around .

In the future if you need to have a target disk that may be used on windows you will need to format it as ntfs or efat and use it that way ( but you will take a performance hit, Linux is pretty slow with ntfs ).

.....and then again the easiest thing would be to copy all your data over to a ntfs or efat disk and use that as a target then format your original disk for use on windows or keep it as a backup or even copy your data back onto it.You would just need a linux boot disk or system on a usb stick.

To answer your other question why it acts that way. Remember Iscsi is just a software abstraction on top of the actual hardware that is used to store the data the actual data is on whatever storage medium you choose to use as a target hardrives,cdroms,ramdisks..etc.

...or if you meant why windows see that disk as a raw disk it is because windows does not know how to read it.
 
Old 07-04-2021, 12:02 PM   #4
mredc
Member
 
Registered: May 2016
Location: USA
Distribution: Debian, Ubuntu
Posts: 73

Original Poster
Rep: Reputation: Disabled
I decided not to pursue this question any longer since I might be a little fuzzy on the details of what I did after the initial failure, which by the way actually happened quite sometime ago. I did assign the USB drive to a different virtual machine running Nas4free and I am unsure if I could have done something in the process to clear the disk of it's formatting. I formatted it as NTFS when I mounted it as an ISCSI target in the initial Windows system. But after my recovery attempt it did not come back as NTFS. I thought that I would reattach and find the NTFS drive intact with all the files that been stored there.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to identify the New LUN assigned to redhat system ? If there is multiple devices or LUN already dev008 Linux - Newbie 6 09-23-2016 12:19 PM
Increasing LUN sizes only, this not adding a new LUN maxmal7 Linux - Kernel 1 11-22-2013 04:55 PM
DM multipath :iscsi lun shows by diff names on two server where its exported heman1979 Linux - Newbie 1 11-03-2013 01:59 PM
Replacing 200 GB LUN with 100 GB LUN in LVM rajaniyer123 Linux - Enterprise 4 03-27-2012 12:32 PM
LUN Device Mapping: 2 devices map to same lun DantePasquale Linux - Distributions 0 09-24-2007 02:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration