Re: Examples of tape access

2019-01-24 Thread Dave Jones
For the current version of Bacula, it's in the 
"/bacula-9.4.1/examples/vm/" directory.

DJ

---
DAVID JONES | MANAGING DIRECTOR FOR ZSYSTEMS SERVICES | z/VM, Linux, and
Cloud
703.237.7370 (Office) | 281.578.7544 (CELL)

INFORMATION TECHNOLOGY COMPANY

On 01.23.2019 6:32 PM, David Boyes wrote:

There's also a simple open source CMS-based server in the Bacula
source tree (www.bacula.org) that handles mount/dismount and tape
attaches runnable from Linux guests. Might work for your purposes;
Adam and I wrote it ages back for a purpose like this. I believe it's
in a directory called 'extras/VM'.





--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 
or visit

http://www.marist.edu/htbin/wlvindex?LINUX-390


--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: Examples of tape access

2019-01-24 Thread David Boyes
There's also a simple open source CMS-based server in the Bacula source tree 
(www.bacula.org) that handles mount/dismount and tape attaches runnable from 
Linux guests. Might work for your purposes; Adam and I wrote it ages back for a 
purpose like this. I believe it's in a directory called 'extras/VM'.





--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: Examples of tape access

2019-01-22 Thread Harder, Pieter
To add to that, that is basically what the guest support for z/VSE did. 
VGLIBSRV if I remember correctly. It wasn't there when I looked at it, so I had 
a little cooperation with I think Antoinette Kashner (I may have spelled her 
name wrong, or remembered incorrectly, anyway someone from Boeblingen) and 
wrote the CMS based additions for VSE class support myself. I don't remember 
who did DFSMS then in Endicott, but he accepted my changes into the IBM 
product. They were still there years later when my company dropped z/VSE.

best regards,

Pieter Harder

Van: Harder, Pieter
Verzonden: dinsdag 22 januari 2019 23:40
Aan: Linux on 390 Port
Onderwerp: Re: Examples of tape access

Long ago, in a different galaxy I had Ficon tapes library-mounted for Linux 
guest through a companion CMS server (hello WAKEP!!) that did the DFSMS stuff. 
Crude, but it worked.

best regards

Pieter Harder
(still daily comparing VMWare ESX with z/VM and finding it lacking...)

Van: Linux on 390 Port  namens Alan Altmark 

Verzonden: dinsdag 22 januari 2019 23:23
Aan: LINUX-390@VM.MARIST.EDU
Onderwerp: Re: Examples of tape access

On Tuesday, 01/22/2019 at 04:42 GMT, "Duerbusch, Tom"
 wrote:
> Are you talking something like this?
>
> /bin/sh /sbin/chccwdev -e 0.0.05b0
> regina /home/sleep30.rexx
> /bin/sh /sbin/lstape
> mtst -f /dev/ntibm0 rewind
> regina /home/sleep30.rexx
> /bin/sh /sbin/lstape
> mtst -f /dev/ntibm0 fsf 1
> regina /home/sleep30.rexx
> /bin/sh /sbin/lstape
> mtst -f /dev/ntibm0 compression 1
> regina /home/sleep30.rexx
> /bin/sh /sbin/lstape

Necessary, but not sufficient.  (Why mtst instead of mt?) It's strange
that the DD book doesn't mention which of the tape operations are
supported for FICON.  In any case, you must be able to issue commands to
the library.  I don't see any support for that at all.

Linux is all about SCSI tape, not FICON, but if you're willing to do
manual mounts and category changes via the storage unit UI, you should be
good to go.

>From CMS, as a DFSMSrms admin (untested):
1. DFSMSRM MOUNT SCRATCH SCRATCHx RDEV rdev VDEV 181 WAIT
2. TAPE FSF
3. Write left("VTS BULK VOLUME DATA REQUEST", 80) to 181
4. Write left("", 80) to 181
5. DFSMSRM DEMOUNT RDEV rdev WAIT TARGETCAT VOLSPECIFIC
6. DFSMSRM MOUNT VOLUME volid RDEV rdev WAIT
7. TAPE FSF
8. Start reading the data

In step 1, you can mount a specific volume if you want.  So if you have a
IBM or CA tape manager software, you just ask it to mount a scratch tape
from one of its managed scratch pools.

Alan Altmark

