/srv/irclogs.ubuntu.com/2017/05/17/#ubuntu-server.txt

masonHey all. I'm moving some VMs over from CentOS, and I've got my bridge set up, but I'm struggling to figure out how to aim virt-manager at it. Is attaching to an existing bridge possible with virt-manager?01:07
pmatulismason, you have a ubuntu server acting as a KVM host and you want to manage its VMs from a desktop?01:08
masonpmatulis: Well, from a combination of virt-manager and virsh.01:08
sarnoldhey mason :)01:09
masonsarnold: o/01:09
masonpmatulis: I don't like the three pages of command line I need to define new VMs with virsh. I like the wizardly approach.01:09
masonAh, maybe it's an issue with virt-manager. Just noted https://bugzilla.redhat.com/show_bug.cgi?id=135590701:11
ubottubugzilla.redhat.com bug 1355907 in netcf "Unable to use / create existing NetworkManager bridge" [Unspecified,New]01:11
mason(although I made my bridge manually, not with NM)01:11
pmatulismason, ok, so your KVM host has a bridge, say br0?01:12
masonIt is indeed br0.01:12
mason(FWIW, I've spent years with Xen, so KVM is still fairly new to me. Also, bridging still seems slightly alien to me.)01:13
pmatulismason, so you are now trying to configure a connection to the KVM host from virt-manager right?01:13
masonNo, that's easy - I can connect to it. I want to be able to define new virtual machines using the existing bridge.01:14
masonIf from the Virtual Network tab I say to add a new one - call it foo - and I turn off address space definition, I come to a choice of isolated virtual network for forwarding to a physical network. This has a popdown that doesn't end up listing br0, although it lists the underlying ethernet interface.01:15
masonIt seems unhappy with this, and complains that I haven't provided an IP address for network 'foo'01:16
pmatulismason, what ubuntu release is running on the desktop?01:17
masonvirt-manager seems willing to create new bridges for me, but it's not seeing the existing one01:17
masonpmatulis: This is all on a single Xenial box.01:17
masonI'm not unwilling to edit virt-manager or libvirt config, but it seems odd that I'm running into a wall here.01:18
pmatulismason, you mean the kvm host is running a graphical environment?01:18
pmatulis(just one machine?)01:18
masonpmatulis: It is, yes. nVidia proprietary drivers even. Sometimes Steam runs alongside the virtual machines.01:19
masonYeah, not a cluster.01:19
masonBut even so, it seems like I should be able to use the existing bridge.01:19
masonI'll go compare the old config from the CentOS environment.01:19
pmatulisi have not needed to configure that stuff in a while. it automatically chooses the bridge. although i've never run it on kvm host itself before01:20
masonpmatulis: So, under CentOS, it offered to make a bridge for me, and it set it up itself, but now that I'm back on Ubuntu with the very comfortable /etc/network/interfaces and friends, I just made the bridge myself. I would have run into this same issue on CentOS I guess.01:20
masonFWIW, the bridge config is largely identical to what I used for a long time on Debian/Xen, and it seems to be working fine.01:21
sarnoldhrm, when I hit the 'specify shared device name' i get a field for bridge name01:21
sarnoldbut no idea how to use it; does it work? :)01:22
mason(Backstory: It's my desktop, and I use it as a lab environment for work reproductions as well.)01:22
masonsarnold: It's a freeform field I believe.01:22
masonlooking01:22
masonsarnold: Wait, where did you find that?01:22
masonIf I could "specify shared device name" I think that's where I'd point it at my bridge, but I haven't found something with that wording as yet.01:24
sarnoldmason: 'open' a vm, hit the 'i' icon, focus the 'nic:xx:xx:xx' entry in the sidebar on the left; then the 'Network source' dropdown box01:25
masonOh, I don't have any VMs defined yet. Hrm.01:26
sarnoldohhhhh01:26
masonTrying to set up the virtual network in advance.01:27
sarnoldI just used what I had rather than going through the wizard01:27
masonThat said... In the CentOS /etc/libvirt, I do only see the bridge defined in actual VM .xml files.01:27
sarnoldbah and the wizard gets real personal real quick "give us an install media" uhhhh let me just click!01:27
masonheh01:27
masonI'll make a VM and see if I can back my way into the right bridge.01:28
sarnoldaha, step 5 of 5, there's a weeeeee tiny little triangle near the text Network Selection01:29
masonThat's where the "specify" field is. Trying it.01:29
sarnoldhit that little triangle and there's a dropdown, change that to "Specify shared device name", and that adds a new text field to the dialog box01:29
masonYep!01:30
masonSo, *somewhere* in the config there exists a way to specify that so I can pull my bridge off the menu, rather than typing in br001:30
sarnoldI <3 that a simple text field is hidden behind two separate "this is too advanced for you" things01:30
masonhehe01:30
masonSo, under Xen/Debian I *loved* xen-tools to set up most of my defaults. Is there such a thing for KVM/libvirt under Ubuntu?01:31
sarnoldno idea what xen-tools does.. the server team put together a uvt-tool that tries to abstract over a bunch of libvirt things01:31
masonI'll look at it.01:32
masonxen-tools lets you set up a set of prefs, so you only had to specify deviations when creating a new vm01:32
sarnoldbut I lose track of things right about the time I find out that I've got to hand-edit xml in order to use zfs datasets for backing devices01:32
masonhalf a sec01:32
masonsarnold: Oh no no no!01:32
masonvirt-manager makes that easy01:32
sarnolddoes it?01:32
sarnoldmaybe I can skip my libvirt NIH then01:32
masonsay "yeah, I want storage, but I'll specify the device"01:32
masonDo you use Xen?01:33
sarnoldno01:33
masonOr just straight KVM?01:33
sarnoldyeah01:33
masonAnyway, you get a freeform text field, and you can say things like: /dev/zvol/zroot/vm/foo01:33
mason...which is what I did for this test VM.01:33
masonWorks fine.01:33
sarnoldfor some reason the libvirt based tools never seem to work real well for me, so I set out to write my own qemu wrapper becase How Hard COuld It Be? three months later and it still doesn't boot any machines. lol.01:33
masonAlso, FWIW, your "specify" option you noted works fine. Spun up my VM, and I could pull an address from DHCP.01:34
sarnold\o/01:34
masonsarnold and pmatulis: If you're *not* using virt-manager, is there a reasonable way to get a console on a new VM you're building right off?01:34
masonPart of my using it is ignorance of the options.01:35
masonSo I configure stuff with virt-manager, but then randomly start/stop things with virsh or virt-manager, depending on what's in front of my at the moment.01:35
masons/my/me/01:35
sarnoldmason: one of my coworkers on the security team wrote a wrapper around the libvirt wrappers :) so the idea is you'd use 'uvt new precise amd64 hostname-here' to build the machine with defaults from a config file, then 'uvt start hostname-here', 'uvt stop hostname-here', 'uvt view hostname-here', etc01:39
masonOh, right, I was going to get some config snippets, speaking of wrappers.01:39
sarnoldmason: but the tool requires so much security-team specific tooling that it's probably worth looking at the server team's 'uvt-tool' instead. (completely different uvt. oops.)01:39
masonheh01:39
masonSo, xen-tools has a config that lets me specify a default volume group (LVM-centric) for VM disks, lets me specify debootstrap or rinse or various install methods, lets me set default sizes for memory, swap, disk, fs types, default networking types.01:40
sarnoldsounds lovely :)01:41
masonAnd then when I want to create something, I don't have to say much. Example:01:41
masonxen-create-image --hostname=FOO --mac=DE:AD:BE:EF:00:**01:41
masonor if I want to override debootstrap and make it a CentOS box, I could say:01:41
masonxen-create-image --force --hostname=centos --mac=DE:AD:BE:EF:00:06 --install-method=rinse --dist=centos-601:41
masonI'd love something similar for KVM/libvirt, so I'll look at that uvt-tool stuff.01:42
sarnolduvt-tool may be too specific to ubuntu01:42
masonWhenever I see how people specifying a metric tonne of options on a command line for virt-install, it kind of horrifies me.01:42
masonMaybe. I tend to run Ubuntu, FreeBSD, CentOS, and varieties of RHEL on this.01:43
masonSo, compare my xen-create-image, above, with the example they give for virt-install here: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualization_Host_Configuration_and_Guest_Installation_Guide/sect-Virtualization_Host_Configuration_and_Guest_Installation_Guide-Guest_Installation-Creating_guests_with_virt_install.html01:44
compdoci let virt-manager do all the work for me01:44
masoncompdoc: Yar. The trick is that if virt-manager didn't define your bridge, you have to invoke Mickey Mouse to specify an existing bridge, it seems.01:44
compdocI create the bridges manually01:44
masoncompdoc: Same. Is there a way to not have to type the bridge name into virt-manager, so as to make that bridge the default?01:45
masonThat's what started all this. :P01:45
compdocall bridges and interfaces appear as drop-down lists01:45
compdocerr, no. as a list01:45
masoncompdoc: It doesn't here - I have to specify a shared device. If I type my bridge name into that field, it does the right thing.01:46
masonThe difference is that on CentOS I could have a default network selected, so I could whip past that. Not a big deal, but it struck me as an odd difference.01:46
masoncompdoc: FWIW, it seems to exist elsewhere too: https://bugzilla.redhat.com/show_bug.cgi?id=135590701:47
ubottubugzilla.redhat.com bug 1355907 in netcf "Unable to use / create existing NetworkManager bridge" [Unspecified,New]01:47
compdocoh. heh. network manager. I tend not to install that on Server01:47
sarnoldmason: at least that example's easy enough to shove into a shell script01:47
masoncompdoc: Same here. But I'm not using it - the problem is the same though.01:47
masonsarnold: That's true. And I could wrap it easily enough. I'm just... lazy... I guess. :P01:48
masonPlus, I like popping right into a console, which virt-manager makes easy.01:48
masonIn any event, I think I have enough to get my VMs moved over now. =cheers=01:48
masonI need to move this channel to a better window. It's /window 41 now.01:49
sarnoldit's /win 30 for me01:49
sarnoldnot ideal, since #debian-security is /win 38 and the idfference between the two is mighty small01:49
masonThere, not it's /window 4. I made #zfs and #openzfs share a window. They're both mostly dead, so it'll work.01:50
masons/not/now/01:51
sarnoldhehe01:52
masonSo, there were a lot of niggling little changes needed. Some examples: s/pc-i440fx-rhel7.0.0/pc-i440fx-xenial/g s/Skylake-Client/Broadwell/g were the big things.03:06
masonThat said, my VMs are happily moved.03:06
cpaelzergood morning05:31
=== danpawlik_absent is now known as dpawlik
=== Guest95054 is now known as lordievader
=== lordievader is now known as Guest95840
=== Guest95840 is now known as lordievader
helpImStuckSo.. I want to create a lxc router where the physical nic are bound to the container and removed from rest of the system. Is this possible?08:25
ikoniahelpImStuck: it would be quiet hard as the kernel is what provides netfilter and the container would need to interact with the kernel to update the rules08:32
ikoniahelpImStuck: it seems like a bad idea, when a VM would work better if you require it virtualized08:33
ikoniaalso securing a containers interface is quite tricky08:33
helpImStuckso what are the containers good for? I tried alpine and acf . it was cool.08:36
ikoniaalpine...ha ha ha ha ha ha ha ha ha ha08:46
ikoniahelpImStuck: self contained mass immuatable deployment08:47
helpImStuckAnd what does that even mean xD immutable .08:49
helpImStuckhelpImStuckAndMyEnglishSuck should i name myself here08:51
ikoniahelpImStuck: "throw away"08:51
helpImStuckand why not alpine? They've created a small distro with.. hm. didn't work so well. small things like it didn't save my keymap after boot. And it's been along for a long time.08:52
helpImStuckit's good in theory08:53
ikoniasmall != good08:54
helpImStuckI like lxd 2 because i can run arch and have all the packages from yaourt on an ubuntu base..08:54
ikoniawhat ?08:54
helpImStuckYes, small, not so complex08:54
ikoniacomplex...it's very complex08:54
ikoniathey have applied some custom security patches08:55
ikoniathey have made their own "odd" package manager format08:55
helpImStuckare unprivileged lxc container safer?08:55
helpImStucks08:55
ikoniasafer than what ?08:56
helpImStuckalpine on xen08:57
ikoniaI can't / won't comment on other setups like that08:57
ikonia#ubuntu-server is for ubuntu server based support08:57
helpImStuckthis is that channel08:57
ikoniahow secure/good alpine is isn't as a container guest isn't really for this channel08:57
helpImStuckbut you can use alpine in a lxc container.. so it's related08:58
ikoniano it's not08:58
ikoniayou can use almost any OS in a container08:58
ikoniahow good that OS is as a container isn't really ubuntus issue08:58
helpImStuckand then, for someone to get support if they use ubuntu server + lxc and let's say arch.. they have to look for help on the arch wiki instead of here? Even tho both os:es are involved08:59
ikoniahelpImStuck: if they are having problem with the arch container, yes09:00
ikoniaif they are having problems with the ubuntu host hosting the container, no09:00
helpImStuckoh.. now i get it.. LXD is not ubuntu specific09:01
helpImStucklxd/lxc09:01
helpImStuckit can't be. i'm using ubunt userver as host for the containers09:04
helpImStuck-u09:04
ArchaicLordMorning all!    Could use some help and mentoring please..     I had a ubuntu server which  was installed on  a usb. It then had a seperate raid array which i was using for meida sharing.           I moved house and as a result the easist thing seemed to be to reinstall the ubuntu. which i have now done. I pluged the raid disks back in and to my suprise unutu seems to have picked it up. The issue I have is rec10:00
fallentreeThe issue you have is unfinished senten10:06
ArchaicLordSorry, its hard to see a lot of text in a tiny box10:10
ArchaicLordSo fdisk -l  produces Disk /dev/md0: 3.7 TiB, 4000529252352 bytes, 7813533696 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 524288 bytes / 1048576 bytes10:11
ArchaicLordthis is the raid I previoulsy set up10:11
ArchaicLordand its been picked up automaticly10:12
ArchaicLordlv display shows the two volumes I created previously. will having different host names cause an issue10:13
fallentreehostnames? no, hostnames have nothing to do with software raid or LVM10:13
ArchaicLordor do I just need to configure SAMBA ?10:14
fallentreeArchaicLord: what problem do you have that you wish to solve?10:15
=== Daviey_ is now known as Daviey
ArchaicLordI am trying to reimpliment the old array.10:15
fallentreedefine reimplement. From what you say, Ubuntu picked it up automatically.10:15
ArchaicLordyes it has.. I can see it I can view it locally, so I guess I just need to set up samba config to complete it10:16
fallentreeyeah, if you want to export it over smb/cifs protocols10:17
ArchaicLordi have a feeling I may have mapped the lvm to another place on the previous setup ..10:38
ArchaicLordI can cd to /dev/file-server/    inside here i have 2 folders    but when I can't cd into them. when I do ls -l IU get folder -> ../dm-0 /-110:39
ArchaicLordwow my typing sucks.10:40
fallentreeArchaicLord: LVM is mapped under /dev/mapper/10:42
fallentreeprobably something like /dev/mapper/vg0/...   where vg0 is the volume group name10:42
fallentreeArchaicLord: oh also, you have to mount the lv somewhere, the stuff under /dev are (mapped) block devices10:46
ArchaicLordwould that be like mounting to md010:47
fallentreeArchaicLord: not 'to' but 'of'. eg. mount /dev/mapper/lv-foo /mnt/someplace10:48
fallentreeyou mount the lv inside vg on a pv :)10:48
fallentree(to a directory)10:48
fallentreeiirc lvscan will tell you what the logical volumes you have available10:49
fallentreetheir labels are available as block devices under /dev/mapper/10:49
fallentreeit's been a while since I LVM'd10:49
ArchaicLordLOL.. sorry fallentree.. My trouble is I previously set it up over a year ago.  I was doing it for the first them and found it hard.10:49
ArchaicLordnow i have a fagiue memory and can't rember exaclty how it was set up10:50
ArchaicLordlvscan gives me this10:51
ArchaicLord ACTIVE            '/dev/file-server/plex-share' [1.50 TiB] inherit   ACTIVE            '/dev/file-server/server-backup' [1.50 TiB] inherit10:51
fallentreeI suppose those are the mountable names10:52
fallentreeeg. try `mkdir -p /mnt/plex-share && mount /dev/file-server/plex-share /mnt/plex-share`10:53
fallentreesame for server-backup, then see if you can access files under /mnt/plex-share and /mnt/server-backup10:53
ArchaicLordahh so i needed to mount the directory11:01
ArchaicLordmounting to /mnt/ allows me to cd into the share11:01
ArchaicLordnow i just need to sort out permissions11:02
ArchaicLordthank you11:12
ArchaicLordfallentree  thank you all sorted.. In windows I can now access the foleder and create new files11:13
fallentreenice.11:13
fallentreebtw be careful with windows and smb... there's that wannacry thing :)11:13
ArchaicLordwhats that?11:14
ArchaicLordoh the ransom ware thing11:14
fallentreethe ransomware that's been hitting the news for the past few days?11:14
fallentreeyah11:14
fallentreemake sure you disable smbv111:14
fallentree(on the windows side)11:14
ArchaicLordok will do that... I have just finished universtiy. I aquired a job for a company currenlty using ubuntu as their main os so I am hoping I can fully switch out of windows. BUt I will need to keep my windows instance for a bit11:16
ArchaicLordjust in case11:16
ArchaicLordand I think I can' tplay  a few games on linux11:16
fallentreeArchaicLord: WINE never ceases to amaze me how smoothly it can run some things :)11:20
ArchaicLordyeah  I have dabled with it.. I have never been able to get it to run League of Legends11:20
ArchaicLordwhich is ultimtly the one game I adore the most11:20
ArchaicLordbut agian there is a lot I dont understand about LInux and I can't retain the info either11:21
ArchaicLordI was hoping once I got my ubuntu server up and running hosting my files to look into if i can package up my widnows as is and transfer it into a kvm inside ubuntu11:22
ArchaicLordso for hosting files/ streaming music/dvds what would be ur suggestion?11:22
fallentreesuggestion for what?11:25
ArchaicLordserver application to host music, films and my own files11:32
ArchaicLordso then i dont need to use spotify, google docs  and things11:32
fallentreeI wouldn't know what to suggest.11:32
fallentreeI don't deal with that kind of services11:32
ArchaicLordno worries thought I would ask incase there is anything new11:33
ArchaicLordwell I am pleased I didn't have to trash the raid adn start again :D11:33
ArchaicLordthanks again fallentree11:33
aoamhello12:08
aoamid like to ask, is it possible to set lxd containers to be separated (do not see each other) and see to internet, but not in the way when i setup /etc/network/interfaces, but setup /31 from lxdbr or somehow like that, thanks12:09
cpaelzeraoam: you can create two bridges instead of only the default lxdbr0 and link them up to one or the other - would that suit your needs?12:10
aoamim going to have more containers, maybe .. 80, isnt that problem?12:11
cpaelzeraoam: no problem12:11
aoamso it would setup per conteiner one bridge12:11
cpaelzeraoam: I don't know the limit on bridges thou, but it should work12:12
cpaelzeraoam: essentially you can have a script that sets up a custom bridge the way you want it, and then creates a lxd profile to link it up there to then start that container with that profile12:13
cpaelzeraoam: but since I now read that you want to scale up but nothing see each other wI wondere if there is a better way12:14
cpaelzeraoam: mayb not type bridge at all for the uplink - let me check12:14
aoami’v found that theres p2p nictype but it doesnt working when i set it up12:15
cpaelzerwell you get a virtual dev in the host that you then need to link up right?12:16
aoamp2p: Creates a virtual device pair, putting one side in the container and leaving the other side on the host.12:16
aoamhttps://github.com/lxc/lxd/blob/master/doc/containers.md12:16
cpaelzersure "leaving the other side"12:16
cpaelzerI'd more think that macvlan might help - IIRC multiple macvlans don't see each other (only if the switch sends them back)12:17
cpaelzerbut that was on s390x OSA cards, other cards might shortcut and reflect the traffic (which usually is good but not for your case)12:17
aoami’v even tried macvlans but it has the same effect, conteiners cant see each other and also cant see to the internet12:18
aoamso theres the only one possibility, to have per container one bridge and then connect them, thanks :/12:22
cpaelzeraoam: more experienced container networkers might see a better one12:28
cpaelzerstgraber: ^^ better solutions?12:28
cpaelzeraoam: isn't that a better solution https://serverfault.com/questions/388544/is-it-possible-to-enable-port-isolation-on-linux-bridges ?12:30
aoamwow? it seems that thats working ( ebtables --append FORWARD --logical-in vmbr1 --jump DROP )12:33
aoamYup, it works. Thanks12:34
aoamalso one more question, i cant find how to set ebtables pernamently after reboot12:45
ahasenackis there an ebtables-save command, like there is for iptables?12:46
aoamyes it is12:46
ahasenackactually12:47
ahasenackaoam: /etc/init.d/ebtables12:47
ahasenackaoam: I *think* that if you call that with "save", it will automatically restore on the next boot12:48
ahasenackthat initscript has some interesting options12:48
ahasenackcase "$1" in12:48
ahasenack  start)12:48
ahasenack    [ "$EBTABLES_LOAD_ON_START" = "yes" ] && load12:48
ahasenackyou should edit /etc/default/ebtables to your liking12:48
aoami did /etc/init.d/ebtables save, and then enabled on start, thanks, it works :)12:53
aoamits perfect guys, i’v lost with that a lot of time :) have a nice day12:54
ahasenack\o/12:54
cpaelzeraoam:  yw13:10
zetherooI have been trying to install Ubuntu 16.04 Server on a system with two identical HDD's in it. I want to setup softraid 1 but grub fails to install every time no matter how I have tried to do the partitioning - which includes following the official documentation https://help.ubuntu.com/lts/serverguide/advanced-installation.html13:32
cpaelzerjamespage: starting to build the OVS 2.7 against the new DPDK that I'm prepping and testing - anything on the OVS changed to be aware of?13:32
jamespagecpaelzer: don't think so - upstream took off the experimental status13:32
jamespagebut that's it13:32
cpaelzerthanks jamespage13:33
cpaelzerzetheroo: you install from a server CD like - http://releases.ubuntu.com/16.04.2/ubuntu-16.04.2-server-amd64.iso?13:33
masonzetheroo: Any chance your disks came in formatted with GPT? If so and if you didn't change to legacy MBR, you'd have lacked a uefi_boot partition, which would certainly make GRUB fail. Of course, if you're actually running UEFI, that's a very different situation all by itself.13:35
zetheroocpaelzer: I installed by following the Ubuntu 16.04 'Ubuntu Server Guide' I linked to. That should work ... or!?13:36
ahasenackzetheroo: it should, I tried that the other day on a VM with two disks and it worked just fine13:36
cpaelzerzetheroo: sure, I just wanted to know from which iso (or whatever) to retry on a VM - also look for mason comment13:36
cpaelzerahasenack: thanks that lets me skip my test13:37
ahasenackI created / and swap on raid, so in the end I had something like /dev/md0 and /dev/md1 (swap and /)13:37
zetheroocpaelzer: I am using the iso you linked to, yes13:37
ahasenackzetheroo: someone else had a similar problem here a few weeks ago, in that case the issue was UEFI boot13:37
masonahasenack: A nifty trick if you're in the pre-ZFS world is to make one big RAID and cut volumes out of LVM sitting atop it.13:37
ahasenackI think he disabled it and enabled legacy boot, then it worked13:37
ahasenackmason: yeah, love lvm13:38
zetherooahasenack: ok, will try that13:38
ahasenackI have a mix here13:38
zetheroowhat's the benefit of UEFI actually?13:40
ahasenackpass :)13:41
zetheroook, well the USB stick (with Ubuntu Server install) is not booting with UEFI and neither are the HDD's13:44
zetherooI don't know if there is somewhere else that UEFI needs to be disabled from in the BIOS13:44
ahasenackthere should be a legacy mode13:45
ahasenackbut, I don't have hw with uefi, so I can't tell from experience13:45
zetheroofor each device individually or ....?13:45
zetheroohmm13:45
ahasenackin general I think13:45
dpb1_yes, in general13:45
masonzetheroo: Cleaner multibooting, possibility for SecureBoot.13:47
dpb1_zetheroo: this answer is good: https://askubuntu.com/a/647604/705613:48
masonzetheroo: You should have a legacy mode available in any event.13:48
zetherooI am looking through the BIOS for legacy boot or something similar13:48
masonzetheroo: Also, Ubuntu is fine running inside UEFI if you do want to run in the hardware's preferred mode. You simply have to partition accordingly.13:49
masonzetheroo: Might also be called CSM13:49
zetheroomason: well that's the thing .. if I do the partitioning how I normally did it before (on the RAID device - Guided use all space) there is automatically an efi boot partition made .. so I thought that would work ...13:50
masonzetheroo: To give you an idea of the possibilities, I'm running on UEFI right now with MD-RAID1 EFI System Partition and ZFS mirrored across a pair of LUKS block devices.13:51
masonzetheroo: Yeah, if you let it partition, it should do the right thing.13:51
zetherooright, but grub fails to install at the end13:51
masonIf you manually partition, you'll want to be intimately aware of the requirements.13:51
masonzetheroo: It fails when you allow it to partition on its own?13:51
zetheroowell this is more automated than the documentation and it still doesn't work13:52
zetherooyes13:52
masonzetheroo: My recommendation is to use dd if=/dev/zero across both disks. Let it start fresh and add a partitioning scheme, etc.13:52
zetheroowell I can't find any legacy setting on this bios13:53
masonMight be hard to find, but it probably has one. That said, UEFI works fine.13:54
zetheroomason, is this how you setup your softraid https://help.ubuntu.com/lts/serverguide/advanced-installation.html ?14:02
masonzetheroo: No, I use LVM.14:03
zetherooic14:03
masonWell. I use ZFS. But I used LVM before that.14:03
zetherooOne thing I notice is that I cannot change the bootable flag to 'on'14:12
zetherooI press enter and it remains 'off'14:12
masonThat's fine. That's a legacy setting.14:15
zetherooso leaving 'off' then14:15
masonShould be fine.14:15
zetherooSo this is what I have now http://tinypic.com/r/9ub2w6/914:21
zetherooas per the documentation14:21
zetherooproceeding with the installation ...14:24
zetheroogrub failed to install :(14:47
zetheroohttp://tinypic.com/r/339ocas/914:48
masonzetheroo: You need to nail down if you're in UEFI mode or not.14:50
zetherooany ideas?14:50
zetheroohmm14:50
masonYour layout is fine for legacy booting14:51
masonBut if you're on GPT, it'll fail, and if you're on UEFI, it'll fail.14:51
masonSo: 1. dd if=/dev/zero of=yourdisk across both your disks prior to install, as then the installer will Do The Right Thing. 2. Make sure you're explicitly in legacy mode booting, because you'll have to do something quite different if you're booting UEFI.14:52
ArchaicLordcan any help me please.  I am in UK. My Broadband is supplied by BT. In order to use my  own router I have the BT Router set on network 1.254 I had to have my own router set on 0.1 so i beileve its a different subnet.        on the 0.1 network I have no a ubuntu web server which I want to host application like next cloud.    i am hoping i have set up ddclient to connect to my dynu account to update the ipaddre14:53
masonIf you've got GPT partitioning (dunno!) then you'd need to add a bios_grub partition to each disk as well as what you've got, for the combination of legacy booting on GPT. If you've got legacy booting on MBR you don't need this, and the wipe will make that happen.14:53
ArchaicLordeg xxx.xxx.1.254 and xxx.xxx.0.114:53
masonIf you've got UEFI, then you need GPT and you need an EFI System Partition, but not a bios_grub partition.14:54
masonArchaicLord: You don't want a separate subnet on a public space. You need NAT.14:56
ArchaicLordmason: ok how and where do I learn to do this properly14:58
masonArchaicLord: https://help.ubuntu.com/community/Internet/ConnectionSharing maybe15:00
zetheroomason: it seems I have to change the SATA Mode to IDE (it's currently AHCI)15:00
masonzetheroo: You shouldn't have to do that. I would in fact strongly advise against it.15:00
masonzetheroo: While IDE counts as "legacy" for what it is, it's not the droid you're looking for.15:01
zetheroomason: SATA Mode Selection This item selects the mode for the installed SATA drives. The options are IDE, AHCI and RAID. SATA RAID Option ROM/UEFI Driver (Available if the item above - SATA Mode Select is set to AHCI or RAID) Select Enabled to use the SATA RAID Option ROM/UEFI driver for system boot. The options are Enabled and Disabled.15:01
masonzetheroo: Maybe take some screenshots of your BIOS.15:01
masonzetheroo: I don't think you want your BIOS doing RAID.15:01
ahasenack+1, don't do that15:01
ArchaicLordmason: my server points to xxxx.xxx.1.254 as its gateway15:01
zetherooscreenshot coming15:02
masonArchaicLord: Okay. And you likely have a single IP assigned, and that IP is your window onto the world.15:02
zetheroomy motherboard is X10slm-f btw15:02
masonArchaicLord: Anything behind your firewall will live on a private address space.15:02
masonzetheroo: Doesn't ring a bell. Screenshots FTW.15:02
zetherooit's a Supermicro board15:03
zetherooscreenshot coming15:03
zetheroohttp://tinypic.com/r/mhgi1k/915:04
zetheroodisable the 'SATA RAID Option ROM/UEFI Driver' ?15:05
compdocwhat a horrible website15:06
compdocis there a problem with youir drives?15:06
zetheroocompdoc: not that I know of ... why?15:08
compdocahci is a good choice, but raid also enables ahci, so Ive heard15:08
zetheroomason: wdyt?15:09
masonzetheroo: looking15:10
zetherook15:10
masonzetheroo: Cab you catch each menu like that? It's going to be something further over to the right. Also, might help to reset to factory defaults. You don't want that BIOS RAID turned on.15:11
masonAnd that BIOS knows about UEFI, so you'll need to clear that up.15:11
zetheroomason: I already tried restoring to 'Optimized Defaults'15:12
masonzetheroo: Snag a snapshot of the screen that talks about boot options.15:12
zetheroook15:13
zetheroohttp://picpaste.com/Screenshot_from_2017-05-17_17-14-33-IHys49Gx.png15:15
zetheroohttp://picpaste.com/Screenshot_from_2017-05-17_17-14-44-PMkToHau.png15:15
zetheroohttp://picpaste.com/Screenshot_from_2017-05-17_17-14-55-hsoqATaI.png15:16
masonzetheroo: Maybe the security screen too?15:17
masonI'd tend to expect what we want on the Boot screen (with boot options) but maybe it's on Security instead.15:18
zetheroonothing uefi-related in there ... but just a sec15:18
masonOn the plus side, the Boot screen shows the nice variety of UEFI boot manager.15:19
Pici/25/15:19
zetherooUnder Advanced there is Boot Feature15:19
masonA picture is worth a thousand words.15:20
zetheroohttp://picpaste.com/Screenshot_from_2017-05-17_17-20-52-8FsoBv3K.png15:21
zetheroohttp://picpaste.com/Screenshot_from_2017-05-17_17-21-03-c42nZmdG.png15:21
zetheroothis is the motherboard manual https://www.supermicro.com/manuals/motherboard/C222/MNL-1428.pdf15:22
masonzetheroo: Yeah, not seeing it. Welcome to the world of UEFI, which you'll be using with that server! :)15:22
zetheroobut I can't find anything which clearly says how to disable UEFI15:22
zetherooshit15:22
masonIt's not a bad thing.15:22
masonUEFI works fine, and you've got one of the better boot management interfaces.15:22
zetheroobut no documentation :P15:23
masonWait.15:23
masonSo, the Re-try Boot menu should have a legacy mode in it,.15:23
masontry that15:23
zetherooha15:23
zetherooLegacy or EFI boot15:24
masonFWIW, I searched for "legacy" in the PDF you linked.15:24
zetheroodoh15:24
masonIf that had turned up dry, the next search would be for "csb".15:24
masonBut do read more about UEFI someday. It's not at all bad.15:24
masonJust different.15:24
zetheroowill do ... some day ...15:25
zetherooso this should do the trick?15:25
masonLeave a tip in the jar.15:25
masonMaybe you'll have other issues, but this seems like a good start. You might still need to wipe the disks to get rid of GPT formatting, if it's there. The installer doesn't know how to deal with that gracefully.15:25
dpb1_+1 on UEFI, it's worth learning about.  it's the way all servers are being built now.15:25
dpb1_and desktops15:26
helpImStuckis it ok to task questions regarding lxd/lxc here, running ubuntu server as host.15:26
helpImStuckask :)15:26
masonhelpImStuck: Sure. Sadly, I have no experience with lxd, but other folks probably do.15:26
zetheroowell I don't mind using UEFI or whatever, so long as it doesn't mean installing an OS like Ubuntu suddenly takes all kinds of hoops to jump through that were not needed before :P cost vs benefit15:27
dpb1_helpImStuck: you can, #lxcontainers might be a better community.15:27
helpImStuckdpb1_, thanks :)15:28
nacchow's bug squashing day going (/me just waking up)15:31
zetheroomason: when formatting the disk should I use GPT or MBR?15:37
masonzetheroo: IIRC the installer doesn't give you an option, but if you're booting legacy, use MBR.15:38
masonThis is why I recommended wiping with dd to make sure. But give it a try.15:39
zetherooI booted into Ubuntu Live and used Disks to format the two disks .. the default was GPT - it seemed to say that GPT was for disks larger than 2TB ... ?15:39
masonzetheroo: Alright, if you're using big disks, you *will* want GPT. The difference between the printed docs and what you want is that you'll format as GPT and have one bios_boot partition per disk.15:49
masonbios_grub partition type is ef02 FWIW15:49
zetheroois that what that bios_grub thing is?15:49
masonyes15:49
masonYou can give it 1MB and that'll be fine.15:50
zetherooI just don't get why each partition has to be it's own raid15:50
masonper disk, as after install you'll want to make sure both disks are populated - see dpkg-reconfigure grub-pv15:50
masonsorry, dpkg-reconfigure grub-pc15:50
masonEach partition is a raid COMPONENT.15:51
zetheroowhy can't you just make one md device and then make all the partitions on the one raid device?15:51
masonAnd normally you'd want to use LVM.15:51
masonYou can and should, but LVM is what lets you do this.15:51
zetherooand without LVM?15:51
masonIn the pre-ZFS world, one must use distinct tools for each layer.15:51
zetheroowell I am trying now like this http://picpaste.com/Screenshot_from_2017-05-17_17-58-58-KS7WpFba.png15:59
naccHey everyone! It's Ubuntu Server Bug Squashing Day #4! Planning at: http://pad.ubuntu.com/JxBHprOBVM16:00
masonzetheroo: You might have an issue there. bios_grub needs to be on old metadata if you're doing it as RAID16:02
masonzetheroo: You want to have one bios_grub per disk, not in the raid.16:02
masonYou can have it in a RAID, but that's a bit funkier than you might want at present. Ubuntu will handle populating it on two disks automatically, so you might as well let it.16:02
zetheroogah, I never had this kind of trouble with Raid1 before :P16:02
zetherooI just let the Guided option make what it wanted to on the Raid device16:03
robinwassenHi :)16:03
masonThe guided option did that?16:03
zetherooyes16:03
masonWell. Try it then. Interesting.16:03
masonIf it blows up, go back to having one bios_grub per disk, outside of the RAID.16:04
masonIf it works, please mention that in here.16:04
zetherooI manually made a single partition on each disk to be used as raid devices, then made the md device using those two partitions, then let the Guided option make those partitions on the md device16:04
masonAh.16:05
masonI'm betting it blows up then.16:05
masonBut we'll see.16:05
zetheroo:D16:05
robinwassenI would like to contribute to solving some bug in Ubuntu, but I don't know where to start. Anyone got a good guide on how the process looks?16:07
naccrobinwassen: have you found a bug?16:07
robinwassenI am a developer, but not very familiar with how the process looks when contributing to Ubuntu16:08
dpb1_hey robinwassen :)16:08
nacchttps://bugs.launchpad.net/ubuntu/16:08
naccthere are only 131659 to trawl through :)16:08
robinwassen@nacc: https://bugs.launchpad.net/hundredpapercuts/+bug/1646025 I was thinking of this16:08
ubottuLaunchpad bug 1646025 in One Hundred Papercuts "libreoffice 5.1.6 for xenial" [Critical,Triaged]16:08
naccrobinwassen: cool16:08
robinwassenSeems easy enough16:08
naccheh16:08
nacclibreoffice is ... never easy16:08
naccbut this one might be, if it's just a dotrelease16:08
robinwassenAh, thought it was a stable release of libre and the reference of what version to install as default just had to be updated16:09
naccrobinwassen: no, i think they mean the version packaged in 16.04 needs to be updated16:09
naccbut i see 5.1.6~rc2 is in xenial-updates and xenial-security16:10
naccmdeslaur: --^ do you know if the security team is going to do a 5.1.6 full release?16:10
robinwassen@nacc: Can you link to where you saw that? :)16:10
naccrobinwassen: the versions? there are two ways: http://pad.lv/u/libreoffice near the bottom and 2) the `rmadison` tool16:11
mdeslaurnacc: rc2 is the final release16:12
robinwassenThanks16:12
naccmdeslaur: oh ok, so that bug should be closed then?16:12
mdeslaurnacc: yes16:12
naccmdeslaur: thanks16:12
naccrobinwassen: you did it! :)16:12
robinwassen@nacc: It solved itself? :)16:13
robinwassenBy being included in a patch? :D16:13
naccrobinwassen: well, it's confusing why one task is fix released and one is not16:13
nacci don't really understand the mgmt of the one hundred papercuts project16:13
naccdpb1_: do you?16:13
dpb1_nacc: nope16:14
dpb1_:/16:14
naccdpb1_: sorry, killed my screen :) -- yeah, ok16:15
robinwassenAny chance that you can point me in the right direction of solving some other bug?  :)16:15
naccrobinwassen: probably server bitesize is good16:15
robinwassenLike finding a suitable bug and then point to where I find the source repository that contains it16:15
ahasenackhttps://goo.gl/H66PTQ bite-sized bugs16:16
naccrobinwassen: we can talk about the latter generically as well16:16
naccahasenack: thanks!16:16
naccrobinwassen: so given a src package we have a couple of optoins (note that lp bugs are always against src packages)16:16
naccrobinwassen: easiest for now is `pull-lp-source <srcpkgname>`16:16
ahasenacklogwatch has some simple ones, but it's a config issue, not something that requires development16:17
robinwassen@ahasenack: The easier the better I guess at this point, I just need to get the workflow to start with, that is the challenging part.16:18
zetheroomason: check this out ... the layout on the 10th minute https://youtu.be/kfuByWYDlhI16:18
ahasenackright16:18
zetheroomason: there raid devices ... one of which is for boot16:19
zetheroothree*16:19
zetheroohttp://picpaste.com/Screenshot_from_2017-05-17_18-18-03-2tOQeeaV.png16:19
masonzetheroo: That's different, as the BIOS can see something that looks like its regular partition.16:20
masonNot all inside one RAID16:20
zetherooyeah16:20
zetherooit's different than the documentation as well16:20
masonzetheroo: Note that he's on MBR partitioning, with smaller disks that don't need GPT.16:21
masonThis is a critical difference.16:21
zetheroohow do you know it's MBR though?16:21
masonzetheroo: Size and lack of bios_grub16:21
zetheroohe remakes empty partitions on the disks and is not asked what type he wants ... which is just like here16:22
masonYou don't have to believe me, of course. :P16:23
zetheroowell bios_grub is made by the Guided option .. he did everything manually16:23
masonWell, give it a try. Can't hurt to see what happens.16:24
naccrobinwassen: would you like my 7 step (or so) guide to fixing a package?16:25
nacclet me right it a bit more clearly16:25
dpb1_robinwassen: I would16:26
zetheroomason: ok, my previous attempt failed :)16:26
dpb1_er16:26
dpb1_nacc: I would16:26
dpb1_:)16:26
robinwassen@nacc: I would love it ! :D16:26
zetheroomason: so last try here ... going to make a bios_grub on each disk16:32
zetheroo100MB should be enough ... or?16:33
masonzetheroo: 1MB will be enough.16:36
masonzetheroo: 100 would be a bit of a waste16:36
zetheroo:)16:36
masonAlso, you don't need a separate /boot if you're not using encryption.16:37
naccdpb1_: robinwassen: http://paste.ubuntu.com/24593656/16:39
nacci think that's right16:39
naccrobinwassen: we are working on a git-based workflow that wraps some of this up, but even there, 2)-5) will be the same process16:39
naccrobinwassen: just with git commits rather than having to remember what you did :)16:39
zetheroomason: ok, how does this look? http://picpaste.com/Screenshot_from_2017-05-17_18-40-45-gaBQ9rhK.png16:41
patdk-lp1MB is normally enough, depends16:41
patdk-lpbut you have to be doing something really really odd with grub16:41
masonzetheroo: Looks good from here.16:42
zetherook16:42
zetheroogoing to give it a try16:42
masonBTW, if you ever actually use all that swap you'll be deeply unhappy with life. :P16:42
zetherooyeah16:43
zetherooI don't care at this point :P16:43
zetherooalready so unhappy :D16:43
robinwassen@nacc: Correct me if I am wrong, a normal workflow is to include patches that are applies on packages rather than fixing the problem directly in the package itself?16:43
robinwassen(my interpretation of quilt patches)16:44
naccrobinwassen: that's what `dpkg-source --commit` does16:44
naccrobinwassen: yeah16:44
naccrobinwassen: in some future world (we are working to create) the difference between the two optoins will be managed by tooling16:45
naccrobinwassen: and you can provide us just your changes however you want and we'll figure it out16:45
naccrobinwassen: not sure if that addressed your question or not, i guess16:46
robinwassenI would guess these patches makes it quite a challenge to update versions of the package released by the author :)16:46
robinwassenI think I understand now :)16:46
naccrobinwassen: you mean like the upstream version?16:46
robinwassenyep16:46
naccrobinwassen: right, so one of the steps on every upstream bump is to refresh patches16:46
naccrobinwassen: which often includes dropping them (if fixed upstream)16:46
naccrobinwassen: or, in our case, if debian has picked them up, we don't need to keep them separately ourselves16:46
clandestHello. I am trying to access my local web server that i have running on my Ubuntu machine from other computers on my network with my Ubuntu's network ip address. I have the server ruinning on 127.0.0.1:8080, i added 192.168.1.22 to my /etc/hosts file but i still cant access the network address even on the ubuntu machine. Would anyone know how i can go about configuring this so that I can access my17:01
clandestlocal webserver on my network computers? THank you17:01
dino82nginx or apache17:02
naccclandest: --^17:02
naccclandest: um, if you have the server listening explicitly on 127.0.0.1:8080, then it won't listen on another address17:02
clandestdino82: nacc: tyvm.. I didnt think i would have to use nginx locally, thought there would be an easier way without other programs. but ill try nginx17:02
dino82Yeah that's your issue, only the machine running the instance will be able to hit it17:02
naccclandest: you want :8080 to listen on all addresses at that port (iirc)17:03
nacc*all interfaces' addresses17:03
clandestand nginx is prolly the easiest way to achieve that?17:03
naccclandest: also, dino82 wasn't saying to use nginx, they were asking what you were using?17:03
naccclandest: no, it's a basic web server decision17:03
dino82You can use whatever you are comfortable with17:04
naccclandest: you have told your webserver (based upon what you described) to *only* listen on 127.0.0.117:04
naccclandest: therefore, it doesn't matter about anything else, it will only listen on 127.0.0.117:04
dino82Sorry, I need to be more verbose with my questions, heh17:04
naccdino82: :)17:04
zetheroomason: well that seems to have worked17:07
zetheroogrub installed and system is booting17:07
masonzetheroo: \o/17:07
masonzetheroo: So, the time you spent before was NOT wasted. You learned stuff, and you didn't take it on faith.17:08
zetherooindeed17:08
masonzetheroo: Now, your next projects are to mess with UEFI and learn ZFS.17:08
dpb1_robinwassen: part of the bug fixing process in ubuntu is possibly filing a bug on the debian package (if it exists), and then upstream on the source package, if the bug originates there.17:09
naccdpb1_: oh true, that's a good point, meta tasks that should be at the top17:09
dpb1_robinwassen: did you find a bug yet to work on?17:09
robinwassen@dpb1: Thanks, it feels like submitting the patch to upstream is at least mandatory :)17:09
zetheroomason: when ZFS is an option during Ubuntu install ....17:09
zetherooharhar17:09
dpb1_robinwassen: usually.  unless the bug is in the package!!  lol17:09
robinwassen@dpb1_ No luck in finding a bug yet, I am trying to navigate through the huge list!17:10
masonzetheroo: It can be an option (for servers) if you use the graphical installer.17:10
robinwassenHaha17:10
masonzetheroo: It's what I use.17:10
dpb1_robinwassen: same here actually17:10
zetheroomason: graphical installer for Ubuntu Server?17:10
dpb1_ahasenack: do you have pointers?17:10
masonzetheroo: It's the desktop installer, but it gives you access to things like ZFS. You do an install by hand.17:10
ahasenackabout what?17:10
zetheroook17:11
robinwassendpb1_: It is easier said than done, and I don't feel like grabbing a bug like "compiz freezes sometimes" :)17:11
ahasenackbugs? I suggested the logwatch ones in the bite-sized list17:11
masonzetheroo: Want to see simple partitioning for a root/boot disk? Here: https://bpaste.net/show/489876e780f217:11
zetheroomason: well thanks for all your help.17:11
robinwassen@ahasenack: Where do I find that one?17:11
naccrobinwassen: only 12 bugs in https://goo.gl/H66PTQ17:11
masonzetheroo: What you don't see from that is that the EFI partition is on RAID, and that root0 is LUKS with half a ZFS mirror inside.17:11
masonzetheroo: My pleasure.17:11
naccdpb1_: https://goo.gl/H66PTQ17:11
ahasenackhttps://bugs.launchpad.net/ubuntu/+source/logwatch/+bug/1583705, https://bugs.launchpad.net/ubuntu/+source/logwatch/+bug/1583706, https://bugs.launchpad.net/ubuntu/+source/logwatch/+bug/157800417:12
naccthat's the bitesize list17:12
ubottuLaunchpad bug 1583705 in logwatch (Ubuntu) "unmatched entries for postfix" [Undecided,New]17:12
ubottuLaunchpad bug 1583706 in logwatch (Ubuntu) "unmatched entries for rsyslogd" [Undecided,New]17:12
ubottuLaunchpad bug 1578004 in logwatch (Ubuntu) "unmatched entries for courier" [Medium,New]17:12
masonI should have named is esp0. Oh well.17:12
masons/is/it/17:12
robinwassenThanks @ahasenack and @nacc17:13
ahasenackrobinwassen: if you are familiar with some service, you could search for bugs against that service too17:13
naccrobinwassen: yeah, that's the other suggestion i'd have, if you have tools you use, or projects you have familiarity with, start there17:13
CarlenWhiteI lost understanding of what this script I have that is doing backups to the point I'm looking up into the sky and going, "It's fuckin' magic."17:15
CarlenWhiteScript in question. https://pastebin.com/cmkTKaQj17:16
SeveasCarlenWhite: it's doing an unneeded cp, rsync can do this as well using --link-dest. Other than this is a perfectly reasonable simple backup script17:18
CarlenWhiteOn the page talking about this method mentioned a problem with rsync's --link-dest17:19
CarlenWhiteBut I'll keep the cp to do what it does best and what rsync does best.17:20
CarlenWhiteBut I guess I'm pretty tripped up on how hardlinks are being made and how modified files are being done.17:21
CarlenWhiteI kinda understand how it might be working when files are deleted. Pretty much hardlink after hardlink is removed until the physical file is no longer reference and marked for free space.17:23
CarlenWhiteBut for how file modifications are done is screwing with my head.17:24
CarlenWhiteOh!17:25
CarlenWhitersync!17:25
CarlenWhiteIt's the one that will create a new inode when a file is modified.17:25
CarlenWhiteIt all makes sense now.17:25
CarlenWhiteWait does it even do that?17:26
dino82<3 rsync17:26
CarlenWhiteOh. Does rsync remove a file and then replace it if it needs to update it?17:27
CarlenWhiteBecause if it's doing that, then it'll pull a new inode to use for the updated file.17:27
CarlenWhiteFor a moment I thought rsync would zero-byte the file and refill with updated data.17:27
andolCarlenWhite: The default is to rename/replace, but you can also get the overwrite behave by using the --inplace flag17:28
CarlenWhiteWhich I don't want at all otherwise each instance of myfile.txt in the rotating backup would be replaced with a updated version.17:28
CarlenWhiteAssuming myfile.txt was there for the past 7 days and I decided to change something.17:29
CarlenWhiteSince myfile.txt from backup.0 to 6 would be sharing the same inode.17:30
CarlenWhiteIf rsync did a inplace update, it'd update the file with the same inode and ruin previous backups.17:30
hallynrbasak: (bc i don't see nish here) i would like to formally suggest that server team meeting notes always be pasted in the email in plain text, rather than only having a link.17:32
nacchallyn: what's up?17:33
nacchallyn: sure that can be done17:33
naccwe got lazy :)17:33
* CarlenWhite quickly updates the backup script with the information so he doesn't have blow his mind again.17:33
CarlenWhiteQuick question, I presume the OS will watch when all hardlinks to the physical location of a file are removed and mark it for free space when it is no longer referenced?17:38
hallynnacc: oh sorry :)  looked for wrong nic :)17:51
nacchallyn: np17:51
nacchallyn: i'll bring it up in our team mtg to make sure we do both17:52
hallynnacc: anyway, i'm probably the only one left reading email with mutt and not wanting to click the link to read the contents :)  kernel team does the same thing,17:52
hallynnacc: awesome, thanks.17:52
nacchallyn: are you ok if the text is c&p of the link contents?17:52
hallynyup17:52
nacchallyn: ok, np17:52
masonHey, generic question... EL has "yum provides" to identify what package provides something I don't have installed. Is there an equivalent for apt in Xenial and newer?17:53
naccmason: is provides for package names?17:54
masonnacc: Not package names... Files inside packages.17:54
hallynmason: dpkg -S /bin/ls17:54
naccmason: apt-file17:54
masonhallyn: That's only for installed packages.17:55
masonnacc: Looking.17:55
naccmason: dpkg for installed stuff, apt-file for archive17:55
hallynmason: yup17:55
masonIs apt-file essentially the same as apt-cache?17:56
naccmason: no17:56
naccmason: unrelated beyond both being apt- :)17:56
masonheh, kk17:56
naccmason: apt-cache searches your apt cache17:56
masonpopulating now17:56
naccmason: apt-file searches a package contents list17:56
masonalright17:56
masonI was looking for nslookup earlier, and I found it, but it occurred to me that I didn't know how to search properly.17:56
masonCool, apt-file works nicely.17:57
masont17:57
naccmason: also, command-not-found will tell you the right thing generally for commands; arbitrary files you need apt-file17:57
masonty*17:57
naccmason: np17:57
mwhahahajamespage: sahara-common missing from pike?18:33
mwhahahajamespage: looks like sahara in general http://logs.openstack.org/70/465670/1/check/gate-puppet-openstack-integration-4-scenario003-tempest-ubuntu-xenial-nv/87bfe0c/console.html#_2017-05-17_17_09_07_59191918:33
=== JanC_ is now known as JanC
Aisonhello18:35
Aisonwhat may be a reason that smbd almost always run at 100% cpu usage18:35
ahasenackAison: check with smbstatus if it's tied to a particular user18:37
Aisonahasenack, there is no locked file, no user, etc..18:37
ahasenackAison: just a lone smbd process at 100%?18:38
Aisonyes18:38
ahasenackcheck the samba logs then, and if they show nothing useful, increase the verbosity18:38
naccif that doesn't help, Aison, you might strace the smbd process and see what it's actually doing18:41
rbasakhallyn: I'll pass that on, thanks. Nice to know that >0 people care :)18:43
hallyn:)  thanks18:49
Aisonahasenack, nacc with log level 4 I don't see anything in the logs18:54
ahasenackthen strace it18:54
naccyeah, i think strace is the next step18:54
ahasenackstrace -f -o output -p <pid>18:54
ahasenacksomething like that18:54
ahasenackleave it a bit, then ctrl-c and inspect the output file18:55
ahasenackAison: besides the 100% cpu usage, is it working normally?18:55
Aisonahasenack, yes18:55
Aisonworks normally18:55
naccif it is pegging the cpu, it'll be quite noisy, but ideally you can see it maybe busy-waiting for a file/lock or something18:55
naccor determine what loop it's in18:55
ahasenackAison: wait a sec, with log level 4, you don't see anything *relevant* in the logs, or no logs at all?18:56
AisonI mean, it is a 32core machine, and all cores are somehow in use when samba is running  ^^18:56
Aisonthat's not normal18:56
Aisonahasenack, there are logs, but they are not growing18:56
ahasenackAison: maybe there is a config change you are not aware of that is sending them elsewhere? Are the logs you see current? Or from the last time it was restarted?18:57
ahasenacktestparm -s can be used to show a dump of the config, with no comments (i.e., it's short)18:57
Aisonyes, they are current. I deleted everything in /var/log/samba and then started again. The logs are created18:57
Aison10 seconds strace creates a 10mb log file18:58
Aisonerr, 5 seconds18:58
ahasenack:)18:59
ahasenackit's definitely busy18:59
ahasenackyou could also try higher log levels perhaps, I don't remember how far up they go18:59
ahasenackbut inspect that strace output, look for repeated patterns18:59
Aisonthat's it: https://people.alvhaus.ch/~ivost/samba.log :)19:00
ahasenackwhat's /var/log/samba/log.2a02_168_200f_100__2_1, is 2a02_168_200f_100__2_1 an actual machine name?19:02
ahasenackit's "almost" something like 192.168.200.100 :)19:02
ahasenackipv6 also came to mind :)19:03
ahasenackyeah, ipv619:03
ahasenack2a02:168:200f:100::219:03
Aison2a02:168:200f  is my ipv6 prefix19:03
ahasenackthat file is opened several times, does it not contain anything useful?19:04
Aisonand 2a02:168:200f:100::2 is the IP of the samba server19:04
Aisonno, filesize is 019:05
webnarhi19:06
webnarsomeone there?19:07
* mason hides in the corner.19:07
naccwebnar: sure, just ask your question19:08
ahasenackAison: can you post your smb.conf (output of testparm -s)? Sanitize at will if needed19:08
* dpb1_ points at mason19:08
webnarOk i'm a basix ubuntu server user so thats why i drop my question here. I had a NAS running ubuntu server 14.04 (was working great). I have upgraded to server 16.04. But now i have issues with my RAID.19:09
webnarCan that be a driver issue or something?19:10
webnarIts working until x hours and then 4 drives get dropped out of the raid. Rebooting fix everything.19:10
webnarut it are 4 drives connected to my sata controller19:10
webnarthe other drives are on the onboard controller19:10
naccwebnar: any messages in the kernel logs when the disks dropped?19:11
ahasenackAison: do you have something on that server itself connecting to it maybe? I see a ton of accepted connections from itself, if I'm reading that right19:11
webnarno there just gone19:11
webnaralso in fdisk19:11
naccwebnar: did you check `dmesg`? disks don't generally silently disappear from the kernel19:11
webnaryes i checked but i really have no clue where to look for.19:12
ahasenacksearch for the disk device names19:12
ahasenacksomething like sda usually, but could be sometihng else19:12
ahasenack(in dmesg, that is)19:12
naccwebnar: or pastebin the output19:12
naccwebnar: but it's only relevant if you're in the failed state19:13
naccif you've rebooted, `dmesg` won't help19:13
naccyou'd need to look in /var/log/syslog or so19:13
webnari'll post the output when it drops the hd's but still its strange there all on the same controller.19:16
ahasenackwebnar: is it software raid? aka, mdadm?19:18
webnaryes19:18
ahasenackwebnar: and these are just storage, you have another disk for /, swap, etc?19:19
webnarthese are just storage19:19
webnaryes os is on seperate ssd19:19
webnarharddisks show no failures19:20
naccwebnar: right so i'm thinking the driver barfed (maybe) and dropped the controller19:21
naccwebnar: without logs, though, it's hard to know19:22
naccwebnar: did you look at the old logs (or look for them)19:22
webnarwhere to find old logs?19:22
webnari only have one dmesg log not a .0 version19:26
naccwebnar: look in syslog19:27
webnaris see dozen of these messages every second of the day in the syslog:19:33
webnarMay 17 06:26:12 MediaServer systemd[6908]: dev-disk-by\x2dpartlabel-primary.device: Dev dev-disk-by\x2dpartlabel-primary.device appeared twice with different sysfs paths /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/ata10/host9/target9:0:0/9:0:0:0/block/sdj/sdj1 and /sys/devices/pci0000:00/0000:00:17.0/ata2/host1/target1:0:0/1:0:0:0/block/sdb/sdb319:33
webnarMay 17 04:09:53 MediaServer mdadm[29886]: Fail event detected on md device /dev/md0, component device /dev/sdj119:35
webnarMay 17 04:09:53 MediaServer kernel: [141885.926279] md/raid:md0: Disk failure on sdj1, disabling device.19:35
webnarMay 17 04:09:53 MediaServer kernel: [141885.928506] md/raid:md0: read error not correctable (sector 1642918560 on sdj1).19:35
webnarMay 17 04:09:53 MediaServer kernel: [141886.456458]  disk 5, o:0, dev:sdj119:35
dpb1_webnar: can you replace that disk?19:36
dpb1_it would be my first course of action19:36
webnarits not 1 there 4 disk failing at the same time.19:36
webnarall 4 that are on a seperate sata controller19:36
dpb1_how many total on the array19:36
webnar1 of the 4 is even a SSD drive(this one is not in the raid)19:37
webnar6 total of array19:37
dpb1_ah, even disks not on the raid, gotcha19:37
webnar3 on this controller and the other 3 onboard controller19:37
dpb1_and that controller is internal?19:37
webnarthe failing one is a pci controller19:37
webnarBut it just happend after upgrading to server 16.0419:38
dpb1_what is the controller19:38
dpb1_lspci should show it19:38
webnar01:00.0 SATA controller: Marvell Technology Group Ltd. 88SE9230 PCIe SATA 6Gb/s Controller (rev 11)19:38
dpb1_webnar: you say it's working "fine" for 4 hours19:40
=== dpb1_ is now known as dpb1
dpb1do you still get error messages in syslog when it's working fine?19:40
webnarsometimes it can be 4 other times its a few minutes last time it took almost day.19:40
webnaryes19:40
webnarits working now and i get this:19:41
webnarMay 17 21:37:53 MediaServer systemd[1]: dev-disk-by\x2dpartlabel-primary.device: Dev dev-disk-by\x2dpartlabel-primary.device appeared twice with different sysfs paths /sys/devices/pci0000:00/0000:00:17.0/ata5/host4/target4:0:0/4:0:0:0/block/sde/sde2 and /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/ata10/host9/target9:0:0/9:0:0:0/block/sdj/sdj119:41
webnarthere maybe 50 of those on the same second for drive sdj only19:42
sarnoldsystemd just spews those19:42
sarnoldyou've got a lot more than I do though19:42
dpb1webnar: but what about the mdadm and kernel errors.  ignore the systemd ones for a sec19:43
webnarMay 17 04:08:31 MediaServer kernel: [141804.131926] ata8.00: exception Emask 0x0 SAct 0xc SErr 0x0 action 0x6 frozen19:47
webnarMay 17 04:08:31 MediaServer kernel: [141804.131948] ata8.00: failed command: WRITE FPDMA QUEUED19:47
webnarMay 17 04:08:31 MediaServer kernel: [141804.131962] ata8.00: cmd 61/08:10:18:10:80/00:00:02:00:00/40 tag 2 ncq 4096 out19:47
webnarMay 17 04:08:31 MediaServer kernel: [141804.131962]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)19:47
webnarMay 17 04:08:31 MediaServer kernel: [141804.131993] ata8.00: status: { DRDY }19:47
webnarMay 17 04:08:31 MediaServer kernel: [141804.132001] ata8.00: failed command: WRITE FPDMA QUEUED19:48
webnarMay 17 04:08:31 MediaServer kernel: [141804.132014] ata8.00: cmd 61/08:18:38:16:80/00:00:02:00:00/40 tag 3 ncq 4096 out19:48
webnarMay 17 04:08:31 MediaServer kernel: [141804.132014]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)19:48
webnarMay 17 04:08:31 MediaServer kernel: [141804.132045] ata8.00: status: { DRDY }19:48
webnarMay 17 04:08:31 MediaServer kernel: [141804.132054] ata8: hard resetting link19:48
webnarMay 17 04:08:37 MediaServer kernel: [141809.504148] ata8: link is slow to respond, please be patient (ready=0)19:48
webnarMay 17 04:08:41 MediaServer kernel: [141814.160288] ata8: COMRESET failed (errno=-16)19:48
webnarMay 17 04:08:41 MediaServer kernel: [141814.160342] ata8: hard resetting link19:48
webnarMay 17 04:08:47 MediaServer kernel: [141819.524401] ata8: link is slow to respond, please be patient (ready=0)19:48
webnarMay 17 04:08:51 MediaServer kernel: [141824.180491] ata8: COMRESET failed (errno=-16)19:48
webnarMay 17 04:08:51 MediaServer kernel: [141824.180546] ata8: hard resetting link19:48
webnarMay 17 04:08:57 MediaServer kernel: [141829.548697] ata8: link is slow to respond, please be patient (ready=0)19:48
webnarMay 17 04:09:02 MediaServer kernel: [141835.108908] ata10.00: exception Emask 0x0 SAct 0xe0000 SErr 0x0 action 0x6 frozen19:48
webnarMay 17 04:09:02 MediaServer kernel: [141835.108986] ata10.00: failed command: READ FPDMA QUEUED19:48
webnarMay 17 04:09:02 MediaServer kernel: [141835.109042] ata10.00: cmd 60/00:88:00:30:39/04:00:0b:00:00/40 tag 17 ncq 524288 in19:48
masonwebnar: Maybe try bpaste.net19:48
webnarMay 17 04:09:02 MediaServer kernel: [141835.109042]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)19:48
webnarMay 17 04:09:02 MediaServer kernel: [141835.109169] ata10.00: status: { DRDY }19:48
webnarMay 17 04:09:02 MediaServer kernel: [141835.109206] ata10.00: failed command: READ FPDMA QUEUED19:48
webnarMay 17 04:09:02 MediaServer kernel: [141835.109258] ata10.00: cmd 60/00:90:00:f4:ec/08:00:61:00:00/40 tag 18 ncq 1048576 in19:48
webnarMay 17 04:09:02 MediaServer kernel: [141835.109258]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)19:48
webnarMay 17 04:09:02 MediaServer kernel: [141835.109386] ata10.00: status: { DRDY }19:48
webnarMay 17 04:09:02 MediaServer kernel: [141835.109421] ata10.00: failed command: READ FPDMA QUEUED19:48
webnarMay 17 04:09:02 MediaServer kernel: [141835.109473] ata10.00: cmd 60/a0:98:00:fc:ec/06:00:61:00:00/40 tag 19 ncq 868352 in19:48
ahasenackwebnar: might be silly, but you should check for loose sata cables19:48
webnarMay 17 04:09:02 MediaServer kernel: [141835.109473]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)19:49
masonwebnar: This kind of paste often results in a temporary kick for flooding.19:49
webnarMay 17 04:09:02 MediaServer kernel: [141835.109600] ata10.00: status: { DRDY }19:49
webnarMay 17 04:09:02 MediaServer kernel: [141835.109639] ata10: hard resetting link19:49
webnarso i guess it started to stop working from that point19:49
webnarbefore that there are no erros19:49
webnarand from that moment its full of those errors19:49
webnaryes tried the sata cables and power. But the only thing i noticed was the fact the 4 failing drives are on the pci sata controller19:49
dpb1webnar: if it were me, my next course of action would be to replace the controller19:50
ahasenackyeah19:50
ahasenackall drives failing at the same time doesn't happen, unless they are rebuilding the array (that causes extra stress)19:50
dpb1you've narrowed it down pretty well, I'd say.19:50
webnaryes but wouldn't it be something with ubuntu 16.04 because it only happend after the upgrade19:51
webnarhttps://bpaste.net/show/a66f0618319019:53
webnarafter reboot everything works again19:54
ahasenackwebnar: if you think it's some driver, you could boot the previous ubuntu with a live-cd, mount the array and leave it be for a while, see if it also encounters the same problem19:58
ahasenackor install a newer kernel in 16.04 using the hwe series19:59
ahasenackbut so far all points at a hardware problem19:59
dpb1webnar: you might find this thread interesting... https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=70097519:59
ubottuDebian bug 700975 in src:linux "linux-image-3.7-trunk-amd64: Marvell 88SE9230: Freaks out and drops all disks if sent SMART command during RAID rebuild" [Normal,Open]19:59
dpb1webnar: I know it's old20:00
geniiHm, 3.720:00
dpb1end result was a recommendation against that controller, and a list of ones with better kernel support: http://blog.zorinaq.com/from-32-to-2-ports-ideal-satasas-controllers-for-zfs-linux-md-ra/20:03
sarnoldoh man I spent -days- on that blog post :)20:04
webnarBut the recommended controllers most of them are very outdated.20:07
* dpb1 nods20:09
sarnoldit is from 2012 or something.20:12
=== Mikee_C_ is now known as Mikee_C
webnarHmm i'll try to install 14.04 first and check if it still works with 14.04 like it always did20:20
* ppetraki catching up on sata errors20:45
ppetrakiwebnar, so umm, how old are these ssds?20:47
webnarfew months20:47
webnarjust installed server 14.0420:47
ppetrakiwebnar, you haven't written like 50TiB of data in the meantime have you?20:47
* ppetraki suspects not20:48
bindiwhy 14.0420:48
webnar14.04 was working perfectly before the issues20:48
Aisonahasenack, [2017/05/17 22:48:09.606627,  4] ../source3/smbd/sec_ctx.c:321(set_sec_ctx_internal)20:49
Aisonthis is the log entry that is written endless20:49
webnarif i check loggin now there are no errors20:49
ahasenackAison: is that part of a panic?20:49
Aisonso samba stays at 100% cpu usage20:49
ppetrakiwebnar, scsi error handler is pretty thorough. if it can't recover a drive something is really wrong20:50
Aisonahasenack, no idea :-(  these entries are repeated: https://pastebin.com/GJ50YHu820:50
webnaryes but before i got the 50 errors a sec on ubuntu 16.04 just installed 14.04 now and no errors in my syslog anymore.20:50
ahasenackAison: what was the logging level before, 0? Or has it always been at 4?20:51
webnarraid is up and clean20:51
ahasenackwebnar: that could also be because of the reboot, right?20:51
ppetrakimarvell controller, ok not my favorite but this is a well travelled solution.20:51
ahasenackif it stays like that for a few hours, under load/usage, then yes, this is good info20:51
Aisonahasenack, before it was 0 (testparm always removed log level)20:52
Aisonnow it is 420:52
ppetrakiwebnar, it's possible that your combination of drive and controller is making a bug pop up in 16.0420:52
ppetrakiwebnar, those are hard errors being reported20:52
ppetrakiwebnar, that or you got hit with a power spike and everything is compromised20:53
ahasenackAison: maybe 4 is too much detail already20:53
Aisonwith log level 10 over 100mb/s of log file is written :P20:54
ahasenackyeah, stay away from that :)20:54
webnarI'll post a update on the status after some time. i'll let it run for now. Powerspike i don't think the NAS is on a UPS.20:54
ahasenackalthough that shows that connections to the server are being made20:54
ahasenacktry 3, then 2, 120:55
ppetrakiwebnar, yeah I'm catching up on the rest of your logs20:55
ahasenackand check smbstatus again20:55
ppetrakiwebnar, I think you found a bug, stuff like this is so simple it shouldnt even happen20:55
ppetrakiwebnar, you on amd or arm?20:56
Aisonahasenack, here with log level 3 :) https://pastebin.com/aeFdYEf520:56
* ppetraki nm amd20:56
ppetrakiyeah, weird20:56
webnarintel20:56
ppetrakiso... intel cpu and marvel sata controller?20:57
webnaryes20:57
ppetrakionboard?20:57
webnarpci20:57
ahasenackAison: still doesn't ring a bell20:57
ppetrakioh ok20:57
ppetrakicould you move these the onboard and try 16.04 again? that would tell us for sure its a driver issue20:58
webnarall other drives are onboard. and the half of the drives from the raid20:59
ppetrakioh ok21:00
webnarthe 3 onboard drives keep running. The 3 PCI sata controlled drives stop. There is a fourth harddisk on the controller download SSD drive21:00
webnarthat SSD also stops working.21:00
webnarthere is no raid or something on the SSD21:00
Aisonahasenack, maybe it is related to ldap?21:00
ahasenackwell, talk about a wrench in the gears21:01
ppetrakiwebnar, yeah this is just dumb simple io having a bad day. most basic functionality21:01
ahasenackAison: did you check the pure smbd logs as well, or just the log.<machine> files? There should be a log.smbd file too iirc21:02
ppetrakiwebnar, this marvell thing is finicky. you can file a bug ... or dump it with a basic lsi or atto and move on with life21:06
ppetrakiwebnar, you can try reducing the link speed on the driver down to 3G in the hopes it will reduce the probability of this event. which will also reduce you to about 250MB/s.21:08
ppetrakiwebnar, other than that I don't have any quick fixes for you. sorry :(21:08
webnaranyway thanks for the help.21:10
webnarsudo make21:10
webnarsrry wrong screen21:10
ppetraki:), np21:11
=== god is now known as Guest79555
naccsmoser: around?23:22

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