/srv/irclogs.ubuntu.com/2014/11/01/#ubuntu-server.txt

=== Lcawte is now known as Lcawte|Away
=== zz_DenBeiren is now known as DenBeiren
=== peter is now known as Guest65138
=== markthomas is now known as markthomas|away
=== Guest58311 is now known as Locke2002
=== Lcawte|Away is now known as Lcawte
fivetwentysixThe russians are abusing my postfix server11:07
fivetwentysixYES! I win!11:11
fivetwentysixpostqueue -p11:11
fivetwentysixMail queue is empty11:11
fivetwentysixDown from 23430424 emails11:12
fivetwentysixlol11:12
SachiruLOL11:24
SachiruGJ11:24
=== Lcawte is now known as Lcawte|Away
=== kickinz1|afk is now known as kickinz1
=== kickinz1 is now known as kickinz1|afk
=== kickinz1|afk is now known as kickinz1
=== kickinz1 is now known as kickinz1|afk
=== chmurifree is now known as chmuri
Valduarehmm16:28
Valduareif I make an image of a drive will it do just the used space or the entire drive partition size16:29
qman__imaging takes an exact bit copy of everything, including free space16:29
qman__imaging is rarely if ever required and usually not the best choice16:29
Valduarek ty16:30
=== markthomas|away is now known as markthomas
=== markthomas is now known as markthomas|away
Valduareqman__: I got a windows laptop here thats got a failing hard drive16:58
Valduarestill readable data16:59
Valduaretakes half hour to boot to windows so I was thinking of taking a copy of the hd before going further16:59
qman__Valduare: you should use gnu ddrescue17:00
cfhowlettValduare, stop booting.  it's failing with each read/write.  get thee to a backup solution immediately17:00
qman__get a new hard drive to copy it to, or take an image if you have to, but use gnu ddrescue to make a recovery image17:00
Valduareim booted into ubuntu live cd atm17:00
Valduarehavnt heard of gnu ddrescue17:00
Valduarelooking it up now17:00
Valduareis it a direct 1to1 solution17:01
Valduareie I need to have the new hd available17:01
qman__the short of it: ddrescue -f -n /dev/sda /dev/sdb /tmp/rescue.log17:01
qman__you should, that's the best way to do it17:01
qman__but you don't have to, you can do to a file if required17:01
qman__it won't be compressed though17:02
qman__and it will be an exact 1:1 copy of everything it was capable of recoverin17:02
Valduarejust the used space right?17:03
qman__all the space, total size of the disk17:03
Valduareprob with these huge 1 terabyte hds lol17:03
Valduaredamn17:03
Valduareso what if im wanting to go from a 1 terabyte platter drive to a 256 ssd17:04
qman__can't do it17:04
Valduarethere’s only 71 gigs used space on the 1 terabyte drive17:04
cfhowlettqman__, as you're clearly better informed than I ... I buy a new computer.  I'm going to do some experimental things.  I want to image the drive in case I need to restore it to virginal status.  How to proceed?  does the backup include the empty space on the drive?17:04
qman__the recovery drive must be as large or larger than the failing drive17:04
qman__once you have recoered the data, you can then move it to a smaller drive17:04
qman__the recovery tools are filesystem agnostic, because they have to be17:05
qman__so they cannot recognize what matters and what doesn't17:05
qman__you should turn off the system with the failing drive and wait until you can get a same size or larger drive to recover to17:06
=== Lcawte|Away is now known as Lcawte
qman__cfhowlett: imaging is not a good backup solution, file backups are more space efficient, faster to take, faster to recover, and avoid fragmentation17:07
Valduareits fine to have it booted up into ubuntu live cd17:07
Valduarehd isnt accessed17:07
qman__no, it isn't17:07
qman__as long as that drive is spinning, it could die completely17:08
qman__shut down, unplug the drive17:08
Valduarewe’re not completely sure “what kind of dieing” the hd is17:08
cfhowlettValduare, yep.  this ^^^17:08
qman__it doesn't matter what kind17:08
qman__cut power until you can recover17:08
qman__that's the safest bet, always17:08
cfhowlettValduare, assume the worst kind, assume the worst time and proceed from there.17:08
=== bilde2910 is now known as bilde2910|away
qman__cfhowlett: imaging is best for forensics, and as you see here, recovering from a failing hard drive17:11
cfhowlettqman__, fair enough.  I'll research more.  my goal was to restore "reset" to pre-me mucking about status.17:12
qman__cfhowlett: an image will be a 100% bit-for-bit copy, including fragemntation, noise in your free space, your empty free space, and all17:12
Valduareread error rate 13617:12
qman__Valduare: stop messing with it, shut down, and unplug the disk until such time as you have another 1TB or larger disk to recover to; every second you spend with it spinning increases chances of total failure17:13
Valduareits doing a compressed backup to an external hd atm17:13
qman__cfhowlett: if it has to be _exactly_ the same, an image is the way to go, but be aware of the downsides; most of the time, things don't actually need to be exactly the same17:17
cfhowlettqman__, thank you much.17:17
Valduarelooks like 1 terabyte platter drive 85 at best buy17:31
Valduareguess i’ll go that route instead of the ssd for their laptop heh17:31
RoyKgnu ddrescue rocks17:44
RoyKI once got a drive from a user that couldn't be mounted on any OS i tried it on17:44
RoyKit took gnu ddrescue a little less than a week to recover 99,8% of the data17:45
cfhowlettRoyK, 24 x 7 for a week?  hardcore!17:47
RoyK500GB17:47
RoyK24x5.5 or thereabouts17:48
RoyK(24x7 for a week doesn't make sense - a week for a week :P)17:48
=== Xbert is now known as Guest1097
qman__yeah, I had one that kept turning off17:52
qman__but if I power cycled it, it would spin back up17:52
qman__repeated that for about a week and a half, got well over 99% of the data, enough to recover17:52
qman__less than a megabyte was lost17:53
=== DenBeiren is now known as zz_DenBeiren
=== markthomas|away is now known as markthomas
=== bilde2910|away is now known as bilde2910
=== bilde2910 is now known as bilde2910|away
blaaaI have just restarted a server remotely after a firmware update, but the network is not coming up. I have no terminal unfortunately.... the only thing I can see is the network interfaces are actually coming up at post, but they are shut down at some point while ubuntu is booting21:15
=== esde is now known as Guest18963
bekksyou need some terminal or console access to investigate that issue.21:16
=== Guest18963 is now known as esde
blaaabekks: that's probably true, but some hypothesis on what could have caused this would be nice... before I'll be on my way.21:18
blaaabekks: I think maybe the issue is caused by renamed interfaces after the fw update21:18
blaaai think NIC interface names might not be persistent if some enumeration has changed, is that right?21:19
qman__blaaa: the interface names are based on MAC address21:29
qman__blaaa: a boot failure is much more likely - by default, if it fails to boot once, grub will wait indefinitely the second time around21:30
qman__blaaa: an fsck or failure to mount something could also be at issue21:30
blaaaqman__: thanks, i'll have to go and see I suppose. After the firmware update the computer booted fine (but I had not tested the network, not even attached it....) and it did a clean acpi shutdown after a complete boot21:39
RoyKqman__: do you know how to configure grub to stop that nonesense?21:43
RoyKnonsense, even21:44
blaaaRoyK: there is some option in the config21:44
blaaaRoyK: don;t remember what it is right now though21:44
blaaahad looked it up when setting up the server...21:45
qman__RoyK: I have, I looked it up before21:46
qman__It was causing me issues with some ebayed supermicro servers that rarely boot the first time21:46
qman__http://askubuntu.com/questions/178091/how-to-disable-grubs-menu-from-showing-up-after-failed-boot21:46
blaaawas it GRUB_RECORDFAIL_TIMEOUT ?21:46
qman__yes21:47
blaaayes, apparently21:47
RoyKqman__: thanks21:47
blaaalucky the server is not far away...22:16
blaaaapparently the interface name had changed22:17
blaaafrom p1p2 to eth022:17
blaaap2p1...22:17
blaaabut I have no idea why, except for a fw update and reboot-cycle nothing had changed22:18
blaaaand I believed the point of the new naming scheme was to have persistent names...22:18
=== bilde2910|away is now known as bilde2910
furkani've got a question about grub: i'm running 14.04 in a VM, and i modify /boot/grub/menu.lst to add a virtual serial port so that i can console in with virsh, and whenever there's a new kernel installed it likes to update menu.lst and overwrite my 2 lines - any way i can avoid this?22:32
furkanthese are simply the 2 lines that i put in:22:32
JanCfurkan: sre22:32
furkanserial --unit=0 --speed=115200 --word=8 --parity=no --stop=122:32
furkanterminal --timeout=10 serial console22:33
JanCsure22:33
furkanJanC: i'm all ears :)22:33
furkani noticed the /etc/grub.d/40_custom file but wasn't sure if that was the right place to put it since it said custom menu entries22:34
JanCit's explained in the manual AFAIK, but you need to put it in a script in /etc/grub.d/22:34
JanCthose scripts get run as part of update-grub22:35
furkanso when i run update-grub is it supposed to get copied into menu.lst?22:36
furkansince i just tried putting it there and it doesn't seem to do that22:36
JanCthe output of those scripts gets copied to menu.lst22:36
JanCso yes, you need to run update-grub22:37
furkanman i'm confused, on my desktop 14.04 i've got grub2 but i guess the server version is still using the old one22:38
JanCoh22:38
JanCyou sure?22:38
JanCAmazon?22:38
furkanno well this used to be a 12.04 VM22:38
furkanand then i upgraded to 14.0422:38
furkanis grub2 default in ubuntu server 14.04?22:38
JanCgrub2 was the default in 10.04 and before22:39
furkanhmm maybe because i used vmbuilder22:39
=== bilde2910 is now known as bilde2910|away
JanCbut IIRC there is/was some issue with Amazon cloud images not working with that (never needed that)22:40
furkanya this is on our own server, not amazon22:40
furkanwe've got a bare metal running 14.04 + a few 14.04 VMs running some services22:41
JanCit's still possible that it is/was used in cloud images though?22:41
furkani built the image with vmbuilder for 12.04... so whatever that does by default i guess22:42
furkanbut yeah i guess this is sort of odd since /etc/grub.d seems to be for grub2 only22:43
JanCthat's right22:43
furkani wonder if anything will break if i upgrade22:44
furkanso for grub2 it looks like the right place to put the serial console stuff is in /etc/default/grub22:47
furkanunless that's the same thing as just putting it in the custom file22:47
JanCnot the same thing22:49
JanCthe variables you set in /etc/default/grub are used by the scripts in /etc/grub.d/22:49
furkanah i see, interesting22:50
furkanthanks for the info :)22:50
JanCit's interesting to read those scripts in /etc/grub.d/ some time  :)22:53
=== markthomas is now known as markthomas|away
=== bilde2910|away is now known as bilde2910
=== bilde2910 is now known as bilde2910|away
=== Lcawte is now known as Lcawte|Away

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!