[00:31] what is the default iptables's config file ? [00:32] ufw is disabled [00:32] but iptables has some stuff, so [00:32] thre has to be a file somewhere [00:32] right ? === jgrimm is now known as jgrimm-afk [01:04] How would I initialize an already created LVM snapshot [01:23] Bray90820_: What do you mean by initialize? [01:25] There is what I believe is one that is already created but it's not in the logical volume manager [01:25] ChibaPet: [01:26] If lvdisplay doesn't show it, it's probably not there. [01:27] Note that (at least as far as I can remember) if you overfill an LVM snapshot, it goes away spontaneously. [01:30] ChibaPet: I think I figured out my issue with your help Thanks [01:30] It wasn't there so I am gonna retreat it f I can ever figure out what size it actually was [01:31] Remember that if you create a snapshot, it will be capped by free extents in the volume group, and it will go away once it overfills. LVM snapshots aren't like ZFS snapshots. Not CoW. [01:31] ...unless something has seriously changed recently. [02:06] ChibaPet: So does that mean to be able to use and or copy files to it while it's backing up would i need to create a logical volume snapshot [02:07] Bray90820_: I'm not clear on how you'd want to usefully use the snapshot. I've only ever used LVM snapshots as backup sources. [02:07] That said... [02:08] You want to allocate sufficient extents to carry as much data as you expect to receive during the lifetime of the snapshot. [02:09] Like if i were to copy a 1GB video file to it while it was facing up I would need to have 1gb of extents [02:09] I learned about their disappearing when I had something rsyncing the the device I'd snapshotted during a back-up. I'd overfill the snapshot space and the device I was backup up would show an uncorrectable read error. [02:09] Basically, yeah. [02:09] It's always possible I'm missing some detail of how you can use LVM snapshots. [02:09] Ok that's clear but... [02:09] I'm a big fan of ZFS lately just because of the pain it avoids. [02:10] Right now unless I am already connected to my server it is unavailable while I am backing it up [02:10] Seems safe then. [02:10] Usually when I'm allocating pools I explicitly leave space for snapshots. [02:12] ChibaPet: do you have some time to help me create a backup script because I am kinda a noob when it comes to this stuff someone else created one for me back in early December but I don't seem to have a text version of it to change things [02:12] He compiled it in some weird way and I think it's easier to just create a new script [02:13] Bray90820_: Um. Half a sec. [02:16] ChibaPet: Just tell me when your back [02:18] Bray90820_: Sorry, been here, but a co-worked walked up and distracted me. [02:18] Let me grab something. [02:18] Ok [02:18] Just tell me when your back and ready to talk :P [02:19] Just finding the right version. [02:19] The thing I just found is for tape drives, but I have something that does LVM. [02:21] What did you find [02:22] This script assumes you want to dump stuff over ssh, but that's not an awful assumption nowadays. [02:22] Here's an example config: https://bpaste.net/show/dc3e07859822 [02:22] that would want to live as /etc/ndump.conf [02:23] Here's a script which uses that config: https://bpaste.net/show/7eca9e0e4e83 [02:23] Did you find a copy of the script I have on my computer? [02:23] What? [02:23] No. [02:23] I wrote that. [02:24] Aaahhh alright [02:24] Like I said I am a noob so I am not sure what any of that really means [02:24] So, in the config, set up an ssh private key somewhere, and point to it with a key directive. Set up the account with the public half somewhere. Test the ssh connection. [02:24] Um. [02:25] Sorry [02:25] I don't know. There's a tool that'll do LVM-aware back-ups for you, but you have to put in the time to read what it does and either use it or set up something similar. [02:25] It's ok if you don't want to but would you mind creating a script for me :P [02:25] so, for the lvm entries, vgdisplay will show you free extents in your volume group [02:26] Bray90820_: Use... that script... that I just gave you. [02:26] That's why I gave it to you, so you could use it. Set up a config file, and away you go into happy back-up land. :) [02:26] ChibaPet: I meant one specific to my system [02:27] I'm going to go home now, as it's been a long day, but the very simple config makes it utterly tuned and tailored for your very specific computer. [02:27] chi [02:27] ChibaPet: I will have a look [02:27] Alternately, you can look at things like CrashPlan if you want to set something up without effort. [02:27] I do not wanna do online bqackup [02:28] For my ndump tool, you need Perl (which you should already have) and the dump/restore commands, which are easily installed. [02:28] I'll have a look and if I have any questions can I contact you later? [02:29] If you don't want to use ssh, chop out the line with /usr/bin/ssh -i in it and change the "logname" lines. [02:29] I do wanna use SSH [02:30] kk [02:30] Yeah, I'll be back online in a couple hours, and I'll read scrollback. [02:30] Ok [02:30] Thanks [02:30] I am kinda lost already with the first line [02:30] I totally don't understand any of this [02:30] Bray90820_: Well. You have two options. [02:31] If you're interested in learning stuff, something like what I pasted in is a good start. If you just want stuff backed up, I'd look at http://www.tarsnap.com/ or http://www.code42.com/crashplan/ [02:31] CrashPlan lets you host your back-ups on a local system if you don't want to go offsite. [02:32] There are likely other tools that'd work too. Amanda used to be nice. [02:32] ChibaPet: I would prefer to learn stuff [02:32] I just don't really know where to state [02:32] http://www.amanda.org/ [02:32] Well. Note that if you set up any of these tools (Amanda is free) you'll learn stuff in the process. [02:33] It's entirely up to you which level of effort you want to target. :) [02:33] Like i said I'm happy with use your script but i don't know where to state with it [02:33] Um, to boil it down, my script scaffolding just wraps the process of making an LVM snapshot, using it as a target for the age-old, still-perfect dump tool, and then cleaning it up. [02:34] Here, start with this: install dump and restore, and read the man pages. That's the critical bit. [02:34] I don't even know how to edit it for my own use [02:34] I don't know perl [02:34] Hrm. So, the only thing you'd need to edit is /etc/ndump.conf, and there are editor tutorials out there. [02:35] You don't need to edit the Perl to use it, you'd edit the config. There's nothing system-specific in the code itself. [02:35] The config isn't Perl, it's just a text file with key/value pairs. [02:35] Should I edit it on the computer I want to backup or the computer I am backing up to? [02:36] For this, the config needs to be /etc/ndump.conf on the computer that you'll back up. [02:37] Alright [02:37] Thanks [02:37] The script will be on that computer too. Run it as root. The only thing that needs to be on the target (backup-holding) computer is an account to connect to and sufficient space to store the dumps. [02:37] If you save the script as "ndump" somewhere in your path, you'd run it by saying "ndump 0" to get a level 0 dump, "ndump 1" to get a level 1 dump, and so forth. [02:38] And the dumps are? [02:38] man dump [02:38] Are the sums the data that is being backed up? [02:38] sudo apt-get installd ump [02:38] sorry, sudo apt-get install dump [02:38] sums? [02:38] I meant dumps [02:39] The dumps are the data you're backing up. A level 0 dump is everything. A level 1 dump is incremental and has everything since the last level 0 dump. Level 2 has everything since the last level 1 dump. Etc. [02:40] This book used to and might still have good documentation of how to plan dump rotations, etc: http://admin.com/ [02:41] Thanks [02:41] You should go home [02:43] Hi, sorry, yeah, work stuff popped up again. [02:44] Alright [02:45] Um. So, read the dump man page, and ... I'm not finding good docs for dump rotations right now, but I can look later. [02:45] You could achieve the same thing I'm doing in that Perl script with shell script, FWIW. [02:45] Anyway, I'll be back and I'll answer any questions you leave in the interim. [02:48] Yea [02:48] I need lots and lots and lots of help [02:49] Like I said I don't even know where to begin [02:52] Think of me as a grandmother who doesn't speak computer at all [02:52] Events That is not me [02:52] *Eventho [04:22] Bray90820_: I'll be a bit distracted: https://www.youtube.com/watch?v=qUAmTYHEyM8 [04:22] That's happening right now. Live stream. [04:22] ChibaPet: I am actually working on my own script at the moment that doesn't have much to do with your script [04:22] Good. Best way to learn. :) [04:23] Anyway, I'll check in occasionally. === Jalen_ is now known as Jalen === Bray90820_ is now known as bray90820 [08:55] Hi [08:55] Maybe here is not a right place to ask this question, but I think youre network experts. Hope you can help me [08:55] I'm runnig debian 7 on BBB [08:56] The problem is that when I connect the lan connector to the board, the BBB detects the internet after about 1 minute [08:57] I searched and realized it's about a file, named arp [08:57] But I don't know ho to fix this problem [08:58] This is not same on my desktop debian or ubuntu! [08:58] How can I skip or reduce this time? === manu is now known as Guest84157 [09:39] ChibaPet: You have prob gone to bed but can you help me list the amount of directories and if there are more then 30 output more then 30 [09:40] I have something but it doesn't seem to take in account how may directories i have if I reverse the logical operator it doesn't seen to work at all [09:40] if ((dir > 30)); then rmdir 01; fi [09:41] If anyone else wants to chime is feel free [09:49] Good morning. [09:51] Good morning [09:52] Saturdays morning and everyone seems asleep [09:52] :) [09:52] At this hour, yes ;) [12:40] hello [12:41] i am banned from ubuntu channel how can i get back [12:41] i am sorry about what i did [12:42] i didnt understand what one guy said clearly [12:43] hello? [12:43] can someone say my oplogize to that guy please? [12:44] hello? [12:45] Wasn't there some channel in the message when you were banned? [12:46] no [12:46] i didnt see [12:46] i think that guy that banned me was so angry [12:46] he didnt offer any channel for apologize [12:47] his name starts with k1 i think [12:48] I suppose you could go to #ubuntu-ops [12:48] could you say my apologize to him or say him to open a channel to speak with him [12:48] I cannot do that. [12:49] lordievader, no problem [12:49] thanks [13:30] Hello, do you know a good tool to monitor log and server access ? [13:32] this is better [13:33] hello [13:33] KinoAA: Read the auth log? [13:35] Yeah, auth (ssh), page access, jekyll page access, all my log in a same place. [13:35] (I'm looking at nagios for now) [13:35] KinoAA: Setup your logging system to output it to the same file? [13:35] my question is this: How do dhcp-server and bind9 work together? after dhcp acked an IP, can bind9 be informed about the IP, so that the hostname resolves automatically? [13:36] lordievader: lol, it is going to be a mess ;) [13:36] KinoAA: I'm not really sure what you are after ;) [13:42] The thing is llike that: isc-dhcp always assigns the same IP to the same devices without me having this configured in dhcpd.conf. So, first, I'd like to know where the MACs are cached. After that I want to make bind9 aware of these assignments === arrrghhh_ is now known as arrrghhh === neunon_ is now known as neunon === broder_ is now known as broder === clayton_ is now known as clayton === Ursinha_ is now known as Ursinha === Expanse_ is now known as Expanse [17:36] hey everyone. I have a maas setup, where I'd like some other user SSH keys distributed to the nodes [17:36] how would I effectively do this? [17:39] ansible [17:40] deeps, I'm using juju... aren't the two pretty much the same thing? [17:42] found this, if anyone was interested: https://insights.ubuntu.com/2015/04/21/giving-developers-production-access-without-revealing-secrets/ [18:19] tocotron: Not sure if this was answered yet, but leases are stored in /var/lib/dhcp === TwistedFruit is now known as ChibaPet [18:27] Hi, I want to suspend an install of ubuntu server 14.01 over ssh. the command pm-suspend or its cousins pm-hibernate execute but have no effect at all. Does anyone have any ideas what could be wrong ? [18:28] 14.04* [18:29] Roge152: Are you running them as root, and they're definitely installed? (pm-utils) [18:29] And I'm assuming you have a way to wake it up later...? [18:29] Roge152: https://help.ubuntu.com/community/PowerManagement/Hibernate ? [18:29] running with sudo yes, they are installed (pm-utils) and I do have WOL working yes. [18:30] hrm [18:30] Roge152: it mentions that pm-utils uses uswsup by default, so i'd test with that directly [18:30] ok I'll have a read [18:30] iirc, there's also a debug mode for swsup, but i can't remember how to invoke it [18:30] where it essentially does a dry run of suspend and resume [18:31] Roge152: If you could do us the favour of noting what it once when you've solved it, I'd love to know. That's not something I'd tend to expect to see fail. [18:31] might be one of the values you can put in /sys/power/state [18:31] s/once/was/ [18:31] Sure, if I figure out why I'll pass it along. [18:43] hmm. well, its clear why s2disk won't work. I have no swap setup atm. s2ram also doesn't work it says that "/sys/power/state does not exist; what kind of ninja mutant machine is this ? heh [18:44] heh [18:44] Roge152: i was wondering if the server kernel doesn't have suspend enabled? [18:44] That'd inhibit hibernation, but I can't see why it'd affect suspending. [18:45] nacc: I don't believe there's a distinct server kernel. I start my installs from the server ISO and suspend works here. [18:45] ChibaPet: ah you're right [18:45] Roge152: this might help with debugging: https://wiki.debian.org/Suspend [18:45] /var/log/pm-suspend.log ? [18:53] ok pm-hibernate works now after adding swap [18:54] But, suspend? [18:54] still no suspend [18:58] lol and while the machine woke back up, its unreachable after hibernate. *facepalm* === Ben66 is now known as Ben64 === ejat_ is now known as ejat === unreal_ is now known as unreal