Gentoo Archives: gentoo-user

From: Daniel Troeder <daniel@×××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Fragmentation of my drives. Curious mostly
Date: Tue, 16 Dec 2008 08:49:28
Message-Id: 1229417289.23881.11.camel@maya.local
In Reply to: Re: [gentoo-user] Re: Fragmentation of my drives. Curious mostly by Dale
1 Am Dienstag, den 16.12.2008, 01:59 -0600 schrieb Dale:
2 > Dale wrote:
3 > > Dale wrote:
4 > >
5 > >> This is interesting. I am starting a new install on my backup drive.
6 > >> I'm part way through the install, fetching all the KDE stuff right now.
7 > >> This is what I got from the little frag script:
8 > >>
9 > >> root@smoker / # /root/fragck.pl /backup/
10 > >> 0.953336175120985% non contiguous files, 1.02414182192021 average fragments.
11 > >> root@smoker / #
12 > >>
13 > >> Less than 1% is my starting point I guess. This currently has ext3 on
14 > >> it. I did start out with a freshly formatted file system. Also, this
15 > >> is all on one big partition at the moment.
16 > >>
17 > >> I'll post later what it says after compiling a few packages. I figure
18 > >> KDE should stir up something. LOL
19 > >>
20 > >> Dale
21 > >>
22 > >> :-) :-)
23 > >>
24 > >>
25 > >>
26 > >
27 > > This is after a almost complete install. About to start OOo.
28 > >
29 > > root@smoker / # /root/fragck.pl /backup/
30 > > 2.00854614717917% non contiguous files, 1.04611358582092 average fragments.
31 > > root@smoker / #
32 > >
33 > > root@smoker / # du -shc /backup/
34 > > 5.6G /backup/
35 > > 5.6G total
36 > > root@smoker / #
37 > >
38 > > I would assume that would be something like it was when I started my
39 > > current install years ago. Which is at 10% or so now.
40 > >
41 > > Thoughts anyone?
42 > >
43 > > Dale
44 > >
45 > > :-) :-)
46 > >
47 > >
48 >
49 > OK. I completed my install and got everything working. This is what I
50 > got after that:
51 >
52 > 2.24954051453251% non contiguous files, 1.06439409487064 average fragments.
53 >
54 > I then ran shake just to see if it changed for the better or worse. I
55 > got this surprising answer:
56 >
57 > 25.2668178520421% non contiguous files, 1.41060290111655 average fragments.
58 >
59 > You may want to look twice at the decimal point. It appears that shake
60 > makes things much worse or the fragck script has some serious issues
61 > one. I have no clue which.
62 >
63 > I'm not to worried about this since I will be moving this over to the
64 > other drive anyway. I would like to know what command I should use to
65 > tar up everything, transfer it over and untar it all on one line if
66 > possible? I plan to do this while booted from a Gentoo CD. I just want
67 > to try this so that it will be compressed then transfered and untared
68 > once on the way. Does this make since? I have used cp -av in the past.
69 >
70 > Thanks.
71 >
72 > Dale
73 >
74 > :-) :-)
75 With "transfer" do you mean over a network, or to another local drive?
76
77 You can of course use something like
78 # tar czpf - | ssh remote - tar xzpf -C /dir
79 (above probably not syntactically correct), but there are faster and
80 easier options:
81
82 "cp -a" costs little resources locally and maintains POSIX permissions,
83 while "rsync -aASH --numeric-ids" is perfect for remote copy.
84
85 You can use rsync also locally. It will (with the "-A" switch) also
86 transfer POSIX-ACLs, if that is of any concern. It is also useful, if a
87 transfer breaks at some moment, because it will kind of continue it :)
88
89 Omiting the "-v" switch can significantly speed up things - depends on
90 your terminal. In every case it helps to only see the errors, and not
91 let them scroll away by everything that went well.
92
93 Bye,
94 Daniel
95
96 --
97 PGP key: http://pgpkeys.pca.dfn.de/pks/lookup?search=0xBB9D4887&op=get
98 # gpg --recv-keys --keyserver hkp://subkeys.pgp.net 0xBB9D4887

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Re: Fragmentation of my drives. Curious mostly Dale <rdalek1967@×××××.com>