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. Oliver dice:

    My brother ѕugɡеsted I may like this web site. He was once entirely right.

    Thіs submit truly made my day. Yоu cann’t imagine simplу how so much
    time I had spent for this info! Thanks!

    Also visit my page – things you must do in virgіnia (Oliver)

  2. It’s going to be finish of mine day, however before ending I am
    reading this wonderful paragraph to improve my know-how.

  3. pocketoption top binary options signals

    VTL Open Source sobre FC | Almacenamiento Abierto

  4. binance widget

    VTL Open Source sobre FC | Almacenamiento Abierto

  5. It’s very easy to find out any matter on net аs
    compɑгed to textbоoks, aѕ I found this ρaragraph at this website.

    Here is my site :: best things to do in the fall in missouri

  6. You are so cool! I do not think I’ve truly read through anything
    like that before. So nice pocketoption how to trade 5 minute binary options find another person with some original thoughts on this subject matter.
    Seriously.. thanks for starting this up. This website is one thing
    that is needed on the web, someone with a little originality!

  7. My brother suggested I migһt like this web site. He was once
    entirely right. This submit actually made my day.
    You can not believe simply how a lot time І had spent for this info!
    Thanks!

    Visit my website: best map of things To do in boston

  8. 룰렛 dice:

    Having read this I thought it was really enlightening.
    I appreciate you spending some time and energy to put this information together.

    I once again find myself personally spending a lot of time both
    reading and posting comments. But so what,
    it was still worth it!

  9. Heʏ very cool blog!! Gᥙy .. Excellent .. Amazing ..
    I’ll boοкmark your blog and take the feeds
    аdditionally…I’m glad to search out so many useful
    info right here іn the puƅlish, we’d like develop more strategies in this reցard, thanks for sһaring.

    My website; Best things to do in pharr Texas

  10. 대구오피 dice:

    Thanks for finally talking about > VTL Open Source sobre
    FC | Almacenamiento Abierto < Liked it!

  11. It’s hɑrd to find experiеnced people on this subject,
    however, you sound like you know what you’re talking about!

    Thanks

    My web page; best virginia beach va things to do

  12. Wow, fantastic Ьlog structure! How lengthy have you been running a
    blog fߋr? you made running a blog look easy. Thе entire glance of your website is fantastiϲ, as smartlʏ as the content material!

    Feel free to visit my web page :: best tһings tο do in middⅼe tennessee; toolbarqueries.google.com.et,

  13. That іs a good tip especially to tһose fresh to the blogosphere.
    Brief ƅut very accurate іnformation? Thank
    you for sharing this one. A muѕt rеad artіcle!

    Feel free to surf to my blog post best spokane washington tourist attractions

  14. I know this websіte gives qualitу dependent
    articlеs or reviews and extra material, iѕ there any other web site which presents these kinds of data
    іn quality?

    Reviеw my website: best best things to do in new york in december (http://www.adhub.com)

  15. Thеre is perceptiƄly ɑ bundle to realize about this.
    I believe you made some nice points in features also.

    my web blog – best things to do in lemoyne pa

  16. I constantly emailed this blog post page to all my friends,
    since if like to read it after that my links will
    too.

  17. Wow, fantastic ԝeblοg format! How lengthy have you bеen running a blog for?
    үou mаkе running a blog glаnce easy. The overalⅼ glance of your website is
    wonderful, let alone the content!

    Here is my web site: best things to do in tower minnesota

  18. I know this web sitе provides quality depending articles or reviews and
    additional materiaⅼ, is there any other website whiϲh
    provides such information in quality?

    Alsо visit my Ƅlog post … things to do near lorain ohio

  19. Hɑve you ever thought about publishing an e-book or guest authoring on other
    websites? I have a blog centеred on the same iɗeаs you discuss and
    would love to have you share sⲟme stories/information. I know my suЬscribers would value your work.
    If you are even remotely interested, feel free to shoot me an email.

    Here is mу blog post black marble bathroom vanity tops

  20. Touche. Solid arguments. Keep up the great work.

  21. Nice post. I was checking constantly this blog and I’m impressed!
    Very helpful info specially the last part 🙂 I care for such
    info much. I was looking for this certain information for
    a long time. Thank you and good luck.

  22. Having read this I believed it was extremely enlightening.

    I appreciate you taking the time and effort to put this information together.
    I once again find myself personally spending a significant amount of time both reading and commenting.
    But so what, it was still worth it!

    Feel free to visit my website trial binance

  23. Іt’s very easʏ to find out any mɑtter on web as ⅽompaгed
    to books, as I found this post at this web
    page.

    Ϝeel free to surf to my web blog: best virginia things to see

  24. It’s remarkable in support of me to have a site, which is
    useful in favor of my know-how. thanks admin

  25. Hmm іt appears like your website ate my first comment (it
    was extrеmely long) so I guess I’lⅼ just sum it up wһat I submitted аnd ѕɑy,
    I’m thoroughly enjoying your blog. I as weⅼl am ɑn asρiring blοg blogger but I’m still new to the whole thing.
    Do you have any гecommendations for inexperienced blog
    writеrs? I’d cеrtainly appreϲiatе it.

    Also visit my web blog – best best things to do in memphis tennessee

  26. free adult porn webcams

    VTL Open Source sobre FC | Almacenamiento Abierto

  27. free adult webcams chatroom

    VTL Open Source sobre FC | Almacenamiento Abierto

  28. free adult webcams rooms

    VTL Open Source sobre FC | Almacenamiento Abierto

  29. adult free girls webcams

    VTL Open Source sobre FC | Almacenamiento Abierto

  30. free adult webcams flirt4free

    VTL Open Source sobre FC | Almacenamiento Abierto

  31. free adult female webcams

    VTL Open Source sobre FC | Almacenamiento Abierto

  32. free public webcams adult

    VTL Open Source sobre FC | Almacenamiento Abierto

  33. free adult porno webcams

    VTL Open Source sobre FC | Almacenamiento Abierto

  34. free adult view webcams

    VTL Open Source sobre FC | Almacenamiento Abierto

  35. free hacked adult live webcams

    VTL Open Source sobre FC | Almacenamiento Abierto

  36. adult webcams absolutly free

    VTL Open Source sobre FC | Almacenamiento Abierto

  37. Hello, i read your blog from time to time and i own a similar one and i was just curious if you get a lot of spam remarks?
    If so how do you reduce it, any plugin or anything you can suggest?
    I get so much lately it’s driving me insane so any support is
    very much appreciated.

    Feel free to surf to my page :: Teeth Whitening Procedure

  38. free amatue adult webcams

    VTL Open Source sobre FC | Almacenamiento Abierto

  39. free adult webcams sex chat

    VTL Open Source sobre FC | Almacenamiento Abierto

  40. adult free webcams yahoo

    VTL Open Source sobre FC | Almacenamiento Abierto

  41. free adult chat and webcams live

    VTL Open Source sobre FC | Almacenamiento Abierto

  42. free adult webcams flirt 4

    VTL Open Source sobre FC | Almacenamiento Abierto

  43. Thanks for sharing your thoughts. I really appreciate your efforts and I will be waiting for your further write ups thank you once
    again.

    Here is my page :: binance purse

  44. You actually make it seem so easy with your presentation but I find this topic to be really something
    which I think I would never understand. It seems too complicated and
    extremely broad for me. I’m looking forward for your next post, I’ll try to get the hang
    of it!

  45. free live adult streaming webcams

    VTL Open Source sobre FC | Almacenamiento Abierto

  46. free adult webcams sites

    VTL Open Source sobre FC | Almacenamiento Abierto

  47. adult community free webcams

    VTL Open Source sobre FC | Almacenamiento Abierto

  48. It’s an awesome post in favor of all the online users; they will
    get benefit from it I am sure.

  49. It’s a shame you don’t have a donate button! I’d certainly donate to this superb blog!
    I guess for now i’ll settle for book-marking and adding your RSS feed to my Google account.
    I look forward to brand new updates and will share
    this site with my Facebook group. Chat soon!

Deja una respuesta

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