Senior Managing z/VM and Linux Consultant
IBM Systems Lab Services
IBM Z Delivery Practice
ibm.com/systems/services/labservices
office: 607.429.3323
mobile; 607.321.7556
alan_altm...@us.ibm.com
IBM Endicott


--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: Examples of tape access

2019-01-22 Thread Stewart, Lee
VM:Tape has a Linux interfaceNot the most robust, but it works...

Lee Stewart ● VM System Support ● Visa ● Phone:  6(750)4601 - +1-303-389-4601 ● 
lstew...@visa.com


-Original Message-
From: Linux on 390 Port  On Behalf Of Frank M. 
Ramaekers
Sent: Tuesday, January 22, 2019 3:34 PM
To: LINUX-390@VM.MARIST.EDU
Subject: Re: Examples of tape access

Anything on how to interface with RMMASTR (DFSMRM)?

Frank M. Ramaekers Jr.
Systems Analyst I - Unisys


-Original Message-
From: Linux on 390 Port [mailto:LINUX-390@VM.MARIST.EDU] On Behalf Of 
Duerbusch, Tom
Sent: Tuesday, January 22, 2019 10:09 AM
To: LINUX-390@VM.MARIST.EDU
Subject: Re: Examples of tape access

Are you talking something like this?

/bin/sh /sbin/chccwdev -e 0.0.05b0
regina /home/sleep30.rexx
/bin/sh /sbin/lstape
mtst -f /dev/ntibm0 rewind
regina /home/sleep30.rexx
/bin/sh /sbin/lstape
mtst -f /dev/ntibm0 fsf 1
regina /home/sleep30.rexx
/bin/sh /sbin/lstape
mtst -f /dev/ntibm0 compression 1
regina /home/sleep30.rexx
/bin/sh /sbin/lstape

Tom Duerbusch
THD Consulting

On Mon, Jan 21, 2019 at 9:46 AM Frank M. Ramaekers 
wrote:

