/srv/irclogs.ubuntu.com/2016/10/01/#ubuntu-server.txt

wolflarsonI should mention it is still asking for my old hostname. sudo: unable to resolve host <oldhostname>00:05
sarnoldwhat does uname -a report?00:05
wolflarsonold hostname00:06
sarnoldwolflarson: running "hostname <newhostname>" will probably sort that out00:08
sarnoldwolflarson: maybe "hostname --file /etc/hostname" ?00:08
wolflarsonhmm thats how I changed it in the first place though.00:09
wolflarsonI did not do the --file part will give that a shot00:09
wolflarson/etc/hostname was showing the correct host however00:09
wolflarsonadding --file seems to have worked thanks sarnold00:16
wolflarsonthat or opening a new session picked up the 127.0.1.1 change to hosts. whatever way it is now working00:18
sarnoldwolflarson: nice :)00:19
sarnoldwolflarson: twenty-ish years ago I set up an SCO unix machine, and it had beena real bastard on the first two attempts, so on the third attempt I gave it a -terrible- bad word for a system name... and when the time came to deploy it, I couldn't track down every bloody use of the bad word00:20
sarnoldI thought I got them all but we kept finding occurances where we didn't expect it and things broke ...00:20
wolflarsonlol00:20
sarnoldyet another re-install required :)00:20
jak2000hi all02:07
=== JanC is now known as Guest94114
=== JanC_ is now known as JanC
jak2000i buy a domain and how to configure the domain in the server? i want setup a mails erver(postfix) and webserver http2 thnks03:01
patdk-lapjak2000, I would highly recommend you don't do that03:14
jak2000why?03:31
jak2000?04:19
=== Error404NotFound is now known as Guest60135
=== pavlushka is now known as Guest81133
=== Guest81133 is now known as pavlushka
=== Error404NotFound is now known as Guest21056
ChrisWarrickHello, have you got any good and up-to-date guides on setting up L2TP/IPSec VPNs?11:51
DexterFhi all15:14
DexterFserver as base for media center, installing to 32GB usb3 thumbdrive for / and /boot. 3xsata hdds supposed to be main storage for media in md raid5. now: where do I put swap if I mean to suspend-to-disk?15:15
DexterFI was thinking: 4GB RAM, so put 3x 2GB swap in all of the 3 array drives, but then thought: bad idea, if one disk fails: no resume from disk. if I put swap on the raid5/lvm: lots of writing when swap is accessed.15:16
RoyKI'd put the swap on the USB thing15:17
RoyKgparted should be able to change the partition size, although perhaps from a live usb boot, since it's not always easy to change a mounted fs15:18
RoyKIIRC swap needs to be on a dedicated partition for suspend-to-disk to work15:19
RoyKand separating data from system, like you're doing, is a very good idea indeed15:20
DexterFRoyK: swap on the usb drive thought crossed my mind, too, if it only is used for suspend then the wear would even be ok, question is: how much swap does linux use when there's plenty of RAM. it's 4GB for a media center / DVB streamer on a minimum install so I don't expect it to use swap15:24
RoyKDexterF: but again - I'm not sure if you'll need suspend-to-disk on such a machine. I just use a raspberry pi for mine with openelec and it doesn't have that feature15:24
DexterFthat's option B: "always on, don't suspend at all." power consumption is at 20W idle and barely exceeds 25 active.15:25
DexterFit really is feasible.15:25
DexterFleave out swap altogether then?15:25
RoyKDexterF: linux usually uses a wee bit of swap, but that's tunable with the vm.swappiness setting, default 60. Set that to 1 and it won't use much unless it's really necessary15:25
RoyKsysctl vm.swappiness15:26
RoyKwill tell you it's setting15:26
DexterFok, swap goes to the usb thumb then15:26
RoyKyes15:26
DexterFdid not know that, thanks15:26
RoyKcreate a file, like /etc/sysctl.d/10-swappiness.conf15:27
RoyKadd "vm.swappiness = 1" to it and run sysctl -p /etc/sysctl.d/10-swappiness.conf to have sysctl read it15:27
DexterF -p is for persistent?15:28
RoyKman sysctl15:28
RoyKthose things aren't persistent, but creating that file, means sysctl will read it during boot15:28
DexterFgot it15:36
DexterFwhat the *flying*....15:36
DexterFmy first attempt was to install directly install on radi5 everything, then found it doesnt fly well with grub, so I thought, ok, put in another usb drive for / /boot swap and start over form scratch.15:37
DexterFthen the installer found the old raid config and I thought, better dd over the first 4M of the raid disks. did that15:38
DexterFnow I created md0 again and it *finds* the former LVM volumes from installation 1. where the heck did it find that info?!15:38
DexterFLVM keeps a config backup at the end of the pv, right?15:40
DexterFinstallation fails due to shoddy sata cable on disk 3 :D15:42
DexterFthen again maybe not. "base-installer: error: could not find any live images"15:54
DexterFhttps://bugs.launchpad.net/ubuntu/+source/live-installer/+bug/1575652 seems related. not sure and not sure what to do about it.15:54
ubottuLaunchpad bug 1575652 in live-installer (Ubuntu Yakkety) "PXE install prefixes /cdrom to squashfs location, fails to find it" [High,Fix released]15:54
DexterFany way to continue this installation or do I need to boot over and put the line in grub as suggested?15:54
DexterFok, it works when *not* cheking "live installer" in the options. what's the difference in that anyway?16:30
RoyKDexterF: AFAIK grub doesn't support booting from anything but normal disks and mirrors (raid-1)16:36
RoyKDexterF: separate data and storage, and you'll be fine16:36
DexterFRoyK: yes, playing it ssafe now. grub2 actually does boot from lvm on raid5, but as soon as something happens you find yourself at a grub shell. plus, grub2 has to be installed to all disks. now it's on one and I should be good.16:37
DexterFK.I.S.S. principle.16:38
RoyKdamn - didn't know that, but still, separating data from the system will never hurt16:45
RoyKkeep the system and its swap etc on a separate, preferably mirrored volume and use raid-something or zfs for the est16:46
RoyKor even btrfs if you like to play with matches and petrol16:46
cossierhola20:00
=== ewook_ is now known as ewook

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