Feb 13, 2007 #1 AIXFinder IS-IT--Management Jan 4, 2007 97 US Someone removed the contents of /etc/filesystems. -rw-r--r-- 1 root system 0 Feb 11 23:00 filesystems Is there a way to re-generate the contents off of OS level other than restoring it from the backup tapes? thx
Someone removed the contents of /etc/filesystems. -rw-r--r-- 1 root system 0 Feb 11 23:00 filesystems Is there a way to re-generate the contents off of OS level other than restoring it from the backup tapes? thx
Feb 13, 2007 #2 ogniemi Technical User Nov 7, 2003 1,041 PL hmmm... good question - maybe the following would help you until someone gives us a better solution: you run this one line command from a non-root user mount|grep "log=/dev/" |& while read -p;do set `echo $REPLY`;LOG=`echo $7|awk -F= '{print $NF}'`; echo "$2:\n\tdev\t\t= $1\n\tvfs\t\t= $3\n\tlog\t\t= $LOG\n\tmount\t\t= true\n\toptions\t\t= rw\n\taccount\t\t= false\n";done but you could also restore from mksysb image if you have (restore -xvqf /dev/rmt0 /etc/filesystems) non-rootvg volume groups you can re-import to write this informations from VGDA to /etc/filesystems for rootvg I yet don't know how get back its filesystems entries to /etc/filesystems... reboot? I am not sure. Upvote 0 Downvote
hmmm... good question - maybe the following would help you until someone gives us a better solution: you run this one line command from a non-root user mount|grep "log=/dev/" |& while read -p;do set `echo $REPLY`;LOG=`echo $7|awk -F= '{print $NF}'`; echo "$2:\n\tdev\t\t= $1\n\tvfs\t\t= $3\n\tlog\t\t= $LOG\n\tmount\t\t= true\n\toptions\t\t= rw\n\taccount\t\t= false\n";done but you could also restore from mksysb image if you have (restore -xvqf /dev/rmt0 /etc/filesystems) non-rootvg volume groups you can re-import to write this informations from VGDA to /etc/filesystems for rootvg I yet don't know how get back its filesystems entries to /etc/filesystems... reboot? I am not sure.
Feb 13, 2007 #3 ogniemi Technical User Nov 7, 2003 1,041 PL probably also the following command would recreate /etc/filesystems entries: imfs VGname I didn't try it. Upvote 0 Downvote
probably also the following command would recreate /etc/filesystems entries: imfs VGname I didn't try it.
Feb 13, 2007 #4 khalidaaa Technical User Jan 19, 2006 2,323 BH As ogniemi said, Good Question! Try the following links http://www.dbforums.com/printthread.php?t=322089 http://www.serverdeal.com/newboard/upload/pds/36.txt Regards, Khalid Upvote 0 Downvote
As ogniemi said, Good Question! Try the following links http://www.dbforums.com/printthread.php?t=322089 http://www.serverdeal.com/newboard/upload/pds/36.txt Regards, Khalid