> Does anyone have examples (bash script) of accessing tape units?  In 
> my case it would be emulated 3490 (actual is TS7700).  I want to 
> retrieve BVIR (Batch Volume Information Retrieval).  This involves 
> writing a request to a new tape, closing, opening as input and reading the 
> same tape back.
>
> Frank Ramaekers Jr. | System Analyst I | Public Cloud Operations Cloud 
> & Infrastructure  Services Unisys | Skype-(512) 387-3949 |
> francis.ramaek...@unisys.com francis.ramaek...@unisys.com>
>
> [unisys_logo]<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.
> unisys.com_=DwIBaQ=laxeQK7vPmHfouIIPNyCfbQd49eK3u00U8Jdo0RFvts=E
> OaM1MkMLG24_TOy4m7EdDoX0CP9-c0YJ2kTdeagcqQ=voBKZ4MSsl6e39S6f42WoxOjR
> Ny0iU5mvSjEQy9gAtw=Kp8ywy2dIo7PdAn7Ay39zJtPH7e-Fyu2PLN2V5GQLkI=>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE 
> PROPRIETARY MATERIAL and is for use only by the intended recipient. If 
> you received this in error, please contact the sender and delete the 
> e-mail and its attachments from all devices.
> [Grey_LI]<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.link
> edin.com_company_unisys=DwIBaQ=laxeQK7vPmHfouIIPNyCfbQd49eK3u00U8J
> do0RFvts=EOaM1MkMLG24_TOy4m7EdDoX0CP9-c0YJ2kTdeagcqQ=voBKZ4MSsl6e3
> 9S6f42WoxOjRNy0iU5mvSjEQy9gAtw=wtIaCjPatiumG0cIaR_SC9V8AAaZUjqYlwS8-
> 388_yg=>  [Grey_TW] <
> https://urldefense.proofpoint.com/v2/url?u=http-3A__twitter.com_unisys
> corp=DwIBaQ=laxeQK7vPmHfouIIPNyCfbQd49eK3u00U8Jdo0RFvts=EOaM1MkM
> LG24_TOy4m7EdDoX0CP9-c0YJ2kTdeagcqQ=voBKZ4MSsl6e39S6f42WoxOjRNy0iU5m
> vSjEQy9gAtw=1eyISfkrp3_uUoafCpORZlrqbWBajML7XpBOpeFzbGI=>
> [Grey_GP] <
> https://urldefense.proofpoint.com/v2/url?u=https-3A__plus.google.com_-
> 2BUnisysCorp_posts=DwIBaQ=laxeQK7vPmHfouIIPNyCfbQd49eK3u00U8Jdo0RF
> vts=EOaM1MkMLG24_TOy4m7EdDoX0CP9-c0YJ2kTdeagcqQ=voBKZ4MSsl6e39S6f4
> 2WoxOjRNy0iU5mvSjEQy9gAtw=dDmGI9vAH-m4IluALRM-MCwW77ZrUh2TT8L2yAkP7b
> o=> [Grey_YT] <
> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.youtube.com_th
> eunisyschannel=DwIBaQ=laxeQK7vPmHfouIIPNyCfbQd49eK3u00U8Jdo0RFvts&
> r=EOaM1MkMLG24_TOy4m7EdDoX0CP9-c0YJ2kTdeagcqQ=voBKZ4MSsl6e39S6f42Wox
> OjRNy0iU5mvSjEQy9gAtw=fWqkhC1gs2KA5n64g_vLHkVvccbl3meRM5jA76FBF3A=
> > [Grey_FB] <
> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.facebook.com_u
> nisyscorp=DwIBaQ=laxeQK7vPmHfouIIPNyCfbQd49eK3u00U8Jdo0RFvts=EOa
> M1MkMLG24_TOy4m7EdDoX0CP9-c0YJ2kTdeagcqQ=voBKZ4MSsl6e39S6f42WoxOjRNy
> 0iU5mvSjEQy9gAtw=Nk8O-Te2egJb7XDsogbgTEiHCPRUBAJmioghA6J75tM=>
> [Grey_Vimeo]
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__vimeo.com_unisys
> =DwIBaQ=laxeQK7vPmHfouIIPNyCfbQd49eK3u00U8Jdo0RFvts=EOaM1MkMLG24
> _TOy4m7EdDoX0CP9-c0YJ2kTdeagcqQ=voBKZ4MSsl6e39S6f42WoxOjRNy0iU5mvSjE
> Qy9gAtw=w_tazm_Tu8JTz_tcGtEwhUOUFN6fnYglaT5AxESoXJc=>
> [Grey_UB]
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__blogs.unisys.com_
> =DwIBaQ=laxeQK7vPmHfouIIPNyCfbQd49eK3u00U8Jdo0RFvts=EOaM1MkMLG24
> _TOy4m7EdDoX0CP9-c0YJ2kTdeagcqQ=voBKZ4MSsl6e39S6f42WoxOjRNy0iU5mvSjE
> Qy9gAtw=aLgfxlqKdveMOPNdH-UpyJuLZuxklyH6drbARYVJSSk=>
> [Grey_Weibo] <
> https://urldefense.proofpoint.com/v2/url?u=https-3A__weibo.com_unisysc
> hina=DwIBaQ=laxeQK7vPmHfouIIPNyCfbQd49eK3u00U8Jdo0RFvts=EOaM1MkM
> LG24_TOy4m7EdDoX0CP9-c0YJ2kTdeagcqQ=voBKZ4MSsl6e39S6f42WoxOjRNy0iU5m
> vSjEQy9gAtw=lFMYDxav1OsTRhTJ7HU1Uh_rkA2a6O-zVCxAVIccY2k=>
>
>
> --
> This message contains information which is privileged and confidential 
> and is solely for the use of the intended recipient. If you are not 
> the intende

Re: Examples of tape access

2019-01-22 Thread Alan Altmark
On Tuesday, 01/22/2019 at 10:34 GMT, "Frank M. Ramaekers" 
 wrote:
> Anything on how to interface with RMMASTR (DFSMRM)?

There is no non-CMS interface to DFSMS on VM.  You'll need a CMS 
intermediary.

Alan Altmark

Senior Managing z/VM and Linux Consultant
IBM Systems Lab Services
IBM Z Delivery Practice
ibm.com/systems/services/labservices
office: 607.429.3323
mobile; 607.321.7556
alan_altm...@us.ibm.com
IBM Endicott


--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: Examples of tape access

2019-01-22 Thread Harder, Pieter
Long ago, in a different galaxy I had Ficon tapes library-mounted for Linux 
guest through a companion CMS server (hello WAKEP!!) that did the DFSMS stuff. 
Crude, but it worked.

best regards

