xnp70 | what is the default iptables's config file ? | 00:31 |
---|---|---|
xnp70 | ufw is disabled | 00:32 |
xnp70 | but iptables has some stuff, so | 00:32 |
xnp70 | thre has to be a file somewhere | 00:32 |
xnp70 | right ? | 00:32 |
=== jgrimm is now known as jgrimm-afk | ||
Bray90820_ | How would I initialize an already created LVM snapshot | 01:04 |
ChibaPet | Bray90820_: What do you mean by initialize? | 01:23 |
Bray90820_ | There is what I believe is one that is already created but it's not in the logical volume manager | 01:25 |
Bray90820_ | ChibaPet: | 01:25 |
ChibaPet | If lvdisplay doesn't show it, it's probably not there. | 01:26 |
ChibaPet | Note that (at least as far as I can remember) if you overfill an LVM snapshot, it goes away spontaneously. | 01:27 |
Bray90820_ | ChibaPet: I think I figured out my issue with your help Thanks | 01:30 |
Bray90820_ | It wasn't there so I am gonna retreat it f I can ever figure out what size it actually was | 01:30 |
ChibaPet | 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 |
ChibaPet | ...unless something has seriously changed recently. | 01:31 |
Bray90820_ | 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:06 |
ChibaPet | 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 |
ChibaPet | That said... | 02:07 |
ChibaPet | You want to allocate sufficient extents to carry as much data as you expect to receive during the lifetime of the snapshot. | 02:08 |
Bray90820_ | 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 |
ChibaPet | 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 |
ChibaPet | Basically, yeah. | 02:09 |
ChibaPet | It's always possible I'm missing some detail of how you can use LVM snapshots. | 02:09 |
Bray90820_ | Ok that's clear but... | 02:09 |
ChibaPet | I'm a big fan of ZFS lately just because of the pain it avoids. | 02:09 |
Bray90820_ | Right now unless I am already connected to my server it is unavailable while I am backing it up | 02:10 |
ChibaPet | Seems safe then. | 02:10 |
ChibaPet | Usually when I'm allocating pools I explicitly leave space for snapshots. | 02:10 |
Bray90820_ | 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 |
Bray90820_ | He compiled it in some weird way and I think it's easier to just create a new script | 02:12 |
ChibaPet | Bray90820_: Um. Half a sec. | 02:13 |
Bray90820_ | ChibaPet: Just tell me when your back | 02:16 |
ChibaPet | Bray90820_: Sorry, been here, but a co-worked walked up and distracted me. | 02:18 |
ChibaPet | Let me grab something. | 02:18 |
Bray90820_ | Ok | 02:18 |
Bray90820_ | Just tell me when your back and ready to talk :P | 02:18 |
ChibaPet | Just finding the right version. | 02:19 |
ChibaPet | The thing I just found is for tape drives, but I have something that does LVM. | 02:19 |
Bray90820_ | What did you find | 02:21 |
ChibaPet | This script assumes you want to dump stuff over ssh, but that's not an awful assumption nowadays. | 02:22 |
ChibaPet | Here's an example config: https://bpaste.net/show/dc3e07859822 | 02:22 |
ChibaPet | that would want to live as /etc/ndump.conf | 02:22 |
ChibaPet | Here's a script which uses that config: https://bpaste.net/show/7eca9e0e4e83 | 02:23 |
Bray90820_ | Did you find a copy of the script I have on my computer? | 02:23 |
ChibaPet | What? | 02:23 |
ChibaPet | No. | 02:23 |
ChibaPet | I wrote that. | 02:23 |
Bray90820_ | Aaahhh alright | 02:24 |
Bray90820_ | Like I said I am a noob so I am not sure what any of that really means | 02:24 |
ChibaPet | 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 |
ChibaPet | Um. | 02:24 |
Bray90820_ | Sorry | 02:25 |
ChibaPet | 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 |
Bray90820_ | It's ok if you don't want to but would you mind creating a script for me :P | 02:25 |
ChibaPet | so, for the lvm entries, vgdisplay will show you free extents in your volume group | 02:25 |
ChibaPet | Bray90820_: Use... that script... that I just gave you. | 02:26 |
ChibaPet | 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 |
Bray90820_ | ChibaPet: I meant one specific to my system | 02:26 |
ChibaPet | 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 |
Bray90820_ | chi | 02:27 |
Bray90820_ | ChibaPet: I will have a look | 02:27 |
ChibaPet | Alternately, you can look at things like CrashPlan if you want to set something up without effort. | 02:27 |
Bray90820_ | I do not wanna do online bqackup | 02:27 |
ChibaPet | For my ndump tool, you need Perl (which you should already have) and the dump/restore commands, which are easily installed. | 02:28 |
Bray90820_ | I'll have a look and if I have any questions can I contact you later? | 02:28 |
ChibaPet | 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 |
Bray90820_ | I do wanna use SSH | 02:29 |
ChibaPet | kk | 02:30 |
ChibaPet | Yeah, I'll be back online in a couple hours, and I'll read scrollback. | 02:30 |
Bray90820_ | Ok | 02:30 |
Bray90820_ | Thanks | 02:30 |
Bray90820_ | I am kinda lost already with the first line | 02:30 |
Bray90820_ | I totally don't understand any of this | 02:30 |
ChibaPet | Bray90820_: Well. You have two options. | 02:30 |
ChibaPet | 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 |
ChibaPet | CrashPlan lets you host your back-ups on a local system if you don't want to go offsite. | 02:31 |
ChibaPet | There are likely other tools that'd work too. Amanda used to be nice. | 02:32 |
Bray90820_ | ChibaPet: I would prefer to learn stuff | 02:32 |
Bray90820_ | I just don't really know where to state | 02:32 |
ChibaPet | http://www.amanda.org/ | 02:32 |
ChibaPet | Well. Note that if you set up any of these tools (Amanda is free) you'll learn stuff in the process. | 02:32 |
ChibaPet | It's entirely up to you which level of effort you want to target. :) | 02:33 |
Bray90820_ | Like i said I'm happy with use your script but i don't know where to state with it | 02:33 |
ChibaPet | 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:33 |
ChibaPet | Here, start with this: install dump and restore, and read the man pages. That's the critical bit. | 02:34 |
Bray90820_ | I don't even know how to edit it for my own use | 02:34 |
Bray90820_ | I don't know perl | 02:34 |
ChibaPet | Hrm. So, the only thing you'd need to edit is /etc/ndump.conf, and there are editor tutorials out there. | 02:34 |
ChibaPet | 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 |
ChibaPet | The config isn't Perl, it's just a text file with key/value pairs. | 02:35 |
Bray90820_ | Should I edit it on the computer I want to backup or the computer I am backing up to? | 02:35 |
ChibaPet | For this, the config needs to be /etc/ndump.conf on the computer that you'll back up. | 02:36 |
Bray90820_ | Alright | 02:37 |
Bray90820_ | Thanks | 02:37 |
ChibaPet | 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 |
ChibaPet | 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:37 |
Bray90820_ | And the dumps are? | 02:38 |
ChibaPet | man dump | 02:38 |
Bray90820_ | Are the sums the data that is being backed up? | 02:38 |
ChibaPet | sudo apt-get installd ump | 02:38 |
ChibaPet | sorry, sudo apt-get install dump | 02:38 |
ChibaPet | sums? | 02:38 |
Bray90820_ | I meant dumps | 02:38 |
ChibaPet | 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:39 |
ChibaPet | This book used to and might still have good documentation of how to plan dump rotations, etc: http://admin.com/ | 02:40 |
Bray90820_ | Thanks | 02:41 |
Bray90820_ | You should go home | 02:41 |
ChibaPet | Hi, sorry, yeah, work stuff popped up again. | 02:43 |
Bray90820_ | Alright | 02:44 |
ChibaPet | 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 |
ChibaPet | You could achieve the same thing I'm doing in that Perl script with shell script, FWIW. | 02:45 |
ChibaPet | Anyway, I'll be back and I'll answer any questions you leave in the interim. | 02:45 |
Bray90820_ | Yea | 02:48 |
Bray90820_ | I need lots and lots and lots of help | 02:48 |
Bray90820_ | Like I said I don't even know where to begin | 02:49 |
Bray90820_ | Think of me as a grandmother who doesn't speak computer at all | 02:52 |
Bray90820_ | Events That is not me | 02:52 |
Bray90820_ | *Eventho | 02:52 |
ChibaPet | Bray90820_: I'll be a bit distracted: https://www.youtube.com/watch?v=qUAmTYHEyM8 | 04:22 |
ChibaPet | That's happening right now. Live stream. | 04:22 |
Bray90820_ | ChibaPet: I am actually working on my own script at the moment that doesn't have much to do with your script | 04:22 |
ChibaPet | Good. Best way to learn. :) | 04:22 |
ChibaPet | Anyway, I'll check in occasionally. | 04:23 |
=== Jalen_ is now known as Jalen | ||
=== Bray90820_ is now known as bray90820 | ||
Rlyeh | Hi | 08:55 |
Rlyeh | Maybe here is not a right place to ask this question, but I think youre network experts. Hope you can help me | 08:55 |
Rlyeh | I'm runnig debian 7 on BBB | 08:55 |
Rlyeh | The problem is that when I connect the lan connector to the board, the BBB detects the internet after about 1 minute | 08:56 |
Rlyeh | I searched and realized it's about a file, named arp | 08:57 |
Rlyeh | But I don't know ho to fix this problem | 08:57 |
Rlyeh | This is not same on my desktop debian or ubuntu! | 08:58 |
Rlyeh | How can I skip or reduce this time? | 08:58 |
=== manu is now known as Guest84157 | ||
bray90820 | 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:39 |
bray90820 | 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 |
bray90820 | if ((dir > 30)); then rmdir 01; fi | 09:40 |
bray90820 | If anyone else wants to chime is feel free | 09:41 |
lordievader | Good morning. | 09:49 |
Rlyeh_ | Good morning | 09:51 |
Rlyeh_ | Saturdays morning and everyone seems asleep | 09:52 |
Rlyeh_ | :) | 09:52 |
lordievader | At this hour, yes ;) | 09:52 |
Guest84880 | hello | 12:40 |
Guest84880 | i am banned from ubuntu channel how can i get back | 12:41 |
Guest84880 | i am sorry about what i did | 12:41 |
Guest84880 | i didnt understand what one guy said clearly | 12:42 |
Guest84880 | hello? | 12:43 |
Guest84880 | can someone say my oplogize to that guy please? | 12:43 |
Guest84880 | hello? | 12:44 |
lordievader | Wasn't there some channel in the message when you were banned? | 12:45 |
Guest84880 | no | 12:46 |
Guest84880 | i didnt see | 12:46 |
Guest84880 | i think that guy that banned me was so angry | 12:46 |
Guest84880 | he didnt offer any channel for apologize | 12:46 |
Guest84880 | his name starts with k1 i think | 12:47 |
lordievader | I suppose you could go to #ubuntu-ops | 12:48 |
Guest84880 | could you say my apologize to him or say him to open a channel to speak with him | 12:48 |
lordievader | I cannot do that. | 12:48 |
Guest84880 | lordievader, no problem | 12:49 |
Guest84880 | thanks | 12:49 |
KinoAA | Hello, do you know a good tool to monitor log and server access ? | 13:30 |
tocotron | this is better | 13:32 |
tocotron | hello | 13:33 |
lordievader | KinoAA: Read the auth log? | 13:33 |
KinoAA | Yeah, auth (ssh), page access, jekyll page access, all my log in a same place. | 13:35 |
KinoAA | (I'm looking at nagios for now) | 13:35 |
lordievader | KinoAA: Setup your logging system to output it to the same file? | 13:35 |
tocotron | 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:35 |
KinoAA | lordievader: lol, it is going to be a mess ;) | 13:36 |
lordievader | KinoAA: I'm not really sure what you are after ;) | 13:36 |
tocotron | 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 | 13:42 |
=== 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 | ||
Free99 | hey everyone. I have a maas setup, where I'd like some other user SSH keys distributed to the nodes | 17:36 |
Free99 | how would I effectively do this? | 17:36 |
Deeps | ansible | 17:39 |
Free99 | deeps, I'm using juju... aren't the two pretty much the same thing? | 17:40 |
Free99 | found this, if anyone was interested: https://insights.ubuntu.com/2015/04/21/giving-developers-production-access-without-revealing-secrets/ | 17:42 |
TwistedFruit | tocotron: Not sure if this was answered yet, but leases are stored in /var/lib/dhcp | 18:19 |
=== TwistedFruit is now known as ChibaPet | ||
Roge152 | 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:27 |
Roge152 | 14.04* | 18:28 |
ChibaPet | Roge152: Are you running them as root, and they're definitely installed? (pm-utils) | 18:29 |
ChibaPet | And I'm assuming you have a way to wake it up later...? | 18:29 |
nacc | Roge152: https://help.ubuntu.com/community/PowerManagement/Hibernate ? | 18:29 |
Roge152 | running with sudo yes, they are installed (pm-utils) and I do have WOL working yes. | 18:29 |
ChibaPet | hrm | 18:30 |
nacc | Roge152: it mentions that pm-utils uses uswsup by default, so i'd test with that directly | 18:30 |
Roge152 | ok I'll have a read | 18:30 |
nacc | iirc, there's also a debug mode for swsup, but i can't remember how to invoke it | 18:30 |
nacc | where it essentially does a dry run of suspend and resume | 18:30 |
ChibaPet | 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 |
nacc | might be one of the values you can put in /sys/power/state | 18:31 |
ChibaPet | s/once/was/ | 18:31 |
Roge152 | Sure, if I figure out why I'll pass it along. | 18:31 |
Roge152 | 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:43 |
nacc | heh | 18:44 |
nacc | Roge152: i was wondering if the server kernel doesn't have suspend enabled? | 18:44 |
ChibaPet | That'd inhibit hibernation, but I can't see why it'd affect suspending. | 18:44 |
ChibaPet | 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 |
nacc | ChibaPet: ah you're right | 18:45 |
nacc | Roge152: this might help with debugging: https://wiki.debian.org/Suspend | 18:45 |
nacc | /var/log/pm-suspend.log ? | 18:45 |
Roge152 | ok pm-hibernate works now after adding swap | 18:53 |
ChibaPet | But, suspend? | 18:54 |
Roge152 | still no suspend | 18:54 |
Roge152 | lol and while the machine woke back up, its unreachable after hibernate. *facepalm* | 18:58 |
=== Ben66 is now known as Ben64 | ||
=== ejat_ is now known as ejat | ||
=== unreal_ is now known as unreal |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!