Home » VTL Open Source sobre FC

VTL Open Source sobre FC

Se ha realizado en nuestro entorno de pruebas una VTL Open Source sobre FC. Su implementación está basada en los trabajos previos sobre mhVTL y SCST .

 

Partiendo del escenario descrito en los post  SCST 2 y SCST 3, donde se compiló un kernel vanilla y se le añadió el software SCST junto con los drivers de QLogic en modo target, configurado para que ofreciera a la SAN un disco virtual (VDISK). Se añade al servidor el proyecto mhVTL emulando una librería de cintas modelo Sun Storagetek L700 con un drive SDLT600 de QUANTUM, encargándose el módulo SCST de ofrecerlas a través de la HBA operando en modo Target.

El procedimiento de su implementación es:

1.- Crear entorno previo SCST descrito en el  post SCST 2.

2.- Instalar proyecto mhVTL

3.- Configurar mhVTL

4.- Configurar SCST para dar visibilidad a los elementos de mhVTL por fibra.

2.- Instalar proyecto mhVTL

La instalación es idéntica a la descrita en el artículo VTL Open Source sobre iSCSI. Brevemente,  descarga de las fuentes mhvtl en formato tar.gz desde la web del proyecto y realiza el siguiente procedimiento de instalación:

# useradd vtl
# passwd vtl
# mkdir /opt/mhvtl
# chown -Rf vtl:vtl /opt/mhvtl
# mkdir /etc/mhvtl
# chown -Rf vtl:vtl /etc/mhvtl
# cd /root/mhvtl-0.18-4
# make distclean
# cd kernel
# make
# make install
# cd ../
# make
# make install

3.- Configurar mhVTL

Edición del fichero /etc/mhvtl/device.conf  para definir  la librería y el drive:

# cat /etc/mhvtl/device.conf
VERSION: 4

# VPD page format:
# <page #> <Length> <x> <x+1>… <x+n>

# NOTE: The order of records is IMPORTANT…
# The 'Unit serial number:' should be last (except for VPD data)
# i.e.
# Order is : Vendor ID, Product ID, Product Rev and serial number finally
# Zero, one or more VPD entries.
#
# Each 'record' is sperated by one (or more) blank lines.
# Each 'record' starts at column 1

Library: 2 CHANNEL: 0 TARGET: 0 LUN: 0
Vendor identification: STK
Product identification: L700
Product revision level: 5500
Unit serial number: XYZZY

Drive: 1 CHANNEL: 0 TARGET: 1 LUN: 0
Library ID: 2 Slot: 1
Vendor identification: QUANTUM
Product identification: SDLT600
Product revision level: 5500
Unit serial number: ZF7584364
Max density: 0x46
VPD: b0 04 00 02 01 00

Definir el contenido de la librería en el fichero /etc/mhvtl/library_contents:

# cat /etc/mhvtl/library_contents
# Define how many tape drives you want in the vtl..
# The 'XYZZY_...' is the serial number assigned to
# this tape device.

Drive 1: ZF7584364

# Place holder for the robotic arm. Not really used.
Picker 1:

# Media Access Port
# (mailslots, Cartridge Access Port, <insert your favourate name here>)
# Again, define how many MAPs this vtl will contain.
MAP 1:
MAP 2:
MAP 3:
MAP 4:

# And the 'big' on, define your media and in which slot contains media.
# When the rc script is started, all media listed here will be created
# using the default media capacity.
Slot 1:    800843S3
Slot 2: 800844S3
Slot 3: 800845S3
Slot 4: 800846S3
Slot 5: 800847S3
Slot 6: 800848S3
Slot 7: 800849S3
Slot 8: 800850S3
Slot 9: 800851S3
Slot 10: 800852S3
Slot 11: 800853S3
Slot 12: 800854S3
Slot 13: 800855S3
Slot 14: 800856S3
Slot 15: 800857S3
Slot 16: 800858S3
Slot 17: 800859S3
Slot 18: 800860S3
Slot 19: 800861S3
Slot 20: 800862S3
Slot 21:
Slot 22:
Slot 23:
Slot 24:
Slot 25:
Slot 26:
Slot 27:
Slot 28:
Slot 29:
Slot 30:
Slot 31: CLN001L1
Slot 32: CLN002L1

