/srv/irclogs.ubuntu.com/2016/03/12/#ubuntu-server.txt

xnp70 what is the default iptables's config file ?00:31
xnp70ufw is disabled00:32
xnp70but iptables has some stuff, so00:32
xnp70thre has to be a file somewhere00:32
xnp70right ?00:32
=== jgrimm is now known as jgrimm-afk
Bray90820_How would I initialize an already created LVM snapshot01:04
ChibaPetBray90820_: 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 manager01:25
Bray90820_ChibaPet:01:25
ChibaPetIf lvdisplay doesn't show it, it's probably not there.01:26
ChibaPetNote 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 Thanks01:30
Bray90820_It wasn't there so I am gonna retreat it f I can ever figure out what size it actually was01:30
ChibaPetRemember 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 snapshot02:06
ChibaPetBray90820_: 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
ChibaPetThat said...02:07
ChibaPetYou 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 extents02:09
ChibaPetI 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
ChibaPetBasically, yeah.02:09
ChibaPetIt'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
ChibaPetI'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 up02:10
ChibaPetSeems safe then.02:10
ChibaPetUsually 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 things02:12
Bray90820_He compiled it in some weird way and I think it's easier to just create a new script02:12
ChibaPetBray90820_: Um. Half a sec.02:13
Bray90820_ChibaPet: Just tell me when your back02:16
ChibaPetBray90820_: Sorry, been here, but a co-worked walked up and distracted me.02:18
ChibaPetLet me grab something.02:18
Bray90820_Ok02:18
Bray90820_Just tell me when your back and ready to talk :P02:18
ChibaPetJust finding the right version.02:19
ChibaPetThe thing I just found is for tape drives, but I have something that does LVM.02:19
Bray90820_What did you find02:21
ChibaPetThis script assumes you want to dump stuff over ssh, but that's not an awful assumption nowadays.02:22
ChibaPetHere's an example config: https://bpaste.net/show/dc3e0785982202:22
ChibaPetthat would want to live as /etc/ndump.conf02:22
ChibaPetHere's a script which uses that config: https://bpaste.net/show/7eca9e0e4e8302:23
Bray90820_Did you find a copy of the script I have on my computer?02:23
ChibaPetWhat?02:23
ChibaPetNo.02:23
ChibaPetI wrote that.02:23
Bray90820_Aaahhh alright02:24
Bray90820_Like I said I am a noob so I am not sure what any of that really means02:24
ChibaPetSo, 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
ChibaPetUm.02:24
Bray90820_Sorry02:25
ChibaPetI 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 :P02:25
ChibaPetso, for the lvm entries, vgdisplay will show you free extents in your volume group02:25
ChibaPetBray90820_: Use... that script... that I just gave you.02:26
ChibaPetThat'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 system02:26
ChibaPetI'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_chi02:27
Bray90820_ChibaPet: I will have a look02:27
ChibaPetAlternately, 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 bqackup02:27
ChibaPetFor 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
ChibaPetIf 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 SSH02:29
ChibaPetkk02:30
ChibaPetYeah, I'll be back online in a couple hours, and I'll read scrollback.02:30
Bray90820_Ok02:30
Bray90820_Thanks02:30
Bray90820_I am kinda lost already with the first line02:30
Bray90820_I totally don't understand any of this02:30
ChibaPetBray90820_: Well. You have two options.02:30
ChibaPetIf 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
ChibaPetCrashPlan lets you host your back-ups on a local system if you don't want to go offsite.02:31
ChibaPetThere are likely other tools that'd work too. Amanda used to be nice.02:32
Bray90820_ChibaPet: I would prefer to learn stuff02:32
Bray90820_I just don't really know where to state02:32
ChibaPethttp://www.amanda.org/02:32
ChibaPetWell. Note that if you set up any of these tools (Amanda is free) you'll learn stuff in the process.02:32
ChibaPetIt'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 it02:33
ChibaPetUm, 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
ChibaPetHere, 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 use02:34
Bray90820_I don't know perl02:34
ChibaPetHrm. So, the only thing you'd need to edit is /etc/ndump.conf, and there are editor tutorials out there.02:34
ChibaPetYou 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
ChibaPetThe 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
ChibaPetFor this, the config needs to be /etc/ndump.conf on the computer that you'll back up.02:36
Bray90820_Alright02:37
Bray90820_Thanks02:37
ChibaPetThe 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
ChibaPetIf 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
ChibaPetman dump02:38
Bray90820_Are the sums the data that is being backed up?02:38
ChibaPetsudo apt-get installd ump02:38
ChibaPetsorry, sudo apt-get install dump02:38
ChibaPetsums?02:38
Bray90820_I meant dumps02:38
ChibaPetThe 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
ChibaPetThis book used to and might still have good documentation of how to plan dump rotations, etc: http://admin.com/02:40
Bray90820_Thanks02:41
Bray90820_You should go home02:41
ChibaPetHi, sorry, yeah, work stuff popped up again.02:43
Bray90820_Alright02:44
ChibaPetUm. 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
ChibaPetYou could achieve the same thing I'm doing in that Perl script with shell script, FWIW.02:45
ChibaPetAnyway, I'll be back and I'll answer any questions you leave in the interim.02:45
Bray90820_Yea02:48
Bray90820_I need lots and lots and lots of help02:48
Bray90820_Like I said I don't even know where to begin02:49
Bray90820_Think of me as a grandmother who doesn't speak computer at all02:52
Bray90820_Events That is not me02:52
Bray90820_*Eventho02:52
ChibaPetBray90820_: I'll be a bit distracted: https://www.youtube.com/watch?v=qUAmTYHEyM804:22
ChibaPetThat'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 script04:22
ChibaPetGood. Best way to learn. :)04:22
ChibaPetAnyway, I'll check in occasionally.04:23
=== Jalen_ is now known as Jalen
=== Bray90820_ is now known as bray90820
RlyehHi08:55
RlyehMaybe here is not a right place to ask this question, but I think youre network experts. Hope you can help me08:55
RlyehI'm runnig debian 7 on BBB08:55
RlyehThe problem is that when I connect the lan connector to the board, the BBB detects the internet after about 1 minute08:56
RlyehI searched and realized it's about a file, named arp08:57
RlyehBut I don't know ho to fix this problem08:57
RlyehThis is not same on my desktop debian or ubuntu!08:58
RlyehHow can I skip or reduce this time?08:58
=== manu is now known as Guest84157
bray90820ChibaPet: 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 3009:39
bray90820I 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 all09:40
bray90820if ((dir > 30)); then rmdir 01; fi09:40
bray90820If anyone else wants to chime is feel free09:41
lordievaderGood morning.09:49
Rlyeh_Good morning09:51
Rlyeh_Saturdays morning and everyone seems asleep09:52
Rlyeh_:)09:52
lordievaderAt this hour, yes ;)09:52
Guest84880hello12:40
Guest84880i am banned from ubuntu channel how can i get back12:41
Guest84880i am sorry about what i did12:41
Guest84880i didnt understand what one guy said clearly12:42
Guest84880hello?12:43
Guest84880can someone say my oplogize to that guy please?12:43
Guest84880hello?12:44
lordievaderWasn't there some channel in the message when you were banned?12:45
Guest84880no12:46
Guest84880i didnt see12:46
Guest84880i think that guy that banned me was so angry12:46
Guest84880he didnt offer any channel for apologize12:46
Guest84880his name starts with k1 i think12:47
lordievaderI suppose you could go to #ubuntu-ops12:48
Guest84880could you say my apologize to him or say him to open a channel to speak with him12:48
lordievaderI cannot do that.12:48
Guest84880lordievader, no problem12:49
Guest84880thanks12:49
KinoAAHello, do you know a good tool to monitor log and server access ?13:30
tocotronthis is better13:32
tocotronhello13:33
lordievaderKinoAA: Read the auth log?13:33
KinoAAYeah, 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
lordievaderKinoAA: Setup your logging system to output it to the same file?13:35
tocotronmy 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
KinoAAlordievader: lol, it is going to be a mess ;)13:36
lordievaderKinoAA: I'm not really sure what you are after ;)13:36
tocotronThe 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 assignments13: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
Free99hey everyone. I have a maas setup, where I'd like some other user SSH keys distributed to the nodes17:36
Free99how would I effectively do this?17:36
Deepsansible17:39
Free99deeps, I'm using juju... aren't the two pretty much the same thing?17:40
Free99found this, if anyone was interested: https://insights.ubuntu.com/2015/04/21/giving-developers-production-access-without-revealing-secrets/17:42
TwistedFruittocotron: Not sure if this was answered yet, but leases are stored in /var/lib/dhcp18:19
=== TwistedFruit is now known as ChibaPet
Roge152Hi, 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
Roge15214.04*18:28
ChibaPetRoge152: Are you running them as root, and they're definitely installed? (pm-utils)18:29
ChibaPetAnd I'm assuming you have a way to wake it up later...?18:29
naccRoge152: https://help.ubuntu.com/community/PowerManagement/Hibernate ?18:29
Roge152running with sudo yes, they are installed (pm-utils) and I do have WOL working yes.18:29
ChibaPethrm18:30
naccRoge152: it mentions that pm-utils uses uswsup by default, so i'd test with that directly18:30
Roge152ok I'll have a read18:30
nacciirc, there's also a debug mode for swsup, but i can't remember how to invoke it18:30
naccwhere it essentially does a dry run of suspend and resume18:30
ChibaPetRoge152: 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
naccmight be one of the values you can put in /sys/power/state18:31
ChibaPets/once/was/18:31
Roge152Sure, if I figure out why I'll pass it along.18:31
Roge152hmm. 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 ? heh18:43
naccheh18:44
naccRoge152: i was wondering if the server kernel doesn't have suspend enabled?18:44
ChibaPetThat'd inhibit hibernation, but I can't see why it'd affect suspending.18:44
ChibaPetnacc: I don't believe there's a distinct server kernel. I start my installs from the server ISO and suspend works here.18:45
naccChibaPet: ah you're right18:45
naccRoge152: this might help with debugging: https://wiki.debian.org/Suspend18:45
nacc /var/log/pm-suspend.log ?18:45
Roge152ok pm-hibernate works now after adding swap18:53
ChibaPetBut, suspend?18:54
Roge152still no suspend18:54
Roge152lol 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!