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. more info dice:

    I simply couldn’t leave your website prior to suggesting that I really enjoyed the
    usual info a person provide for your visitors? Is going to be again continuously to inspect new posts

  2. We stumbled over here different website and thought I should check things
    out. I like what I see so now i’m following you.

    Look forward to finding out about your web page for a second time.

  3. I do not even know how I stopped up here, but I believed this post used to
    be great. I don’t recognise who you are but certainly you’re
    going to a well-known blogger in case you aren’t already. Cheers!

  4. Hello there! Do you use Twitter? I’d like to follow you if that would be ok.
    I’m undoubtedly enjoying your blog and look forward to new posts.

  5. I just like the helpful information you supply in your articles.
    I will bookmark your weblog and check once more right here regularly.
    I am quite sure I’ll be informed a lot of new stuff right here!
    Best of luck for the following!

  6. voidstar.com dice:

    This is not the first time I came across a blog page that was worthy of writing comments on. This particular type of blog
    post is intriguing to me. I in actual fact live a daily life of a good number of ways;
    that is to say that my employment functions are
    distinct. I carry out Perinatal Massage Therapy.
    Also, I buy and sell antiques. I’m learning Centos8.
    And, that’s really a couple of pursuits I undertake. Anyways, my idea is, every one of us all
    considers a subject from a exclusive perspective. Just about
    every experience all of us have forms us and our viewpoint of our own selves and the
    planet around you and me. I think that tracking down some superior impression of actuality is
    exactly where all the things many of us chat regarding brings us to.

    That being said, exactly how can people today in that case communicate?
    Is it even possible? I think all of our unique additions to
    the Web Commons shifts countless citizens, sometimes.

    As a result ponder that, blog editors and individuals leaving comments.
    Your current opinion could very well aid another person. Or even, commentary can easily achieve
    the contrary. And, you really have to care to try to guide
    others to mature and definitely not wither. Thanks a lot
    for this specific blog page; I personally
    am filing this blog along with my various other exceptional blogs I’ve come across that I actually bothered to
    comment on. Always keep crafting! Keep expressing! http://voidstar.com/opml/?url=http://at-home-massage-nj.njmassage.info/at-home-massage/2013/03/spa-parties-money-skills-and-their-lack-of-real-correlation-considering-the-matter-further/

  7. togel sgp dice:

    I’m not sure why but this website is loading very slow for me.
    Is anyone else having this problem or is it a problem on my end?
    I’ll check back later and see if the problem still exists.

  8. Undeniably believe that which you said. Your favorite
    reason appeared to be on the web the easiest thing to be aware of.
    I say to you, I definitely get irked while people think about worries
    that they just do not know about. You managed to hit the nail upon the top and defined out the whole thing without having side effect , people could take a signal.
    Will probably be back to get more. Thanks

  9. We are a group of volunteers and opening a new scheme in our
    community. Your site provided us with valuable info to work on. You have
    done a formidable job and our entire community will be grateful to you.

  10. You ought to be a part of a contest for one of the finest websites
    on the web. I’m going to highly recommend this blog!

  11. Do you have any video of that? I’d care to find out more details.

  12. ibc9 login dice:

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

  13. Heya! I just wanted to ask if you ever have any issues
    with hackers? My last blog (wordpress) was hacked and I ended up losing months of hard work due to no data
    backup. Do you have any solutions to prevent hackers?

  14. free-islam.org

    Fallo al enviar el comentario

  15. Wow! This blog looks just like my old one!
    It’s on a entirely different topic but it has pretty much the
    same page layout and design. Wonderful choice of colors!

  16. Greetings! Very useful advice in this particular post!
    It’s the little changes that will make the greatest changes.
    Thanks a lot for sharing!

  17. Flower Mound dice:

    Hello! I understand this is somewhat off-topic but I needed to ask.
    Does operating a well-established blog such as yours take a large amount of
    work? I am brand new to writing a blog however I do write in my diary every day.

    I’d like to start a blog so I can share my own experience and thoughts online.
    Please let me know if you have any ideas or tips for new
    aspiring blog owners. Appreciate it!

  18. slot 88 dice:

    Link exchange is nothing else but it is just placing
    the other person’s web site link on your page at appropriate place
    and other person will also do similar in favor of you.

  19. What’s up to all, it’s genuinely a good for me to pay a visit this website, it includes useful Information.

  20. Do you have a spam problem on this site; I also am a blogger, and I was curious about your situation; many of us have created some nice practices and we are looking to trade techniques with other folks, please shoot me an e-mail if interested.

  21. Thank you for the auspicious writeup. It in truth was a amusement account it.
    Look advanced to far delivered agreeable from you! However,
    how could we be in contact?

  22. That is a great tip particularly to those new to the blogosphere.
    Short but very precise information… Appreciate your sharing this one.
    A must read post!

  23. Everything is very open with a clear explanation of the challenges.
    It was definitely informative. Your site is useful. Many thanks for sharing!

  24. asia99th dice:

    Hi! I’ve been following your site for a long time now and finally got the bravery to go ahead and give you
    a shout out from Dallas Tx! Just wanted to tell you keep up the excellent work!

  25. After I initially left a comment I appear to have clicked on the -Notify me when new
    comments are added- checkbox and from now on every time a comment is added
    I recieve 4 emails with the exact same comment. Is there an easy method you are able to remove me from that service?
    Thanks a lot!

  26. I am truly grateful to the holder of this web page who has shared this impressive paragraph at at this time.

  27. We will teach you how to earn $ 7000 per hour. Why? We will profit from your profit.https://go.binaryoption.ae/FmUKhe

  28. Good day! I know this is somewhat off topic but I was
    wondering which blog platform are you using for this website?
    I’m getting tired of WordPress because I’ve had issues
    with hackers and I’m looking at alternatives for another platform.
    I would be awesome if you could point me in the direction of a good
    platform.

  29. Wow, awesome weblog structure! How lengthy have you ever been blogging for?
    you make running a blog glance easy. The overall look of your web site is wonderful, let alone
    the content material!

  30. I do trust all the ideas you have presented on your post.
    They’re really convincing and can definitely work. Nonetheless,
    the posts are very brief for newbies. May just you please
    lengthen them a little from next time? Thank you for the post.

  31. Your means of explaining all in this post is actually nice, all can easily
    be aware of it, Thanks a lot.
    try before you buy

  32. of course like your web-site but you have to take a look at the spelling on quite a few of your posts.
    Several of them are rife with spelling issues and I find it very troublesome to inform the truth however I’ll surely come back again.

    my homepage: หวยออนไลน์

  33. Nice weblog here! Also your site rather a lot up fast!
    What web host are you the usage of? Can I am getting your affiliate
    link in your host? I wish my website loaded
    up as fast as yours lol

    Feel free to visit my blog post; เว็บแท่งหวยออนไลน์

  34. Triggerjet.info

    Fallo al enviar el comentario

  35. My day-to-day living as being a busy massage party administrator doesn’t
    leave a lot of spare time for sharing my opinions on websites,
    typically. But, having already stopped in this afternoon, I wanted to make sure that I started off on the
    best possible footing, and begin with a comment. It truly is
    gladdening in my opinion that there does exist a post to do with this important area of
    interest, as it’s not discussed nearly enough in popular culture. http://max.affijapa.com/data/rank.cgi?mode=link&id=158&url=https://njmassages.com/event

  36. Heya terrific blog! Does running a blog like this require a massive amount work?
    I’ve absolutely no expertise in coding however I had been hoping to start my own blog soon. Anyways, if you have
    any recommendations or tips for new blog owners please share.
    I understand this is off topic however I simply had to ask.
    Kudos!

    Feel free to surf to my web page; ซื้อหวยในเว็บ

  37. erople dice:

    sildenafil citrate sildenafil 100 buy viagra

  38. RUAY dice:

    I every time spent my half an hour to read this website’s posts every day
    along with a mug of coffee.

  39. I need to to thank you for this good read!! I absolutely enjoyed
    every bit of it. I’ve got you book marked to check out new
    things you post…

  40. It’s really very complicated in this full of activity life to listen news on Television, thus
    I simply use world wide web for that reason, and get the hottest news.

  41. Right here is the perfect website for anybody who would like to understand this topic.
    You know a whole lot its almost tough to argue with you (not
    that I actually will need to…HaHa). You definitely put a
    brand new spin on a subject that has been written about for ages.
    Excellent stuff, just excellent!

  42. รับแทงหวย

    VTL Open Source sobre FC | Almacenamiento Abierto

  43. Hello, after reading tһiѕ amazing article і am as weⅼl happy tо share my knowledge
    һere with friends.

  44. Percy dice:

    These are truly enormous ideas in on the topic of blogging.
    You have touched some pleasant things here. Any way keep up wrinting.

  45. Nice post. I learn something new and challenging on sites I stumbleupon on a
    daily basis. It’s always helpful to read content from other authors and practice a little something
    from other websites.

  46. Pretty element of content. I simply stumbled upon your
    blog and in accession capital to say that I get actually loved account your
    weblog posts. Any way I’ll be subscribing on your augment or even I success you
    get entry to persistently rapidly.

  47. Rundbecken dice:

    My brother suggested I might like this website. He was totally right.

    This post truly made my day. You can not imagine just
    how much time I had spent for this information! Thanks!

  48. you could try here

    blog topic

Responder a voidstar.com Cancelar la respuesta

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