Linux File System Repair

Source: Internet
Author: User

1. The problem arises

under the Linux operating system, a CEPH distributed storage System was installed and a command was executed when the OSD was installed:

1 ceph-deploy disk zap Osdnode1:/dev/sda3


command execution failed with the following log:


1 2 3 4 5 6 7 8 9 Ten One A - - the - - - + - + A at - - - - - in - to + - the * $ Panax Notoginseng - the + A the + - $ $ - - the - Wuyi the - Wu - About $ [Ceph_deploy.cli][info] ceph-deploy options: [Ceph_deploy.cli][info] Username:none [Ceph_deploy.cli][info] Verbose:false [Ceph_deploy.cli][info] Overwrite_conf:false [Ceph_deploy.cli][info] Subcommand:zap [Ceph_deploy.cli][info] Quiet:false [Ceph_deploy.cli][info] cd_conf: <ceph_deploy.conf.cephdeploy.conf instance at 0x12be4d0& gt; [Ceph_deploy.cli][info] Cluster:ceph [Ceph_deploy.cli][info] func: <functiondisk at 0x12b6938> [Ceph_deploy.cli][info] Ceph_conf:none [Ceph_deploy.cli][info] Default_release:false [Ceph_deploy.cli][info] Disk: [(' Osdnode1 ', '/dev/sda3 ', None)] [Ceph_deploy.osd][debug] Zapping/dev/sda3 on Osdnode1 [Osdnode1][debug] Connection detected Needforsudo [Osdnode1][debug] connected to Host:osdnode1 [Osdnode1][debug] Detect platform information from remote host [Osdnode1][debug] Detect machine type [Osdnode1][debug] Find The location of a executable [Ceph_deploy.osd][info] distro info:centos 6.7 Final [Osdnode1][debug] zeroing last few blocks of device [Osdnode1][debug] Find The location of a executable [Osdnode1][info] Running command:sudo/usr/sbin/ceph-disk Zap/dev/sda3 [Osdnode1][debug] creatingnewgpt entries. [Osdnode1][debug] warning:the kernel is still using the old partition table. [Osdnode1][debug] thenewtable is used at the next reboot. [Osdnode1][debug] GPT data Structures destroyed! Partition the disk using FDISK or [Osdnode1][debug] other utilities. [Osdnode1][debug] creatingnewgpt entries. [Osdnode1][debug] warning:the kernel is still using the old partition table. [Osdnode1][debug] thenewtable is used at the next reboot. [Osdnode1][debug] The operation has completed successfully. [osdnode1][warning] Traceback (most recent): [osdnode1][warning] File "/usr/sbin/ceph-disk", line 2994,in<module> [osdnode1][warning] Main () [osdnode1][warning] File "/usr/sbin/ceph-disk", line 2972,inmain [osdnode1][warning] Args.func (args) [osdnode1][warning] File "/usr/sbin/ceph-disk", line 2690,inmain_zap [osdnode1][warning] Zap (Dev) [osdnode1][warning] File "/usr/sbin/ceph-disk", line 1071,inzap [osdnode1][warning] Update_partition ('-d ', Dev, ' zapped ') [osdnode1][warning] File "/usr/sbin/ceph-disk", line 1033,inupdate_partition [osdnode1][warning] Dev, [osdnode1][warning] File "/usr/sbin/ceph-disk", line 306,incommand [osdnode1][warning] **kwargs) [osdnode1][warning] File "/usr/lib64/python2.6/subprocess.py", line 642,in__init__ [osdnode1][warning] [osdnode1][warning] File "/usr/lib64/python2.6/subprocess.py", line 1234,in_execute_child [osdnode1][warning] [osdnode1][warning] File "/usr/lib64/python2.6/pickle.py", line 1374,inloads [osdnode1][warning] [osdnode1][warning] File "/usr/lib64/python2.6/pickle.py", line 858,inload [osdnode1][warning] [osdnode1][warning] File "/usr/lib64/python2.6/pickle.py", line 971,inload_string [osdnode1][warning] [osdnode1][warning] Lookuperror:unknown encoding:string-escape [Osdnode1][error] Runtimeerror:command returned Non-zero exit status:1

[Ceph_deploy][error] runtimeerror:failed to execute command:/usr/sbin/ceph-disk zap/dev/sda3


2. Actual impact

I osdnode1 the device is not working properly, reflected in:
Commands that do not return results after the list of related commands fail


1 2 3 4 5 6 7 8 9 Ten One A - - the - - - [email protected] home]# df-h -bash:/bin/df:input/outputerror [email protected] home]# Mount /DEV/SDA3ON/TYPEEXT4 (rw) proc On/proctypeproc (rw) Sysfs ON/SYSTYPESYSFS (rw) devpts on/dev/ptstypedevpts (rw,gid=5,mode=620) tmpfs ON/DEV/SHMTYPETMPFS (rw) /DEV/SDA1ON/BOOTTYPEEXT4 (rw) none On/proc/sys/fs/binfmt_misctypebinfmt_misc (rw)   Mount:warning:/etc/mtabis not writable (e.g.read-only filesystem). It ' s possible that information reported Bymount (8) are not Up todate. For actual information about Systemmountpoints check the/proc/mountsfile.   [email protected] home]# df-h -bash:/bin/df:input/outputerror

Always quote IO error.


3. Workaround

Then fix it by following this method: Yes next is OK during the command execution.

Fsck-t Ext4/dev/sda3



After successful repair

Linux File System Repair

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.