4.- Configurar SCST para dar visibilidad a los elementos de mhVTL por fibra.

Levantar  servicio mhVTL:

/etc/init.d/mhvtl start

Comprobación:

# lsscsi
[2:0:0:0]    disk    ATA      WDC WD7500AACS-0 01.0  /dev/sda
[8:0:0:0]    mediumx STK      L700             5500  –
[8:0:1:0]    tape    QUANTUM  SDLT600          5500  –

Se observan el VDISK (procedente de prueba anterior) y la librería STK L700 junto con el drive QUANTUM SDLT600 creados por mhVTL.

Se configura para que los dispositivos sean visibles por la HBA:

# echo "add 8:0:1:0 1" > /proc/scsi_tgt/groups/Default/devices

# echo "add 8:0:0:0 2" > /proc/scsi_tgt/groups/Default/devices

Y se pone en modo target el host asociado como interfaz en sysfs:

# echo “1″ >/sys/class/scsi_host/host7/target_mode_enabled

Comprobación:

# cat /sys/class/scsi_host/host7/active_mode

Target

# cat /proc/scsi_tgt/scsi_tgt
Device (host:ch:id:lun or name)                             Device handler
2:0:0:0                                                     dev_disk
vm_disk                                                     vdisk_fileio
8:0:1:0                                                     dev_tape
8:0:0:0                                                     dev_changer

Desde el Host con W2K8 que opera en modo initiator se observan desde el administrador de dispositivos de la siguiente forma:

Se ha instalado la Utilidad OneCommand manager de Emulex con propósito de diagnóstico, la librería y el drive emulados se observan de la siguiente forma:

Para comprobar la conectividad del host con la VTL por FC  se han usado las utilidades mtx en su versión para Windows:

  • Estado de la librería:

c:\mtx>mtx.exe -f 3:0:0:2 status
Storage Changer 3:0:0:2:1 Drives, 36 Slots ( 4 Import/Export )
Data Transfer Element 0:Full (Storage Element 1 Loaded):VolumeTag = 800843S3

Storage Element 1:Empty
Storage Element 2:Full :VolumeTag=800844S3
Storage Element 3:Full :VolumeTag=800845S3
Storage Element 4:Full :VolumeTag=800846S3
Storage Element 5:Full :VolumeTag=800847S3
Storage Element 6:Full :VolumeTag=800848S3
Storage Element 7:Full :VolumeTag=800849S3
Storage Element 8:Full :VolumeTag=800850S3
Storage Element 9:Full :VolumeTag=800851S3
Storage Element 10:Full :VolumeTag=800852S3
Storage Element 11:Full :VolumeTag=800853S3
Storage Element 12:Full :VolumeTag=800854S3
Storage Element 13:Full :VolumeTag=800855S3
Storage Element 14:Full :VolumeTag=800856S3
Storage Element 15:Full :VolumeTag=800857S3
Storage Element 16:Full :VolumeTag=800858S3
Storage Element 17:Full :VolumeTag=800859S3
Storage Element 18:Full :VolumeTag=800860S3
Storage Element 19:Full :VolumeTag=800861S3
Storage Element 20:Full :VolumeTag=800862S3
Storage Element 21:Empty
Storage Element 22:Empty
Storage Element 23:Empty
Storage Element 24:Empty
Storage Element 25:Empty
Storage Element 26:Empty
Storage Element 27:Empty
Storage Element 28:Empty
Storage Element 29:Empty
Storage Element 30:Empty
Storage Element 31:Full :VolumeTag=CLN001L1
Storage Element 32:Full :VolumeTag=CLN002L1
Storage Element 33 IMPORT/EXPORT:Empty
Storage Element 34 IMPORT/EXPORT:Empty
Storage Element 35 IMPORT/EXPORT:Empty
Storage Element 36 IMPORT/EXPORT:Empty

  • Información de la librería:

