VxFS
Материал из noname.com.ua
Версия от 14:08, 15 июля 2011; Sirmax (обсуждение | вклад)
Veritas VxFS
Столкунулся с тем что отвалились после перезагрузки волюмы.
Проверить как и что монтируется:
root@s-k10om # more /etc/vfstab #device device mount FS fsck mount mount #to mount to fsck point type pass at boot options # fd - /dev/fd fd - no - /proc - /proc proc - no - /dev/md/dsk/d1 - - swap - no - /dev/md/dsk/d0 /dev/md/rdsk/d0 / ufs 1 no - /dev/md/dsk/d3 /dev/md/rdsk/d3 /var ufs 1 no - /dev/md/dsk/d5 /dev/md/rdsk/d5 /oracle_sw ufs 2 yes - /dev/md/dsk/d4 /dev/md/rdsk/d4 /users ufs 2 yes - /devices - /devices devfs - no - sharefs - /etc/dfs/sharetab sharefs - no - ctfs - /system/contract ctfs - no - objfs - /system/object objfs - no - swap - /tmp tmpfs - yes - /dev/vx/dsk/netrac-dg/oracle_redo /dev/vx/rdsk/netrac-dg/oracle_redo /oracle_redo vxfs 0 no suid /dev/vx/dsk/oracle-dg/oracle /dev/vx/rdsk/oracle-dg/oracle /oracle vxfs 0 no suid /dev/vx/dsk/oracle-dg/oracle_data /dev/vx/rdsk/oracle-dg/oracle_data /oracle_data vxfs 0 no suid /dev/vx/dsk/oracle-dg/oracle_backup /dev/vx/rdsk/oracle-dg/oracle_backup /oracle_backup vxfs 0 no suid
При попытке монтирования возникает ошибка:
root@s-k10om # root@s-k10om # mount /oracle_data UX:vxfs mount: ERROR: V-3-21268: /dev/vx/dsk/oracle-dg/oracle_data is corrupted. needs checking
Запускаю fsck
root@s-k10om # fsck -F vxfs -o full,nolog /dev/vx/dsk/oracle-dg/oracle_backup pass0 - checking structural files pass1 - checking inode sanity and blocks pass2 - checking directory linkage pass3 - checking reference counts pass4 - checking resource maps OK to clear log? (ynq)n sanity checks/updates have not been completed - restart? (ynq)y rebuild structural files? (ynq)q root@s-k10om # fsck -F vxfs -o full,nolog /dev/vx/dsk/oracle-dg/oracle_backup pass0 - checking structural files pass1 - checking inode sanity and blocks pass2 - checking directory linkage pass3 - checking reference counts pass4 - checking resource maps OK to clear log? (ynq)q root@s-k10om # fsck -F vxfs -o full,nolog /dev/vx/dsk/oracle-dg/oracle_backup pass0 - checking structural files pass1 - checking inode sanity and blocks pass2 - checking directory linkage pass3 - checking reference counts pass4 - checking resource maps OK to clear log? (ynq)y flush fileset headers? (ynq)y set state to CLEAN? (ynq)y
root@s-k10om # mount /oracle_backup
монтировать можно только в неиспользуемые моунтпойнты:
root@s-k10om # mount /tti/netrac UX:vxfs mount: ERROR: V-3-21264: /dev/vx/dsk/netrac-dg/netrac is already mounted, /tti/netrac is busy, allowable number of mount points exceeded root@s-k10om # mount | grep netrac /oracle_redo on /dev/vx/dsk/netrac-dg/oracle_redo read/write/setuid/devices/delaylog/largefiles/ioerror=mwdisable/dev=4a82714 on Thu Mar 3 15:10:35 2011 /tti/rdr on /dev/vx/dsk/netrac-dg/rdr read/write/setuid/devices/delaylog/largefiles/ioerror=mwdisable/dev=4a82713 on Thu Mar 3 15:10:42 2011 /tti/backup on /dev/vx/dsk/netrac-dg/backup read/write/setuid/devices/delaylog/largefiles/ioerror=mwdisable/dev=4a82712 on Thu Mar 3 15:10:50 2011 /tti/logs on /dev/vx/dsk/netrac-dg/logs read/write/setuid/devices/delaylog/largefiles/ioerror=mwdisable/dev=4a82711 on Thu Mar 3 15:10:59 2011
root@s-k10om # fuser /tti/netrac/ /tti/netrac/: 5057c root@s-k10om # ps -cef | grep 5057 root 5566 5194 TS 59 15:33:38 pts/4 0:00 grep 5057 root 5176 5057 TS 59 14:20:57 pts/4 0:00 -sh netrac 5057 5051 TS 59 13:28:07 pts/4 0:00 –tcsh
root@s-k10om # pwdx 5057 5057: /tti/netrac
root@s-k10om # kill -9 5057 root@s-k10om # fuser /tti/netrac root@s-k10om # mount /tti/netrac