我试图分离
Amazon EBS Volume from an Instance,我无法弄清楚为什么文件系统无法找到/未安装.
在我的EBS卷上,附件信息显示:
(Instance1):/dev/sdh (attached) (Instance1):/dev/sdo (attached) (Instance1):/dev/sdo (attached) (Instance1):/dev/sdj (attached) (Instance1):/dev/sdi (attached) (Instance1):/dev/sdn (attached) (Instance1):/dev/sdm (attached) (Instance1):/dev/sda1 (attached) (Instance1):/dev/sdl (attached)
在实例上运行fdisk -l,我得到:
Disk /dev/xvda: 16.1 GB,16106127360 bytes Disk /dev/xvdh: 156.8 GB,156766306304 bytes Disk /dev/xvdm: 156.8 GB,156766306304 bytes Disk /dev/xvdi: 156.8 GB,156766306304 bytes Disk /dev/xvdn: 156.8 GB,156766306304 bytes Disk /dev/xvdj: 156.8 GB,156766306304 bytes Disk /dev/xvdo: 156.8 GB,156766306304 bytes Disk /dev/xvdk: 156.8 GB,156766306304 bytes Disk /dev/xvdl: 156.8 GB,156766306304 bytes Disk /dev/md127: 1254.1 GB,1254122061824 bytes
试图卸下:
[root@ip-10-0-0-22 ~]# umount -d /dev/xvdm umount: /dev/xvdm: not mounted [root@ip-10-0-0-22 ~]# umount -d /dev/sdm umount: /dev/sdm: not found
安装:
[root@ip-10-0-0-22 ~]# mount /dev/xvda1 on / type ext4 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw) /dev/md127 on /vertica/data type ext4 (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
Delete what underlying filesystems? Also,could you cut-and-paste the output of cat /proc/mdstat into your question? – MadHatter
[root@ip-10-0-0-22 ~]# cat /proc/mdstat Personalities : [raid0] md127 : active raid0 xvdj[2] xvdn[6] xvdl[4] xvdh[0] xvdm[5] xvdi[1] xvdk[3] xvdo[7] 1224728576 blocks super 1.2 1024k chunks unused devices: <none>
解决方法
好的,你已经清楚你不想要这些数据了(谢谢你,很清楚这样的事情).卸载文件系统
umount / vertica / data
然后停止元设备
mdadm -S / dev / md127
这应该足以释放设备,以便它们与主机实例分离.