c:\mtx>tapeinfo.exe -f 3:0:0:2
Product Type: Medium Changer
Vendor ID: 'STK     '
Product ID: 'L700            '
Revision: '5500'
Attached Changer API: No
SerialNumber: 'XYZZY     '
Ready: yes

  • Información del drive:

c:\mtx>tapeinfo.exe -f Tape0
Product Type: Tape Drive
Vendor ID: 'QUANTUM '
Product ID: 'SDLT600         '
Revision: '5500'
Attached Changer API: No
SerialNumber: 'ZF7584364 '
MinBlock: 4
MaxBlock: 1048576
Ready: yes
BufferedMode: yes
Medium Type: Not Loaded
Density Code: 0x49
BlockSize: 0
DataCompEnabled: yes
DataCompCapable: yes
DataDeCompEnabled: yes
CompType: 0x10
DeCompType: 0x10
BOP: yes
Block Position: 0
Partition 0 Remaining Kbytes: 499
Partition 0 Size in Kbytes: 500
ActivePartition: 0
EarlyWarningSize: 0
NumPartitions: 0
MaxPartitions: 0

  • Carga de cinta de Slot 1 a drive 0:

c:\mtx>mtx.exe -f 3:0:0:2 load 1 0
Loading media from Storage Element 1 into drive 0…done

  • Descarga de drive 0 a slot 1:

c:\mtx>mtx.exe -f 3:0:0:2 unload 1 0
Unloading drive 0 into Storage Element 1…done

Como se puede observar la librería virtual opera correctamente a las peticiones descritas a través de FC.

Fuentes:

Proyecto mhvtl

Proyecto SCST

Foros de nimsa

Blog nsrd.info

