Validate mountpoints on solaris server after server reboot


 
Thread Tools Search this Thread
Operating Systems Solaris Validate mountpoints on solaris server after server reboot
# 22  
Old 09-05-2014
Hi Dave,

you are correct Dave, your theme will work in all areas. Here just i want to compare two files.

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

Then Junior helpers advice in Post #10 and his subsequent corrections will do that.

Regards

Dave
# 24  
Old 09-05-2014
Lightbulb

VenkatReddy786,
I experienced one notable pitfall though: The script will work good and reliably on filesystems with unique names, thus the message before that grep command should be Missing *unique* filesystems:.

If non-unique filesystems are missing, the if statement (the diff command, to be exact) WILL detect that, but the grep command will not report it.

In your "real-world" output the only non-unique filesystem is swap. If you don't care for swap, it's OK, but you could face a situation where the "missing filesystems list" is empty. Another variation could be one reported filesystem with unique name but in fact another one filesystem with non-unique name is missing at the same time and not listed. Thus adding following lines after the grep command could be very useful, just in case:
Code:
echo "List of non-unique filesystems in df.pre:"
sort df.pre | uniq -dc
echo "List of non-unique filesystems in df.post:"
sort df.post | uniq -dc

It should be easy to spot potential different counters.
# 25  
Old 09-08-2014
can you post df -k , to see how the output looks like.
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