/srv/irclogs.ubuntu.com/2014/08/31/#ubuntu-server.txt

=== sync0new_ is now known as sync0pate
=== lool- is now known as lool
jsonperlTrying to configure sysstat to collect Power Management statistics, I've installed/configured lm-sensors and it's working. Also configured 'sadc -S POWER'02:17
jsonperlstill no love for sar -m TEMP "Requested activities not available in file /var/log/sysstat/sa30"02:17
jsonperlI feel like I'm missing a step02:18
grendal_primeanybody using kvm on 14.04?02:20
grendal_primeya cent i believe is based on ubuntu..oh wait no its based on redhat right?03:02
gdi2k_I'm trying to increase the size of a file system on a virtual machine (KVM). I have increased the image file size on the host, and in the guest, parted shows the new size of the drive correctly. However, using resize2fs gives the error that the file system is already as big as the device - it is not seeing the new device size. resizing from within parted isn't an option as it doesn't support ext4. any ideas?03:43
PryMar56gdi2k_, you can delete the partition and redefine it.. I've done it, but its scary03:46
gdi2k_PryMar56, yeh just reading about that - sounds hairy! did it go ok?03:46
PryMar56yes, it worked03:46
PryMar56gdi2k_, before you start, note the first sector03:47
gdi2k_PryMar56, yes, it's straightforward in this case (1)03:47
PryMar56oh, consider using `fdisk -lu`03:47
gdi2k_PryMar56, hmm, so I delete the partition, create new, and it wants to start my partition at sector 3. If I force sector 1 it says out of range. bummer03:50
PryMar56scroll back in your console to see what the first sector was03:50
gdi2k_definitely sector 103:50
gdi2k_http://paste.ubuntu.com/8193538/03:51
PryMar56if you have another image file create the same way, do fdisk -lu03:51
gdi2k_I didn't write changes, so it's all still good. will paste output to fdisk -lu03:52
PryMar56yeah, use sectors03:52
gdi2k_http://paste.ubuntu.com/8193548/03:52
gdi2k_ah, 63 there03:53
gdi2k_what is that? not sector?03:53
PryMar56gdi2k_, you have more detailed control with -u03:53
PryMar56sectors03:53
gdi2k_it's about the units. If I turn off Dos compatability mode and switch units with u, I get 6303:54
gdi2k_so that's my starting point...03:54
PryMar56that is the right way to do it03:54
gdi2k_63 is out of range too03:54
PryMar56gdi2k_, the starting point is the most crucial thing03:54
gdi2k_it suggest 204803:54
PryMar56its an image file?03:55
gdi2k_http://paste.ubuntu.com/8193574/03:56
gdi2k_yes, for a virtual machine03:56
PryMar56gdi2k_, something strange about that version of fdisk.. you can exit without changes and try gparted?03:58
gdi2k_found this: http://confluence.wartungsfenster.de/display/Adminspace/fdisk+Force+sector+63+boundary03:59
gdi2k_it has no GUI, so no gparted but I have tried with parted - it won't allow the resize due to lack of ext4 support03:59
gdi2k_(it wants to resize the file system as well as the parition)03:59
PryMar56gdi2k_, did you say if resize is bigger or smaller?04:01
PryMar56must be bigger04:01
gdi2k_bigger04:01
gdi2k_expand04:01
gdi2k_PryMar56, it was 50G, need it to be 200G04:02
PryMar56gdi2k_, things were simpler in the old days04:02
PryMar56forcing a starting sector of 2048 is harsh04:02
gdi2k_PryMar56, that URL gives a command to force access to sector 63, but the command does not work: "fdisk -c=dos -u=cylinders /dev/vdb"04:03
PryMar56I would setup LVM and rsync the image file over04:04
PryMar56get it working before you retire the image file04:05
gdi2k_I may end just creating a fresh larger image file and copying all the files and changing all the mount points... will play with this first though - there must be a way!04:08
gdi2k_PryMar56, wow, parted just goes ahead and writes changes. now I'm in a muddle...04:12
gdi2k_PryMar56, ok with parted, I was able to specify starting point as 63s (sector 63) - it complained about the drive not being optimally aligned, which I ignored. I ran fsck which corrected some issue, then I ran resize2fs on it and it went smoothly. Mounted it, and all data is there :) thanks for your help!04:17
PryMar56gdi2k_, good to hear04:17
PryMar56what is the ubuntu version?04:18
gdi2k_PryMar56, it's actually on a PBX system running on CentOS (which I find hard), but that's what it comes with. would much prefer it to be running Ubuntu like the rest of our servers04:19
blackyboyOpenldap problem, from client machine while i switch the user as su - babin it say user dose not exists any one there to help me ?04:41
=== TriJetSc- is now known as TriJetScud
=== bradm1 is now known as bradm
=== bekks_ is now known as bekks
=== hxm is now known as HackeMate
=== Lcawte|Away is now known as Lcawte
=== Guest54399 is now known as Adri2000
=== bekks_ is now known as bekks
zoskihi, i'm in trouble with my server. I was running ubuntu 12.04.4 LTS and decided to upgrade to the latest LTS. I launched it via SSH and byobu. During the install I needed to switch off my computer so I detached the terminal and left the release running. Later I relog on my server and byobu didn't load, I try to rattached the terminal via screen, the upgrade has failed and my system was in read only.13:48
zoskiSo I need help to continu the upgrade and save my server life. Thanks you.13:49
lordievaderGood afternoon.13:53
zoskihi13:54
lordievaderHey zoski, how are you?13:54
zoskiyes I'm lordievader13:56
zoskiI feel lost lordievader13:56
lordievaderzoski: Do you know why your server went into read-only mode?13:56
zoskiI think it's because the upgrade failed13:57
lordievaderzoski: http://askubuntu.com/questions/105793/why-has-my-file-system-turned-read-only-after-updates13:58
zoskiI'm checking this lordievader thanks for the link14:00
zoskiI used "dmesg | less" lordievader I get some messages I don't uderstand... I did a pastbin : http://pastebin.com/84FysAmT14:05
lordievaderzoski: IO errors, thats why it went into read-only mode. Do you have a backup?14:06
zoskilordievader: yes only of the important files14:07
lordievaderzoski: Ok, do you have SMART enabled on that disk?14:07
zoskilordievader: yes, I enabled some smart alert last year14:08
zoskilordievader: the server was supposed to email me if something went wrong14:08
lordievaderzoski: Read [1], run a long test and see if your disk needs to be replaced. [1] http://www.techrepublic.com/blog/linux-and-open-source/using-smartctl-to-get-smart-status-information-on-your-hard-drives/14:09
zoskiokay thank you lordievader14:10
lordievaderzoski: No problem ;)14:10
zoskilordievader: I can't launch the long test smartctl did work I get an I/O error14:13
zoskisorry didn't work sorry14:14
lordievaderzoski: Turn off the server, grab the drive. Pop it into another machine and run it from there.14:15
zoskilordievader: Okay, I'm not near the server right now I will try if someone can open me the room where the server is14:16
YamakasYwhat's best actually to install software ? /usr/share or /usr/local/share ?14:22
zoskilordievader: I'll going to check the server in about half an hour. Someone there may help me14:23
lordievaderYamakasY: Software that I manually install allways goes to /opt. But it is best to use apt for installing software.14:23
YamakasYlordievader: yeah I know, but I need to install some own packages and I see that /opt is kinda 1995 :P14:24
lordievaderYamakasY: Works for me. Keeps it away from the rest of the system, and gives a nice overview.14:24
YamakasYlordievader: true!14:25
YamakasYlordievader: I love you14:25
YamakasYdamn I keep doing that :P14:25
zoskilordievader: thank you a lot for your time, I'm leaving14:26
lordievaderYamakasY: Heh, that's the first time someone said that to me on IRC :P14:27
YamakasYlordievader: I adore you!14:27
lordievaderzoski: No problem, good luck ;)14:27
YamakasYsomeone said that ?14:27
zoskilordievader: thank you14:27
lordievaderYamakasY: Who doesn't, I'm great :D14:27
lordievaderJust kidding ;)14:27
YamakasYlordievader: hehe, indeed, you need to love yourself every day!14:46
YamakasYlordievader: I do twice ;)14:46
lordievader;)14:46
YamakasYman I hate cybersquatters14:47
xr600Does iptables check for connecting host ? - Anyone knows ?15:16
xr600Having a weird problem with one of me Ubuntu servers. It is seemingly refusing connections from certain hosts...15:23
Sierraxr600: Did you check your firewall on the server, and any firewalls that may be on the network?15:26
Lcawtexr600: You can do iptable rules that only allow connections from certain places, yes.15:53
zoskilordievader: story update. I'm back home with my server. His hard drive is dead16:11
zoskilordievader: The full story is : I get there to clean it and reboot it early today. Then I saw I could update to 14.04 so I did. During the install the hard drive didn't manage the load and decide to leave us.16:13
zoskilordievader: right now the server didn't even manage to boot. I will backup what I can with a bootable usb key. Thank you for your help16:15
RoyKzoski: check smart status for the drive. smartctl -H (or even, smartctl -x) /dev/sd(something)16:23
zoskiRoyK: I cannot managed to launch smartctl early when I was connected to the server. I know my hard drive is dead. I was just updating lordievader on my situation 'cause he helped me. Thank you16:25
RoyKzoski: I was thinking if you were to boot that thing up on a usb key, just run smartctl to verify the harddrive's dead, and that it's not just the filesystem that went nuts16:27
RoyKzoski: also, keep in mind to install smartd (part of smartmontools iirc) after reinstalling - it may warn you if the drive is dying16:28
RoyKzoski: it *may* warn you, not all disk failures are detectable before they happen16:29
zoskiThank you RoyK for the advice but I had smartd installed and it didn't warn me at all. I think cold hard drive + upgrade was to hard. I will try smartctl while backing up what I can with the usb key, it's a good idea16:33
zoskiBut it's not for today, I need to pack my stuff, I'm going back to my school city tomorow morning.16:34
zoskiSorry for my english, by the way ;-)16:35
RoyKzoski: no worries <(16:41
RoyK:)16:41
zoski^_^16:42
xr600Sierra: There is no firewall, but when I'm on the same subnet as the server, I can reach it... When I go on the outside of the gateway, I can't...17:50
=== lazyPower_ is now known as lazyPower
xr600(... ANd sorry for the delay, had to shop & cook here...)17:50
xr600Lcawte: Any special switch I need to list it ?17:51
=== darkness is now known as Guest54718
=== darmok__ is now known as darmok
=== cmagina_ is now known as cmagina
=== Lcawte is now known as Lcawte|Away
TheFearowHi all - I'm trying to troubleshoot an annoying issue I've got with a relatively new server I have running 14.04 in AWS EC2. It's working fine except after some period from boot (30 mins - 2 hours) I can't get any incoming traffic to it - no SSH or web. Oddly, occasionally it's allowed some traffic (I could SSH from a neighbouring host) but not public, but then eventually all has failed. I presume some sort of firewall but I don't know Ubuntu21:44
TheFearow enough to troubleshoot further. I'm sort of lost as to where to troubleshoot so any pointers are much appreciated21:44
=== Lcawte|Away is now known as Lcawte
=== NomadJim_ is now known as NomadJim
pmatulisTheFearow: possible DoS or intrusion.  is the server reasonably secure (who can log in and how)?22:51
=== NomadJim_ is now known as NomadJim
=== mixomathoze_ is now known as mixomathoze

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