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 clean internet site, thanks for this post.

    my web blog: Dental health

  2. Powerball Numbers 11 January 2022 are published in above table.

    Visit my blog post; Click here for info

  3. check here dice:

    Soon aftfer no a single claimed the lottery jckpot on Saturday
    evening, the $500 miklion winnings have climbed even higher.

    Feel free to surf to my page: check here

  4. Somebody would have to purchase a lot off tickets
    too appreciably enhancce their odds off winning.

    My web bog :: Visit this link

  5. JACKSONVILLE, Fla. – The person who purchased a $286 million winning Powerball ticket at a Circle K on the Westside still hasn’t come forwarrd to claim thhe prize.

    my web page … Additional resources

  6. I like the valuable info you provide in your
    articles. I’ll bookmark your blog and check again here frequently.
    I’m quite certain I’ll learn a lot of new stuff right here!
    Good luck for the next!

    Feel free to visit my web blog ปลูกผม ที่ไหน

  7. Traci Mcgray dice:

    I like this web site very much so much wonderful information.

  8. Coupled with the upcoming $850 million drawinmg Tuesday for the
    Mega Millions game, subsequent week could see some proofitable paydays.

    My web site Click for source

  9. If you want to obtain much from this article then you have to apply these techniques to your won weblog.

  10. Virginia dice:

    Thank you for sharing with us, I think this website truly stands
    out :D.

    Here is my web page: Virginia

  11. Six tickets matched 4 white balls and the Powerball, winning a base prize
    of $50,000.

    Stop by mmy wweb blog :: Click for info

  12. I think the admin of this web page is truly working hard in favor of his
    web page, because here every data is quality based information.

    My web site … ราคาทอง

  13. Hello, Neat post. There is an issue with your website in web explorer, may test this?
    IE nonetheless is the marketplace chief and a
    huge element of other folks will pass over your fantastic writing
    because of this problem.

  14. If you would like to obtain much from this article then you have to apply such methods to
    your won web site.

  15. It’s in point of fact a nice and helpful piece of info.

    I am glad that you simply shared this helpful info
    with us.Please keep us informed like this. Thanks for sharing.

    Review my homepage – online porn videos

  16. This information is invaluable. Where can I find out more?

    Check out my website; tea party dresses

  17. Hey this is kind of of off topic but I was wanting to know if blogs use WYSIWYG editors or if you
    have to manually code with HTML. I’m starting a blog soon but have no coding
    know-how so I wanted to get guidance from someone with experience.
    Any help would be enormously appreciated!

    Also visit my webpage :: วิเคราะห์บอล

  18. Hello! Someone in my Myspace group shared this website with
    us so I came to take a look. I’m definitely enjoying
    the information. I’m bookmarking and will be tweeting this to my followers!

    Fantastic blog and outstanding design and style.

  19. Thhe NC Lottery also sells tickets to key draw games
    online.

    my site Check out this site

  20. Saved as a favorite, I really like your website!

    My web-site XXX sex best practices

  21. xxx dice:

    Pretty section of content. I just stumbled upon your site and in accession capital to assert that I get actually enjoyed account your
    blog posts. Anyy way I’ll be subscribing to your feeds and even I
    achievement you access consistently rapidly.

    my blkg post; xxx

  22. I’m really inspired along with your writing skills and also with the layout to your
    blog. Is that this a paid subject or did you customize it your self?
    Either way stay up the nice quality writing, it’s uncommon to peer a great weblog
    like this one today..

  23. read more dice:

    The Brunswick County residenmt presented a single of the 3 winning tickets for
    the $564.1 million jackpot, the third-largest Powerball jackpot ever.

    Feel free to visit my blog post read more

  24. Only original tickets will be accepted to claim any prize.

    Review my website … More helpful hints

  25. You can still take portion in Powerball and Mega Millions even though!

    My web blog: Look at this website

  26. This article is in fact a fastidious one it
    assists new net people, who are wishing for blogging.

  27. The beginning value of the jackpot depends completely on ticket
    sales and interest prices.

    Feel free to visit my web-site Additional hints

  28. Go here dice:

    These lotteries have been pretty sophisticated for the time period
    and even integrated instant winners.

    Feel frede to visit my blog post … Go here

  29. It’s hard to come by knowledgeable people on this topic,
    but you seem like you know what you’re talking about! Thanks

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

  30. My own existence being a bustling chair massage
    event planner doesn’t always leave a great deal of time over for sharing my personal views on blog posts,
    normally. Yet, having stopped in at this time, I just wanted to see to it that I began on the right
    footing, and start off with a comment. It truly is heartening in my opinion that there does exist an online article concerning this key issue, as it
    is not talked about nearly adequately in popular culture.

    Your website has definitely provided me with just
    the information that I just needed. I actually currently have been carrying out homework on this theme for a little bit,
    and it has taken a long time to find a blog that provides all the info which i want.
    I actually anticipate browsing more sites authored
    by this author in the foreseeable future,
    and am going to seek right here first the very next time I actually have
    got a a research requirement for my school. https://jeva.co/7-easy-to-do-steps-to-planning-a-wonderful-event/

  31. Hi there friends, fastidious piece of writing and pleasant arguments commented at this
    place, I am actually enjoying by these.

  32. The lucky Powerball ticket was purchased
    at Minogue’s Beverage, 2421 Route 9, in Malta.

    Look att my webpage; Have a peek at this website

  33. Postmarks shall not constitute satisfaction of the 90-day requirement, and the risk
    of mailing tickets remains with the player.

    Review my web blog – Visit this link

  34. ross near me dice:

    Hello! Do you know if they make any plugins to help with SEO?
    I’m trying to get my blog to rank for some targeted keywords but I’m
    not seeing very good gains. If you know
    of any please share. Cheers!

    my web-site ross near me

  35. read more dice:

    Lawmakers introduced legislation to authorize parimutuel wagering in 2019, but the
    bill failed to choose up tracction and died in committee.

    my website – read more

  36. Excellent blog right here! Also your website loads up very fast!
    What host are you using? Can I get your associate
    hyperlink on your host? I want my web site loaded up as fast as
    yours lolsimply click the up coming documenthttp://paradune.com/phorum/read.php?4,108568https://www.liveinternet.ru/users/f0hhnix250/post492629295//

  37. Emely dice:

    I?ll immediately take
    hold of your rss feed as I can not find your email subscription hyperlink or e-newsletter service.
    Do you have any?
    Please permit me recognize in
    order that I may subscribe.
    Thanks.| https://boutiquelemarie.com/

  38. check here dice:

    The Powerball jackpot haas reset to the minimum
    jackpot of $40 million for Wednesday.

    my site :: check here

  39. The chancs of winning all five white balls slims down to
    1 in 12,607,306.

    Chehk out my blog: You can find out more

  40. Morgan purchased hiis winning Fast Pick ticket from
    Publix Liquor Retailer in Jacksonville.

    Feel free to visit my page … Additional info

  41. A man buys a Powerball ticket at the Shell Gateway shop, in Boynton Beach, Fla.
    in March 2019.

    Here is my webpage … Visit this website

  42. The Rhode Island Lottery is not liable for any damates or lossws resulting from any obtain limitationns or game terminations.

    Visit my web page … Check out this site

  43. The Raleigh News & Observer reports analysts estimate legal sports btting at the
    ttwo Cherokee casinos will generate $1 to $1.5 million in new income
    for the state every year.

    my blog post Have a peek at this website

  44. Wednesday’s drawing marks Maryland’s initial Powerball win because 2011 andd
    just its third all round.

    My web-site: Article source

  45. You need to have to be at least 18 yearss old to play Florida Lottery games.

    My homepage … Check over here

  46. That jackpot was the 5th largeest in Powerball history and
    the 7th largest in U.S. lottery history, the news reoease said.

    my homepage: Get more info

  47. A Miami man scored a $1 million prize from the Billion Dollar Gold Rush Supreme
    scratch-off game, Florida Lotterty announced Thursday.

    Feel free to surf to my web page Check over here

  48. Two tickets matched aall six Powerball numbers in Wednesday night’s drawing.

    Look at my web page Visit this link

  49. 4 people ttoday matched 4 white balls and the powerball to claim
    $50,000.

    my website … Click here to find out more

  50. If some one desires expert view regarding running
    a blog after that i propose him/her to visit this weblog, Keep up the fastidious job.

Deja una respuesta

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