Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Comparing guest OS filesystems
Date: Wed, 07 Dec 2011 23:27:34
Message-Id: 20111208010606.23f6f8a1@rohan.example.com
In Reply to: [gentoo-user] Comparing guest OS filesystems by Adam Carter
1 On Thu, 8 Dec 2011 09:50:55 +1100
2 Adam Carter <adamcarter3@×××××.com> wrote:
3
4 > Hi All. I'm looking for some suggestions. Setup is Gentoo host running
5 > VMWare workstation 8 with two guests which are loosely based on RHEL.
6 > I'm checking to see if patch installation order in the guests has any
7 > effect. Not all the patches are rpm based, so I want to check to see
8 > if there are any differences in the file content between the guests.
9 >
10 > This (find / -type f -exec md5sum {} + > /sumoutput.txt) hangs after
11 > about 11000 files. I could troubleshoot it, but is there something
12 > more elegant? Something to mount the guest filesystem in gentoo?
13 >
14
15 The command you are running is over-reaching. You didn't say which file
16 the command stops at, but I'll bet it is something in /proc or /sys,
17 places where you really shouldn't be md5summing anyway.
18
19 You are doing an update, the places you should be checking are more
20 likely /etc, /bin, /sbin, /lib, /opt, /usr and the like.
21
22 Rather use find with the -xdev option, and repeat for each on-disk
23 file-system.
24
25 If the host has much more resources than the guest, enough more to make
26 running md5sum on the host a viable proposition, then the easiest would
27 be for the guest to export it's filesystem over nfs to the host.
28
29 It is possible to loop-mount the guest vmdk file to the host, but a
30 quick google shows that this can get quite involved. NFS can be set
31 up and running in a few minutes.
32
33 --
34 Alan McKinnnon
35 alan.mckinnon@×××××.com