/srv/irclogs.ubuntu.com/2019/02/11/#ubuntu-server.txt

=== Sveta_ is now known as svetlana
=== svetlana is now known as sveta
snake-venomhi found this on my server,05:49
snake-venomis this attacker script http://termbin.com/x3iy05:49
snake-venom?05:49
andolThat shell script makes my eyes hurt.06:16
lordievaderGood morning06:59
siavoshkcGood morning, I have a https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/modwsgi/#basic-configuration for my django server. But with this config server doesn't even start07:13
technoobHey guys07:44
technoobI need help07:45
technoobI already installed ubuntu server on my nuc and want to know what the end result looks like so i know it is already fully booted up07:45
lordievaderHow do you mean?07:48
lordievaderWhat you see on the screen?07:48
lotuspsychjetechnoob: and what kind of NUC is it exactly?07:49
technoobNuc5cpyh07:49
lotuspsychjetechnoob: did you update bios firmware to latest version?07:50
technoobYES07:50
lotuspsychjetechnoob: explain whats happening please as lordievader asked07:51
technoobI see a command prompt07:51
technoobBut nothing else07:51
technoobI see just text07:51
technoobNo username input prompt07:51
technoobLast line of text is "reached target cloud-init target"07:52
technooblordievader07:58
lordievaderThe command prompt is all you get on a server install. A server shouldn't need more08:02
technooblordievader yes but what should i all booted up server look like08:12
technoobI hooked up my nuc on my tv08:13
technoobWhat should i be seeing there08:13
lordievaderOn the screen you'll only see an tty login-prompt.08:22
lordievaderIf you want to know if all the services started correctly you can issue `sudo systemctl status`.08:22
technoobI didnt see any tty login prompt08:27
technoobShould i reboit?08:27
technooblordievader08:27
lordievaderCould you maybe share a screenshot?08:27
technoobKinda hard im on mobile08:28
lordievaderPhoto?08:28
technoobDo we have a way to attach photo to this irc?08:34
lotuspsychjetechnoob: imgur.com08:34
CarlFKriot.im - takes some work to get set up, but then you have a nice way to irc from your phone08:36
technoobOk in a minute08:37
technoobI rebooted my machine08:37
technoobIll see if the problem still persist08:37
technoobIm running a celeron processor btw08:37
technoobSo it might be slow08:38
technoobAlso i just wanna ask08:40
technoobCan i run kodi in a ubuntu server?08:41
technoobUbuntu server is like ubuntu desktop without gui right?08:41
kstenerudubuntu server is a linux install without gui. You can technically install a gui on top of it, but if you want a gui, you'll have an easier time using the desktop flavor08:43
technoobI see08:43
technoobCan i run nextcloud server and other server apps on the same machine08:44
kstenerudsure08:44
lordievaderEssentially, you can run whatever you want on the machine ๐Ÿ˜‰08:45
kstenerudgenerally people use docker to keep things nicely separated08:45
kstenerudIt's not strictly necessary, but it keep things clean08:46
technoobI cant seem to launch kodi08:49
technoobIt says that it cant find kodi.services08:49
siavoshkcShould www-data have access to any folder apache2 wants to access?08:50
technoobSystemctl start kodi. Thats the command i use08:50
lordievadertechnoob: Kodi is installed? And that is the correct service name?08:50
technoobI guess08:50
technoobI was following a instruction08:51
technoobIn the net08:51
lordievaderCheck it then, investigate ๐Ÿ˜‰08:51
technoob..08:52
technoobSadface08:52
technoobHmm might as well just use ubuntu desktop. Will be easier i guess08:53
technoobI only have like 4 gb ram though08:53
lordievaderIf you don't open too many browser tabs that is fine ๐Ÿ˜‰09:16
kstenerudDoes anyone have experience setting up an l2tp vpn client on a command line lxd container? I tried following https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/clients.md#configure-linux-vpn-clients-using-the-command-line but it fails with "device not found" when looking or ppp010:34
=== jelly-home is now known as jelly
ahasenackrbasak: I have to update pmdk, which, when it was created, didn't exist in debian, so its version is of the 0ubuntuN style11:30
ahasenackrbasak: now debian has one11:30
ahasenackrbasak: but git-ubuntu can't find a common ancestor to start a merge, which is expected I guess11:30
ahasenackrbasak: any particular way I should handle this?11:30
rbasakahasenack: I guess you have a choice. Do you want to converge with Debian?11:30
ahasenackwhat does that mean? sync?11:31
ahasenacksync and then reapply our changes, if any remain?11:31
rbasakDo you want the new Ubuntu package to be based on the Debian one, plus a delta?11:31
ahasenackyes11:31
ahasenackno reason not to11:31
rbasakDepends on the delta I guess :)11:31
ahasenackunless the delta is huge, I guess11:31
ahasenackok, let's say I want to11:31
rbasakI don't think there's any easy way of handling this. Fundamentally the "rebase" workflow doesn't work because we don't have a patchset to begin with.11:32
ahasenackthe pmdk story has "no easy way" written all over it :)11:32
rbasakYou could try taking the entire diff between Debian and Ubuntu currently, placing it in the working tree, and see if you can break that up into a logical delta with "git add -p".11:32
rbasakProbably limited to just the debian/ directory.11:33
ahasenackrbasak: that's ok, but what will make it have a common ancestor from now on, for future merges?11:37
elfranneany idea why Kerberos is ignoring my logging settings from krb5.conf ?11:39
lotuspsychjeanyone knows if server got unattended upgrades enabled by default now?13:12
blackflowit doesn't13:13
Ussatwhich is a good thing13:17
blackflowdefinitely.13:18
rbasakI don't think it's such a bad thing nowadays. Server users should take _some_ action to ensure security updates. Taking no action is really bad. So if that action is to change the default to some other mechanism, or enable unattended-upgrades, what's the difference?13:40
rbasakI don't think it's such a bad thing nowadays. Server users should take _some_ action [as/if necessary] to ensure security updates. Taking no action is really bad. So if that action is to change the default to some other mechanism, or enable unattended-upgrades, what's the difference?13:41
tomreynIf you ask the average SMB boss what they're more worried about, production breaking due to broken patches, or software getting outdated but generally working (until things get exploited, but even exploits try not to break production), they'll surely answer the first.13:46
tomreynmaybe this culture will change a little to the better in the coming years when we get better laws, but it can take a good while longer.13:48
Ussatnot sure what laws have to do with it, but having a server automated upgrade and break shit is not good13:52
tomreynchanging the default right now will cause those organizations' admins' taking the blame for production breaking due to bugs such as 1813873 (a regression unfixed in bionic after 1.5 weeks) or 1814555, and cause a backslash, making them even more worried about patching, if they are given time to care about that at all.13:53
UssatI have set patch times, test first and then prod13:53
tomreynUssat: laws to impose fines on companies whose infrastructure is exploited, data stolen. so far the loss is mostly to users privacy, somewhat to companies' brands, but its still soemwhat cheap to them.13:54
tomreynbut those are politics, OT here - sorry.13:55
Ussatum...I am 100% against those laws. Can you gaurentee me as an admin you catch EVERYTHING ?13:55
Ussatall the time13:55
Ussatnegligence sure.......13:55
rbasaktomreyn: that's a fair point.13:58
rbasakOTOH, although a large number of users deliberately don't want security updates, AIUI a large majority of those actually end up doing nothing else to get security updates.13:59
Ussatauto updates on desktops are one thing, servers no....thats a recipie for problems14:00
Ussatwhy not just auto update from 16 --> 18 then ?14:00
rbasakUssat: my point is that auto updates are better on servers than no security updates at all. That's also a recipe for problems.14:00
rbasakIf you want to do something special, then you can do that special thing and disable automatic updates while you're there.14:00
UssatI disagree, not your job.14:01
rbasakIf you're making some special provision anyway, then disabling automatic updates while you're there is hardly onerous.14:01
UssatAgain, why not auto update from 16 --> 18 then14:01
rbasak16 -> 18 deliberately changes behaviour. Clearly that's unacceptable to do automatically.14:02
blackflowrbasak: problem with unattended upgrades is that it only does half the job, sometimes breaks stuff, and.... only does half the job but people think it does everything.14:02
Ussat^^^14:02
rbasakblackflow: in what way does it only do half the job?14:02
rbasakIs there a bug on that?14:02
tomreynyou need to restart services, sometimes reboot14:03
blackflowwell for starters it doesn't reboot for new kernels. second, it doesn't restart properly when systemd or dbus is upgraded.  third, not all updates are solved by systemctl restart, and not all services have post inst steps to restart.14:03
blackflowthere's no bug. it just can't be done. reboots and all. needs human intervention.14:03
Ussatyup14:03
rbasakIt does tell you human intervention is required though, with the reboot-required flag and in the motd. I hope.14:03
rbasakBut regardless I don't think that's a justification for not turning it on by default.14:04
tomreynonly if a reboot is required14:04
blackflowwho's "you"? it's unattended, remember?14:04
rbasakIt's clearly better than the current situation.14:04
rbasak(in terms of landing updates)14:04
rbasakPerfect is the enemy of the good, etc.14:04
blackflowno. halfa job is worse than no job at all (so users know they have to run updates).   way bettewr would be to have apticron installed so root is mailed/nagged with updates.14:04
rbasakThat's fine to say in theory. In practice most users don't run updates at all.14:05
blackflowthat's their problem.14:05
UssatI disagree.......most SERVER users do14:05
rbasakThe users who do and don't want automatic updates are competent enough to know and turn it off.14:05
UssatDesktop is one thing, servers are a whole different ball game14:05
UssatSo, how woudl you schedule these updates, random times ? how would you determine they do not interfear with what is happening on the server14:06
rbasakI just checked. Cloud images do have unattended-upgrades enabled by default AFAICT.14:06
blackflowbtw, when ext4 begets case insensitive filenames, will that be flipped on by default, to appease the windows migrants?14:07
rbasakUssat: there is a default. If you don't like the default, you can change your configuration. Just like everything else.14:07
rbasakblackflow: how is that relevant?14:07
UssatYes, they default should be off14:07
rbasakLook, I understand your opinion.14:07
rbasakIf you want to just keep restating it instead of actually providing some reasonable rational justfication, then what's the point of continuing this discussion?14:08
siavoshkcI am in state of panic14:08
UssatI have provided several14:08
blackflowrbasak: well like I said, nagging via apticron or something, is WAY better than shoving updates by default.14:08
siavoshkcI accidentally deleted public_html foleder of a server14:08
UssatHow do you schedule the updates ? How would you determine when they happen14:09
rbasakAIUI, unattended-upgrades _are_ now enabled by default.14:09
siavoshkcIs there any way I can restore it?14:09
blackflowand they should _not_ be14:09
Ussatrestore backup14:09
blackflowsiavoshkc: yes, from backups.14:09
rbasakIf you want to change the default, take it up with Ubuntu developers using our normal governance structure.14:09
blackflowyeah, windmills  :)14:09
siavoshkcblackflow: can you please lead me on where to start?14:10
blackflowsiavoshkc: well, you do have backups, no?14:11
siavoshkcblackflow: I dont know14:11
blackflowthen you don't14:11
tomreynrbasak: i enjoy this discussion, and actually i'm really on your side there, increasing the overall security by more secure defaults is a good thing. i'm just not sure whether the world is ready for it, yet, or whether it'd just backfire. if unattended security patching is really active on cloud images and this hasn't backfired, yet, this is probably a good indicator.14:11
rbasakThanks :)14:12
blackflowsiavoshkc: sorry for your loss. but hey, consider it a great learning experience: always have backups. consider also a filesystem like btrfs or zfs where you can snapshot data before any potentially breaking intervention is done ;)14:12
tomreyn(cloud folks are usually more forgiving and prepared for things breaking suddenly, though)14:12
siavoshkcblackflow: The problem is that it wasnt my system. I entered a path to delete that wasnt my bussiness. I am worrid about the owner of the site14:13
siavoshkcthe site was up and I just deleted it14:13
Ussatsudo apt-get -y  remove unattended-upgrades solvs it anyway14:14
ahasenackUssat: fwiw, the scheduling, and many more knobs to tweak, are available in the config file in /etc/apt/apt.conf.d/14:15
ahasenackI think it's 50unattended-upgrades14:15
Ussatahasenack, Oh I know14:15
siavoshkcblackflow: I remember there was an automated snapshot mechanism14:15
siavoshkccan it be used to restore data?14:15
blackflowsiavoshkc: perhaps you can use some undelete tool to try and salvage data, but that would require you to bring down the server, or pull out a disk from mirror, as every second the disk is in use reduces the chance for data recovery.14:15
Ussatbut if you remove that, its done deal14:15
ahasenacksure14:15
blackflowsiavoshkc: there's no such thing unless you're running ZFS or btrfs (and even then I don't know bout "automated" unless you've set something up14:15
UssatYou there are data recovery tools/services, BUT you need to ensure the data is not overwritten asap14:16
Ussatand its crap shoot14:17
Ussatand not cheap as for the services14:17
ahasenackyeah, and there are tools you can try. It depends if you can take the machine offline, remove the hd, and mount it elsewhere where you can poke at it14:19
blackflowoffline and/or remove the hdd14:21
Ussatmount it RO....and again, needs to be done asap to avoid overwriting it14:22
siavoshkcIf by any chance there is an automated backup. where may I find backups?14:26
UssatCould be anywhere depending on how its done/software etc14:28
UssatOUr backups are done nightly to a SAN then we have tape taken offsite14:28
Ussatso ya...could be anywhere14:29
blackflowbtw, side question. I have an enterprisey SSD here, supposedly sata3.1 @ 6Gbps, but a dd test shows only 420 tps and ~250MB/s in iostat.... sounds.... inadequate.14:29
lotuspsychjeblackflow: did you try the hdparm speedtest?14:30
lotuspsychjehdparm -tT /dev/sda something like this14:31
blackflowthat's next, I'm clearing out the SSD before I blkdiscard it14:32
lotuspsychjeblackflow: firmware to latest can also improve stuff14:32
lotuspsychjedepending wich brand14:33
blackflowSamsung Evo 840 something something14:34
sdezielsiavoshkc: maybe the machine owner has backups you could ask to be restored14:34
lotuspsychjeevo 840 needs firmware improvement patch blackflow14:34
lotuspsychjethere's a known speed problem on it14:34
tomreynUssat: check your cron jobs for anything which looks like it coud do backups, see if you have a process running which sounds liek a backup systems' agent.14:39
tomreynblackflow: evo is consumer, also14:40
blackflowit's already latest firmware14:40
Ussattomaw, ? think you meant that for siavoshkc14:41
blackflowtomreyn: technically, it's MZ7GE240HMGR but any info I managed to find on it is that it's a rebranded 840 evo14:41
tomreynUssat: you're right, thanks / sorry.14:41
tomreynsiavoshkc: check your cron jobs for anything which looks like it coud do backups, see if you have a process running which sounds liek a backup systems' agent.14:41
Ussattomaw, NP14:42
blackflowtomreyn: 845DC EVO14:42
tomreynblackflow: probably some slight firmware changes, maybe some extra spare cells.14:43
tomreyndoes fstrim -v report changes if you run it twice?14:47
tomreynthe 840ies can get really slow if you dont trim.14:48
tomreyn(or not successfully)14:48
blackflowI blkdiscarded the entire drive before testing14:51
tomreyni see14:52
cognitiaclaevesI have a python app, test-logger.py, that I've written to write a test log message to syslog. For only that type of message, I'd like to save the log message in a file, and send the same log message out to a log aggregator (loggly) -- I'm having trouble identifying what to filter the message on based on the journalctl output. https://pastebin.com/hGip2Zz215:22
cognitiaclaevesI think this can be done by creating two filters, one to save the log entry to a file, and a duplicate target to forward the messages to loggly.15:23
cognitiaclaevesblackflow, is that enough detail?15:24
blackflowcognitiaclaeves: not quite, it's not clear what exactly you're talking about. "save the log message in a file", "what to filter"..... are you talking about rsyslog rules?15:25
blackflowand how are you sending to loggly?15:25
cognitiaclaevesYes, rsyslog15:25
cognitiaclaevesLoggly has a page for that. If I can figure out how to filter the rule to a file, I think I can take it from there.15:25
cognitiaclaeves( for reference: https://www.loggly.com/docs/systemd-logs/ )15:26
cognitiaclaeves( Although, now that I look at it, it looks like that will forward all logs to loggly, not just the ones I want to target. )15:27
blackflowwhat's your rule like?15:27
cognitiaclaevesThat's what I'm trying to figure out.15:28
cognitiaclaevesThe documentation for rsyslog seems to refer to app_name and programme_name (I think), which I don't see in the journalctl output.15:28
blackflowwhat do you want to filter by?15:28
blackflowforget journalctl15:28
blackflowlook at syslog itself and what it's logging15:29
cognitiaclaevesblackflow, you lost me, sorry. It's a standard ubuntu system in aws.15:30
blackflowjournald is forwarding to rsyslog and you want to write rsyslog rules, correct?15:31
cognitiaclaevesRules specific to the app, yes.15:31
cognitiaclaeves( Don't know if journald is forwarding to rsyslog yet .. it may not be. )15:31
blackflowright, so don't look at journalctl, but look at what is rsyslog writing. by default it has *.*;... /var/log/syslog, so take a look at that15:31
blackflowit is by default15:32
cognitiaclaevesAh, that makes sense.15:32
blackflowalso look at the selectors documentation  https://www.rsyslog.com/doc/v8-stable/configuration/filters.html15:33
blackflowfor program name I think you'll need an if-clause, but it's definitely doable15:33
cognitiaclaevesI had planned to use a property filter for that.15:34
cognitiaclaeveshttps://www.rsyslog.com/doc/v8-stable/configuration/properties.html It shows up in the property list.15:35
cognitiaclaevesAnd now that I'm looking at /var/log/syslog, I can identify programname.15:35
blackflowyeah15:36
cognitiaclaevesOk, this might be enough to move forward with. Thanks!15:36
blackflowcognitiaclaeves: also keep in mind that journald by default does rate limiting. you'll have to remove it if you want _all_ messages forwarded to syslog and elsewhere15:36
cognitiaclaevesI just want a particular kind of message. I'll look into that. Will I also need to increase the open files setting for the OS?15:37
blackflowI don't see how open files are related here. you mean for rate limiting? for that, no. Only RateLimit*  entries of journald.conf(5)15:38
cognitiaclaevesOk, thanks.15:40
_Trullook, so I tried subnet: 255.255.255.0/24 .. didn't work, aparently it should be 192.168.1.0/24 to work properly, I have no idea how/why..16:52
_Trullopihole works perfect after like 20 reinstalls :)16:52
teward_Trullo: you typically won't use 255.* for anything.16:54
teward_Trullo: private IPv4 ranges that actually ARE private ranges are 192.168.0.0-192.168.255.255, 172.16.0.0-172.31.255.255, and 10.0.0.0-10.255.255.255 - only use Private IPv4 address space16:54
tewardand NOT 255.* because that's a reserved range16:54
blackflow_Trullo: look up RFC 1918 for more info17:43
trippeh_Trullo: /24 is just another way of saying 255.255.255.0 as a mask17:59
trippeh255.255.255.0/24 doesnt really make sense17:59
lordcirth_I just had a systemd service (keepalived) restart without any apparent reason. Any tips for tracing what called the restart?18:02
RoyKlordcirth_: check the logs and turn on debugging if necessary18:13
RoyKlordcirth_: check dmesg too - perhaps it crashed - if so, it should show there with a SIGSEGV being signalled to the process18:14
lordcirth_RoyK, nothing in the logs except it restarting18:14
RoyKlordcirth_: has this happened before?18:15
lordcirth_RoyK, not that I recall18:15
lordcirth_It's probably not a big deal, just weird18:15
RoyKI haven't seen keepalived just restart - anything in dmesg?18:16
RoyKrun dmesg -T to get somewhat proper readable timestamps18:17
lordcirth_RoyK, thanks, didn't know about -T18:21
lordcirth_Yeah, nothing in dmesg for 2 days18:21
RoyKhm - and no cron job or something in systemd doing something funny?18:22
=== svetlana is now known as sveta
lordcirth_RoyK, nope18:38
RoyKit's just funny it restarted without anything in the logs - if it crashed and systemd restarted it, something should show up in dmesg18:39
lordcirth_Yeah, I can't see any evidence of a crash18:39
RoyKdo you have any monitoring of the system? sysstat/munin/zabbix/something?18:40
lordcirth_RoyK, nagios, and keepalived emails me on all events, which is why I noticed ("Entering BACKUP state" on start)18:41
sdeziellordcirth_: maybe a colleague of yours restarted it? or an config automation tool (puppet/chef/etc)?18:45
lordcirth_sdeziel, yeah, I'm looking into that now18:46
lordcirth_Oh, duh. I issued a dist_upgrade this morning.18:47
RoyKlordcirth_: oh - nagios - is that still alive?19:07
lordcirth_RoyK, yes, although our install is way out of date. We are planning to upgrade to latest stable soon19:09
lordcirth_RoyK, what do you use?19:09
RoyKlordcirth_: I used to use nagios some years back, but we're moving everything to zabbix now19:11
RoyKwell - not everything - we'll be using NAV as well, https://nav.uninett.no/19:11
RoyKbecause it has a few things that we can't find in other tools19:12
lordcirth_RoyK, thanks, I will look at both. We have a custom inventory system with a lot of Nagios integration, etc, so we probably won't be moving19:12
tomreynnagios -> zabbix, so out of the frying pan into the fire?19:12
RoyKI talked to the guys at uio.no - they have quite a few servers and have moved to zabbix, from nagios.19:13
RoyKzabbix has a steep learning curve, but once you understand the architecture, it's rather neat19:13
lordcirth_RoyK, what key things does NAV have that Zabbix doesn't?19:14
lordcirth_Ah, it's more of a network thing?19:14
RoyKstuff like switch configuration, like VLAN setup of ports, if the switch supports snmp rw19:14
RoyKit is19:14
RoyKso it's like "why not both?"19:14
lordcirth_Very cool. We have a custom (argh) tool for that, which if it was open-sourced decades ago, might still be relevant.19:15
=== smoser1 is now known as smoser
RoyKlordcirth_: take a look - with a lot of hosts, you may want to use SSDs for the storage - *lots* of things getting updated for graphite (IIRC) so it requires quite a bit of IOPS19:17
lordcirth_RoyK, thanks. Our servers generally have mdraid1 SSDs for /19:17
RoyKshould do19:17
RoyKalthoguh I'd hate to have those things on the rootfs - I like to use separate storage or at least separate LVs for root and data19:19
siavoshkctomreyn: Thank you. Unfortunately there was no backup and its a real disaster. Tomorrow our host will try to recover the wordpress files. I hope they recover something useful. I just shutdown the server to prevent moe loss.19:27
siavoshkcI deleted a big running wordpress site in a blinl19:28
RoyKbackups are for cowards :D19:28
siavoshkcblink*19:28
sarnoldow19:28
siavoshkcRoyK: I cannot digest how there is no backup AT ALL for such a long running website19:28
RoyKan acquaintance19:28
RoyKan acquaintance of mine just found out the hard way that having a home server with 40TiB or so of storage and no backup is a bad idea - RAID6 isn't backup - bad, cheap controllers - oops19:29
tomreynsiavoshkc: sorry to hear this, good luck.19:29
siavoshkcThe only good thing is that wordpress keeps many of its data in db19:30
RoyKsiavoshkc: usually, there's chances of recovery, at least if the data resides on a RAID19:30
RoyKsiavoshkc: the text is in the db, the images etc are on the filesystem19:31
lordcirth_RoyK, yet another reason I use ZFS, not hardware raid19:31
siavoshkcRoyK: Yes so many things are lost19:32
RoyKlordcirth_: the only reason I don't have zfs on my home server, is the lack of flexibility - I've worked with rather large zfs systems for some years - they just work19:33
lordcirth_RoyK, yeah, btrfs's ability to add disks and bodge storage together is very nice. LVM and such are good too.19:33
RoyKlordcirth_: but then - if you have a home server and want to toss in a new drive to expand things a bit, zfs won't do (for now)19:33
RoyKlordcirth_: I don't trust btrfs (yet)19:34
lordcirth_I'm actually running / on ZFS raidz at home. 3 480GB SSDs. It's great19:34
RoyKlordcirth_: it's been 10 years or so with btrfs and it's still not stable19:34
lordcirth_Yeah, turns out writing 5th gen filesystems is hard. Who knew? :P19:35
RoyKbut extending VDEVs on zfs is coming - I think it's in fbsd already19:35
lordcirth_Oh, cool. I'm looking forward to 0.8's encryption and faster scrubs19:38
lordcirth_We have a major dataset at work that takes nearly a week to do a weekly scrub19:38
RoyKthen don't scrub weekly :รพ19:38
RoyKseems we're tossing out a server soon with 48x4TB disks - with a bit of luck, I could perhaps take it19:39
sarnoldI'm looking forward to encryption and the 'special' vdev support19:40
teward@RoyK: send me a few of the disks lol?  xD19:40
teward:P19:40
tewardalways in need of disk expansion on my array of disks lol19:40
RoyKthat supermicro mobo would be nice as well as the controllers19:40
sarnoldwhat's rplacing that beast? :)19:41
RoyKdell compellent19:41
RoyKwell, that is, dell equallogic, old stuff - just used for CCTV cameras19:42
RoyKbut some people at the IT dept think that ZFS and mdraid and such things are black magic and would rather sell their soul to something with a nice gui19:42
sarnoldokay, it *would* take like five minutes to type out the zpool create command with 48 devices..19:43
RoyKyeah - it's pretty hard - and dark magic - and checksums the data and all, whcih equallogic certainly doesn't (nor does compellent)19:44
RoyKbut Dell Provides Support, meaning they tell us they need a crapload of logs and then blame us for doing something stupid19:45
RoyKor just say "we don't know yet"19:45
RoyKlike when that blade centre went down during the holiday - it's powered via a UPS and one direct line - six PSUs - the UPS had some dead fans and had serious issues, but the power from the direct line was stable, but still, the blade centre just powered itself off and too all its VMs with it19:47
sarnoldowwwwwww19:50
lordcirth_six PSUs, and one failure brought it down?19:50
lordcirth_Or, half of the PSUs were on the UPS?19:51
RoyKhalf on UPS half on direct19:51
RoyKbut it should be able to run on two PSUs19:51
lordcirth_Its documentation says 2/6 is enough?19:52
RoyKyes19:52
RoyKand 3/6 should at least be sufficient19:52
RoyKbut for some reason, it just powered itself off19:53
RoyKDell hasn't been able to give us an explaination of this19:53
lordcirth_I bet they'll eventually say "oh, that's for if the power just cuts, dirty power is unsupported"19:53
RoyKsomething like that, yes19:54
sarnold2-of-6?? wow19:54
tomreyn"you forgot to install the firmware update to the psu's"19:57
tewardlol19:58
RoyKtomreyn: hehehe20:10
RoyKtomreyn: please update firmware daily and make sure you have redundancy elsewhere20:10
tomreyn:) i've heard a couple funny excuses already. but in the end we all just try to not become the victim of the bad conditions we have to (?) work under.20:16
zertyuiohello there21:39
zertyuioanyone used to work with mdadm everydays ?21:40
tomreynzertyuio: i'm sure there are people here who worked with mdadm before, or do so daily. but that's not your actual question. please ask your actual question.21:42
tomreynand hello there, too ;)21:42
zertyuiohere is my disk of 20Go https://pastebin.ubuntu.com/p/vfnTxgdK7g/ i would like to resize it to 950Go21:43
zertyuiohow i can do so ?21:44
zertyuiowithout losing data21:44
tomreynthis is very easy:21:44
tomreynyou do backups.21:44
tomreynzertyuio: about resizing, how would you do this when there is no unallocated space?21:46
zertyuioeasy for you mean not easy for everyone21:46
zertyuioas you can see on my post : https://pastebin.ubuntu.com/p/vfnTxgdK7g/21:47
zertyuiothere is something above 900GB of free space to use21:47
zertyuioi would like to do so the same way that we used to do with lvm and fdisk21:48
lordcirth_zertyuio, firstly, yes, do a backup.21:49
lordcirth_zertyuio, then, you can follow this: https://raid.wiki.kernel.org/index.php/Growing#Expanding_existing_partitions21:49
zertyuiohow you can backup system volume ?21:50
lordcirth_Skipping the first few instructions that are about switching the larger disks, of course21:50
lordcirth_zertyuio, the root filesystem?21:50
lordcirth_!backup21:50
ubottuThere are many ways to back your system up. Here's a few: https://help.ubuntu.com/community/BackupYourSystem , https://help.ubuntu.com/community/DuplicityBackupHowto , https://wiki.ubuntu.com/HomeUserBackup , https://help.ubuntu.com/community/MondoMindi - See also !sbackup and !cloning21:50
zertyuioi would like to do so from rescue cd21:51
zertyuioare you sure about the link that you post ?21:53
zertyuiofor backup ?21:53
tomreynzertyuio: what makes you wonder about it?21:56
zertyuiowhich it ?21:56
tomreyn<zertyuio> are you sure about the link that you post ?21:57
tomreynzertyuio: these links should indeed help creating a backup21:58
zertyuioyes, for example if you take example of duplicitybackup21:58
zertyuioit ask to install a package inside the system21:58
zertyuioi m not sure that it will does some good backup21:59
zertyuioif i follow so21:59
zertyuioi m expecting something that i can boot from rescue cd21:59
zertyuioand mount the partition22:00
zertyuioand backup the whole thing22:00
tomreynthis is cloning / imaging, bare metal recovery, but not backup.22:00
tomreynyou don't want to have to stop your system every time you create a backup, right?22:01
zertyuioyeas22:01
zertyuioso i install duplicity22:02
tomreynso you backup only data that you will want to restore. this also enables you to do smaller, incremental, backups, of just the data you actually need. if the OS storage fails or breaks and you need to reinstall, then you just do that, restore configurations from your backup, and restore other data from your backup, and you're set.22:02
zertyuioin order to so22:04
tomreynwhat you had on your mind about cloning / imaging can be done with clonezilla-live, a bootable linux distribution for this single purpose. this is not a proper backup, but something you can do now if it'd make you feel better about it.22:04
zertyuiowait22:05
zertyuioin order to so22:05
tomreyn?22:05
zertyuioi have to seperate all data need to be backup before22:05
zertyuiowithout mixing with system partition22:06
zertyuiothat task i forgot to so22:06
zertyuioi don't have separate partition for data22:06
tomreynmaybe you should have22:07
tomreynideally separate disks, so you don't have OS and data fail at the same time.22:08
zertyuioi think i found the best way22:08
zertyuioi will reboot my system22:08
zertyuiowith rescue cd22:08
zertyuioand mount my /22:08
zertyuiothen tar -cvf /22:09
zertyuiowill be the best way i think22:09
zertyuiois it the best way ?22:10
hal529Hi.  I've an ubuntu 16LTS server.22:12
hal529It boots/operates from a 2-disk RAID1 array.  Works great; has for ages.22:12
hal529I just noticed in startup logs, on exec of "/lib/systemd/systemd-modules-load", these ,essages --> "Module 'loop' is builtin" & "Failed to find module 'md'".22:12
hal529In /etc/modules, there _are_ "loop" & "md" entries.22:12
hal529I've never touched this on this box -- so something, maybe default install, added these.22:12
hal529Do I *need* either?  Safe to remove them?22:12
tomreynzertyuio: this is surely not the best approach for regular backups (since it involves rebooting the systemjust for that), but maybe it is a good approach for your preparation of the RAID array changes.22:13
zertyuiolet me do that first22:14
tomreynzertyuio: note this approach may not enable you to backup databases and other data structures which require to be backued up in a special way (such as a database dump).22:14
tomreyn!yy.mm | hal52922:15
ubottuhal529: Ubuntu version numbers are: YY.MM (YY=release year,MM=release month). Each year sees two releases, so just specifying YY is imprecise. See also https://www.ubuntu.com/about/release-cycle22:15
tomreynhal529: but you made it clear enough that you have some patch level of ubuntu 16.04 LTS22:15
zertyuioman you are doing the backup / how database can be exclude ?22:15
tomreynzertyuio: read the wikis you were pointed to, i can't explain everything.22:16
hal529tomreyn: I asssume since you're asking, it makes a difference to my question?  Here, I've "Description:    Ubuntu 16.04.5 LTS"22:16
zertyuiojust tell what you read about that ?22:16
zertyuiojust tell mewhat you read about that ?22:17
tomreynhal529: so loop is for loop mounts, such as you'd need for snaps, maybe ISO image mounts. md is for software RAID, managed via mdadm.22:19
tomreynzertyuio: do you have databases?22:19
hal529tomreyn: SUre.  I know what they're _for_.  I'm unclear why ubu's complaining about them here ... and what should be done about it.22:20
hal529I clearly _have_ raid in place & working; mdadm's fine.  So that 'md' in /etc/modules -- and the 'failed to find' message suggest that's not necessary, done somewhere or somehow else, etc.22:21
tomreynhal529: i guess if you don't have a software raid it should eb safe to ignore these messages, which are probably just warnings?22:21
hal529I *do* have software RIAD -- that's the point.22:22
zertyuioyes of course i got databases22:22
hal529RAID, even ...22:22
tomreynhal529: i was typing this when i hadnt spotted your message, yet22:22
tomreynzertyuio: which ones then?22:22
hal529np22:22
zertyuiomariadb22:22
tomreynzertyuio: then learn how to backup mariadb and then continue with the file based backup.22:23
tomreynhal529: did you reboot since, or is it that you're wondering whether that's safe now?22:23
zertyuiojust tell me22:23
tomreynzertyuio: just read it22:24
zertyuiowhy saving / can not affect database ?22:24
hal529tomreyn: sorry, 'since' what?  I get these messages every boot.  It's been this way for ages.  I'm _now_ paying attention to the messages.22:24
zertyuiofor me it is not logical22:24
hal529I didn't add these lines.  They are causing warnings/errors messages on boot.  Don't know if that's real problem, or just noise.22:25
tomreynhal529: i see. i wouldn't worry about them if it doesn't impact your ability to boot.22:25
tomreynhal529: interestingly i can't find any other mention of this message on the web: Failed to find module 'md'"22:28
hal529... which is why I'm in here ...22:28
tomreyndo you have a custom kernel?22:29
hal529nope22:29
tomreynor custom core packages such as systemd?22:29
hal529nothing custom.  bog-standard ubu16, with a zimbra mail server install on it.22:29
tomreynis this message printed when you "systemctl restart systemd-modules-load.service"22:29
hal529it _got_ to v16+ thru countless upgrades over the years -- NOT a clean install22:30
hal529nope, a systemd restart of that unit FAILs -- because of these messages22:30
hal529it seems ...22:30
tomreyncan you show the full output?22:30
tomreyn!paste22:30
ubottuFor posting multi-line texts into the channel, please use https://paste.ubuntu.com | To post !screenshots use https://imgur.com/ !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic.22:30
hal529sucks ... I was gonna paste 10K+ lines in here ;-p22:31
tomreynsorry if i asked bafore: is the system fully patched?22:31
hal529oops.  shucks!22:31
hal529yes, fully patched.  will pastebin in a sec ...22:31
tomreynyou can install pastebinit and pipe into that or  | nc termbin.com 999922:32
hal529i'm a less-is-more kinda guy.  "One moment please  ..."22:32
hal529tomreyn: --> https://paste.fedoraproject.org/paste/RK6-HNXYLdlCm1b525Yd3Q22:34
hal529and, fwiw -> https://paste.fedoraproject.org/paste/PoN735TdWLjr0QTHgWt6Ug22:35
tomreynhttps://termbin.com/ug6y is what i get on a 16.04 *desktop* for "sudo systemctl status systemd-modules-load.service 2>&1"22:38
tomreynrestart of this service gives 0 output there22:39
hal529and what's in _your_ /etc/modules ?22:39
tomreyn$ find /etc/modules-load.d/*.conf /run/modules-load.d/*.conf /usr/lib/modules-load.d/*.conf 2>&1 | nc termbin.com 999922:41
tomreynhttps://termbin.com/e6gm22:41
tomreyn$ cat /etc/modules | nc termbin.com 999922:42
tomreynhttps://termbin.com/y41v22:42
tomreynblank22:42
hal529"First base"!22:42
tomreyni should have a 16.04 server somewhere, looking22:43
hal529I never touched that file.  Ok, modify that -- within the limits of my long-term memory ...22:43
tomreynmine is very weak there, but you could inspect the timestamp and compare it to the installation data22:44
tomreyn*datE22:44
hal529On ubu, there IS a /lib/modules/4.15.0-45-generic/kernel/drivers/md/raid1.ko.22:44
hal529There is *no* ".../md.ko" to be found22:45
tomreynyou run a HWE kernel there22:45
hal529Yep, standard upgrade procedure.  Seems that all the 'non-complaining' entries in /etc/modules each _do_ have a correcponding "*.ko".  Neither "loop" nor  "md" , otoh, *do*.22:47
tomreyn# ls -l /lib/modules/4.4.0-*/kernel/drivers/md/raid1.ko22:47
tomreyn-rw-r--r-- 1 root root 62078 Dec  5 15:15 /lib/modules/4.4.0-141-generic/kernel/drivers/md/raid1.ko22:47
tomreyn-rw-r--r-- 1 root root 65182 Jan 17 00:42 /lib/modules/4.4.0-142-generic/kernel/drivers/md/raid1.ko22:47
hal529Which _suggests_ that they can (should?) be removed.  When it comes to fubar-ing RAID arrays, especially *boot* arrays, I tend to wanna know WTF I'm doing first ...22:47
hal529Are you *using* RAID?22:48
tomreynno22:48
tomreynbut i'm on one where i do now22:49
hal529Well, then I certainly wouldn't expect the module even to be automagically loaded by some install/setup/etc process22:49
tomreynon the md raid1 server i have an empty /etc/modules22:50
tomreynso just comments22:50
tomreynand # ls -l /lib/modules/*/kernel/drivers/md/raid1.ko22:50
tomreyn-rw-r--r-- 1 root root 60526 Jan 19  2018 /lib/modules/4.4.0-112-generic/kernel/drivers/md/raid1.ko22:50
tomreyn-rw-r--r-- 1 root root 62078 Jun 14  2018 /lib/modules/4.4.0-130-generic/kernel/drivers/md/raid1.ko22:50
hal529not even a 'raid1' line?22:50
tomreynno22:50
tomreynjust lines starting with #22:50
hal529clean-installed, recent ubu?  or upgraded from prior versions?22:51
tomreynthis one should have been installed as 16.04 initially. /etc/initramfs-tools/modules is also empty except for comments22:51
hal529hm.  wonder if it's a carryover/artifact from prior installs ...22:52
tomreynMODULES=most in /etc/initramfs-tools/initramfs.conf22:52
tomreynwhat is yours set to there?22:53
hal529I have neither such a file, nor its parent dir ...22:54
tomreynyou sure you're running ubuntu?22:54
tomreyn;-)22:54
hal529heh.  i wasn just typing the same snarky question!22:55
tomreynis this amd64?22:55
tomreyn# dpkg -S /etc/initramfs-tools/initramfs.conf22:55
tomreyninitramfs-tools-core: /etc/initramfs-tools/initramfs.conf22:55
tomreyndo you *have* an initrd?22:55
hal529it's an AMD E-350.22:56
hal529sure -> initrd.img-4.15.0-45-generic22:56
tomreynhow is it generated if not by initramfs-tools?22:57
tomreyndo you have initramfs-tools and initramfs-tools-core installed?22:57
hal529for me, here, " lsmod | egrep "loop|raid|md"" -> https://paste.fedoraproject.org/paste/xgdfYRiojL~VE0TnDktBXA22:58
hal529yes -> https://paste.fedoraproject.org/paste/1L72h8s2GexvSxq~4SSHKQ22:58
tomreynso initramfs-tools-core is installed, which /etc/initramfs-tools/initramfs.conf belongs to, but you don't have the file. this suggests the package was not properly installed.23:01
hal529wait .  fubar <- pebkac.  fat thumbs alert!23:01
tomreynmy lsmod looks similar btw23:03
hal529https://paste.fedoraproject.org/paste/do6cqK5FCZk7CbkwQ-HS5A23:03
hal529yes, MODULES = most23:03
tomreyni just did "systemctl status systemd-modules-load.service" and "systemctl status systemd-modules-load.service" on this server with md raid-1 and while both generate output, no module warnings ar eprinted23:06
tomreyn/etc/modules is empty, and so are /etc/modules-load.d/*.conf /run/modules-load.d/*.conf /usr/lib/modules-load.d/*.conf23:07
tomreynhal529: sorry i can't help more, but i'm really sleepy and should wrap it up here.23:08
hal529np o/23:08
tomreynbye bye23:08
jonfatinoAnyone here a ubiquity master? I am trying to install ubuntu from ubuntu livecd with a bash script. Not launching the installer via gui. I already have a preseed file.23:15
=== JanC_ is now known as JanC
=== Kamilion|ZNC is now known as Kamilion

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