Hi there,
I would like people to test a script on as many situations as possible so we can find out errors and lacks.
I wrote the script to help me work around mount points, especially when doing batch job on files (like backup) and to avoid duplicate operations through mount points.
For example, consider the following mount points :
And the following files :
If I backup /home and /var, I would like to be able to know what are the mount points under /home because it's not necesary to backup them. The scripts does it like this :
Then I might wonder if a specific path is under a mount point or not. The scripts does it like this :
Now, here is the script. It is supposed to work with extremely unusual paths (with all the weird character you can imagine). If you care about trying it, please report me any bug or necessary improvement. By the way, if it works let me know as well!
You know, the -xdev command in find will tell find not to traverse file-system boundaries. You can also use -P to ensure symbolic links are never followed. Those tips might help those with more basic needs.
Thanks otheus!
This will be terribly helpfull. Actually I still need this function to use the mirror function in lftp. I need to exclude directories that are mount points like this:
Hi Everyone,
Just in need of your help again, I have managed to get a script to check the linux disk usage stuff. But wanted to tweak it little more to get the desired output.
Requirement:
Now its querying only one mount point, As its not saving in array instead calling it as variables. So... (1 Reply)
Hi folks,
I have been asked to performed the following:
Add the following new moint points systemA:/avp and SystemB:/usr/sap/trans to be the new linux server ZZZ
How can I add those mount points and how those mount points can become another linuz server?:wall::wall::wall: (2 Replies)
Hi all,
First of all I dont even know the ABC of scripting ..
But now I want a Script to see the mount points of the file systems
Can any body help plsssssssss :o (1 Reply)
hi,
I believe a mount point does not have to be a physical disk, but rather a logical one? Is this correct? if so, how can I find out if my mount points are on different physical disks?
thanks (9 Replies)
Hi,
I have some issue with the mounting/unmounting on my sun solaris box.
Actually their is one script that mount the file system take the backup of databases and unmount the file system.Last week this script failed to mount the file system with the below error message:
+ echo fs_check.sh:... (1 Reply)
When taking a snap, I have a script that stops any active snap. When running the script, I'm getting a message that u02 and u04 are already mounted.
How can I find out what process(es) is/are latching on the these mount points?
Thank you for your time. (1 Reply)
Hi
Solaris 10
On server A, there is a directory called data with 10 files. This data directory has a further 3 subdirectories, gl, pay, contract (for example)
On server B, I want to see the server A data directory
commands used:
on server A, share -F nfs -o ro -d "<description">... (1 Reply)
How do I make a mount point reconnect at boot without editing /etc/fstab? Is there an option (or switch) to make this persistent when issuing the mount command from a client? (1 Reply)
sometimes in Solaris 8 when I go to mount filesystems using either the mount command or by editing the /etc/vfstab, i get a nice little error message saying the the number of allowable mount points has been exceeded. I have read man pages until I am blue in the face and no where can I find what the... (3 Replies)