Pieter Harder
(still daily comparing VMWare ESX with z/VM and finding it lacking...)

Van: Linux on 390 Port  namens Alan Altmark 

Verzonden: dinsdag 22 januari 2019 23:23
Aan: LINUX-390@VM.MARIST.EDU
Onderwerp: Re: Examples of tape access

On Tuesday, 01/22/2019 at 04:42 GMT, "Duerbusch, Tom"
 wrote:
> Are you talking something like this?
>
> /bin/sh /sbin/chccwdev -e 0.0.05b0
> regina /home/sleep30.rexx
> /bin/sh /sbin/lstape
> mtst -f /dev/ntibm0 rewind
> regina /home/sleep30.rexx
> /bin/sh /sbin/lstape
> mtst -f /dev/ntibm0 fsf 1
> regina /home/sleep30.rexx
> /bin/sh /sbin/lstape
> mtst -f /dev/ntibm0 compression 1
> regina /home/sleep30.rexx
> /bin/sh /sbin/lstape

Necessary, but not sufficient.  (Why mtst instead of mt?) It's strange
that the DD book doesn't mention which of the tape operations are
supported for FICON.  In any case, you must be able to issue commands to
the library.  I don't see any support for that at all.

Linux is all about SCSI tape, not FICON, but if you're willing to do
manual mounts and category changes via the storage unit UI, you should be
good to go.

>From CMS, as a DFSMSrms admin (untested):
1. DFSMSRM MOUNT SCRATCH SCRATCHx RDEV rdev VDEV 181 WAIT
2. TAPE FSF
3. Write left("VTS BULK VOLUME DATA REQUEST", 80) to 181
4. Write left("", 80) to 181
5. DFSMSRM DEMOUNT RDEV rdev WAIT TARGETCAT VOLSPECIFIC
6. DFSMSRM MOUNT VOLUME volid RDEV rdev WAIT
7. TAPE FSF
8. Start reading the data

In step 1, you can mount a specific volume if you want.  So if you have a
IBM or CA tape manager software, you just ask it to mount a scratch tape
from one of its managed scratch pools.

Alan Altmark

Senior Managing z/VM and Linux Consultant
IBM Systems Lab Services
IBM Z Delivery Practice
ibm.com/systems/services/labservices
office: 607.429.3323
mobile; 607.321.7556
alan_altm...@us.ibm.com
IBM Endicott


--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: Examples of tape access

2019-01-22 Thread Frank M. Ramaekers
Anything on how to interface with RMMASTR (DFSMRM)?

Frank M. Ramaekers Jr.
Systems Analyst I - Unisys


-Original Message-
From: Linux on 390 Port [mailto:LINUX-390@VM.MARIST.EDU] On Behalf Of 
Duerbusch, Tom
Sent: Tuesday, January 22, 2019 10:09 AM
To: LINUX-390@VM.MARIST.EDU
Subject: Re: Examples of tape access

Are you talking something like this?

/bin/sh /sbin/chccwdev -e 0.0.05b0
regina /home/sleep30.rexx
/bin/sh /sbin/lstape
mtst -f /dev/ntibm0 rewind
regina /home/sleep30.rexx
/bin/sh /sbin/lstape
mtst -f /dev/ntibm0 fsf 1
regina /home/sleep30.rexx
/bin/sh /sbin/lstape
mtst -f /dev/ntibm0 compression 1
regina /home/sleep30.rexx
/bin/sh /sbin/lstape

Tom Duerbusch
THD Consulting

On Mon, Jan 21, 2019 at 9:46 AM Frank M. Ramaekers 
wrote:

