In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
Editor to share with you how to configure mds in ceph, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
1. Add the mds configuration # vi ceph.confs [mds.a] host = hostname2. Create a directory for the MDS metadata server
# mkdir-p / var/lib/ceph/mds/ceph-a3. Create a key for the bootstrap-mds client
# ceph-authtool-- create-keyring / var/lib/ceph/bootstrap-mds/ceph.keyring-- gen-key-n client.bootstrap-mds
4. Create a bootstrap-mds client in the ceph auth library and grant permission to add the previously created key
# ceph auth add client.bootstrap-mds mon 'allow profile bootstrap-mds'-I / var/lib/ceph/bootstrap-mds/ceph.keyring
5. Create a mds.a user in the ceph auth library, and grant permissions and create a key, which is saved in the / var/lib/ceph/mds/ceph-a/keyring file
# ceph--name client.bootstrap-mds-- keyring / var/lib/ceph/bootstrap-mds/ceph.keyring auth get-or-create mds.an osd 'allow rwx' mds' allow' mon' allow profile mds'-o / var/lib/ceph/mds/ceph-a/keyring
6. Start the mds service process
# service ceph start mds.a=== mds.a=== Starting Ceph mds.an on DEV-L0003542...starting mds.an at: / upload ceph mds stat # View mds node status e4: 1-1-1 up {0=a=up:active} 7. View cluster status
# ceph-scluster 1c7ec934-1595-11e5-aa3f-06aed00006d5health HEALTH_WARN 1360 pgs degraded; 4820 pgs stuck unclean Recovery 62423up 138288 objects degraded (45.140%) monmap e1: 1 mons at {mon1=10.20.15.156:6789/0}, election epoch 2, quorum 0 mon1mdsmap e4: 1-1-1 up {0=a=up:active} osdmap e143: 7 osds: 7 up, 7 inpgmap v5095: 4820 pgs, 14 pools, 9919 kB data, 46096 objects9251 MB used, 150 GB / 159 GB avail62423/138288 objects degraded (45.140%) 667 active1360 active+degraded2793 active+remappedclient io 3058 Bhand wr, 5 op/s7. Client mount cephfs (fuse mode)
# yum install ceph-fuse-y # mkdir / mycephfs# ceph-fuse-m 10.20.15.156pur6789 ~ / mycephfs# df-hFilesystem Size Used Avail Use% Mounted on/dev/mapper/Volgroup00-LV_root 16G 3.9G 11G 27% / tmpfs 1.9G 01.9G 0% / dev/shm/dev/vda1 194M 34M 150M 19% / boot/dev/sda 100G 1.9G 99G 2% / mnt/share/dev/vdb 10G 1.3G 8.8G 13% / var/ Lib/ceph/osd/ceph-0/dev/vdc 10G 1.2G 8.8G 12% / var/lib/ceph/osd/ceph-1/dev/vdd 10G 1.2G 8.9G 12% / var/lib/ceph/osd/ceph-5/dev/sda 100G 1.9G 99G 2% / var/lib/ceph/osd/ceph-6ceph-fuse 160G 9.1G 151G 6% / root/mycephfs8. Direct mount of kernel (higher version of ceph modul is required for kernel)
# mount-t ceph 10.20.15.156:6789://mycephfs-v-oname=admin,secretfile=/etc/ceph/ceph.client.admin.keyring9. The metadata information of cephfs is in metadata pool by default. # rados ls-p metadata609.00000000mds0_sessionmap608.00000000601.00000000602.00000000mds0_inotable1.00000000.inode200.00000000604.00000000605.00000000mds_anchortablemds_snaptable600.00000000603.00000000100.00000000200.00000001606.00000000607.00000000100.00000000.inode1.00000000 and above are all the contents of this article "how to configure mds in ceph". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.