Unsolved

This post is more than 5 years old

65 Posts

1643

May 14th, 2013 17:00

/proc and /sys on RHEL- how are they excluded?

After an initial install of a RHEL client I found everything when haywire when /proc was included in the backup.  I guess the same would apply for /sys.  How are these normally excluded?  I'm thinking I made a mistake in configuring the client somewhere.

2 Intern

 • 

253 Posts

May 15th, 2013 10:00

/proc is not an actual file or directory it is just a place that holds info on what is currently running

65 Posts

May 15th, 2013 11:00

/proc and /sys on RHEL are extensive directory trees of files which can be read (about 7k entries under /proc).  They are all size 0 but when you cat them there's info there from the kernel.  I would have thought Networker would know by default not to try to back them up but it was.  One of my LTO-5 tapes it was putting /proc on showed a capacity of 31TB used.  Something weird was happening.

So I added to the Unix Standard Directives skip proc and skip sys.

23 Posts

May 15th, 2013 13:00

the savefs probe would the one to verify with.   It should automatically exclude.    The expansion/client config wizard show everything regardless of whether it will be backed up or not.

23 Posts

May 15th, 2013 13:00

savefs/save will automatically exclude /proc and /sys when saveset ALL is specified in the client resource.    If you've explicitly referenced /proc and /sys in the savset then they will be backed up.

65 Posts

May 15th, 2013 13:00

The first time I set a client up I didn't use ALL and this was when I noticed /proc was being backed up.

But even if you use ALL when you expand the / directory in the client properties (or via the configure wizard) you see that /proc is still checked.

18 Posts

May 15th, 2013 13:00

Hi Avhays,

The answer is very simple. Just make a skip directive (given below) and apply it in client properties' directive field (at General tab).

<>

skip: *.*

<>

skip: *.*

...and here u go.

65 Posts

May 16th, 2013 18:00

How do I run the savefs probe?  If I run 'savefs -p' on the client it just prints out the filesystems, not individual files.

17 Posts

May 17th, 2013 01:00

you can run savegrp with option -p from the server for the client in question:

savegrp -vvvp -c -G

please ensure that the saveset ALL is specified for the client

6 Operator

 • 

14.4K Posts

 • 

56.2K Points

May 20th, 2013 23:00

With save set All, no data under /proc and /sys will be captured.  You can verify that with mminfo.  Both filesystems are specific (proc and sysfs) and as such are not part of regular backups.

0 events found

No Events found!

Top