Problem situation:
Using AWS EC2 Server, mount a disk, umount the mounted directory on the system, and then cancel the attachment of the disk in the AWS Admin interface, the process took a long time and the period state was buzy, but after a while it succeeded in canceling the attachment, However, the use of Fdisk on the system to view the disk still exists but is not available, see below:
[root@ip-10-150-125-190 ~]# Fdisk-l
disk/dev/sda1:10.7 GB, 10737418240 bytes
255 heads, Sectors/track, 1305 cylinders
Units = Cylinders of 16065 * 8225280 bytes
DISK/DEV/SDA1 doesn ' t contain a valid partition table
disk/dev/sdb:450.9 GB, 450934865920 bytes
255 heads, Sectors/track, 54823 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Disk/dev/sdb doesn ' t contain a valid partition table
disk/dev/sdc:450.9 GB, 450934865920 bytes
255 heads, Sectors/track, 54823 cylinders
Units = Cylinders of 16065 * 8225280 bytes
DISK/DEV/SDC doesn ' t contain a valid partition table
disk/dev/sdf:322.1 GB, 322122547200 bytes
255 heads, Sectors/track, 39162 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Device Boot Start End Blocks Id System
/DEV/SDF1 1 39162 314568733+ 8e Linux LVM
[root@ip-10-150-125-190 ~]#
[root@ip-10-150-125-190 ~]# Df-h
FileSystem Size Used Avail use% mounted on
/DEV/SDA1 9.9G 7.4G 2.0G 80%/
/dev/sdb 414G 170G 223G 44%/mnt
None 3.8G 0 3.8G 0%/dev/shm
[root@ip-10-150-125-190 ~]#
[root@ip-10-150-125-190 ~]# Pvscan
/dev/volgroup/data:read failed after 0 of 4096 at 289406910464:input/output error
/dev/volgroup/data:read failed after 0 of 4096 at 289406967808:input/output error
/dev/volgroup/data:read failed after 0 of 4096 at 0:input/output error
/dev/volgroup/data:read failed after 0 of 4096 at 4096:input/output error
/dev/sdf:read failed after 0 of 4096 at 0:input/output error
/dev/sdf:read failed after 0 of 4096 at 322122481664:input/output error
/dev/sdf:read failed after 0 of 4096 at 322122539008:input/output error
/dev/sdf:read failed after 0 of 4096 at 4096:input/output error
/dev/sdf1:read failed after 0 in 322118287360:input/output error
/dev/sdf1:read failed after 0 in 322118373376:input/output error
/dev/sdf1:read failed after 0 in 0:input/output error
/dev/sdf1:read failed after 0 in 4096:input/output error
/dev/sdf1:read failed after 0 of 2048 at 0:input/output error
No Matching physical volumes found
[root@ip-10-150-125-190 ~]#
[root@ip-10-150-125-190 ~]# Dmsetup Info
Name:volgroup-data
State:active
Read ahead:256
Tables present:live
Open count:0
Event number:0
Major, minor:253, 0
Number of Targets:1
Uuid:lvm-dygjz7jtlgp0eo5abylinjgeeakvm0vbia1qiyklqi0r2yzigv2cdodfopuwiibr
[root@ip-10-150-125-190 ~]#
[root@ip-10-150-125-190 ~]# dmsetup Remove Volgroup-data
[root@ip-10-150-125-190 ~]# Dmsetup Info
No devices found
[root@ip-10-150-125-190 ~]#
[root@ip-10-150-125-190 ~]# Fdisk-l
disk/dev/sda1:10.7 GB, 10737418240 bytes
255 heads, Sectors/track, 1305 cylinders
Units = Cylinders of 16065 * 8225280 bytes
DISK/DEV/SDA1 doesn ' t contain a valid partition table
disk/dev/sdb:450.9 GB, 450934865920 bytes
255 heads, Sectors/track, 54823 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Disk/dev/sdb doesn ' t contain a valid partition table
disk/dev/sdc:450.9 GB, 450934865920 bytes
255 heads, Sectors/track, 54823 cylinders
Units = Cylinders of 16065 * 8225280 bytes
DISK/DEV/SDC doesn ' t contain a valid partition table
[root@ip-10-150-125-190 ~]#