- 论坛徽章:
- 0
|
本帖最后由 sinotj 于 2010-03-07 22:40 编辑 \n\n有两个盘柜,1个是DS4700,1个DS4800,1台p6 550小机,操作系统是aix 5.3.09,\r\n\r\n两个盘柜的lun大小一样,在两个盘柜中各拿1个hdisk,建mirror VG,建LV,建文件系统(JFS2),QUORUM=on.相关设备参数配置如下:\r\n\r\n chdev -l fscsi0 -a fc_err_recov=fast_fail -P\r\n\r\n chdev -l fscsi1 -a fc_err_recov=fast_fail -P\r\n\r\n chdev -l dar0 -a switch_retries=0\r\n\r\n chdev -l dar1 -a switch_retries=0\r\n\r\n chdev -l hdisk2 -a rw_timeout=5 \r\n\r\n chdev -l hdisk2 -a reassign_to=30\r\n\r\n chdev -l hdisk3 -a rw_timeout=5\r\n\r\n chdev -l hdisk3 -a reassign_to=30\r\n\r\n测试一个盘柜关掉后数据的访问情况,过程如下:\r\n\r\nnode1#>cd /testfs\r\nnode1#>ls\r\nlost+found test\r\nnode1#>pwd\r\n/testfs\r\n\r\n#关掉DS4800,然后在windows机器上通过FTP上传文件test2,同在小机上执行如下操作.\r\nnode1#>time touch test1\r\ntouch: 0652-046 Cannot create test1.\r\n\r\nreal 0m44.30s\r\nuser 0m0.00s\r\nsys 0m0.00s\r\nnode1#>ls\r\nlost+found test test1 test2.txt\r\nnode1#>cat test2.txt\r\nnode1#>echo \"111\" >> test2.txt\r\nnode1#>cat test2.txt\r\n111\r\n\r\n#以上可以证明FTP上传成功了,然后在FTP上执行删除test2.txt文件,提示操作失损\r\nnode1#>cd / \r\nnode1#>cd /testfs\r\nnode1#>ls\r\nlost+found test test1\r\n\r\n#可是看到的是test2.txt文件不见了\r\nnode1#>touch test2\r\ntouch: 0652-046 Cannot create test2.\r\n\r\nnode1#>ls\r\nlost+found test test1\r\nnode1#>touch test2\r\ntouch: 0652-046 Cannot create test2.\r\n\r\n#执行两遍touch都不成功\r\nnode1#>pwd\r\n/testfs\r\nnode1#>touch test2\r\ntouch: 0652-046 Cannot create test2.\r\nnode1#>touch test3 \r\ntouch: 0652-046 Cannot create test3.\r\nnode1#>ls\r\nlost+found test test1\r\n\r\n#现在可以看出文件系统出题问了,想umount后再mount后试一下.\r\nnode1#>cd ..\r\nnode1#>umount /testfs\r\numount: 0506-349 Cannot unmount /dev/testlv: The requested resource is busy.\r\nnode1#>fuser /testfs\r\n/testfs: 446770c\r\n\r\n#发现446770是进程是ftp,我的windows机器退出ftp后如下\r\nnode1#>fuser /testfs\r\n/testfs: \r\nnode1#>fuser /testfs\r\n/testfs: \r\nnode1#>umount /testfs\r\n\r\n#umount成功\r\nnode1#>mount /testfs\r\nReplaying log for /dev/testlv.\r\nmount: 0506-324 Cannot mount /dev/testlv on /testfs: The media is not formatted or the format is not correct.\r\n0506-342 The superblock on /dev/testlv is dirty. Run a full fsck to fix.\r\nnode1#>lsvg -l pacsdata1\r\npacsdata1:\r\nLV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT\r\ntestlv jfs2 200 400 2 closed/stale /testfs\r\nloglv00 jfs2log 1 1 1 closed/syncd N/A\r\nnode1#>lsvg -p pacsdata1\r\npacsdata1:\r\nPV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION\r\nhdisk2 missing 2961 2760 593..391..592..592..592\r\nhdisk8 active 2961 2761 593..392..592..592..592\r\nnode1#>\r\n\r\n哪位兄弟给指一下,文件系统错误是怎么导致的,mirror怎么会导致文件系统损坏哪,是我哪儿设置的不对吗? |
|