1.104 Responses to “VTL Open Source sobre FC”

  1. here dice:

    In the case of Wednesday night’s drawing, that’s estimated to equal $448.4.

    Also visit my webpage; here

  2. Froom how quite a few numbers are needed to win to
    how the payouts function, here’s how tto participate in Wednesday’s Powerball drawing.

    my blog post Helpful resources

  3. Today, I went to the beachfront with my children. I found a sea
    shell and gave it to my 4 year old daughter and said «You can hear the ocean if you put this to your ear.» She placed the shell to her ear and screamed.

    There was a hermit crab inside and it pinched her ear.
    She never wants to go back! LoL I know this is totally
    off topic but I had to tell someone! https://Wiki-Burner.win/index.php?title=How_Invest_In_Nfl_Playoff_Tickets_445197714&oldid=553280 https://wiki-dale.win/index.php?title=Nfl_Car_Flags_And_Car_Magnets_Pepper_The_Field_In_A_Reminisc_435199427&oldid=512410 https://Rapid-Wiki.win/index.php?title=Get_The_Nfl_Sunday_Ticket_For_Those_Football_Fan_93518101131&oldid=503322

    Here is my blog post; we clicked meaning

  4. It’s an amazing article designed for all the online users; they will obtain advantage from it I
    am sure.

    My page: เครื่องกำจัดขยะเศษอาหาร

  5. The similar applies to on the web gambling in North Carolina.

    My website Article source

  6. As the admin of this web site is working, no doubt very soon it will be well-known, due to its quality
    contents.

    my site Antiaging Balm Lip Lip Mask

  7. Hello there, just became alert to your blog through Google, and found that it’s really informative.
    I’m going to watch out for brussels. I’ll appreciate if you continue this in future.
    Lots of people will be benefited from your writing.
    Cheers!

  8. I was reading some of your articles on this internet
    site and I conceive this internet site is real instructive!
    Keep on posting.

    Check out my page Openhomelab.org

  9. This way, you are guaranteed to be part of every single single drawing!

    My page … Click for more info

  10. RUAY dice:

    of course like your web-site but you need to check the spelling on quite a few of
    your posts. A number of them are rife with spelling problems and I to find it very troublesome
    to inform the truth nevertheless I will certainly come back again.

    Review my webpage :: RUAY

  11. A collezgue was with her at the time she
    checked her number andd told her sshe had won the $758.7 million Powerball jackpot, the
    second-biggest in the game’s history.

    Take a look at myy page: get more info

  12. Home page dice:

    The Powerball jackpot has soawred to an estimated $441 million immediately
    after no lucky winner claimed Monday night’s drawing.

    Here is my web site … Home page

  13. RUAY dice:

    Hi there! This is my first visit to your blog! We are a collection of volunteers and starting a new
    project in a community in the same niche.
    Your blog provided us valuable information to work on. You have done
    a wonderful job!

  14. My family members always say that I am killing my
    time here at web, however I know I am getting know-how daily by reading such nice content.

    Stop by my page … ซื้อหวย

  15. RUAY dice:

    Superb, what a webpage it is! This blog presents useful facts to
    us, keep it up.

  16. slot dice:

    I’m gone to inform my little brother, that he should also visit
    this web site on regular basis to take updated from most up-to-date reports.

  17. So you can be empowered aand keep empowered —
    at home, work, or school.

    Check out my web-site … Visit website

  18. Postnatal Massage by Mountainside On-Site Massage Therapy

    Fallo al enviar el comentario

  19. The Robinson family members also chose to take their jackpot in the form
    of a lump sum.

    Feel free to viit my web page :: Click for more info

  20. Good site you’ve got here.. It’s hard to find good quality writing like yours these days.
    I honestly appreciate people like you! Take care!!

  21. Players’ ultimate tax liability maay perhaps be a llot more or much less than the amounts withheld.

    Here is my homepage :: Visit this page

  22. postnatal massage in New Jersey

    Fallo al enviar el comentario

  23. In Florida, 80 percent of all unclaimed jackpot prizes arre transferred too the Educational
    Enhancement Trust Fund too advantage education in tthe state.32.

    Here is my homepage; Check out this site

  24. RUAY dice:

    Everything is very open with a very clear description of the issues.
    It was definitely informative. Your website is useful.

    Thanks for sharing!

  25. In real life, many subject areas are even more elaborate than a
    casual viewer may possibly conclude, in line with their position. I’m not stating that am a guru
    on this topic at-hand, for that reason I imagine it’s for alternative site people to think about.

    I am not necessarily trying to make problem or be
    demoralizing. Rather, I fully understand from experience that
    the aforementioned may well be the case. I practice Perinatal Massage, and in my personal
    selected discipline, I experience it a whole lot. New Postnatal Massage Practitioners are more likely to exaggerate claims; which can be,
    these people don’t at this point genuinely grasp the
    constraints of their personal «scope of practice,» and hence they might possibly
    make statements that are too general when talking with clients.
    It’s the equivalent occurrence; they have been brought in to
    a topic, don’t know the entire depth of the idea, and now (wrongly) conclude they are the
    Experts. http://europe.webmatrixhosting.net/__media__/js/netsoltrademark.php?d=adagio.fm%2Fmodules.php%3Fname%3DYour_Account%26op%3Duserinfo%26username%3DPedroWilso

  26. RUAY dice:

    Hello, Neat post. There’s an issue together with your website in web explorer, might check this?
    IE nonetheless is the marketplace leader and a huge component to other folks will leave out your wonderful writing due to this
    problem.

  27. RUAY dice:

    Very descriptive blog, I loved that a lot. Will there be a part 2?

  28. Right here is the right web site for everyone who would like bring Chaturbate to the future find out
    about this topic. You realize so much its almosxt hard to argue wwith you (not that I really would want to…HaHa).
    You definitely put a fresh spin oon a sujbject that has been written about for
    years. Excellent stuff, juust excellent!

  29. I went over this website and I conceive you have a lot of excellent
    info, bookmarked (:.

    Also visit my webpage; car Insurance

  30. Thanks for any other informative blog. The place else could I get that type of info written in such a perfect method?
    I have a mission that I am simply now working on,
    and I’ve been at the look out for such info.

    My homepage :: เครื่องย่อยเศษอาหาร

  31. I went over this web site and I think you have a lot of wonderful information, saved to fav (:.

    Feel free to visit my webpage voice Coaching

  32. Website link dice:

    Purchases will very first be deducted from deposited funds in your
    iLottery Account.

    my page … Website link

  33. The 800 block of Vance Street will be closed for a water and sewer project, according
    to a news release from Raleigh officials.

    my webpage: Check out the post right here

  34. check here dice:

    This suggests the state is jst ahead of Texas in the list off the total prize winnings for the draw.

    Feel free to surf to my web-site … check here

  35. TAMPA, Fla. — The Florida Lottery announced Wednesday a limited-time “Daily Bonus
    Plaay Promotion,” that will give 43 lucky players up to $25,
    000 in bonus money.

    My web blog … Additional reading

  36. Learn here dice:

    Here’s exactly where to find thhe closest New Yorkk Lottery
    game retailersnear you.

    My web blog: Learn here

  37. I would like to express my passion for your kind-heartedness brace for fracture joliet men who require help with
    the content. Your very own commitment to passing the message all through
    has been astonishingly invaluable and has all the time enabled associates like me to arrive at their dreams.
    Your own warm and helpful guidelines entails
    so much to me and somewhat more to my office colleagues.
    With thanks; from all of us.

  38. The final time the Powerball jackpot was hit prior to Wednesday was
    oon Oct. four, when a single ticket in California took dwelling
    the $699.8 million grand prize.

    Visit my page – Browse around this site

  39. There are tax implications forr each, while, in the end, an annuity tends to have a higher tax benefit.

    My web-site follow this link

  40. The winning tickjet matched 4 numbers, and the Powerball was purchased at the Colvin Industry Deli and Grill on Colvin Avenue.

    Chek out myy web-site … Additional resources

  41. View website dice:

    Nonetheless, the Wisconsin Lottery did sayy thee ticket was sold in Green Bay.

    Here is my site … View website

  42. Most locations where Powerball ticksts are sold will also post the
    most recent draws.

    my homepage :: Helpful resources

  43. The drawing is element of tthe state’s “Bringing Summer time Back” campaign, which was initiated
    to encourage North Carolia residents to get COVID-19 vaccination.

    my website – Find more info

  44. Definitely believe that which you said. Your favorite reason seemed to be
    on the internet the easiest thing to consider of.

    I say to you, I definitely get irked while folks consider concerns that they plainly do not know about.
    You controlled to hit the nail upon the top and also outlined out
    the whole thing without having side-effects , people can take
    a signal. Will likely be again to get more. Thanks

  45. Ставки на спорт , Ставки на киберспорт
    Ставки на спорт

  46. Click here! dice:

    No 1 won Saturday’s estimated jackot of $500 million, generating
    it the 38th in a row without a winner.

    Feel free to surf to my page … Click here!

  47. Great site dice:

    He was randomly selected from the shortlist of five finalists through the live tv broadcast of ‘Dick Clark’s New Year’s
    Rockin’ Eve with Ryaan Seacrest’.

    Feel freee to viit my page … Great site

  48. My partner and I stumbled over here different website and thought I
    might as well check things out. I like what
    I see so now I’m following you. Look forward to checking out your web page repeatedly.

  49. But if yyou genuinely want your shgare of the jackpot, you
    have toplay the Lotto!

    My web-site Visit this website

  50. Hmm is anyone else encountering problems with the pictures on this blog loading?
    I’m trying to find out if its a problem on my end
    or if it’s the blog. Any responses would be
    greatly appreciated.

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *