How to find cause for empty fstab after patching?


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat How to find cause for empty fstab after patching?
# 1  
Old 05-09-2013
Linux How to find cause for empty fstab after patching?

Hi,

I patched my RHEL 5.8 using yum update and then followed by updating vmware tools on my Virtual machine ( hosted on Vpshere), This is Oracle Database server.

After this when i rebooted - I saw may failed in the console.....with read only filesystem...........cat /etc/fstab was empty.......i went to single user mode and rewrite the /etc/fstab file ( same as another server) and server came up

What i am looking here::

Now, What are the things i should look for to find the cause, which caused /etc/fstab empty ( During my patching process i never touched this file anytime).....what are the logs which i can look to find the cause....Smilie
# 2  
Old 05-09-2013
I have seen earlier that patching causes the /etc/fstab to be empty , some cases like when updating VMware tool etc, also causes /etc/fstab to empty (not empty but I think it causes to something default),
-so in the implementation plan to put one line to keep a backup copy of the /etc/fstab before activity start , and to check and copy back original /etc/fstab before reboot.

Hope this helps..
# 3  
Old 05-09-2013
Quote:
Originally Posted by rveri
I have seen earlier that patching causes the /etc/fstab to be empty , some cases like when updating VMware tool etc, also causes /etc/fstab to empty (not empty but I think it causes to something default),
-so in the implementation plan to put one line to keep a backup copy of the /etc/fstab before activity start , and to check and copy back original /etc/fstab before reboot.

Hope this helps..
Thanks

Yes, After doing yum udpate, I rebooted the system here i was not able to ping my system so i updated vmware tools .....but could not ssh .now........i tried again updating vmware tools this time it failed when i ran
./vmware-tools-disturb/vmware-install.pl -d options then i ran vmware-config-tools.pl and it worked fine ..........i took a reboot then i saw failed messages in console.........and fstab empty

any article where i can find more information on this or can check vmware tools log.....( i do not have much exp on vpshere )

Last edited by saurabh84g; 05-09-2013 at 03:35 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

find command on a empty directory - bad status

when I run the following command in AIX (bash), find ./* I get the following error. find: bad status-- ./* Thats becasuse, its an empty directory. The same works, when there the directory is not empty. Even though the find deesnt have to rerun any result. My full find command would look... (4 Replies)
Discussion started by: deepakwins
4 Replies

2. Shell Programming and Scripting

UNIX cmd -find empty files in folder else sleep for 8hrs

Hello, I am trying to write a unix cmd , that if files in folder /path/FTP are all zero kb or empty then good to go, if not empty then sleep for 8 hrs. Following cmd list me the files which are not empty, But when I am incorporating IF ELSE cmd fails find /path/FTP. -type f -exec wc -l {}... (6 Replies)
Discussion started by: bluestarmoon
6 Replies

3. UNIX for Dummies Questions & Answers

find/xargs/*grep: find multi-line empty "try-catch" blocks - eg, missing ; not in a commented block

How can I recursively find all files in a directory and print out the file and first line number of any text blocks that match the below cases? This would seem to involve find, xargs, *grep, regex, etc. In summary, I want to find so-called empty "try-catch blocks" that do not contain code... (0 Replies)
Discussion started by: lifechamp
0 Replies

4. Homework & Coursework Questions

Find and delete empty files and directories

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Need to make a script, to remove all empty files and folders from current category. It also should show the name... (2 Replies)
Discussion started by: Itixop
2 Replies

5. Solaris

Issue patching, can't find resolution

I'm trying to install the latest patch cluster on a server running 05/08 (it's a Sunfire v240). When installing, the patch cluster dies at patch 138195-04. Looking at the failure log, here is what it says: baspeans01:/home/10_Recommended# more /var/tmp/138195-04.log.16544 This appears to be... (2 Replies)
Discussion started by: msarro
2 Replies

6. Shell Programming and Scripting

Deleting empty directories using find

Hello, I'm submitting this thread, because I was looking a way to delete empty directories using find and I found a thread from 2007 that helped me. I have worked from that threat, but I found that the command sent would analyze original directory and may delete it to. I have come up with expanded... (3 Replies)
Discussion started by: lramirev
3 Replies

7. Shell Programming and Scripting

Find empty folders

In current folder, there are many subfolders, subfolder's subfolders... under it. How can I find out the empty folders with no files in it. I only need the top folder list. For example, I have folders like below: a/b/c a/b/x/x.txt a/s a/s/y I need get the folder a/s, but not... (6 Replies)
Discussion started by: rdcwayx
6 Replies

8. UNIX for Dummies Questions & Answers

Removing empty folders using 'find'

Hey there! I try to use 'find' to remove empty directories like this: find . -depth -type d -empty -exec rm -rf {} ';' It works just fine, but there are some directories i want to exclude. So i tried to do sth like this: find . -depth -type d -empty -exec grep -v "not this one please" -exec... (5 Replies)
Discussion started by: deTTo
5 Replies

9. UNIX for Dummies Questions & Answers

how to find empty folders without using -empty

hi all: my solaris FIND does not support find myFolder -type d -empty how can i find the empty folders? thanks! (7 Replies)
Discussion started by: lasse
7 Replies

10. UNIX for Dummies Questions & Answers

How to find files not empty?

Is there any way, we can find files not empty? I know one can find empty files by using find with -size is equalled to 0. Please let me know, how I can find files greater than 0 or any other size in number? (2 Replies)
Discussion started by: videsh77
2 Replies
Login or Register to Ask a Question