In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the knowledge of "how to install virtual tape library mhvtl in ubuntu". In the operation of actual cases, many people will encounter this dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
1 download the source code
Download the latest version of mhvtl from the website https://sites.google.com/site/linuxvtl2/home#mhvtl-download, and I download the latest version of mhvtl-2013-10-20.tgz.
2 ensure the consistency of the kernel version
Make sure that your kernel development package is the same version as the kernel that your system is running, because mhvtl will compile a kernel module written by it. If the kernel development package is not the same version as the kernel that your system is running, it will not be loaded into the kernel when installing the kernel module in mhvtl. Although you can modify the VERMAGIC_STRING in include/linux/vermagic.h in the source code to be consistent with the current PC kernel uname-r, it is not recommended.
3 unzip the source code
Tar xvfz mhvtl-2013-10-20.tgz
4 install four packages lsscsi,sg3_utils,liblzo2-dev,mtx can be installed directly with the apt-get install command
Apt-get lsscsi sg3_utils liblzo2-dev mtx
Without the liblzo2-dev package, when compiling mhvtl, it will prompt that the file lzo/lzoconf.h cannot be found.
5 create groups and users for mhvtl
/ usr/sbin/groupadd-- system vtl
/ usr/sbin/useradd-- system-c "Vitrual Tape Library"-d / opt/vtl-g vtl-m vtl
6 compile kernel module
Cd mhvtl-2013-10-20/kernel
Make
Make install
7 compile user space code
Cd mhvtl-2013-10-20
Make
Make install
8 modify the owners of / opt/mhvtl and / etc/mhvtl directories. Mhvtl cannot be started without modification.
Chown-R vtl:vtl / opt/mhvtl
Chown-R vtl:vtl / etc/mhvtl
/ etc/mhvtl is the configuration file path, and / opt/mhvtl is the virtual tape library storage path
9 start the daemon for mhvtl
/ etc/init.d/mhvtl start
10 View virtual tape library status information
Lsscsi-g
You can see that our virtual device is hung on the HBA#6, where the mediumx type of device is a robotic arm, in this case / dev/sg13,/dev/sg14.
Run the command mtx-f / dev/sg13 status
This is the end of "how to install the virtual tape library mhvtl in ubuntu". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.