[02:17] <jsonperl> Trying 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] <jsonperl> still no love for sar -m TEMP "Requested activities not available in file /var/log/sysstat/sa30"
[02:18] <jsonperl> I feel like I'm missing a step
[02:20] <grendal_prime> anybody using kvm on 14.04?
[03:02] <grendal_prime> ya cent i believe is based on ubuntu..oh wait no its based on redhat right?
[03:43] <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:46] <PryMar56> gdi2k_, you can delete the partition and redefine it.. I've done it, but its scary
[03:46] <gdi2k_> PryMar56, yeh just reading about that - sounds hairy! did it go ok?
[03:46] <PryMar56> yes, it worked
[03:47] <PryMar56> gdi2k_, before you start, note the first sector
[03:47] <gdi2k_> PryMar56, yes, it's straightforward in this case (1)
[03:47] <PryMar56> oh, consider using `fdisk -lu`
[03:50] <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. bummer
[03:50] <PryMar56> scroll back in your console to see what the first sector was
[03:50] <gdi2k_> definitely sector 1
[03:51] <gdi2k_> http://paste.ubuntu.com/8193538/
[03:51] <PryMar56> if you have another image file create the same way, do fdisk -lu
[03:52] <gdi2k_> I didn't write changes, so it's all still good. will paste output to fdisk -lu
[03:52] <PryMar56> yeah, use sectors
[03:52] <gdi2k_> http://paste.ubuntu.com/8193548/
[03:53] <gdi2k_> ah, 63 there
[03:53] <gdi2k_> what is that? not sector?
[03:53] <PryMar56> gdi2k_, you have more detailed control with -u
[03:53] <PryMar56> sectors
[03:54] <gdi2k_> it's about the units. If I turn off Dos compatability mode and switch units with u, I get 63
[03:54] <gdi2k_> so that's my starting point...
[03:54] <PryMar56> that is the right way to do it
[03:54] <gdi2k_> 63 is out of range too
[03:54] <PryMar56> gdi2k_, the starting point is the most crucial thing
[03:54] <gdi2k_> it suggest 2048
[03:55] <PryMar56> its an image file?
[03:56] <gdi2k_> http://paste.ubuntu.com/8193574/
[03:56] <gdi2k_> yes, for a virtual machine
[03:58] <PryMar56> gdi2k_, something strange about that version of fdisk.. you can exit without changes and try gparted?
[03:59] <gdi2k_> found this: http://confluence.wartungsfenster.de/display/Adminspace/fdisk+Force+sector+63+boundary
[03: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 support
[03:59] <gdi2k_> (it wants to resize the file system as well as the parition)
[04:01] <PryMar56> gdi2k_, did you say if resize is bigger or smaller?
[04:01] <PryMar56> must be bigger
[04:01] <gdi2k_> bigger
[04:01] <gdi2k_> expand
[04:02] <gdi2k_> PryMar56, it was 50G, need it to be 200G
[04:02] <PryMar56> gdi2k_, things were simpler in the old days
[04:02] <PryMar56> forcing a starting sector of 2048 is harsh
[04:03] <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:04] <PryMar56> I would setup LVM and rsync the image file over
[04:05] <PryMar56> get it working before you retire the image file
[04:08] <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:12] <gdi2k_> PryMar56, wow, parted just goes ahead and writes changes. now I'm in a muddle...
[04:17] <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] <PryMar56> gdi2k_, good to hear
[04:18] <PryMar56> what is the ubuntu version?
[04:19] <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 servers
[04:41] <blackyboy> Openldap problem, from client machine while i switch the user as su - babin it say user dose not exists any one there to help me ?
[13:48] <zoski> hi, 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:49] <zoski> So I need help to continu the upgrade and save my server life. Thanks you.
[13:53] <lordievader> Good afternoon.
[13:54] <zoski> hi
[13:54] <lordievader> Hey zoski, how are you?
[13:56] <zoski> yes I'm lordievader
[13:56] <zoski> I feel lost lordievader
[13:56] <lordievader> zoski: Do you know why your server went into read-only mode?
[13:57] <zoski> I think it's because the upgrade failed
[13:58] <lordievader> zoski: http://askubuntu.com/questions/105793/why-has-my-file-system-turned-read-only-after-updates
[14:00] <zoski> I'm checking this lordievader thanks for the link
[14:05] <zoski> I used "dmesg | less" lordievader I get some messages I don't uderstand... I did a pastbin : http://pastebin.com/84FysAmT
[14:06] <lordievader> zoski: IO errors, thats why it went into read-only mode. Do you have a backup?
[14:07] <zoski> lordievader: yes only of the important files
[14:07] <lordievader> zoski: Ok, do you have SMART enabled on that disk?
[14:08] <zoski> lordievader: yes, I enabled some smart alert last year
[14:08] <zoski> lordievader: the server was supposed to email me if something went wrong
[14:09] <lordievader> zoski: 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:10] <zoski> okay thank you lordievader
[14:10] <lordievader> zoski: No problem ;)
[14:13] <zoski> lordievader: I can't launch the long test smartctl did work I get an I/O error
[14:14] <zoski> sorry didn't work sorry
[14:15] <lordievader> zoski: Turn off the server, grab the drive. Pop it into another machine and run it from there.
[14:16] <zoski> lordievader: Okay, I'm not near the server right now I will try if someone can open me the room where the server is
[14:22] <YamakasY> what's best actually to install software ? /usr/share or /usr/local/share ?
[14:23] <zoski> lordievader: I'll going to check the server in about half an hour. Someone there may help me
[14:23] <lordievader> YamakasY: Software that I manually install allways goes to /opt. But it is best to use apt for installing software.
[14:24] <YamakasY> lordievader: yeah I know, but I need to install some own packages and I see that /opt is kinda 1995 :P
[14:24] <lordievader> YamakasY: Works for me. Keeps it away from the rest of the system, and gives a nice overview.
[14:25] <YamakasY> lordievader: true!
[14:25] <YamakasY> lordievader: I love you
[14:25] <YamakasY> damn I keep doing that :P
[14:26] <zoski> lordievader: thank you a lot for your time, I'm leaving
[14:27] <lordievader> YamakasY: Heh, that's the first time someone said that to me on IRC :P
[14:27] <YamakasY> lordievader: I adore you!
[14:27] <lordievader> zoski: No problem, good luck ;)
[14:27] <YamakasY> someone said that ?
[14:27] <zoski> lordievader: thank you
[14:27] <lordievader> YamakasY: Who doesn't, I'm great :D
[14:27] <lordievader> Just kidding ;)
[14:46] <YamakasY> lordievader: hehe, indeed, you need to love yourself every day!
[14:46] <YamakasY> lordievader: I do twice ;)
[14:46] <lordievader> ;)
[14:47] <YamakasY> man I hate cybersquatters
[15:16] <xr600> Does iptables check for connecting host ? - Anyone knows ?
[15:23] <xr600> Having a weird problem with one of me Ubuntu servers. It is seemingly refusing connections from certain hosts...
[15:26] <Sierra> xr600: Did you check your firewall on the server, and any firewalls that may be on the network?
[15:53] <Lcawte> xr600: You can do iptable rules that only allow connections from certain places, yes.
[16:11] <zoski> lordievader: story update. I'm back home with my server. His hard drive is dead
[16:13] <zoski> lordievader: 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:15] <zoski> lordievader: 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 help
[16:23] <RoyK> zoski: check smart status for the drive. smartctl -H (or even, smartctl -x) /dev/sd(something)
[16:25] <zoski> RoyK: 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 you
[16:27] <RoyK> zoski: 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 nuts
[16:28] <RoyK> zoski: also, keep in mind to install smartd (part of smartmontools iirc) after reinstalling - it may warn you if the drive is dying
[16:29] <RoyK> zoski: it *may* warn you, not all disk failures are detectable before they happen
[16:33] <zoski> Thank 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 idea
[16:34] <zoski> But it's not for today, I need to pack my stuff, I'm going back to my school city tomorow morning.
[16:35] <zoski> Sorry for my english, by the way ;-)
[16:41] <RoyK> zoski: no worries <(
[16:41] <RoyK> :)
[16:42] <zoski> ^_^
[17:50] <xr600> Sierra: 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] <xr600> (... ANd sorry for the delay, had to shop & cook here...)
[17:51] <xr600> Lcawte: Any special switch I need to list it ?
[21:44] <TheFearow> Hi 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 Ubuntu
[21:44] <TheFearow>  enough to troubleshoot further. I'm sort of lost as to where to troubleshoot so any pointers are much appreciated
[22:51] <pmatulis> TheFearow: possible DoS or intrusion.  is the server reasonably secure (who can log in and how)?