/srv/irclogs.ubuntu.com/2016/07/25/#ubuntu-server.txt

m4xxevening all00:57
m4xxevery time i reboot my 16.04 server my raid needs to resync00:57
m4xxi found on google people have had success adding "mdadm --wait-clean --scan" to their shutdown script but i don't know where to add it00:58
cncr04show is the raid setup?01:38
cncr04sis gour grub bootfile up to date?01:39
m4xxto tell the truth i'm not sure. i set up the raid in the post conf setup before i installed the OS01:42
m4xxit asked me if i wanted to activate it during the install01:42
m4xx@cncr04s -^01:43
cncr04sso,01:47
cncr04syou did not manully setup software raid in ubuntu installation?01:47
cncr04sis it via a raid card or motherboard? is it intel?01:47
m4xxyes, via motherboard01:48
m4xxit is intel01:48
cncr04sthen you are likley running into the intel fake raid issue01:48
cncr04san issue i faced01:48
cncr04si solved it by running software raid, setup via the installation01:48
m4xxi did run update-initramfs -k all -u01:48
cncr04swhat particular motherboard is it01:49
m4xxnot sure, i got the box from a friend. it's a zotac of some sort01:49
cncr04s99% chance its fake raid if its a desktop pc motherboard01:50
cncr04sunless 16.04 included some changes to support it, it won't work01:50
m4xxwould it be possible to re-create with out having to kill my data?01:50
cncr04syou can't recreate it without trashing what already exists on the disk01:51
cncr04sIf you don't have a dedicated raid chip via a addon card or on the mobo, then its going to be os software managed any how. You might as well just go with the ubuntu softraid without dealing with the extra interaction with the mobo isw raid stuff.01:54
cncr04sthat's my opinion, it worked for me. up to you though01:55
m4xxdoes the server install walk you through it? i'm kind of a noob01:55
cncr04sI don't know if a noob can do it. It has options for you to set it up in the installation. the part where it asks you to partition. there is an option to configure raid01:56
cncr04ssearching gooogle/youtube for how to setup raid in ubuntu setup may yeild results, try that.01:58
antony7777i need help to clean up a server /boot ... using apt-get autoremove show this error msg: linux-image-extra-4.2.0-38-generic : Depends: linux-image-4.2.0-38-generic but it is not installed05:49
antony7777using: apt-get remove linux-image-extra-4.2.0-38-generic .. shows message: linux-image-extra-4.2.0-42-generic : Depends: linux-image-4.2.0-42-generic but it is not going to be installed  linux-image-generic : Depends: linux-image-4.2.0-42-generic but it is not going to be installed                        Recommends: thermald but it is not going to be installed05:51
antony7777the /boot is full, but I can't (don't know how) to free it05:51
antony7777my uname-r is: 4.2.0-16-generic05:52
antony7777so I'm guessing that I had a linux kernel update failed..?05:53
antony7777can I just go to /boot and delete the folders of newer kernels .. newer than the one I'm using, ie 4.2.0-16-generic .. will that be safe?05:53
Ben64don't delete newer ones05:55
antony7777the problem is I'm actually using older kernel.. 4.2.0-16 .. all other kernels in /boot are newer than 4.2.0-16, eg 4.2.0-27, 4.2.0-30 .. etc06:00
Ben64ew06:02
Ben64so do some "sudo dpkg --force-all -P <package>" and then run update and dist-upgrade and autoremove06:02
antony7777like: sudo dpkg --force-all -P linux-headers-4.2.0-42  ?06:03
Ben64don't do the newest one06:11
ubuntu_I am wondering where plymonth come into the linux boot loading ? I know bios runs code, which runs bootloader like grub ,lilo,..etc, which then load kernel , init.d... But whats the point of plymonth if its running after the kernel is loaded an operational?06:22
ubuntu_what i want to know is where plymonth falls in i know it has to be before the gdm login but after the bootloader code06:23
ubuntu_And with grub2 you can have the grub menu and graphics screens so its like an in between graphic to the grub and the gdb login page. But is there anything useful happening between that time or is it just for eye candy06:25
Ben64head -n5 /etc/init/plymouth.conf06:25
ubuntu_so is this before or after init starts?06:28
Ben64everything is after init06:28
ubuntu_Ok then whats happening between plymonth and  gdm login ?06:29
Ben64everything06:29
ubuntu_but if init starts all the programs then plymonth is just wasting time to go directly to gdm06:30
ubuntu_I guess i am wondering on what is being set up or running when plymonth is running06:30
Ben64what are you trying to get at06:30
ubuntu_Like if init already has all the programs mostly running when plymonth , usplash,..etc  is then run  one wouldn't see a lag if he went directly to gdm login06:31
Ben64no06:33
ubuntu_if init is just running plymonth as a process if plymonth is the last process before gdm login is kicked off then there really isn't to much point in having it . If its the starting process init kicks off i can see the nice screen while other process are getting started06:34
Ben64whats your point06:35
ubuntu_is it the former or the latter i suppose one can configure init to start the process in  different order to some extent but never looked into that much indepth yet06:35
ubuntu_My point is if its at the begining of init you looking at eye candy that actually is there because your still waiting for process to be started/configurations to be set. If it is at the end right at the point of gdm login then the eye candy is  just there wasting time06:37
ubuntu_to get to gdm06:37
ubuntu_login06:37
Ben64ok?06:37
Ben64i feel like you're leading to an actual question06:38
ubuntu_Well can you have a splash screen like plymonth at the grub level before one boots a kernel. Between the grub menu and the loading of the kernel/initramfs stuff06:39
ubuntu_?06:39
ubuntu_I guess the grub menu is the splash screen because the rest of kernel loading and ramdisk would take  to get to init to plymonth neglatible time06:44
ubuntu_so i guess never mind kind of thought thru this one06:45
ubuntu_On an unrelated question is about installers like ubiquity , debian-installer , Anaconda  to name a few how are these set to only run  on an install cd and not on a live-cd by default is it part of init.d process folder the one adds the installer to boot up from06:55
ubuntu_because why i am at my live-cd or a computer on ubuntu does matter live or not ... i can  issue ubiquity at the command prompt and get the installer to start06:56
ubuntu_So i am just trying to figure out what the best way is to have it always start on boot another words make this a install cd or usb... i was thinking just to add it to the init.d process that init starts or one of its subprocess start but not sure on the best place to put it or what order it should start on ... probably towards the end of init spawning06:59
ubuntu_More i think about it .. it will need x11 so it has to be a last process kind of thing07:02
ubuntu_Note i could do a text based install or preseed but either way i know how this all works it just where to place these programs when booting07:03
InnerCodeHi, I've a strange problem on an Ubuntu 16.04.1 host with lxc/d 2. I've created a bridge on my eth0 connection and ran lxd init to select the bridge as default connection. After that I launched an Ubuntu 16.04 container and it gets his IP address from my DHCP server. I changed the /etc/network/interfaces file from the container to set it a fixed IP address. After stopping starting the container07:10
InnerCodeit have 2 IP addresses. The DHCP one and the fixed one. I turned my DHCP server off on my network and after a reboot from the container the virtual interface won't go up. So, how do I set the IP address of a container correctly or how to remove the DHCP one?07:11
=== Kenrinx is now known as kenrin
negevhi, i'm having issues with the dovecot apparmor profiles, specifically:    apparmor="ALLOWED" operation="sendmsg" info="Failed name lookup - disconnected path" error=-13 profile="/usr/lib/dovecot/log" name="run/systemd/journal/dev-log" pid=2603 comm="log" requested_mask="w" denied_mask="w" fsuid=0 ouid=008:31
negevwrites to run/systemd/journal/dev-log are allowed in the base abstraction which is included in the /usr/lib/dovecot/log profile08:31
negevbut for some reason it doesn't work08:31
InnerCodeI found it! I had to comment out the line 'source /etc/network/interfaces.d/*.cfg' in the interface file in the container. It had a cfg file that enables the DHCP for the eth0 interface. Mystery solved.08:34
=== InnerCod1 is now known as InnerCode
=== _degorenko|afk is now known as degorenko
m4xxso i've rebuilt my raid using this guide: http://www.howtogeek.com/51873/how-to-setup-software-raid-for-a-simple-file-server-on-ubuntu/10:50
m4xxbut it wont come up after boot10:51
cpaelzersmb: puah - if it is a good one would you like to make some advertisement for the AC I sometimes see in your office so I can buy one ... :-) ?11:20
smbcpaelzer, its okayish. the main problem is to get the heat blown to the outside ... and having insect nets there makes that hard. plus its loud11:45
cpaelzersmb: hmm I have space incl windows in the basement below me for "loud" and "air out" - I need to properly investigate that11:49
cpaelzersmb: ignoring my favor of light I might also just work down there in the few hot days we get - if I would not need to move sceens and all that ...11:50
smbcpaelzer, yeah. I kind of get along by letting it run while I am not in the room and try to keep it dark the rest of the time11:53
=== Isla_de_Muerte is now known as NwS
negevhi, is there anyone around who knows apparmor really well?13:16
patdk-wk!ask13:16
ubottuPlease don't ask to ask a question, simply ask the question (all on ONE line and in the channel, so that others can read and follow it easily). If anyone knows the answer they will most likely reply. :-) See also !patience13:16
negevappreciated, but i've done that several times over a few days and didn't get an answer so :P13:17
patdk-wkwhat makes you think anything will improve by asking like you just did?13:17
patdk-wkif they didn't know then, why would they know know and have enough time to stick around for you to respond that they did?13:17
negev1) why does the base abstraction that grants write access to systemd dev-log not work?    2) is there a way to handle wrapper scripts that doesn't involve granting execute of /bin/bash to all child processes?13:18
negevpatdk-wk: someone told me one of the apparmor devs hangs here sometimes13:18
patdk-wkso? I don't see what that has to do with any of the above13:18
patdk-wkyou are wasting his and your time, if he responds, just by asking that question, without asking what you wanted to know13:19
negevsee above, i asked two specific questions13:19
PhrygianI've just purchased an ubuntu server to run a server for a game, but I'm having some issues. I have to run one node js program followed by another, but the first program takes up the console so when i run a command it goes straight into the first program instead of the terminal. How do i avoid this?13:23
andolPhrygian: The quick-fix is probably to use something like screen or tmux, and give each program its own terminal. Also, by using screen/tmux it also becomes possible to detach from those terminals, and have the programs continue running in the background.13:30
andolPhrygian: Yet, the real solution is probably to setup init scripts (systemd units) and threat them as long running background services, assuming that that is what they are?13:31
PhrygianYeah, I think i'm just going to combine the programs though, that seems like a more appropriate solution13:38
negevpart14:08
=== iberezovskiy|off is now known as iberezovskiy
negevhi, if i run the same application with different configs, is there a way to have a different apparmor profile for each config?15:41
jaguardownHi all, do-release-upgrade on 14.04.2 says there's no new release found even after updating repos.15:45
jaguardownDid 16.04.1 not get released on the 21st?15:45
negevjaguardown: it did, but you have to update the metafile manually because it's not been updated yet15:46
negevi dunno why15:46
jaguardownoh okay, thanks15:46
tewardjaguardown: they didn't open the release path yet16:09
tewardnegev: ^16:09
tewardnegev: bug squishing and other things need to happen first16:09
tewardwhich is why it's not open yet16:09
tewardat least, last i heard16:09
negevmakes sense16:09
negevi've filed an apparmor bug already :P16:09
negevis there a way to customise apparmor profiles with environment variables when an application starts up?16:14
negevmanpage for apparmor on ubuntu.com is a 404: http://manpages.ubuntu.com/manpages/xenia/en/man7/apparmor.7.html16:18
negevlinked from: https://wiki.ubuntu.com/AppArmor16:18
rbasaknegev: thanks, fixed.16:20
rbasaknegev: also it's a wiki, so please do feel free to fix any other mistakes!16:20
negevmaybe when i learn how to use apparmor properly, at the moment i'm having trouble working out if my issues are bad config or bugs16:21
jaguardownteward: Thank you, I was just about to ask how to manually update that metafile.16:23
jaguardownBut I'll just wiat16:23
jaguardownwait*16:23
negevthe upgrade went pretty much fine for me16:23
tewardnegev: YMMV16:26
tewardso :P16:26
tewardjaguardown: yeah I'd just wait until it's opened up16:27
negevif it's still buggy why was it released?16:27
ubuntu_installers like ubiquity , debian-installer , Anaconda  to name a few how are these set to only run  on an install cd and not on a live-cd by default is it part of init.d process folder the one adds the installer to boot up from ??? ..... and i am trying to figure out if you can have grub directly boot the x11 /graphics services , and the installer program without first booting into an OS or ramdisk. I know x11 is userspace17:18
ubuntu_program17:18
ubuntu_  so there would have to be an equivalent grub mod for that which supports what the installer program needs....17:18
sarnoldubuntu_: booting straight into graphics is slightly difficult; the plymouth program can give a better illusion that the system is running graphically earlier than X11 really starts.. (I think. at least that used to be the case.)17:38
ubuntu_plymonth still needs x11 /Xorg to run17:40
ubuntu_And not talking about a splash screen now i am talking about where to place the installer gui programs  when creating an install distro from a live one17:41
JanCUbuntu disc images are both17:41
ubuntu_are you talking about the media the distro will be in like iso9660 cd/dvd as opposed to usb or floppy img  i don't get you17:43
=== iberezovskiy is now known as iberezovskiy|off
ubuntu_why would that even matter17:43
JanCand it happens in init configuration/scripts and/or in xinit/xsession and/or in similar places; grub (or other bootloaders) can add options to the kernel commandline (which the script can read from /proc/cmdline )17:43
=== degorenko is now known as _degorenko|afk
ubuntu_I can run  a splash screen like plymonth ,usplash or any other and i can run any gui or text based installer in userspace at a terminal what i want to know is where typically you place these programs to startup17:45
ubuntu_Order matters so should i uses the runlevel /etc folders17:46
ubuntu_Or is there a better way to most people do it17:46
JanCthat's going to be different for every distro, right?  but for sure an init script/config (sysvinit/upstart/systemd/...) will be needed17:46
JanCbest is to look at some distros & see how they all do it?17:47
JanC(nowadays one could also write an installer that runs under UEFI instead, I guess)17:49
ubuntu_Ok so its going to be dependent on what the system is using systemd or other things and looking up how to start process in a certain order ok. Is there any way if one is doing a text based install to just have grub , the installer programs it uses , and the installer on an iso image /usb img  with no OS or kernel. Because in theory if your doing text based you don't need user land only the mounting programs , making file sys17:50
ubuntu_tem programs  , and the grub drivers i would image17:50
ubuntu_And if you throw in a grub network PXE boot i would imagine you only need grub for your install usb or cd/dve nothing else on the media other then the boot/grub folder17:53
JanCubuntu_: like I said, nowadays you don't even need GRUB, you could implement it as an EFI/UEFI application17:58
ubuntu_How does that work you still need a bootloader with PXE boot unless your talking about a built in bios PXE boot option that one can set where the tftp site is on the network18:00
JanCUEFI has (or can have) network drivers, graphics drivers, etc.18:00
JanCit's a basic OS on itself18:00
ubuntu_at the bios level18:00
JanCyou can even run Python on UEFI18:01
ubuntu_if its at the bios level then the bios has become a mini os itself18:01
ubuntu_in the firmware18:01
JanC"BIOS" was the name of the old firmwares based on the original IBM PC, UEFI replaces it18:02
JanCbut yes, it's sort of a mini OS18:02
JanCthe UEFI firmware in my desktop has a GUI for configuration, can update itself over the network/internet, etc.18:03
ubuntu_got it so kind of just wondering if i didn't want to uses UEFI and wanted to uses some type of physical media to give a person like a cd/dvd or a usb  what would be the minimal stuff i need could i do it with just a bootloader accessing a network resource i.e just have /boot/grub18:04
ubuntu_I think that was possible but never tried it18:04
trippeh_on apple computers with UEFI you can even restore your computer from icloud from the UEFI/BIOS18:04
JanCUEFI can boot from CD?18:04
ubuntu_Can grub do PXE18:04
ubuntu_Its for an old computer that doesn't have UEFI or support it18:05
ubuntu_I could make the traditional install or live cd/dvd/usb but was curious on if i could have the iso , img on the network and just give him a cd/dvd/usb that has grub on it thats it that does the PXE boot to install the image from the network. Its to bad that UEFI is not supported18:07
ubuntu_I just wanted to save space and not but it on the cd/dvd/usb and the fact that he has 10 old computers that don't have UEFI this is just an example not the really thing just a made up example.18:09
JanCyou can use PXE from UEFI/BIOS or from GRUB, I think18:15
JanC(not sure if GRUB2 has PXE support, but GRUB certainly did)18:15
JanChttp://wiki.osdev.org/Diskless_Booting#The_gPXE_.2B_GRUB_Way18:17
ubuntu_Ok cool so then in that case all one would need on his media is a /boot/grub folder or whatever folder he wants to call it for grub but essentially just grub access a network image18:17
JanCthat osdev site might have more useful info for whatever you are trying to do  :)18:18
ubuntu_about the network image for old computers i would imagine it would have to be in a folder form not a cd/dvd iso9660 600MB to 4GB because one would need the ramdisk space to store it in?18:18
ubuntu_How typically is PXE booting done when one has limited memory does it like temporarilly copy to an external hdd by default or something?18:20
ubuntu_I mean i get if the iso or img file can fit completely in memory then one can uses PXE from grub to install retrieve it into memory and install it from there but if one doesn't have the ramdisk space i would imagine you cann't do the PXE boot unless it can be specified to uses a swap partition on some secondary harddrive for temporary storage when installing18:22
ubuntu_Typically now a days everybody has enough memory not to have to worry about not fitting in memory the image but back in the day when one only had say 128 or 256 MB how could the image fit.18:23
ubuntu_I would imagine since your installing the os one would always have available a secondary storage that did have enough room but then PXE grub program would have to uses some tmp space for it18:25
ubuntu_to store the iso image and load only the subset of files18:25
ubuntu_Or maybe the tftp site only has the essential files of the iso placed on the network for older computers... and for newer ones they can just uses full iso or img images from the network... curious how this uses to work from how it works today18:26
patdk-wkheh18:32
patdk-wkI just iscsi boot18:32
ubuntu_Ok cool iscsi for the initator connection to the target by the IQN number . I get it but what devices can the target uses for the initator that show up in device is it just a virtual disk on the target  or can it be the actual part or whole physical HDD connected to the target like a usb drive or a slave HDD18:48
ubuntu_Because i just say stuff on the target using a virtual disk to provide the initator18:48
ubuntu_so can it also uses non virtual HDD , cd rw , usb ..etc device or do most people uses a virtual HDD on the target for the initator iscsi machine?18:49
ubuntu_I get the difference between using iscsi SAN technology as opposed to using NAS storage technology. But typically what does the iscsi media uses for providing storage for the initator?18:53
sarnoldiscsi initiator may be booted via pxe or a sata DOM mini-ssd or USB mass storage device18:56
ubuntu_Ok at that point its just like having the network harddrive or cluster locally to you when booting ( kind of affect)18:58
ubuntu_Is that currently the best way for providing network booting/installs for large companies?18:59
patdk-wkit depends on the needs19:03
patdk-wkafter all that, still no idea what your needs are19:03
patdk-wkmy needs where simple19:03
patdk-wkone iscsi volume19:03
patdk-wkthe iscsi volume is cloned for each workstation at boot19:03
patdk-wkand destroyed on shutdown19:03
ubuntu_iscsi can uses any type of physical storage device right like cd/dvd/usb/floppy/nas/....etc device or is it just fix to hardware that uses the scsi commands so maybe not ATAPI cd/dvd not sure19:05
ubuntu_?19:06
patdk-wkheh?19:06
patdk-wkiscsi is limited to scsi19:06
patdk-wknot sure why that wouldn't include cd/dvd/usb/floppy19:06
ubuntu_so what device now a days are not scsi based19:06
patdk-wkyes, you cannot run nas over iscsi19:06
patdk-wkwell, usb isn't scsi normally19:07
ubuntu_just trying to figure out what hardware it won't work on19:07
patdk-wkmy first cd was scsi19:07
patdk-wkbut not sure what any of this has to do with anything19:07
ubuntu_O so no usb device darn  you have to uses NAS in that case for the usb devices19:07
patdk-wkwhy?19:07
patdk-wkbut then, if your using usb, you did something seriously wrong19:08
ubuntu_because how else would you have a computer access a usb HDD on another computer  thru then network19:08
patdk-wkyou don't19:08
patdk-wkdoing so is foolish and unreiable19:08
patdk-wkusb it not known for it's stability19:08
patdk-wkbut who said you cannot use usb disks over iscsi?19:09
ubuntu_Also can iscsi uses virtual HDD or virtual cd/dvd drives instead like if one  has vmware  HDD files on his iscsi target device instead of physical devices19:10
ubuntu_i.e virtual scsi device instead of physical scsi devices19:11
ubuntu_Because if it can that would be a really good way for business to have many peoples computers just have a different virtual scsi HDD on the network i.e share space on the target scsi  as virtual files that are shown to the initator as really physical devices19:13
JanCthat would depend on the iSCSI target (NAS/SAN/server) you use, I guess19:14
JanCiSCSI itself is just a protocol19:14
ubuntu_Humm curious partitioning the physical device like one partition for each person with 1000 people then setting quotas seems impratical but using 1000 virtual HDD files  that each of the client initator machines uses seems more practical19:16
ubuntu_I guess one could do the traditional way and have there local laptop or desktop HDD just for there files and the NAS or SAN as having there os partition but your still going to need partitions for each of the 1000 if your not using virtual HDD19:18
ubuntu_Or one could uses Active directories instead19:19
ubuntu_Just thinking out loud since if one had one iscsi with windows 10 os on it and all the clients just PXE boot to the iscsi with there whole local hard drive as  just file and there program storage then would the performance halt for 10000 people using this same iscsi target to log in19:32
ubuntu_seems it would so kind of wondering the best way to set up pxe / UEFI booting   to iscsi target when it comes to 1000 s of computer users... i would think you would have to increase the different iscsi targets which would kind of increase the number of computers or at least scsi devices19:34
ubuntu_Also sinces iscsi is a SAN i would imagine you could set this up with a cluster of scsi devices manybe thats how they do it not sure19:41
ubuntu_This wouldn't seem like it would help in different os's images only in performance , load balanceing , and failover raid backup,..etc stuff so kind of still confused19:42
=== arooni__ is now known as arooni
=== Kenrinx is now known as kenrin

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