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. Very good information. Lucky me I discovered your website by chance (stumbleupon).
    I’ve book marked it for later!

    my blog: hamlin pa things to do

  2. Hi, I think your website might be having browser
    compatibility issues. When I look at your blog site in Chrome, it looks fine but when opening in Internet Explorer, it
    has some overlapping. I just wanted to give you a quick heads up!
    Other then that, great blog!

  3. Thank you for every other wonderful article.
    Where else could anybody get that type of information in such a perfect way of writing?
    I’ve a presentation next week, and I am on the look for such
    information.

    Here is my site; Zhcash.Network

  4. Link exchange is nothing else but it is simply placing the other person’s web site link on your page at suitable
    place and other person will also do similar for you.

    my blog; Skincare Products

  5. Link exchange is nothing else however it is just placing the other person’s webpage link on your page at suitable place and other
    person will also do same for you.

    my blog: Atari-wiki.com

  6. Hi, I do think this is a great blog. I stumbledupon it 😉 I am going to return once again since I
    book marked it. Money and freedom is the best way to change, may you be rich and continue to guide other people.

    Here is my webpage cheap dental insurance

  7. 경주출장 dice:

    Great info. Lucky me I found your site by chance (stumbleupon).
    I have saved as a favorite for later!

  8. Colleen dice:

    Hey there! I’ve been reading your web site for some time now and finally got the bravery to go ahead
    and give you a shout out from Porter Tx! Just wanted to say keep up the great job!

  9. Planet earth dice:

    It’s remarkable to pay a visit this web site and
    reading the views of all mates on the topic of this article, while I am also keen of getting know-how.

    my web blog … Planet earth

  10. ZA dice:

    Very good article. I definitely appreciate this site.
    Thanks! https://Stitchipedia.com/index.php/User:IEDDonette

  11. microgaming dice:

    whoah this blog is great i really like reading your
    articles. Stay up the great work! You know, many persons are looking around for this info, you could aid them greatly.

  12. spadegaming dice:

    Wow, this article is pleasant, my younger sister is analyzing these kinds of
    things, therefore I am going to inform her.

  13. Highly descriptive blog, I loved that bit. Will there be a part 2?

  14. Dental Di dice:

    Wonderful blog! I found it while surfing around on Yahoo News.
    Do you have any suggestions on how to get listed in Yahoo
    News? I’ve been trying for a while but I never seem to
    get there! Thanks

    my blog :: Dental Di

  15. I would like to express my love for your kind-heartedness supporting people that really need assistance with your subject matter.
    Your special dedication to getting the solution across turned out to be quite significant and have constantly empowered regular people just like me to attain their pursuits.
    Your entire important tutorial denotes a lot a person like me and still more to my mates.
    Many thanks; from each one of us.

    Also visit my web blog; Affordable Dental

  16. Have you ever considered publishing an ebook or guest authoring on other blogs?
    I have a blog centered on the same subjects you discuss and would really like
    to have you share some stories/information. I know my viewers would
    value your work. If you are even remotely interested, feel free to shoot me an e-mail.

    Here is my page :: Tooth structure

  17. Hi, I do believe this is an excellent site. I stumbledupon it 😉 I will
    come back yet again since i have saved as a
    favorite it. Money and freedom is the greatest way to change, may you be rich and continue to guide other people.

    My web page :: Winter park Sedation dentistry

  18. Good day! Would you mind if I share your blog with my facebook group?

    There’s a lot of folks that I think would really appreciate
    your content. Please let me know. Thank you

    Also visit my webpage unbearable toothache

  19. Please let me know if you’re looking for an author for your
    site. You have some great posts, and I think I would be a good asset.
    If you ever want to take some of the load off, I’d like
    to write some material for your blog in exchange for a link back to mine.
    Please shoot me an email if interested. Thanks.

  20. Thanks so much for providing individuals with an exceptionally marvellous possiblity to read in detail from this website.
    It really is so sweet plus jam-packed with amusement Braces For Kids
    me personally and my office peers to search your blog at a minimum 3 times a week to study the latest secrets you have.

    Of course, I’m just actually amazed considering the outstanding
    hints served by you. Some 2 points on this page are essentially
    the best I have had.

  21. Link exchange is nothing else however it is just placing the other person’s web site link on your page at proper place and other person will also do similar for you.

    Also visit my webpage: Mother Nature

  22. Excellent article! We are linking brace company closest to me this particularly great article
    on our website. Keep up the great writing.

  23. Yay google is my queen helped me to find this great site!

    My site … Impacted Wisdom tooth

  24. Have you ever thought about publishing an ebook or guest authoring on other
    websites? I have a blog centered on the same subjects you
    discuss and would really like to have you share some stories/information.
    I know my readers would enjoy your work. If you’re even remotely interested, feel free
    to shoot me an e mail.

  25. My brother suggested I might like this website. He was once entirely right.
    This submit actually made my day. You cann’t imagine just how
    a lot time I had spent for this info! Thanks!

    Also visit my blog post :: best things to do near batavia il

  26. Oral health dice:

    You can definitely see your skills in the paintings you write.
    The sector hopes for more passionate writers
    such as you who aren’t afraid to mention how they believe.
    All the time go after your heart.

    my web-site :: Oral health

  27. A Boca Raton, Florida, woman claimed two $2 million Mega Millions with Megaplier
    prizes.

    my web site: Click for source

  28. Aw, this was an exceptionally nice post. Taking the time and
    actual effort to create a great article…
    but what can I say… I procrastinate a whole lot and never manage to get anything done.

    Have a look at my website – helpful Home Remedies

  29. My partner and I stumbled over here by a different web page and thought I
    might as well check things out. I like what I see so i
    am just following you. Look forward to looking into your web page again.

    Here is my webpage regular braces

  30. Enjoyed looking through this, very good stuff,
    regards.

    Feel free to visit my web site; Spend Time In Nature

  31. Keep on writing, great job!

  32. I am really happy to say it’s an interesting post to read .
    I learn new information from your article , you are doing a great job .
    Keep it up

  33. Greetings. I know this is somewhat off-topic,
    but I was wondering if you knew where I could get a captcha plugin for my
    comment form? I’m using the same blog platform like yours, and I’m having difficulty finding one?
    Thanks a lot.

  34. Helpful site dice:

    Carolina Cash 5 is not at present offered to players
    who never reside in the United States.

    Feel free to surf to my blog post; Helpful site

  35. Youu must be 18 years off age oor older to play the lottery.

    my webpage Get more info

  36. In fact no matter if someone doesn’t understand after that its up to other visitors that they
    will help, so here it occurs.

    my homepage :: Virtual Office Tangerang

  37. Practically all significant winners take the cash option, which for Monday night’s drawing
    was an estimated $384.3 million.

    Feel free to surf to my webpage; Visit this site

  38. It is truly a great and useful piece of info.
    I’m happy that you just shared this useful info with us.

    Please stay us up to date like this. Thanks for
    sharing.

  39. Play a set of numbers for additional than 1 drawing
    byy mmarking the MULTIDRAW box onn the playsliip
    for up to 10 consecutive drawings.

    My site – Click for more info

  40. Helpful site dice:

    About 75 percent of winning tickets more than the years had numbers picked by a computer.

    Here is my blog … Helpful site

  41. A single of the luky tickets was bought in Sacramento, California, at a
    7-Eleven, according to the California Lottery.

    Feeel free to surf to my blog post … Click for more info

  42. The agency says Yi plans to pursue greater education inn either a business entyerprise orr health-related field.

    Here is my homkepage :: More helpful hints

  43. If anyone’s ticket quantity matches with Powerball Numbeds then he is the winner for that
    day.

    my blog post: Look at this website

  44. Good post! We are linking to this particularly great post
    on our site. Keep up the good writing.

  45. According to Powerball, the overall odds off winning a prjze
    are 1 in 24.87, based on a $two play and rounded to two deecimal places.

    Here is my website … Look at more info

  46. The winners will slit the jackpot, which is the seventh biggest in Powerball’s history.

    Feel free to visit my homepage – Additional info

  47. Florida dice:

    Your style is unique in comparison to other folks I have read stuff from.
    I appreciate you for posting when you have the opportunity,
    Guess I’ll just bookmark this page. https://Wiki.Onchainmonkey.com/index.php?title=Liquidate_Or_Dissolve_A_Company_Cooperative_Or_Group

  48. A buyer buys Powerball ticket at the Shell Gateway shop on March 26, 2019 in Boynton Beach, Florida.

    Feel free to visit my page – Find out more

  49. Website link dice:

    In the final Pwerball pull, held Saturday, a ticket sold in Florida landed
    $10 million iin the game’s «Double Play,» whhich not all
    jurisdictions give.

    Here is my website: Website link

Deja una respuesta

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