- 论坛徽章:
- 0
|
环境: debian + xen
安装采用LVM
VG name: xen01
xen 使用 LVM
LV name: hifriends-disk, hifriends-swap, showmecn-disk, showmecn-swap
domain0: xen01
domainU: hifriends showmecn
filesystem:
/dev/mapper/xen01-root on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
/dev/mapper/xen01-home on /home type ext3 (rw)
/dev/mapper/xen01-tmp on /tmp type ext3 (rw)
/dev/mapper/xen01-usr on /usr type ext3 (rw)
/dev/mapper/xen01-var on /var type ext3 (rw)
cronjob:
hifriends(domainU) restart at 05:30
showmecn(domainU) restart at 04:30
早上发现showmecn(domainU)有问题,进入xen01(domain0)下的mount命令中最后多了一句/dev/xen01/showmecn-disk on / type ext3
(rw,errors=remount-ro):
竟然把/dev/xen01/showmecn-disk 挂载到了 xen01(domain0) 的 /(根目录) 但是却看不到/dev/xen01/showmecn-disk下的东西,但是vi的时
候报错,说权限不够。
showmecn(domainU) 无法正常启动,只到(initramfs)这边为止,能使用简单的命令查看目录结构。
重启xen01(domain0)
e2fsck /dev/xen01/showmecn-disk 发现很多错误,于是我复制了一份LV 到 /dev/xen01/showmcn-tmp 然后对原来的LV进行操作
e2fsck /dev/xen01/showmecn-disk 很多错误, 进行了很长时间,最后我取消了ctrl+c
我将/dev/xen01/showmecn-disk mount 到xen01的 /opt2上,想导出数据。
结果发现:
xen01:/opt2# ls -l
total 128
-rw-r--r-- 1 root root 163 2003-12-31 16:22 bin
drwxr-xr-x 2 root root 4096 2004-12-16 06:55 boot
drwxr-xr-x 10 root root 36864 2007-10-26 10:17 dev
-rw-r--r-- 1 root root 3299 2007-01-02 07:01 etc
drwxrwsr-x 8 root staff 4096 2007-11-20 10:32 home
drwxr-xr-x 2 root root 4096 2007-10-23 22:48 initrd
-rw-r--r-- 1 root root 1920 2006-08-13 02:05 lib
drwx------ 2 root root 16384 2007-10-23 22:41 lost+found
drwxr-xr-x 2 root root 4096 2007-10-23 22:48 media
drwxr-xr-x 2 root root 4096 2004-12-16 06:55 mnt
drwxr-xr-x 2 root root 4096 2007-10-23 22:48 opt
drwxr-xr-x 2 root root 4096 2004-12-16 06:55 proc
drwxr-xr-x 4 root root 4096 2007-11-08 11:37 root
?--------- ? ? ? ? ? sbin
drwxr-xr-x 2 root root 4096 2007-10-23 22:48 srv
drwxr-xr-x 2 root root 4096 2007-03-06 06:26 sys
-rwxr-xr-x 1 root root 12825 2007-11-08 15:59 tmp
drwxr-xr-x 2 root root 4096 2007-10-23 22:49 usr
drwxr-xr-x 14 root root 4096 2008-01-16 16:33 var
xen01:/opt2/var# ls -l
total 72
-rw-r--r-- 1 root root 857 2007-10-24 02:57 backups
drwxr-xr-x 9 root root 4096 2007-11-27 10:21 cache
-rw-r--r-- 1 root root 861 2007-10-24 02:57 lib
drwxr-xr-x 2 root root 4096 2007-10-24 02:57 local
-rw-r--r-- 4 root root 606 2007-10-24 02:57 lock
-rw-r--r-- 1 root root 626 2007-10-24 02:57 log
-rwxr-xr-x 1 root root 12756 2007-11-08 15:59 mail
-rwxr-xr-x 1 root root 14290 2007-11-08 15:59 opt
-rw-r--r-- 1 root root 616 2007-10-24 02:57 run
-rw-r--r-- 1 root root 679 2007-10-24 02:57 spool
-rw-r--r-- 3 root root 869 2007-10-24 02:57 tmp
drwxr-xr-x 9 root root 4096 2007-12-13 16:04 www
很多文件结构都已不正确, 求助!!! |
|