Replicate iSCSI LUN on a storage pool

iSCSI related applications
Post Reply
kazushi
Starting out
Posts: 26
Joined: Fri Jan 29, 2010 6:02 pm

Replicate iSCSI LUN on a storage pool

Post by kazushi »

Hi,

Is there any way to replicate iSCSI LUN on a storage pool directly as https://wiki.qnap.com/wiki/Replicate_iSCSI_LUN described about LUN on an existing volume?

I bought new NAS TVS-882 but it doesn't allow me to create LUN as a image file on existing volume. It forces me to create LUN directly on a storage pool.

I researched and found that "vgdisplay -v" shows what partition (/dev/vg1/lv289) represents the LUN. So, I guess what I need to do is just dd from/to that partition. What I don't understand is following two things.
  • How to move sparse data to that partition? I think dd doesn't.
  • How to automatically extend the partition while copying?
Thanks.
User avatar
storageman
Ask me anything
Posts: 5506
Joined: Thu Sep 22, 2011 10:57 pm

Re: Replicate iSCSI LUN on a storage pool

Post by storageman »

Is the volume a thick volume? Has to be thin to put LUN inside.
Just use LUN backup,can backup/replicate pool or volume LUN.
kazushi
Starting out
Posts: 26
Joined: Fri Jan 29, 2010 6:02 pm

Re: Replicate iSCSI LUN on a storage pool

Post by kazushi »

Thank you for suggestions.
storageman wrote:Is the volume a thick volume? Has to be thin to put LUN inside.
It's thin LUN. I am trying to replicate thin iSCSI LUN from TS-459 pro+ to TVS-882. Both uses QTS 4.2.2. Old NAS uses single volume and LUN is as an image file on that volume. New NAS uses multiple thin volumes and LUN are on a storage pool.
storageman wrote:Just use LUN backup,can backup/replicate pool or volume LUN.
I tried it, but it didn't work. I scheduled backup job of my LUN more than 15 hours ago on old TS-459 pro+, but it shows only 2% progress. I sshed the old NAS and found it didnt write any bytes in last 5 hours.
User avatar
storageman
Ask me anything
Posts: 5506
Joined: Thu Sep 22, 2011 10:57 pm

Re: Replicate iSCSI LUN on a storage pool

Post by storageman »

Can you test replicating back to itself on 127.0.0.1?
Would prove if target is issue.
kazushi
Starting out
Posts: 26
Joined: Fri Jan 29, 2010 6:02 pm

Re: Replicate iSCSI LUN on a storage pool

Post by kazushi »

storageman wrote:Can you test replicating back to itself on 127.0.0.1?
Would prove if target is issue.
What I did is made a LUN backup job from storage manager of QTS 4.2.2. Last time, I did it to local file system.

This time, I'm doing it to local file system through NFS as you requested. I'm running it now. The target file grows and exceeds last try (000 is from last try without NFS, and 001 is from this try), so it may complete this time.

Code: Select all

--wxr-xr-x    1 admin    administ 11851935744 Nov 23 22:46 ~$!#~000*
--wxr-xr-x    1 admin    administ 11948785664 Nov 24 22:34 ~$!#~001*
On the other hand, I also would like to say coreutils-dd from Entware-ng works fine. I did like below. It works. /dev/vg1/lv288 automatically mapped sectors through copying. dd skipped sparse area well.

Code: Select all

$ dd bs=512 conv=sparse if=copied-image-file of=/dev/vg1/lv288
User avatar
storageman
Ask me anything
Posts: 5506
Joined: Thu Sep 22, 2011 10:57 pm

Re: Replicate iSCSI LUN on a storage pool

Post by storageman »

Did you look at snapshot replica?
kazushi
Starting out
Posts: 26
Joined: Fri Jan 29, 2010 6:02 pm

Re: Replicate iSCSI LUN on a storage pool

Post by kazushi »

I don't understand your question. I looked at folder I specified in backup jobs. It contains several files and above two strange named files has big data. So, I just guess.
User avatar
storageman
Ask me anything
Posts: 5506
Joined: Thu Sep 22, 2011 10:57 pm

Re: Replicate iSCSI LUN on a storage pool

Post by storageman »

"Snapshot Replica" replicates LUNs right and that's what you want no?
Post Reply

Return to “iSCSI – Target & Virtual Disk”