/srv/irclogs.ubuntu.com/2019/05/16/#ubuntu-server.txt

lordievaderGood morning06:30
uzeeHi All, does anyone know how lvm partitioning can be done in preseed but based on percentage of disk space, instead of absolute numbers for min/max/priority ?06:53
_KaszpiR_d-i partman-auto-lvm/guided_size string 90%07:18
_KaszpiR_or just create simple partitions and use script to make your own customs07:21
chl_anyone know where static leases are written to in isc-dhcp, when you add them by omapi?07:30
uzee_KaszpiR: thanks but "d-i partman-auto-lvm/guided_size string 90%" would give me how much a logical volume can use from the volume group, no?07:42
uzeesorry, I meant how much of the volume group to use07:42
uzee_KaszpiR: Also, not sure what you mean by creating simple partitions and then use script, do you mean create non-lvm partitions and then use like a preseed/late_command or something?07:44
uzeeThe first thing I'm trying to understand is that if its even possible to use percentage values in the min, priority and max fields07:45
uzeeIt seems counter-productive to allow absolute values only, as that implies knowing my disk sizes everytime before hand. While thats doable, but we have an almost 100% virtual env. and sometimes VM creations from templates or clones is carried out without giving a lot of thought to storage size07:48
uzeeIMHO percentages would allow to do the right thing whether a VM is created with a 15GB disk or 150GB07:49
weedmiccheers08:52
OnepamopaQ: what's the best way to transition ubuntu xenial 16.04.4 from openssl 1.0 to 1.1 ?09:57
Onepamopa(system-wide)09:57
Onepamopaif that's even possible09:57
rbasakNot really practical.10:04
rbasak18.04 ships 1.1. You could put a 18.04 container on a 16.04 system if you can't upgrade it.10:06
Onepamopawell, I could but then I'd have to fix 50 custom software-related s***s ...10:07
Onepamopa+ directadmin is running there ... it'd be a mess10:07
supamantrying to set up an ldap server which is working, I can connect to it using basic slapd tools, but when I try to connect to it using tools from ldapscripts like ldapadduser then I get a error 49 (permission denied or wrong password), I set the debug level to -1 and here is the result from one ldapadduser try: http://paste.debian.net/1081705/10:31
supamancan someone here see what is wrong?10:31
supamanI have double checked the password in /etc/ldapscripts/ldapscripts.passwd and it does not contain a trailing newline10:35
supamandammit, the password is wrong10:51
uzeeAsking again in the hopes that some more folks would've come online and I might be able to get clarity11:06
uzeeI'm trying to do lvm partitioning in a preseed file and can't figure out if I can use percentages for min, priority and max fields..? anyone?11:07
uzeeAbsolute values work fine but I'd like to setup a preseed where I don't have to keep changing the values based on the disk size of each server I provision11:07
uzeehence percentages would be much cleaner solution, can anyone advise if thats possible? I've tried sticking in percentage values but the install fails at a later time with "no space left" error11:08
rbasakWith partman?11:19
rbasakI've tried before and never got anything useful out of it. The algorithm is well specified, but it cannot be easily reversed, IIRC.11:20
tomreynuzee: since lvm is so flexible, you could just create those LVs with small (but large enough to install ubuntu) fixed sizes, then resize them according to your needs post install.11:30
lordievaderI'd second that approach. LVM with ext4 can easily grown. Shrinking is a bit harder. So determine what you need. Add a bit of headroom and use those values in the preseed.11:32
gislavedlordievader why shrink ? never reducre your private collection ;)12:21
gislaved*reduce12:21
uzeethanks much rbasak, tomreyn and lordievader12:21
uzeeMy fundamental thing was to first verify if partman can actually handle percentage values. Looks like it can't. You'll are right, I also thought of the same approach to create small enough lvm partitions and then resize later. I use ansible for config mgmt, so that can be automated as well, but again, for potentially every different disk-sized server, I will need to individually address it at either preseed or ansible :(12:23
uzeekickstart on the other hand handles it without any issues. I could be wrong but my thinking is that a percentage approach allows to have a single kickstart file for me regardless of disk sizes, the partitions will always be proportional12:25
samba35i am trying to setup pci passtrough with 16.04.06 i am able to start guest with no error but i could not see another guest on second monitor14:45
samba35 i have blacklisted nvida for  guest /monitor14:57
samba35be right back15:11
bobbytables5_hello, where should a cloud-config yaml should be put ?  or if I want to run a bash script on first launch, is it enough to copy it somewhere for cloud-init to start it ?16:16
blackboxswbobbytables5_: if you are rolling your own images, you can place cloud-config yaml  in a file under /etc/cloud/cloud.cfg.d/ in that image. you can use bootcmd: config directive in that case per https://cloudinit.readthedocs.io/en/latest/topics/modules.html#bootcmd16:18
blackboxswbobbytables5_: you can also provide that as user-data to most clouds when launching an instance either through their web UI or CLI tools.  cloud-config userdata just needs to be prefixed with #cloud-config on the first line. here are some examples https://cloudinit.readthedocs.io/en/latest/topics/examples.html#yaml-examples16:20
blackboxswbobbytables5_: alternative number 3:   put your executable script in /var/lib/cloud/scripts/per-instance/ or per-once/16:22
bobbytables5_blackboxsw: had to delete my response because I think alternative number 3 would be the perfect solution16:23
blackboxswsounds good :)16:23
bobbytables5_blackboxsw: /var/lib/cloud/scripts/per-once/myscript.sh   just putting it here should be enough ?  I created an AMI and a new instance but in the scripts there is trace of it beeing called :(16:39
bobbytables5_no trace*16:39
blackboxswbobbytables5_: per-once is only called on first clean boot of cloud-init ...... if you have cloud-init version 18.3 or later you can run sudo cloud-init --logs --reboot.. then check /var/log/cloud-init.log for logs related to per_boot16:41
blackboxswsorry I mean per_once not per_boot16:42
bobbytables5_ah I see, it should have been on per-instance16:43
blackboxswper-instance would work as you end up booting a new instance id from your snapshot AMI16:43
blackboxswright16:43
blackboxswoutput or errors from your script will typically end up in /var/log/cloud-init-output.log FYI16:44
ninekeysAnyone know how I can get ahold of the racadm util? Dell's site has stuff for RHEL but their Debian/Ubuntu sections are lacking/broken19:02
tomreynhttp://linux.dell.com/repo/community/openmanage/19:06
ninekeystomreyn: Thanks! I'll give that a shot!19:07
tomreynyou're welcome19:09
RoyKdell is usually very aqueinted to redhat and not with open systems like debian19:28
ninekeysRoyK: Yea, damn shame too. That's one of the reasons why most of the boxes here are CentOS.19:54
=== Sveta is now known as Guest31756
=== svetlana is now known as Sveta
RoyKninekeys: same reason why my boxes run debian22:41

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