In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Analysis conclusion
1 the error reported by the metadata file does not match checksum lies in the mismatch between the check value of the metafile and the metafile
2. Metadata refers to files such as mnt/repodata/436345f4b666f0a461d479ccfabc2c22823d4f2173c2653e5250fea62f0afe98-c7-x86_64-comps.xml.gz
The path is CD / repodata.
3The configuration files of 3fuge yum are divided into main configuration files and separate configuration files.
4Jing yum main configuration file is in / etc/yum.conf
5. The independent configuration files of yum are in different subdirectories of / etc/yum.repos.d/.
6. Continue, this different subdirectory corresponds to the custom yum configuration source configuration file
7Jing yum's local cache cache visible yum main configuration file / etc/yum.conf acquisition
8. The check value of the metafile and the configuration information of the metafile are obtained in repomd.xml. The details are as follows:
42a80e759522768b2cc357553bb64bd7345b06abeb60187f881089b859a63454-sha256 check algorithm
3464f99938d4614cd1c9048a8e78a8016b5fc0732d2aed9108f45a1e58cf3e80
-- metadata or meta file corresponding to sha256 check algorithm
1449702849
ten
2958583
13557760
9, the above configuration exists both locally and on CD
Analysis details
1Pertinyum installation error Metadata file does not match checksum
[root@card2 yum.repos.d] # yum-y install gcc
Loaded plug-in: fastestmirror
Base | 3.6 kB 00:00:00
Base/group_gz FAILED
File:///mnt/repodata/436345f4b666f0a461d479ccfabc2c22823d4f2173c2653e5250fea62f0afe98-c7-x86_64-comps.xml.gz: [Errno-1] Metadata file does not match checksum 0 B--:-ETA
Another mirror is being tried.
Base/primary_db FAILED [] 0.0 BUnip s | 20 kB--:-ETA
File:///mnt/repodata/42a80e759522768b2cc357553bb64bd7345b06abeb60187f881089b859a63454-primary.sqlite.bz2: [Errno-1] Metadata file does not match checksum/s | 20 kB--:-ETA
Another mirror is being tried.
Determining fastest mirrors
Base/primary_db FAILED [] 0.0 BUnip s | 20 kB--:-ETA
File:///mnt/repodata/42a80e759522768b2cc357553bb64bd7345b06abeb60187f881089b859a63454-primary.sqlite.bz2: [Errno-1] Metadata file does not match checksum/s | 20 kB--:-ETA
Another mirror is being tried.
Base/primary_db | 20 kB 00:00:14
File:///mnt/repodata/42a80e759522768b2cc357553bb64bd7345b06abeb60187f881089b859a63454-primary.sqlite.bz2: [Errno-1] Metadata file does not match checksum
Another mirror is being tried.
2. It can be seen that the above base corresponds to [base] in the following configuration file
[root@card2 yum.repos.d] # pwd
/ etc/yum.repos.d
[root@card2 yum.repos.d] # ll
Total dosage 8
-rw-r--r--. 1 root root 63 September 13 09:06 local.repo
-rw-r--r--. 1 root root 557 September 12 18:28 ori.x
[root@card2 yum.repos.d] # pwd
/ etc/yum.repos.d
[root@card2 yum.repos.d] # more local.repo
[base]
Name=local-vcd
Baseurl= file:///mnt
Enabled=1
Gpgcheck=0
[root@card2 yum.repos.d] #
3. From the error report, we can see that the following long file check on the loaded CD does not seem to match something.
[root@card2 yum.repos.d] # ls-l / mnt/repodata/436345f4b666f0a461d479ccfabc2c22823d4f2173c2653e5250fea62f0afe98-c7-x86_64-comps.xml.gz
-Rafael, Rafe, Rafael. 1 root root 158802 December 10 2015 / mnt/repodata/436345f4b666f0a461d479ccfabc2c22823d4f2173c2653e5250fea62f0afe98-c7-x86_64-comps.xml.gz
[root@card2 yum.repos.d] #
The above long documents cannot be opened.
[root@card2 yum.repos.d] # strings / mnt/repodata/436345f4b666f0a461d479ccfabc2c22823d4f2173c2653e5250fea62f0afe98-c7-x86_64-comps.xml.gz
[root@card2 yum.repos.d] # ^ C
4. Will the long files on the loaded CD have anything to do with the configuration file repomd.xml of the corresponding directory of the CD?
[root@card2 repodata] # pwd
/ mnt/repodata
[root@card2 repodata] # more repomd.xml
1449702798
3eda3fefdbaf4777fcab430c80bc438293c512f22fd706b12c6567d535b2142a
1449702849
746824
Cfa741341d5d270d5b42d6220e2908d053c39a2d8346986bf48cee360e6f7ce8
Cf0c38f2d85b81e960c77d48e6abd48f521caa9ec83662e308dbb53bc62c0ead
1449702839
2997550
37183151
-it can be seen that this error is reported, which includes the checksum check value and the referenced file.
436345f4b666f0a461d479ccfabc2c22823d4f2173c2653e5250fea62f0afe98
3eda3fefdbaf4777fcab430c80bc438293c512f22fd706b12c6567d535b2142a
1449702849
158802
6990209f63a9fd811f13e830ac3c6de4c5d70a42b1c6873e4329b523d394c3bd
76a6786b724d57813cba57980917809d4dc3eefba5a6a11a2432d6bbd2fd6233
1449702839
1430575
11601661
42a80e759522768b2cc357553bb64bd7345b06abeb60187f881089b859a63454
3464f99938d4614cd1c9048a8e78a8016b5fc0732d2aed9108f45a1e58cf3e80
1449702849
ten
2958583
13557760
9710c85f1049b4c60c74ae5fd51d3e98e4ecd50a43ab53ff641690fb164a6d63
A0422ef0698b20718bf4c013cbb1c4f10456432eaf5d3a4afd9955ed6968aaf7
1449702841
ten
1259881
7371776
40bac61f2a462557e757c2183511f57d07fba2c0dd63f99b48f0b466b7f2b8d2
46168cc31d3f6872bbccf30d495bd8e5d8f631669285b693e2bd66373aa32f9c
1449702839
975743
7907616
D863fcc08a4e8d47382001c3f22693ed77e03815a76cedf34d8256d4c12f6f0d
3f18b4fee4a56bb57bed280bbc9d0f285d94c2bab6cddd4292681b7073dbe27c
1449702846
ten
2995501
18021376
[root@card2 repodata] #
From a local point of view, the check value also matches
[root@card2 base] # pwd
/ var/cache/yum/x86_64/7/base
436345f4b666f0a461d479ccfabc2c22823d4f2173c2653e5250fea62f0afe98
3eda3fefdbaf4777fcab430c80bc438293c512f22fd706b12c6567d535b2142a
1449702849
158802
6. Try to analyze it from another angle, and compare the abnormal directory with the normal corresponding directory of cluster node 1.
-the current node is not normal
[root@card2 base] # pwd
/ var/cache/yum/x86_64/7/base
[root@card2 base] # ll
Total dosage 8
Drwxr-xr-x. 2 root root 6 September 13 09:06 gen
Drwxr-xr-x. 2 root root 6 September 12 14:18 packages
-rw-r--r--. 1 root root 3732 December 10 2015 repomd.xml
-Cluster nodes are normal
[root@card1 c7-media] # pwd
/ var/cache/yum/x86_64/7/c7-media
[root@card1 c7-media] # ll
The total dosage is 3064
-rw-r--r--. 1 root root 2958583 December 10 2015 42a80e759522768b2cc357553bb64bd7345b06abeb60187f881089b859a63454-primary.sqlite.bz2
-rw-r--r--. 1 root root 158802 December 10 2015 436345f4b666f0a461d479ccfabc2c22823d4f2173c2653e5250fea62f0afe98-c7-x86_64-comps.xml.gz
-rw-r--r--. 1 root root 0 September 12 15:49 cachecookie
Drwxr-xr-x. 2 root root 30 September 12 15:49 gen
Drwxr-xr-x. 2 root root 6 September 12 15:48 packages
-rw-r--r--. 1 root root 3732 December 10 2015 repomd.xml
[root@card1 c7-media] #
7. According to the above analysis, copy the above long files from the corresponding directory of the CD to the local corresponding directory.
[root@card2 repodata] # cp 42a80e759522768b2cc357553bb64bd7345b06abeb60187f881089b859a63454-primary.sqlite.bz2 / var/cache/yum/x86_64/7/base
Cp: overwrite "/ var/cache/yum/x86_64/7/base/42a80e759522768b2cc357553bb64bd7345b06abeb60187f881089b859a63454-primary.sqlite.bz2"? Yes
Cp: error reading "42a80e759522768b2cc357553bb64bd7345b06abeb60187f881089b859a63454-primary.sqlite.bz2": input / output error
Cp: failed to extend "/ var/cache/yum/x86_64/7/base/42a80e759522768b2cc357553bb64bd7345b06abeb60187f881089b859a63454-primary.sqlite.bz2": input / output error
[root@card2 repodata] # cp 436345f4b666f0a461d479ccfabc2c22823d4f2173c2653e5250fea62f0afe98-c7-x86_64-comps.xml.gz / var/cache/yum/x86_64/7/base
Cp: error reading "436345f4b666f0a461d479ccfabc2c22823d4f2173c2653e5250fea62f0afe98-c7-x86_64-comps.xml.gz": input / output error
Cp: failed to extend "/ var/cache/yum/x86_64/7/base/436345f4b666f0a461d479ccfabc2c22823d4f2173c2653e5250fea62f0afe98-c7-x86_64-comps.xml.gz": input / output error
[root@card2 repodata] #
[root@card2 base] # touch cachecookie
[root@card2 base] # ll
Total dosage 28
-Rafael, Rafe, Rafael. 1 root root 20480 September 13 10:15 42a80e759522768b2cc357553bb64bd7345b06abeb60187f881089b859a63454-primary.sqlite.bz2
-Rafael, Rafe, Rafael. 1 root root 0 September 13 10:16 436345f4b666f0a461d479ccfabc2c22823d4f2173c2653e5250fea62f0afe98-c7-x86_64-comps.xml.gz
-rw-r--r--. 1 root root 0 September 13 10:17 cachecookie
Drwxr-xr-x. 2 root root 6 September 13 09:06 gen
Drwxr-xr-x. 2 root root 6 September 12 14:18 packages
-rw-r--r--. 1 root root 3732 December 10 2015 repomd.xml
8. Continue to analyze and find a solution
-of normal nodes in the cluster
[root@card1 c7-media] # pwd
/ var/cache/yum/x86_64/7/c7-media
[root@card1 c7-media] # ll
The total dosage is 3064
-rw-r--r--. 1 root root 2958583 December 10 2015 42a80e759522768b2cc357553bb64bd7345b06abeb60187f881089b859a63454-primary.sqlite.bz2
-rw-r--r--. 1 root root 158802 December 10 2015 436345f4b666f0a461d479ccfabc2c22823d4f2173c2653e5250fea62f0afe98-c7-x86_64-comps.xml.gz
-rw-r--r--. 1 root root 0 September 12 15:49 cachecookie
Drwxr-xr-x. 2 root root 30 September 12 15:49 gen
Drwxr-xr-x. 2 root root 6 September 12 15:48 packages
-rw-r--r--. 1 root root 3732 December 10 2015 repomd.xml
[root@card1 c7-media] # sha256sum 42a80e759522768b2cc357553bb64bd7345b06abeb60187f881089b859a63454-primary.sqlite.bz2
42a80e759522768b2cc357553bb64bd7345b06abeb60187f881089b859a63454 42a80e759522768b2cc357553bb64bd7345b06abeb60187f881089b859a63454-primary.sqlite.bz2
[root@card1 c7-media] # sha256sum 436345f4b666f0a461d479ccfabc2c22823d4f2173c2653e5250fea62f0afe98-c7-x86_64-comps.xml.gz
436345f4b666f0a461d479ccfabc2c22823d4f2173c2653e5250fea62f0afe98 436345f4b666f0a461d479ccfabc2c22823d4f2173c2653e5250fea62f0afe98-c7-x86_64-comps.xml.gz
[root@card1 c7-media] #
[root@card1 c7-media] # more repomd.xml | grep 42a80e759522768b2cc357553bb64bd7345b06abeb60187f881089b859a63454
42a80e759522768b2cc357553bb64bd7345b06abeb60187f881089b859a63454
[root@card1 c7-media] #
[root@card1 repodata] # pwd
/ mnt/repodata
[root@card1 repodata] # sha256sum 42a80e759522768b2cc357553bb64bd7345b06abeb60187f881089b859a63454-primary.sqlite.bz2
42a80e759522768b2cc357553bb64bd7345b06abeb60187f881089b859a63454 42a80e759522768b2cc357553bb64bd7345b06abeb60187f881089b859a63454-primary.sqlite.bz2
[root@card1 repodata] #
[root@card1 repodata] # sha256sum 436345f4b666f0a461d479ccfabc2c22823d4f2173c2653e5250fea62f0afe98-c7-x86_64-comps.xml.gz
436345f4b666f0a461d479ccfabc2c22823d4f2173c2653e5250fea62f0afe98 436345f4b666f0a461d479ccfabc2c22823d4f2173c2653e5250fea62f0afe98-c7-x86_64-comps.xml.gz
[root@card1 repodata] #
-abnormal node
[root@card2 repodata] # pwd
/ mnt/repodata
[root@card2 repodata] # sha256sum 42a80e759522768b2cc357553bb64bd7345b06abeb60187f881089b859a63454-primary.sqlite.bz2
Sha256sum: 42a80e759522768b2cc357553bb64bd7345b06abeb60187f881089b859a63454-primary.sqlite.bz2: input / output error
[root@card2 repodata] #
[root@card2 repodata] # sha256sum 436345f4b666f0a461d479ccfabc2c22823d4f2173c2653e5250fea62f0afe98-c7-x86_64-comps.xml.gz
Sha256sum: 436345f4b666f0a461d479ccfabc2c22823d4f2173c2653e5250fea62f0afe98-c7-x86_64-comps.xml.gz: input / output error
[root@card2 repodata] #
[root@card2 repodata] # sha256sum 9710c85f1049b4c60c74ae5fd51d3e98e4ecd50a43ab53ff641690fb164a6d63-other.sqlite.bz2
Sha256sum: 9710c85f1049b4c60c74ae5fd51d3e98e4ecd50a43ab53ff641690fb164a6d63-other.sqlite.bz2: input / output error
[root@card2 repodata] #
[root@card2 ~] # umount / mnt
[root@card2 ~] # mount / dev/cdrom / mnt
Mount: / dev/sr0 write protection, which will be mounted as read-only
[root@card2] # df-h
File system capacity used available used% mount point
/ dev/mapper/centos-root 50G 886M 50G 2% /
Devtmpfs 24G 0 24G 0% / dev
Tmpfs 24G 0 24G 0% / dev/shm
Tmpfs 24G 26M 24G 1% / run
Tmpfs 24G 0 24G 0% / sys/fs/cgroup
/ dev/mapper/centos-home 1.6T 33M 1.6T 1% / home
/ dev/sda1 497M 127M 370M 26% / boot
Tmpfs 4.7G 0 4.7G 0% / run/user/0
/ dev/sr0 4.1G 4.1G 0100% / mnt
[root@card2 ~] #
9. It can be seen that there may be a problem with the CD mounted on the abnormal node. Try to replace the CD of the normal node to solve the problem.
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.