> Does anyone have examples (bash script) of accessing tape units?  In 
> my case it would be emulated 3490 (actual is TS7700).  I want to 
> retrieve BVIR (Batch Volume Information Retrieval).  This involves 
> writing a request to a new tape, closing, opening as input and reading the 
> same tape back.
>
> Frank Ramaekers Jr. | System Analyst I | Public Cloud Operations Cloud 
> & Infrastructure  Services Unisys | Skype-(512) 387-3949 | 
> francis.ramaek...@unisys.com francis.ramaek...@unisys.com>
>
> [unisys_logo]<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.
> unisys.com_=DwIBaQ=laxeQK7vPmHfouIIPNyCfbQd49eK3u00U8Jdo0RFvts=E
> OaM1MkMLG24_TOy4m7EdDoX0CP9-c0YJ2kTdeagcqQ=voBKZ4MSsl6e39S6f42WoxOjR
> Ny0iU5mvSjEQy9gAtw=Kp8ywy2dIo7PdAn7Ay39zJtPH7e-Fyu2PLN2V5GQLkI=>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE 
> PROPRIETARY MATERIAL and is for use only by the intended recipient. If 
> you received this in error, please contact the sender and delete the 
> e-mail and its attachments from all devices.
> [Grey_LI]<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.link
> edin.com_company_unisys=DwIBaQ=laxeQK7vPmHfouIIPNyCfbQd49eK3u00U8J
> do0RFvts=EOaM1MkMLG24_TOy4m7EdDoX0CP9-c0YJ2kTdeagcqQ=voBKZ4MSsl6e3
> 9S6f42WoxOjRNy0iU5mvSjEQy9gAtw=wtIaCjPatiumG0cIaR_SC9V8AAaZUjqYlwS8-
> 388_yg=>  [Grey_TW] < 
> https://urldefense.proofpoint.com/v2/url?u=http-3A__twitter.com_unisys
> corp=DwIBaQ=laxeQK7vPmHfouIIPNyCfbQd49eK3u00U8Jdo0RFvts=EOaM1MkM
> LG24_TOy4m7EdDoX0CP9-c0YJ2kTdeagcqQ=voBKZ4MSsl6e39S6f42WoxOjRNy0iU5m
> vSjEQy9gAtw=1eyISfkrp3_uUoafCpORZlrqbWBajML7XpBOpeFzbGI=>  
> [Grey_GP] < 
> https://urldefense.proofpoint.com/v2/url?u=https-3A__plus.google.com_-
> 2BUnisysCorp_posts=DwIBaQ=laxeQK7vPmHfouIIPNyCfbQd49eK3u00U8Jdo0RF
> vts=EOaM1MkMLG24_TOy4m7EdDoX0CP9-c0YJ2kTdeagcqQ=voBKZ4MSsl6e39S6f4
> 2WoxOjRNy0iU5mvSjEQy9gAtw=dDmGI9vAH-m4IluALRM-MCwW77ZrUh2TT8L2yAkP7b
> o=> [Grey_YT] < 
> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.youtube.com_th
> eunisyschannel=DwIBaQ=laxeQK7vPmHfouIIPNyCfbQd49eK3u00U8Jdo0RFvts&
> r=EOaM1MkMLG24_TOy4m7EdDoX0CP9-c0YJ2kTdeagcqQ=voBKZ4MSsl6e39S6f42Wox
> OjRNy0iU5mvSjEQy9gAtw=fWqkhC1gs2KA5n64g_vLHkVvccbl3meRM5jA76FBF3A=
> > [Grey_FB] < 
> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.facebook.com_u
> nisyscorp=DwIBaQ=laxeQK7vPmHfouIIPNyCfbQd49eK3u00U8Jdo0RFvts=EOa
> M1MkMLG24_TOy4m7EdDoX0CP9-c0YJ2kTdeagcqQ=voBKZ4MSsl6e39S6f42WoxOjRNy
> 0iU5mvSjEQy9gAtw=Nk8O-Te2egJb7XDsogbgTEiHCPRUBAJmioghA6J75tM=> 
> [Grey_Vimeo] 
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__vimeo.com_unisys
> =DwIBaQ=laxeQK7vPmHfouIIPNyCfbQd49eK3u00U8Jdo0RFvts=EOaM1MkMLG24
> _TOy4m7EdDoX0CP9-c0YJ2kTdeagcqQ=voBKZ4MSsl6e39S6f42WoxOjRNy0iU5mvSjE
> Qy9gAtw=w_tazm_Tu8JTz_tcGtEwhUOUFN6fnYglaT5AxESoXJc=>
> [Grey_UB] 
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__blogs.unisys.com_
> =DwIBaQ=laxeQK7vPmHfouIIPNyCfbQd49eK3u00U8Jdo0RFvts=EOaM1MkMLG24
> _TOy4m7EdDoX0CP9-c0YJ2kTdeagcqQ=voBKZ4MSsl6e39S6f42WoxOjRNy0iU5mvSjE
> Qy9gAtw=aLgfxlqKdveMOPNdH-UpyJuLZuxklyH6drbARYVJSSk=>  
> [Grey_Weibo] < 
> https://urldefense.proofpoint.com/v2/url?u=https-3A__weibo.com_unisysc
> hina=DwIBaQ=laxeQK7vPmHfouIIPNyCfbQd49eK3u00U8Jdo0RFvts=EOaM1MkM
> LG24_TOy4m7EdDoX0CP9-c0YJ2kTdeagcqQ=voBKZ4MSsl6e39S6f42WoxOjRNy0iU5m
> vSjEQy9gAtw=lFMYDxav1OsTRhTJ7HU1Uh_rkA2a6O-zVCxAVIccY2k=>
>
>
> --
> This message contains information which is privileged and confidential 
> and is solely for the use of the intended recipient. If you are not 
> the intended recipient, be aware that any review, disclosure, copying, 
> distribution, or use of the contents of this message is strictly 
> prohibited. If you have received this in error, please destroy it 
> immediately and notify us at privacy...@torchmarkcorp.com.
>
> --
> For LINUX-390 sub

