In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Prepare the following ceph storage cluster (for specific establishment process, please refer to other articles on this blog)
The management node of the cluster is store1,ip address 10.8.20.11
Next, create a 40G image on the cluster and take this image as the target of the iscsi. Other machines on the LAN can access and mount the iscsi target.
The tgt mode is used.
First, create an image and do it visually.
Open the Dashboard (https://10.8.20.11:8443) of the ceph cluster and select the Block → images above the navigation bar
Click "New":
Enter the name and size of the image. Check only "layering" and "mutex" below, and then click "New RBD" in the lower right corner.
Remember its storage pool name: store-pool and mirror name: iscsi-disk, which will be used later
At this point, the mirror is created.
Install tgt and add support for rbd
Open shell on the management node of the ceph cluster (for example, the cluster above is store1), and type the following command to install tgt
Apt-y install tgt
Once installed, verify that tgt supports rbd using the following command
Tgtadm-- lld iscsi-- mode system-- op show | grep rbd
The output result is empty, indicating that tgt currently does not support rbd.
Install the rbd module for tgt using the following command:
Apt-y install tgt-rbd
Restart the tgt service. After checking again, it has been supported.
Third, establish iscsi goals
Edit / etc/tgt/targets.conf
Vim etc/tgt/targets.conf
Add the following:
Bs-type rbd
Backing-store store-pool/iscsi-disk # Storage pool name / image name written down above
Initiator-address 10.8.20.0 Compact 24 # allowed access to ip segments
Restart the tgt service
Systemctl restart tgt
IV. Client mount (windows client)
Open the iscsi initiator in another windows system management tool in the LAN
Enter the IP address of the destination provided by the above cluster, and click Quick Connect
Find the target and click finish
Open disk management and you can see the newly added iscsi disk. After formatting it, you can use it.
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.