建设什么网站比较好,国内开源平台,目前网站软件,商城网站开发背景我有一个可怕的情况#xff0c;我必须在救援的Debian Linux中从损坏的RAID系统中恢复数据。我只想以只读方式将它们全部挂载到/ mnt / rescue#xff0c;以便能够将VMWare GSX映像复制到另一台计算机上#xff0c;并稍后将它们迁移到ESXi。相关命令的输出如下。fdisk -lDisk…我有一个可怕的情况我必须在救援的Debian Linux中从损坏的RAID系统中恢复数据。我只想以只读方式将它们全部挂载到/ mnt / rescue以便能够将VMWare GSX映像复制到另一台计算机上并稍后将它们迁移到ESXi。相关命令的输出如下。fdisk -lDisk /dev/sda: 1500.3 GB, 1500301910016 bytes255 heads, 63 sectors/track, 182401 cylindersUnits cylinders of 16065 * 512 8225280 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x0005e687Device Boot Start End Blocks Id System/dev/sda1 1 523 4200997 fd Linux raid autodetect/dev/sda2 524 785 2104515 fd Linux raid autodetect/dev/sda3 786 182401 1458830520 fd Linux raid autodetectDisk /dev/sdb: 1500.3 GB, 1500301910016 bytes255 heads, 63 sectors/track, 182401 cylindersUnits cylinders of 16065 * 512 8225280 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x00014fc7Device Boot Start End Blocks Id System/dev/sdb1 1 523 4200997 fd Linux raid autodetect/dev/sdb2 524 785 2104515 fd Linux raid autodetect/dev/sdb3 786 182401 1458830520 fd Linux raid autodetectDisk /dev/md0: 4301 MB, 4301717504 bytes2 heads, 4 sectors/track, 1050224 cylindersUnits cylinders of 8 * 512 4096 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x00000000Disk /dev/md0 doesnt contain a valid partition tableDisk /dev/md1: 2154 MB, 2154954752 bytes2 heads, 4 sectors/track, 526112 cylindersUnits cylinders of 8 * 512 4096 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x00000000Disk /dev/md1 doesnt contain a valid partition table我试图按以下方式安装磁盘。mount -o ro /dev/sda1 /mnt/rescue然后我得到以下错误。mount: unknown filesystem type linux_raid_member猜测文件系统也不顺利。mount -o ro -t ext3 /dev/sda1 /mnt/rescue/mount: /dev/sda1 already mounted or /mnt/rescue/ busy因此我尝试如下创建虚拟设备。mdadm -A -R /dev/md9 /dev/sda1这将导致以下消息。mdadm: cannot open device /dev/sda1: Device or resource busymdadm: /dev/sda1 has no superblock - assembly aborted现在我迷路了我不知道如何恢复磁盘并取回数据。以下是所有3个磁盘的mda --examine输出(我认为应该是3x raid1磁盘)。/ dev / sda1Magic : a92b4efcVersion : 0.90.00UUID : 6708215c:6bfe075b:776c2c25:004bd7b2 (local to host rescue)Creation Time : Mon Aug 31 17:18:11 2009Raid Level : raid1Used Dev Size : 4200896 (4.01 GiB 4.30 GB)Array Size : 4200896 (4.01 GiB 4.30 GB)Raid Devices : 3Total Devices : 2Preferred Minor : 0Update Time : Sun Jun 2 00:58:05 2013State : cleanActive Devices : 2Working Devices : 2Failed Devices : 0Spare Devices : 0Checksum : 9070963e - correctEvents : 19720Number Major Minor RaidDevice Statethis 1 8 1 1 active sync /dev/sda10 0 0 0 0 removed1 1 8 1 1 active sync /dev/sda12 2 8 17 2 active sync /dev/sdb1/ dev / sda2Magic : a92b4efcVersion : 0.90.00UUID : e8f7960f:6bbea0c7:776c2c25:004bd7b2 (local to host rescue)Creation Time : Mon Aug 31 17:18:11 2009Raid Level : raid1Used Dev Size : 2104448 (2.01 GiB 2.15 GB)Array Size : 2104448 (2.01 GiB 2.15 GB)Raid Devices : 3Total Devices : 2Preferred Minor : 1Update Time : Sat Jun 8 07:14:24 2013State : cleanActive Devices : 2Working Devices : 2Failed Devices : 0Spare Devices : 0Checksum : 120869e1 - correctEvents : 3534Number Major Minor RaidDevice Statethis 1 8 2 1 active sync /dev/sda20 0 0 0 0 removed1 1 8 2 1 active sync /dev/sda22 2 8 18 2 active sync /dev/sdb2/ dev / sda3Magic : a92b4efcVersion : 0.90.00UUID : 4f2b3b67:c3837044:776c2c25:004bd7b2 (local to host rescue)Creation Time : Mon Aug 31 17:18:11 2009Raid Level : raid5Used Dev Size : 1458830400 (1391.25 GiB 1493.84 GB)Array Size : 2917660800 (2782.50 GiB 2987.68 GB)Raid Devices : 3Total Devices : 2Preferred Minor : 2Update Time : Sat Jun 8 14:47:00 2013State : cleanActive Devices : 1Working Devices : 1Failed Devices : 1Spare Devices : 0Checksum : 2b2b2dad - correctEvents : 36343894Layout : left-symmetricChunk Size : 64KNumber Major Minor RaidDevice Statethis 1 8 3 1 active sync /dev/sda30 0 0 0 0 removed1 1 8 3 1 active sync /dev/sda32 2 0 0 2 faulty removedcat /proc/mdstatPersonalities : [raid1]md2 : inactive sda3[1](S) sdb3[2](S)2917660800 blocksmd1 : active raid1 sda2[1] sdb2[2]2104448 blocks [3/2] [_UU]md0 : active raid1 sda1[1] sdb1[2]4200896 blocks [3/2] [_UU]md2似乎已损坏可能是与我的VMWare映像有关的袭击。我想通过将其安装在RAID之外来访问md2中的数据(活动且未损坏的磁盘上的数据即/ dev / sda3)。只是执行一个好主意mdadm --manage /dev/md2 --remove /dev/sda3(因为fdisk看不到md2它是否还能工作)我应该通过运行重新对其他突袭md0和md1进行复仇吗mdadm --assemble /dev/md0 /dev/sda1 /dev/sdb1更新0我不能组装md0和md2。rootrescue ~ # mdadm --assemble /dev/md0 /dev/sda1 /dev/sdb1mdadm: cannot open device /dev/sda1: Device or resource busymdadm: /dev/sda1 has no superblock - assembly abortedrootrescue ~ # mdadm --assemble /dev/md2 /dev/sda3 /dev/sdb3mdadm: cannot open device /dev/sda3: Device or resource busymdadm: /dev/sda3 has no superblock - assembly aborted无法使用mount -t auto进行安装。rootrescue ~ # mount -t auto -o ro /dev/md0 /mnt/rescue//dev/md0 looks like swapspace - not mountedmount: you must specify the filesystem typerootrescue ~ # mount -t auto -o ro /dev/md2 /mnt/rescue/mount: you must specify the filesystem type挂载/ dev / md1可以但是上面没有VMWare数据。rootrescue /mnt/rescue # lltotal 139M-rw-r--r-- 1 root root 513K May 27 2010 abi-2.6.28-19-server-rw-r--r-- 1 root root 631K Sep 16 2010 abi-2.6.32-24-server-rw-r--r-- 1 root root 632K Oct 16 2010 abi-2.6.32-25-server-rw-r--r-- 1 root root 632K Nov 24 2010 abi-2.6.32-26-server-rw-r--r-- 1 root root 632K Dec 2 2010 abi-2.6.32-27-server-rw-r--r-- 1 root root 632K Jan 11 2011 abi-2.6.32-28-server-rw-r--r-- 1 root root 632K Feb 11 2011 abi-2.6.32-29-server-rw-r--r-- 1 root root 632K Mar 2 2011 abi-2.6.32-30-server-rw-r--r-- 1 root root 632K Jul 30 2011 abi-2.6.32-33-serverlrwxrwxrwx 1 root root 1 Aug 31 2009 boot - .-rw-r--r-- 1 root root 302K Aug 4 2010 coffee.bmp-rw-r--r-- 1 root root 89K May 27 2010 config-2.6.28-19-server...更新1我试图停止md2和md0并再次组装。mdadm -S /dev/md0rootrescue ~ # mount -t auto -o ro /dev/md0 /mnt/rescue//dev/md0 looks like swapspace - not mountedmount: you must specify the filesystem typemdadm -S /dev/md2rootrescue ~ # mount -t auto -o ro /dev/md2 /mnt/rescue/mount: you must specify the filesystem type有任何想法吗更新2由于出现以下错误消息因此无法从一个磁盘进行组装。rootrescue ~ # mdadm -S /dev/md2rootrescue ~ # mdadm --assemble /dev/md2 /dev/sda3mdadm: /dev/md2 assembled from 1 drive - not enough to start the array.rootrescue ~ # mdadm -S /dev/md2mdadm: stopped /dev/md2rootrescue ~ # mdadm --assemble /dev/md2 /dev/sdb3mdadm: /dev/md2 assembled from 1 drive - not enough to start the array.甚至新的袭击也失败了。rootrescue ~ # mdadm -S /dev/md9mdadm: stopped /dev/md9rootrescue ~ # mdadm --assemble /dev/md9 /dev/sda3mdadm: /dev/md9 assembled from 1 drive - not enough to start the array.rootrescue ~ # mdadm -S /dev/md9mdadm: stopped /dev/md9rootrescue ~ # mdadm --assemble /dev/md9 /dev/sdb3mdadm: /dev/md9 assembled from 1 drive - not enough to start the array.创建新的md磁盘也失败。rootrescue ~ # cat /proc/mdstatPersonalities : [raid1]md0 : active raid1 sda1[1] sdb1[2]4200896 blocks [3/2] [_UU]md1 : active raid1 sda2[1] sdb2[2]2104448 blocks [3/2] [_UU]unused devices: rootrescue ~ # mdadm -A -R /dev/md9 /dev/sda3mdadm: failed to RUN_ARRAY /dev/md9: Input/output errormdadm: Not enough devices to start the array.rootrescue ~ # cat /proc/mdstatPersonalities : [raid1] [raid6] [raid5] [raid4]md9 : inactive sda3[1]1458830400 blocksmd0 : active raid1 sda1[1] sdb1[2]4200896 blocks [3/2] [_UU]md1 : active raid1 sda2[1] sdb2[2]2104448 blocks [3/2] [_UU]unused devices: rootrescue ~ # mdadm -S /dev/md9mdadm: stopped /dev/md9rootrescue ~ # mdadm -A -R /dev/md9 /dev/sdb3mdadm: failed to RUN_ARRAY /dev/md9: Input/output errormdadm: Not enough devices to start the array.更新3从md2删除磁盘不起作用。mdadm --remove /dev/md2 /dev/sda3mdadm: cannot get array info for /dev/md2更新4最后--force希望通过运行汇编来完成。我现在正在将文件复制到另一台服务器。