Re: Examples of tape access

2019-01-22 Thread Alan Altmark
On Tuesday, 01/22/2019 at 04:42 GMT, "Duerbusch, Tom" 
 wrote:
> Are you talking something like this?
>
> /bin/sh /sbin/chccwdev -e 0.0.05b0
> regina /home/sleep30.rexx
> /bin/sh /sbin/lstape
> mtst -f /dev/ntibm0 rewind
> regina /home/sleep30.rexx
> /bin/sh /sbin/lstape
> mtst -f /dev/ntibm0 fsf 1
> regina /home/sleep30.rexx
> /bin/sh /sbin/lstape
> mtst -f /dev/ntibm0 compression 1
> regina /home/sleep30.rexx
> /bin/sh /sbin/lstape

Necessary, but not sufficient.  (Why mtst instead of mt?) It's strange 
that the DD book doesn't mention which of the tape operations are 
supported for FICON.  In any case, you must be able to issue commands to 
the library.  I don't see any support for that at all.

Linux is all about SCSI tape, not FICON, but if you're willing to do 
manual mounts and category changes via the storage unit UI, you should be 
good to go.

>From CMS, as a DFSMSrms admin (untested):
1. DFSMSRM MOUNT SCRATCH SCRATCHx RDEV rdev VDEV 181 WAIT
2. TAPE FSF
3. Write left("VTS BULK VOLUME DATA REQUEST", 80) to 181
4. Write left("", 80) to 181
5. DFSMSRM DEMOUNT RDEV rdev WAIT TARGETCAT VOLSPECIFIC
6. DFSMSRM MOUNT VOLUME volid RDEV rdev WAIT
7. TAPE FSF
8. Start reading the data

In step 1, you can mount a specific volume if you want.  So if you have a 
IBM or CA tape manager software, you just ask it to mount a scratch tape 
from one of its managed scratch pools.

Alan Altmark

Senior Managing z/VM and Linux Consultant
IBM Systems Lab Services
IBM Z Delivery Practice
ibm.com/systems/services/labservices
office: 607.429.3323
mobile; 607.321.7556
alan_altm...@us.ibm.com
IBM Endicott


--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: Examples of tape access

2019-01-22 Thread Duerbusch, Tom
Are you talking something like this?

/bin/sh /sbin/chccwdev -e 0.0.05b0
regina /home/sleep30.rexx
/bin/sh /sbin/lstape
mtst -f /dev/ntibm0 rewind
regina /home/sleep30.rexx
/bin/sh /sbin/lstape
mtst -f /dev/ntibm0 fsf 1
regina /home/sleep30.rexx
/bin/sh /sbin/lstape
mtst -f /dev/ntibm0 compression 1
regina /home/sleep30.rexx
/bin/sh /sbin/lstape

Tom Duerbusch
THD Consulting

On Mon, Jan 21, 2019 at 9:46 AM Frank M. Ramaekers 
wrote:

