Locating virtual tape file systems on a virtual tape emulator
Virtual tape emulation software on a Virtual Tape Emulator (VTE) assigns file systems labels based on the tape library name, the logical name of the storage array (from the VTE perspective), and the logical unit number (LUN) of the device on the VTE on which the file system is created. To prevent name conflicts within the VTE Operating System (VTEOS), a UDEV label translation process in the VTEOS creates a new label for the virtual tape file system that will be used by the VTEOS to identify the virtual tape file system. The label is created by concatenating the tape library ID, and the storage system identifier and the device identifier derived from the device World Wide Name (WWN). Since the label is unique within the VTE, UDEV label translation enables the VTEOS to differentiate between multiple replicated copies of the same virtual tape file system.
1 . A non-transitory tangible computer readable storage medium having stored thereon a computer program for locating virtual tape file systems on a virtual tape emulator, the computer program including a set of instructions which, when executed by a computer, cause the computer to perform a method comprising the steps of:
receiving a virtual tape file system label assigned to a virtual tape file system by virtual tape emulation software executing on the virtual tape emulator, the virtual tape file system label including a virtual tape library identifier associated with the virtual tape file system;
identifying a world-wide identifier (WWN) of a device used to store the virtual tape file system by a storage system providing storage resources to the virtual tape emulator; and
creating a unique label for the virtual tape file system for use during a mount process of virtual tape file system contained on a storage device to an operating system of the virtual tape emulator, the storage device being used by processes operating in the context of the operating system to access the virtual tape file system, the unique label for the virtual tape file system including:
the virtual tape library identifier extracted from the virtual tape file system label assigned by the virtual tape emulation software;
a serial number of the storage system providing storage resources to the virtual tape emulator; and
a device identifier of a storage system device used to store the virtual tape file system by the storage system;
wherein the step of creating the unique label for the virtual tape file system is implemented by a label translation process running in the operating system, and prevents name conflicts within the operating system enabling the operating system to differentiate between multiple replica copies of the same virtual tape file system within the same virtual tape library.
2 . The non-transitory tangible computer readable storage medium of claim 1 , wherein the step of creating the unique label comprises extracting the serial number of the storage system from the WWN of the storage system device and extracting the device identifier from the WWN of the storage system device.
3 . The non-transitory tangible computer readable storage medium of claim 2 , wherein the unique label is created by concatenating the virtual tape library identifier, the serial number of the storage system and the device identifier of the storage system device.
4 . The non-transitory tangible computer readable storage medium of claim 1 , wherein the step of creating the unique label for the virtual tape file system is implemented by the label translation process running in a device manager of the operating system.
5 . The non-transitory tangible computer readable storage medium of claim 1 , wherein the steps of receiving the virtual tape file system label, identifying the WWN of the device, and creating the unique label for the virtual tape file system, are implemented by the label translation process running in a device manager in a kernel of the operating system.
6 . The non-transitory tangible computer readable storage medium of claim 1 , wherein the step of creating the unique label for the virtual tape file system is implemented by the label translation process running in an init system that is part of an operating system core of the operating system.
7 . The non-transitory tangible computer readable storage medium of claim 6 , wherein the operating system is a Linux operating system and the init system is systemd.
8 . The non-transitory tangible computer readable storage medium of claim 1 , wherein the virtual tape emulator is configured to emulate tape drives and is configured to receive and output data from and to attached hosts in tape data format.
9 . The non-transitory tangible computer readable storage medium of claim 8 , wherein the tape data format is AWSTAPE.
10 . A method of locating virtual tape file systems on a virtual tape emulator, comprising the steps of:
receiving a virtual tape file system label assigned to a virtual tape file system by virtual tape emulation software executing on the virtual tape emulator, the virtual tape file system label including a virtual tape library identifier associated with the virtual tape file system;
identifying a world-wide identifier (WWN) of a device used to store the file system by a storage system providing storage resources to the virtual tape emulator; and
creating a unique label for the virtual tape file system for use during a mount process of a virtual tape file system contained on a storage device to an operating system of the virtual tape emulator, the storage device being used by processes operating in the context of the operating system to access the virtual tape file system, the unique label for the virtual tape file system including:
the virtual tape library identifier extracted from the virtual tape file system label assigned by the virtual tape emulation software;
a serial number of the storage system providing storage resources to the virtual tape emulator; and
a device identifier of the device used to store the file system by the storage system;
wherein the step of creating the unique label for the virtual tape file system is implemented by a label translation process running in the operating system, and prevents name conflicts within the operating system enabling the operating system to differentiate between multiple replica copies of the same virtual tape file system within the same virtual tape library.
11 . The method of claim 10 , wherein the step of creating the unique label comprises extracting the serial number of the storage system from the WWN of the storage system device and extracting the device identifier from the WWN of the storage system device.
12 . The method of claim 11 , wherein the unique label is created by concatenating the virtual tape library identifier, the serial number of the storage system and the device identifier of the storage system device.
13 . The method of claim 10 , wherein the step of creating the unique label for the virtual tape file system is implemented by the label translation process running in a device manager of the operating system.
14 . The method of claim 10 , wherein the steps of receiving the virtual tape file system label, identifying the WWN of the device, and creating the unique label for the virtual tape file system, are implemented by the label translation process running in a device manager in a kernel of the operating system.
15 . The method of claim 10 , wherein the step of creating the unique label for the virtual tape file system is implemented by the label translation process running in an init system that is part of an operating system core of the operating system.
16 . The method of claim 15 , wherein the operating system is a Linux operating system and the init system is systemd.
17 . The method of claim 10 , wherein the virtual tape emulator is configured to emulate tape drives and is configured to receive and output data from and to attached hosts in tape data format.
18 . The method of claim 17 , wherein the tape data format is AWSTAPE.