Validate mountpoints on solaris server after server reboot


 
Thread Tools Search this Thread
Operating Systems Solaris Validate mountpoints on solaris server after server reboot
# 15  
Old 09-05-2014
Hi Dave,
Thanks lot for your initiate on this.
Just i want to compare two files, one file is having mountpoint information with df -k before server reboot, another is having mountpoint information with df -k after server reboot. I need to find the missing mountpoint information with comparision of two files if mountpoints are missing after server reboot.I don't want script should mount missing mountpoints.I will contact SA if any mountpoint missed.I would be more appreciate if you prepare the script for this
# 16  
Old 09-05-2014
Hi Venkat,

Before restart your host, you can take backup of your mount point by using

Code:
#df > df

It will store the all df data as a file in your home directory. You can verify it after reboot.

Last edited by seenuvasan1985; 09-05-2014 at 10:59 AM.. Reason: removed unwanted code
# 17  
Old 09-05-2014
Code:
 
Hi seenuvasan,
 
We can do manuall check. I want to find with shell script.
 
Thanks,
Venkat

# 18  
Old 09-05-2014
Try two changes:
  • diff instead of diff -q
  • /usr/xpg4/bin/grep instead of grep
This User Gave Thanks to junior-helper For This Post:
# 19  
Old 09-05-2014
Oops...

Just i saw your output of vfstab. Seems very large one... tough to check manually everything.
Also its complicated to create script, only shell script experts can help you.

Regards,
Sri
# 20  
Old 09-05-2014
Hi junior-helper,

The script is working as expected..Thanks lot for your help..you are tiger..i am very appriciate.

Thanks,
Venkat
# 21  
Old 09-05-2014
Hi Venkat,

I'm not really sure that you fully understand this, if you logon to the server - you will add directorieis to the mounted file system.

So what you will have to do is create a list of the required directories, then it won't matter who logs on to do this check. As an example I'll explain it like this.

When you logon to the server you will bring with you some mount points, these are mounted by the automounter. These mount points will be in the "df" that you do. When someone else logs on they will bring their mount points with them, if they then do a "df" they will be different and it will generate an error.

So what you need is a list of what MUST be mounted - not what IS mounted then you must check against the list.

Regards

Dave
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

Server reboot

Hi, The server got rebooted and below messages can be seen in /var/log/messages Sep 7 10:49:12 minersville kernel: Call Trace: <IRQ> <ffffffff80167420>{__alloc_pages+796} Sep 7 10:49:12 minersville kernel: <ffffffff80182814>{kmem_getpages+106} <ffffffff80183c16>{fallback_alloc+304}... (3 Replies)
Discussion started by: admin_db
3 Replies

2. Linux

Linux server reboot

We reboot our linux servers daily. Is it needed ? (10 Replies)
Discussion started by: linuxadmin
10 Replies

3. Solaris

Reboot the server through console

Hi All, I want to know the procedure like if server is down, i want to reboot the server through console ($rsc or $sc prompt).Could you please help me out. I would really appreciate your cooperation. thanks for understanding regards krishna (5 Replies)
Discussion started by: murthy76
5 Replies

4. UNIX for Dummies Questions & Answers

copying directories from NT server to Unix server (solaris 5.8)

I need to copy around 30 directories (each directory include one or more text file(s)) from NT server to Unix server at one go. For doing this what are the privillages i should have in both NT and Unix server. Please let me know which command i can use in shell prompt. TIA. (4 Replies)
Discussion started by: jhmr7
4 Replies

5. Solaris

Do I need to reboot Solaris 10 server for changes in /etc/systems ?

Hi, I have upgraded my Solaris 10 2005 to Solaris 10 2007. I am facing one bug, id: 6550904. To override this issue I have done following changes in /etc/systems: set max_uheap_lpsize = 0x2000 set max_ustack_lpsize = 0x2000 set max_privmap_lpsize = 0x2000 set max_shm_lpsize =... (6 Replies)
Discussion started by: neel.gurjar
6 Replies

6. AIX

IP setting changes after server reboot

I've recently changed my gateway setting using SMIT. Everything went fine except that the gateway setting kept reverting back to the old one everytime I reboot the server. I'm on AIX 5.2 running p-Series. Thanks for any info. (3 Replies)
Discussion started by: dereklow
3 Replies

7. Shell Programming and Scripting

how to remotely administer/validate UNIX server via Windows machine?

Hi there--I think this is more of a Windows question, but I think many of you might be able to help me out: I have a UNIX web server and a Windows machine. I'm trying to script the following tasks so that they can be run from the Windows machine (via a batch file): 1. Shutdown web services... (5 Replies)
Discussion started by: sohungry73
5 Replies

8. UNIX for Advanced & Expert Users

server reboot

hi all, :) for a reboot of sun box for patch installation i would like to know where do the reboot logs apart from /var/adm/messages and patch run messages would be available, i would like to know the sequence of messages logged in the file like requesting the users to log out sending a... (1 Reply)
Discussion started by: matrixmadhan
1 Replies

9. Shell Programming and Scripting

Server Reboot Alert

I want to get an email alert from a cronjob when a server got rebooted unexpectedly. Please help. Thanks! :confused: (2 Replies)
Discussion started by: angloi
2 Replies
Login or Register to Ask a Question