#debian - Tue 20 Feb 2007 between 02:36 and 02:48

NY Lost Funds



Wyzardfridim: and I don't have anything important enough on here to be worth a contempt-of-court charge :-)
dondelelcaroDewi: the most you can do is find out if the files are the same size, and if they've got the same modification dates; stat is the way to find that out, not ls.
Dewidondelelcaro: also, md5sum will only sum files, and single files at that
Wyzardfridim: so it's mostly for niftiness factor and as a precaution against theft
Dewidondelelcaro: so in fact directory information is completely lost with md5sum
dondelelcaro: unless you do all sorts of stuff to keep it
dondelelcaroDewi: it has no problem dealing with entire trees of files, actually.
ithiumWyzard: the xm dmesg doesn't appear to change after trying to start that guest :S
Dewidondelelcaro: md5sum will never show me an empty directory
Wyzardithium: Do non-HVM domains work OK?
dondelelcaroDewi: that part is true; but md5sum has nothing to do with figuring out if directories are different, only files.
Dewidondelelcaro: stat is okay, but it bothers me that I can't get a sortable UTC time out of it
dondelelcarofiguring out if directories have changed is rather simple, actually; find -type d; will do it pretty easily.
Dewi: that's what %Y et al is.
stat has no problem reporting things in epoch
Dewidondelelcaro: I think that's local time
dondelelcaroDewi: nope.
ithiumWyzard: yes
dondelelcaroDewi: man stat;
Wyzardithium: OK, so it seems to be something HVM-specific... unfortunately I don't have experience with that
ithiumWyzard: but I had an HVM domain installing from CD ISO using VNC yesterday :S
Dewidondelelcaro: I meant to say sortable, human-readable, UTC
netdaemonhrm...
dondelelcaroDewi: you use epoch, sort it, and then shoot it through date or strftime if you want it to be human readable.
ithiumWyzard: so I'm thinking maybe there has been a package update since... is there any way I can check on that?
Dewidondelelcaro: happen to know an easy way to get a TAB into that format string without putting actual tabs into my terminal or script file?
Wyzardithium: Well, did you run apt and allow any Xen stuff to be upgraded between yesterday and today?
dondelelcaroecho -e '\t'
Dewidondelelcaro: yeah, but then how do I get it into the format string?
dondelelcaro: I don't want to call stat N times
dondelelcarojeez, man.
ithiumWyzard: yes, I have been testing my setup for the past few days and I'm constantly apting stuff. i don't remember seeing a xen or vnc update, but I'd like to check somehow
Dewidondelelcaro: well, if I'm going to do what you say and pass an epoch through a formatter, I'm going to need a better field separator than spaces
actiondondelelcaro spells it out: stat -c "%Y$(echo -ne '\t')%n"
dondelelcarospells it out: stat -c "%Y$(echo -ne '\t')%n"
Wyzardithium: aptitude keeps logs in /var/log/aptitude, though I don't know about apt-get
dondelelcaroanyway, best of luck.
ithiumWyzard: unfortunately I don't have any local data because I reinstalledthe host, thinking I'd cocked something up
Wyzardithium: You could maybe hunt manually through the archives of snapshot.debian.net, though that'd be a bit of a pain
Dewidondelelcaro: I know it sounds like I'm trolling... I honestly have lots of little scripts to do these things and they are all too hacky and inflexible and require perl... but I guess I'll make them better with time
fridimWyzard, for the partitionning of the two raid1 disks how do you do to have the correct size for both /boot and lvm if the disks are not identical? Do you note the cylinders or something ?

Page: 1 8 15 22 29 36 43 50 57 64 71 78 85 92 99 106 113 120 127 134 141 148 155 162 169 

IrcArchive

NY Lost Funds