> Does anyone have examples (bash script) of accessing tape units?  In my
> case it would be emulated 3490 (actual is TS7700).  I want to retrieve BVIR
> (Batch Volume Information Retrieval).  This involves writing a request to a
> new tape, closing, opening as input and reading the same tape back.
>
> Frank Ramaekers Jr. | System Analyst I | Public Cloud Operations Cloud &
> Infrastructure  Services
> Unisys | Skype-(512) 387-3949 | francis.ramaek...@unisys.com francis.ramaek...@unisys.com>
>
> [unisys_logo]
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is for use only by the intended recipient. If you received
> this in error, please contact the sender and delete the e-mail and its
> attachments from all devices.
> [Grey_LI]  [Grey_TW] <
> http://twitter.com/unisyscorp>  [Grey_GP] <
> https://plus.google.com/+UnisysCorp/posts> [Grey_YT] <
> http://www.youtube.com/theunisyschannel> [Grey_FB] <
> http://www.facebook.com/unisyscorp> [Grey_Vimeo] 
> [Grey_UB]   [Grey_Weibo] <
> https://weibo.com/unisyschina>
>
>
> --
> This message contains information which is privileged and confidential and
> is solely for the use of the intended recipient. If you are not the
> intended recipient, be aware that any review, disclosure, copying,
> distribution, or use of the contents of this message is strictly
> prohibited. If you have received this in error, please destroy it
> immediately and notify us at privacy...@torchmarkcorp.com.
>
> --
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or
> visit
> http://www.marist.edu/htbin/wlvindex?LINUX-390
>


--

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: Examples of tape access

2019-01-22 Thread Neale Ferguson
The device driver supports IOCTLs that include FSF/FSR/REW/... 
https://github.com/torvalds/linux/blob/master/drivers/s390/char/tape_char.c

Meale

On 1/21/19, 17:31, "Linux on 390 Port on behalf of Alan Altmark" 
 wrote:

Unfortunately the Linux channel-attached tape driver doesn't appear to 
have any support for tape motion, e.g. FSF.  But without looking at source 
code, I don't know for sure or how much support there is for standard 
labels (moving past them).
 


--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: Examples of tape access

2019-01-21 Thread Alan Altmark
On Monday, 01/21/2019 at 03:45 GMT, "Frank M. Ramaekers" 
 wrote:
> Does anyone have examples (bash script) of accessing tape units?  In my 
case it
> would be emulated 3490 (actual is TS7700).  I want to retrieve BVIR 
(Batch
> Volume Information Retrieval).  This involves writing a request to a new 
tape,
> closing, opening as input and reading the same tape back.

Unfortunately the Linux channel-attached tape driver doesn't appear to 
have any support for tape motion, e.g. FSF.  But without looking at source 
code, I don't know for sure or how much support there is for standard 
labels (moving past them).

You mount a newly inserted tape (one with no data) using standard labels. 
If positioned after TM (after label), write two 80-byte records as 
described in the published white paper on BVIR (google).  If at BOT, 
either FSF past the label or re-write the label, then TM, then the two 
80-byte records.

Then unmount the tape, change from INSERT to a private category.  Then 
mount by volser, skip over the tape label, and start reading.  BVIR data 
will be as described in the white paper.

Alan Altmark

Senior Managing z/VM and Linux Consultant
IBM Systems Lab Services
IBM Z Delivery Practice
ibm.com/systems/services/labservices
office: 607.429.3323
mobile; 607.321.7556
alan_altm...@us.ibm.com
IBM Endicott


--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Examples of tape access

2019-01-21 Thread Frank M. Ramaekers
Does anyone have examples (bash script) of accessing tape units?  In my case it 
would be emulated 3490 (actual is TS7700).  I want to retrieve BVIR (Batch 
Volume Information Retrieval).  This involves writing a request to a new tape, 
closing, opening as input and reading the same tape back.

Frank Ramaekers Jr. | System Analyst I | Public Cloud Operations Cloud & 
Infrastructure  Services
Unisys | Skype-(512) 387-3949 | 
francis.ramaek...@unisys.com

[unisys_logo]

THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is for use only by the intended recipient. If you received this in 
error, please contact the sender and delete the e-mail and its attachments from 
all devices.
[Grey_LI]  [Grey_TW] 
  [Grey_GP] 
 [Grey_YT] 
 [Grey_FB] 
 [Grey_Vimeo]  
[Grey_UB]   [Grey_Weibo] 



--
This message contains information which is privileged and confidential and is 
solely for the use of the intended recipient. If you are not the intended 
recipient, be aware that any review, disclosure, copying, distribution, or use 
of the contents of this message is strictly prohibited. If you have received 
this in error, please destroy it immediately and notify us at 
privacy...@torchmarkcorp.com.

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390