Skip to content

Instantly share code, notes, and snippets.

@yukirii
Last active June 19, 2024 21:49
Show Gist options
  • Save yukirii/d94bd17832f34e9d0e5af12f7da95fa6 to your computer and use it in GitHub Desktop.
Save yukirii/d94bd17832f34e9d0e5af12f7da95fa6 to your computer and use it in GitHub Desktop.
installing HPE StoreOpen Software for RHELx64 to Ubuntu 20.04.2 LTS (Reference: https://rabbit-note.com/2020/01/12/ubuntu-ltfs/)

installing HPE StoreOpen Software for RHELx64 to Ubuntu 20.04.2 LTS.

Reference: https://rabbit-note.com/2020/01/12/ubuntu-ltfs/

Get SOS_RHELx64 rpm

https://h20392.www2.hpe.com/portal/swdepot/displayProductInfo.do?productNumber=SOS_RHELx64

$ ls
HPE_StoreOpen_Software_3.4.2_RHELx64_Z7550-02502.tar.gz

$ tar zxvf HPE_StoreOpen_Software_3.4.2_RHELx64_Z7550-02502.tar.gz
COPYING.LIB
INSTALLING.linux
README
HPE-SOS-3.4.2-9.x86_64.rpm

Convert rpm to deb and install

$ sudo apt install alien

$ fakeroot alien HPE-SOS-3.4.2-9.x86_64.rpm
Warning: Skipping conversion of scripts in package HPE-SOS: postinst postrm preinst prerm
Warning: Use the --scripts parameter to include the scripts.
hpe-sos_3.4.2-10_amd64.deb generated

$ sudo dpkg -i hpe-sos_3.4.2-10_amd64.deb
Selecting previously unselected package hpe-sos.
(Reading database ... 81573 files and directories currently installed.)
Preparing to unpack hpe-sos_3.4.2-10_amd64.deb ...
Unpacking hpe-sos (3.4.2-10) ...
Setting up hpe-sos (3.4.2-10) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...

at this point, mkltfs not works due to error of shared lib.

$ mkltfs --version
mkltfs: error while loading shared libraries: libicui18n.so.50: cannot open shared object file: No such file or directory

resolve shared lib error

Install icu4c-50

wget https://github.com/unicode-org/icu/releases/download/release-50-2/icu4c-50_2-src.tgz
tar zxvf icu4c-50_2-src.tgz
cd ./icu/source
./configure
make
sudo make install

modify library reference

$ cat /etc/ld.so.conf.d/HPE-SOS.conf
/usr/local/lib64
$ echo "/usr/local/lib" | sudo tee -a /etc/ld.so.conf.d/HPE-SOS.conf
/usr/local/lib
$ sudo ldconfig -v

now mkltfs works!

$ mkltfs --version
mkltfs version 3.4.2
LTFS Format Specification version 2.4.0
@yukirii
Copy link
Author

yukirii commented Apr 19, 2021

Format tape

$ sudo mkltfs -d /dev/nst0
LTFS15000I Starting mkltfs, HPE StoreOpen Software version 3.4.2, log level 2
LTFS15041I Launched by "mkltfs -d /dev/nst0"
LTFS15042I This binary is built for Linux (x86_64)
LTFS15043I GCC version is 4.8.5 20150623 (Red Hat 4.8.5-11)
LTFS17087I Kernel version: Linux version 5.4.0-66-generic (buildd@lgw01-amd64-039) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) #74-Ubuntu SMP Wed Jan 27 22:54:38 UTC 2021 i386
LTFS17089I Distribution: NAME="Ubuntu"
LTFS17089I Distribution: DISTRIB_ID=Ubuntu
LTFS15003I Formatting device '/dev/nst0'
LTFS15004I LTFS volume blocksize: 524288
LTFS15005I Index partition placement policy: None

LTFS17085I Plugin: Loading "ltotape" driver
LTFS20013I Drive type is HP LTO5, serial number is 0000000000
LTFS17160I Maximum device block size is 524288
LTFS17157I Changing the drive setting to write-anywhere mode
LTFS17302W Cannot retrieve attribute (volumelockstate=0x1623)
LTFS17302W Cannot retrieve attribute (Application Vendor=0x800)
LTFS15049I Checking the medium (mount)
LTFS15010I Creating data partition b on SCSI partition 1
LTFS15011I Creating index partition a on SCSI partition 0
LTFS17165I Resetting the medium's capacity proportion
LTFS11097I Partitioning the medium
LTFS20075E Failed to write attribute (-1)
LTFS20076I Triggering drive diagnostic dump
LTFS20096I Diagnostic dump complete
LTFS20024W Cannot store attribute 0x820 (-1)
LTFS11100I Writing label to partition b
LTFS11278I Writing index to partition b
LTFS11100I Writing label to partition a
LTFS11278I Writing index to partition a
LTFS15013I Volume UUID is: 3cd2a241-9cc7-435b-b7f2-65909838f703

