Original Message:
Sent: 7/29/2024 1:49:00 PM
From: Carla Ruhl
Subject: RE: unable to change active partition in lto8
ITDT has two options:
(1) use IBMtape device driver ioctls, as defined in IBM Programming Reference: https://www.ibm.com/docs/en/ts4300-tape-library?topic=interface-vendor-specific-device-ioctls-deviceiocontrol
(2) use native (MS embedded) device driver calls (see https://www.ibm.com/docs/en/ts4300-tape-library?topic=edition-generic-operating-system-driver-itdt-se)
If ITDT program is run with option for (1) use IBMtape driver, the same ioctls are utilized as defined in IBM Programming Reference: https://www.ibm.com/docs/en/ts4300-tape-library?topic=interface-vendor-specific-device-ioctls-deviceiocontrol
If option (2), this will utilize MS defined tape controls. These are NOT documented by IBM, as this interface is owned by Microsoft.
If you still desire to utilize ioctls, please review the following sections that contain sample code:
Obtain Partition Information > https://www.ibm.com/docs/en/ts4300-tape-library?topic=deviceiocontrol-ioctl-query-partition
Set Active Partition > https://www.ibm.com/docs/en/ts4300-tape-library?topic=deviceiocontrol-ioctl-set-active-partition
If you have the option to utilize ITDT scripting function, see https://www.ibm.com/docs/en/ts4300-tape-library?topic=edition-standard-tapeutil-scripting-commands.
If the above does not help, please contact support with a drive dump and device driver trace.
------------------------------
Carla Ruhl
------------------------------
Original Message:
Sent: Wed July 24, 2024 02:41 AM
From: sher cheeta
Subject: unable to change active partition in lto8
@MAYRA PADILLA DUARTE
okay let me ask you this again as you suggested that
IBMTape Windows driver installation (only Windows Server is supported): then if i want to change the partition on windows machine how can i do that, because again ITDT is doing the same thing then why windows api setActivePartition is not changing its partition but can traverse in the current partition because i can set offset low and high accordingly but when i set partition it simply execute it without giving any error.
if anyone can give me a complete example that would be appreciated.
------------------------------
sher cheeta
Original Message:
Sent: Tue July 23, 2024 11:14 AM
From: MAYRA PADILLA DUARTE
Subject: unable to change active partition in lto8
@sher cheeta Here some links:
IBMTape Windows driver installation (only Windows Server is supported):
https://www.ibm.com/docs/en/ts4300-tape-library?topic=wtmcdd-installation-configuration-instructions
Windows IBMTape programming reference for partitioning ioctls:
https://www.ibm.com/docs/en/ts4300-tape-library?topic=deviceiocontrol-ioctl-set-active-partition
https://www.ibm.com/docs/en/ts4300-tape-library?topic=deviceiocontrol-ioctl-query-partition
If you are not using IBM Tape driver (or supported Windows Server versions) another option I can think of is build your own passthrough ioctls:
https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/ntddscsi/ni-ntddscsi-ioctl_scsi_pass_through
https://www.ibm.com/support/pages/node/6490249
------------------------------
MAYRA PADILLA DUARTE
Original Message:
Sent: Tue July 23, 2024 06:15 AM
From: sher cheeta
Subject: unable to change active partition in lto8
------------------------------
sher cheeta
Original Message:
Sent: Mon July 22, 2024 11:21 PM
From: sher cheeta
Subject: unable to change active partition in lto8
@Kevin Butt
it is not doing anything still stuck at the same scenario ,
can you provide me a full code snippet to change the active partition?
------------------------------
sher cheeta
Original Message:
Sent: Mon July 22, 2024 07:34 PM
From: Kevin Butt
Subject: unable to change active partition in lto8
Sher,
For the IBM Device Driver you can go to Fix Central -> https://www.ibm.com/support/fixcentral/
Select the product tab (not the default search tab)
In the "Product Group" select "System Storage"
In the "System Storage" select "Tape Systems"
In the "Tape Systems" select "Tape drivers and Software"
In the "Tape drives and Software" select "Tape device driver"
In "Platform" select your specific platform. There are a few selections for various Windows systems.
Click "Continue".
You will be taken to a screen that contains the current Tape Device Driver and an archive of previous drivers, as well as some links to documentation.
------------------------------
Kevin Butt
IBM, Tape Development Ecosystem
Tape SCSI Architect, T10 Representative
Original Message:
Sent: Sun July 21, 2024 11:04 PM
From: sher cheeta
Subject: unable to change active partition in lto8
and as you say it is about driver can you help me to find out which is the suitable driver for the device TS-2280 ULT3580-HH8
------------------------------
sher cheeta
Original Message:
Sent: Tue July 16, 2024 02:20 PM
From: MAYRA PADILLA DUARTE
Subject: unable to change active partition in lto8
ITDT can work with Microsoft native driver or IBMTape driver.
The ioctl-set-active-partition and ioctl-query-active-partition only works with IBMTape driver
------------------------------
MAYRA PADILLA DUARTE
Original Message:
Sent: Tue July 16, 2024 01:27 AM
From: sher cheeta
Subject: unable to change active partition in lto8
Hello
Let me explain you the whole scenario i am not able to change the active partition on windows and as you suggested, that Windows IBM Tape driver: https://www.ibm.com/docs/en/ts4300-tape-library?topic=deviceiocontrol-ioctl-set-active-partition
first of all this is also not working and secondly if i am not able to change the partition then How ITDT(IBM Tape Diagnostic tool) is able to change the partition on same on and same drivers because i have not installed any other thing.
------------------------------
sher cheeta
Original Message:
Sent: Mon July 15, 2024 12:17 PM
From: MAYRA PADILLA DUARTE
Subject: unable to change active partition in lto8
@sher cheeta if you are using Windows IBM Tape driver: https://www.ibm.com/docs/en/ts4300-tape-library?topic=deviceiocontrol-ioctl-set-active-partition
------------------------------
MAYRA PADILLA DUARTE
Original Message:
Sent: Sun July 14, 2024 10:21 PM
From: sher cheeta
Subject: unable to change active partition in lto8
@Kevin Butt but i am using windows OS and from where should i get sys/Atape.h header file ?
------------------------------
sher cheeta
Original Message:
Sent: Fri July 12, 2024 12:50 PM
From: Kevin Butt
Subject: unable to change active partition in lto8
@sher cheeta To change partition use SET_ACTIVE_PARTITION (see https://www.ibm.com/docs/en/ts4300-tape-library?topic=overview-set-active-partition
------------------------------
Kevin Butt
IBM, Tape Development Ecosystem
Tape SCSI Architect, T10 Representative
Original Message:
Sent: Thu July 11, 2024 06:18 AM
From: sher cheeta
Subject: unable to change active partition in lto8
I am using ts2280 IBM Ultrium LTO 8 and i have created two partition i.e. Partition 0 and Partition 1 both are 3T.B each with wrap wise partitioning and i am using this code in order to switch between those partitions
i am using SetTapePosition function to change the active partition of a LTO tape drive but unable to do so it compiled without any error but didn't change the partition as well, On the other hand i and able to set the dwOffsetLow and it is working completely fine but the partition is not changing.
DWORD bytesReturned;
DWORD partition = 2;
TAPE_SET_POSITION tapePosition{};
tapePosition.Method = TAPE_LOGICAL_POSITION;
tapePosition.Partition = partition;
tapePosition.Offset.LowPart = 0;
tapePosition.Offset.HighPart = 0;
tapePosition.Immediate = FALSE;
if (!DeviceIoControl(hTape, IOCTL_TAPE_SET_POSITION, &tapePosition, sizeof(tapePosition), NULL, 0, &bytesReturned, NULL)) {
return GetLastError();
}
only able to set the offsetlowPart but unable to change the partition.
kindly let me know how to resolve this issue.
and i have already included the header files
------------------------------
sher cheeta
------------------------------