Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

/etc/filesystems

Status
Not open for further replies.

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
 
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.
 
probably also the following command would recreate /etc/filesystems entries:


imfs VGname


I didn't try it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top