我有一个 Linux Debian 服务器:
Distributor ID: Debian
Description: Debian GNU/Linux 7.1 (wheezy)
Release: 7.1
Codename: wheezy
我的服务器上连接了一些硬件设备,它们安装在系统中的不同目录中。一切正常,直到设备从服务器上物理拔出而没有被解除。再次连接设备后,我尝试安装它:这是我的/etc/fstab
文件内容(这是设备的第一次配置,它曾经工作过):
/dev/cciss/c0d1p1 /var/www/vhosts/ ext4 defaults,acl 0 1
/dev/cciss/c0d2p1 /home/samba/ ext4 defaults,acl 0 1
我的 cciss 设备包含:(ls /dev/cciss/
)
c0d0 c0d0p1 c0d0p2 c0d0p5 c0d1 c0d2 c0d2p1
我想安装/dev/cciss/c0d1p1
所以我尝试了:
mount /dev/cciss/c0d1p1
我得到了这个输出:
mount: special device /dev/cciss/c0d1p1 does not exist
fdisk -l
显示没有条目/dev/cciss/c0d1
也blkid
给了我:
/dev/cciss/c0d0p5: UUID="4d144db1-bypl-43d0-b5cb-e857ab8b7f14" TYPE="swap"
/dev/cciss/c0d2p1: UUID="d0fdfteb-e9eb-4t8c-bf5e-374613e29btr" TYPE="ext4"
/dev/cciss/c0d0p1: UUID="78sa9u1d-8d17-44be-9116-758ez1k24d27" TYPE="ext4"
我尝试了一下fdisk -l /dev/cciss/
并得到了这个输出:
last_lba(): I don't know how to handle files with mode 40755
pvs -a
读取设备时显示错误/dev/cciss/c0d1
。输出:
/dev/cciss/c0d1: read failed after 0 of 4096 at 0: Input/output error
/dev/cciss/c0d1: read failed after 0 of 4096 at 750122696704: Input/output error
/dev/cciss/c0d1: read failed after 0 of 4096 at 750122811392: Input/output error
/dev/cciss/c0d1: read failed after 0 of 4096 at 4096: Input/output error
PV VG Fmt Attr PSize PFree
/dev/cciss/c0d0p5 --- 0 0
/dev/cciss/c0d1 --- 0 0
/dev/cciss/c0d2p1 --- 0 0
/dev/root --- 0 0
我不太明白这个问题,但我认为一旦设备断开连接,就必须重新配置,并且必须在安装设备之前定义分区。我想也许在我的情况下 VolumeGroup 名称是错误的,所以我尝试了 : lvscan
:
/dev/cciss/c0d1: read failed after 0 of 4096 at 0: Input/output error
/dev/cciss/c0d1: read failed after 0 of 4096 at 750122696704: Input/output error
/dev/cciss/c0d1: read failed after 0 of 4096 at 750122811392: Input/output error
/dev/cciss/c0d1: read failed after 0 of 4096 at 4096: Input/output error
No volume groups found
还给pvscan; vgchange -ay
了我:
/dev/cciss/c0d1: read failed after 0 of 4096 at 0: Input/output error
/dev/cciss/c0d1: read failed after 0 of 4096 at 750122696704: Input/output error
/dev/cciss/c0d1: read failed after 0 of 4096 at 750122811392: Input/output error
/dev/cciss/c0d1: read failed after 0 of 4096 at 4096: Input/output error
No matching physical volumes found
/dev/cciss/c0d1: read failed after 0 of 4096 at 0: Input/output error
/dev/cciss/c0d1: read failed after 0 of 4096 at 750122696704: Input/output error
/dev/cciss/c0d1: read failed after 0 of 4096 at 750122811392: Input/output error
/dev/cciss/c0d1: read failed after 0 of 4096 at 4096: Input/output error
No volume groups found
这种输入是什么意思?如何为我的设备定义卷组,以及在安装我的设备之前我应该做什么?