LTFS15019I Volume capacity is 1335 GB
LTFS20076I Triggering drive diagnostic dump
LTFS20096I Diagnostic dump complete
LTFS15024I Medium formatted successfully

Mount tape

# create mount point
$ sudo mkdir /mnt/LTFSvolume

# mount tape
$ sudo ltfs /mnt/LTFSvolume
3b3f LTFS14000I LTFS starting, HPE StoreOpen Software version 3.4.2, log level 2
3b3f LTFS14058I LTFS Format Specification version 2.4.0
3b3f LTFS14104I Launched by "ltfs /mnt/LTFSvolume"
3b3f LTFS14105I This binary is built for Linux (x86_64)
3b3f LTFS14106I GCC version is 4.8.5 20150623 (Red Hat 4.8.5-11)
3b3f LTFS17087I Kernel version: Linux version 5.4.0-66-generic (buildd@lgw01-amd64-039) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) #74-Ubuntu SMP Wed Jan 27 22:54:38 UTC 2021 i386
3b3f LTFS17089I Distribution: NAME="Ubuntu"
3b3f LTFS17089I Distribution: DISTRIB_ID=Ubuntu
3b3f LTFS14063I Sync type is "time", Sync time is 300 sec
3b3f LTFS17085I Plugin: Loading "ltotape" driver
3b3f LTFS17085I Plugin: Loading "unified" iosched
3b3f LTFS20013I Drive type is HP LTO5, serial number is 0000000000
3b3f LTFS17160I Maximum device block size is 524288
3b3f LTFS17157I Changing the drive setting to write-anywhere mode
3b3f LTFS11005I Mounting the volume
3b3f LTFS17302W Cannot retrieve attribute (Barcode=0x806)
3b3f LTFS14111I Initial setup completed successfully
3b3f LTFS14112I Invoke 'mount' command to check the result of final setup
3b3f LTFS14113I Specified mount point is listed if succeeded

$ df -h | grep LTFS
ltfs:/dev/nst0                     1.4T     0  1.4T   0% /mnt/LTFSvolume

Copy files to LTFS volume

# create test files
$ for x in `seq 0 4`
do
  dd if=/dev/zero of=20G.$x bs=1M count=20000
done

$ ls -lh 20G*
-rw-rw-r-- 1 user 1001 20G Apr 19 14:43 20G.0
-rw-rw-r-- 1 user 1001 20G Apr 19 14:44 20G.1
-rw-rw-r-- 1 user 1001 20G Apr 19 14:45 20G.2
-rw-rw-r-- 1 user 1001 20G Apr 19 14:46 20G.3
-rw-rw-r-- 1 user 1001 20G Apr 19 14:47 20G.4

# rsync
$ rsync --progress 20G.* /mnt/LTFSvolume/
20G.0
 20,971,520,000 100%  113.47MB/s    0:02:56 (xfr#1, to-chk=4/5)
20G.1
 20,971,520,000 100%  115.48MB/s    0:02:53 (xfr#2, to-chk=3/5)
20G.2
 20,971,520,000 100%  114.71MB/s    0:02:54 (xfr#3, to-chk=2/5)
20G.3
 20,971,520,000 100%  114.83MB/s    0:02:54 (xfr#4, to-chk=1/5)
20G.4
 20,971,520,000 100%  105.45MB/s    0:03:09 (xfr#5, to-chk=0/5)

$ ls -lh test.mp4
-rwx------ 1 user 1001 885M Apr 19 15:04 test.mp4
$ rsync --progress test.mp4 /mnt/LTFSvolume/
test.mp4
    927,727,886 100%   81.76MB/s    0:00:10 (xfr#1, to-chk=0/1)

$ ls -lh test.iso
-rwx------ 1 user 1001 3.1G Apr 19 15:07 test.iso
$ rsync --progress test.iso /mnt/LTFSvolume/
test.iso
  1,009,909,760  30%  107.01MB/s    0:00:21
  1,860,206,592  55%   94.71MB/s    0:00:15
  1,956,151,296  58%   89.95MB/s    0:00:14
  2,051,571,712  61%   90.40MB/s    0:00:13
  2,121,039,872  63%   81.88MB/s    0:00:14
  2,231,304,192  67%   88.34MB/s    0:00:12
  2,356,445,184  70%   95.34MB/s    0:00:09
  2,472,050,688  74%  100.17MB/s    0:00:08
  2,582,020,096  77%  109.96MB/s    0:00:06
  2,678,620,160  80%  104.53MB/s    0:00:06
  2,795,601,920  84%  102.62MB/s    0:00:05
  2,916,089,856  87%  103.77MB/s    0:00:03
  3,322,757,120 100%   98.36MB/s    0:00:32 (xfr#1, to-chk=0/1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment