/srv/irclogs.ubuntu.com/2016/11/12/#ubuntu-server.txt

=== JanC_ is now known as JanC
squintyexit03:01
pmatuliswebmin doesn't work well with ubuntu05:14
Seveass/ well.*//07:09
RoyK!webmin07:11
ubottuwebmin is no longer supported in Debian and Ubuntu. It is not compatible with the way that Ubuntu packages handle configuration files, and is likely to cause unexpected issues with your system.07:11
RoyKubottu: webmin is also Learning to administer Ubuntu using the commandline isn't very hard, and that way you may even learn something.07:13
ArchaicLordHi all. First time on IRC a friend suggest to me..09:43
ArchaicLordI was hoping to ask if anyone one could help me sorting out a problem I have in ubuntu server 16.04 please09:43
ArchaicLordok.. well maybe someone will reply...09:50
ArchaicLordI installed 16.04 onto a usb.. I then manually made a raid5 disk array using madam..09:50
ArchaicLordI can see the array is active.. it should have file system of ext409:51
ArchaicLordbut i can't for the life of me cd to it.. teh array is md0 ... i can't cd /dev/md009:51
ArchaicLordany ideas what I need to do to be able to add files to it09:51
RoyKArchaicLord: md0 is a block device, it's not a directory ;)10:03
ArchaicLordhow do access the directory on it? I want to be able to create a samba share10:04
RoyKArchaicLord: on md0, you can either put a filesystem, or as I prefer it, first put an LVM volume group (VG) there and then create a logical volume (LV) on top and then a filesystem on the LV10:04
RoyK!lvm10:04
ubottuTips and tricks for RAID and LVM can be found on https://help.ubuntu.com/community/Installation/SoftwareRAID and http://www.tldp.org/HOWTO/LVM-HOWTO - For software RAID, see https://help.ubuntu.com/community/FakeRaidHowto10:04
RoyKArchaicLord: I guess you're pretty new to linux - welcome - to the real life :D10:04
ArchaicLordnot new to linux.. but new as in doing raid10:05
ArchaicLordand more serious things10:05
RoyKmd0 is just a block device like sda or sdb10:05
RoyKso better put a pv on md0 (pvcreate /dev/md0), then a vg on that (vgcreate myraidvg-or-something /dev/md0)10:05
RoyKand then an lv on that vg (lvcreate -n mytestdata -L 100G myraidvg-or-something) and then you can create a filesystem on that one (that is, in this case, /dev/myraidvg-or-something/mytestdata )10:07
RoyKas in mkfs -t ext4 /dev/myraidvg-or-something/mytestdata10:07
RoyKif it's something big (as in lots of terabytes), consider using xfs instead of ext410:07
ArchaicLordthe pool is 1.8tb10:07
RoyKcan you pastebin /proc/mdstat, please?10:08
RoyK!pastebin10:08
ubottuFor posting multi-line texts into the channel, please use http://paste.ubuntu.com | To post !screenshots use http://imgur.com/ !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic.10:08
ArchaicLord thats a cat command?10:08
ArchaicLordhttp://paste.ubuntu.com/23465125/10:09
RoyKok, good - btw how large are the disks?10:10
RoyKArchaicLord: also - where is  your rootfs?10:11
ArchaicLordmy root os is on usb10:12
RoyKok10:12
ArchaicLordeash disk is 2tb10:12
ArchaicLordi baliscy have a pc £25 from ebay with 4 sata ports ( i have no money) I use d 32gigi usb for server isntall10:13
ArchaicLordi added 4x2tb drives and created the raid manually10:13
RoyKright, so do as I said above - that'll give you a 6TB VG onto which you can place LVs onto which you can place filesystems10:13
ArchaicLordI thought when i ran the comand ext4 it woudl creat all that10:14
ArchaicLordok will do10:14
ArchaicLordthe tutorials i found only tell u how to create teh raid not what to do after10:14
RoyKand for 6TB, given it may grow to something bigger in a year or three, better use xfs10:14
ArchaicLord can i change to the other file system10:14
ArchaicLord          xfs i10:15
ArchaicLordRoyK i dont have any sata ports spare for it to grow..10:16
ArchaicLordI am just using it for my own home media10:16
ArchaicLord         i wanna run plex or something10:17
ArchaicLordand also use to back up to my pc and wifes mac10:17
RoyKArchaicLord: but one day you'll get another controller and some more drives etc - I know how these things work :D10:17
RoyKa friend of mine said the same as you did some years back, she just started off with 2x3TB. Now she's at 10x2TB and I doubt it's the end of it all10:17
ArchaicLord  or just store it on the cloud10:17
RoyKmass storage in the cloud is still either horribly slow or terribly expensive (or both, as a bonus)10:18
ArchaicLordfair enough10:20
ArchaicLordI starting to think getting a full rack server and putting it in my loft might not be a bad idea10:21
ArchaicLordcan i just run mkfs.xfs /dev/md0 as it is or do i need to stop the array first?10:24
RoyKjust make sure you have sufficient cooling10:25
RoyKyou can put xfs directly on top of md0, but again, for various reasons, I'd suggest using LVM on the md and then a filesystem on top of that instead10:25
ArchaicLordha yeah .. loft gets dam hot lol.. a very bad place to put it10:25
RoyKif you stop md0 first, you obviously won't be able  to use it with anything, it'll be like unplugging a drive10:26
ArchaicLordthey are 2tb each10:27
ArchaicLordthey are wd green10:27
ArchaicLordomg ingore that... i scrolled up and replied to an old post again10:28
ArchaicLordI am reading hte LVM guide u sent10:28
ArchaicLordso I have messed with ubuntu desktop on and off.. I like linux.. I just don't like that no one develops for it main stream... ie games and things.. (not ones I play anyway) I been learning web developemt...10:29
ArchaicLordI ran a freenas box previously but it just kept falling over... I not long set up a websever in unutnu for the first time without a desktop environment10:30
ArchaicLordthat went ok.. and then i figured running it at home instead of Freenas might be better so here I am10:30
ArchaicLordI am right in thinking Raid 5 will give me the best use of space, speed and redundancy for a small system?10:41
maxbPossibly, depends how small is small10:44
maxbFor a home server, maybe. For any kind of business application, you need to take a hard look at whether you really want something as weak as RAID 510:45
ArchaicLord8tb made up of 4*2tb drives.. I do have a web server I set up that is samller than this but sounds like i might need to back it up and change it10:50
ArchaicLordbut that 6tb is my home one10:50
maxbArchaicLord: For a 4 drive array, I've have to ask just how much you think you need 6TB capacity rather than the 4TB you'd get from RAID 10.... and if you need 6TB maybe you'd be better doing 6*2TB in RAID 10 instead10:55
maxbOf course, if write performance isn't all that important, and you don't mind that any 2 simultaneous drive failures kill the array, RAID 5 is still an option10:57
ArchaicLordNo was trying to maximise the space.. as affording more drives is an issue10:58
maxbBut RAID 10 will get you better write performance, an ability to survive _some_ patterns of 2 drive failures, and rebuilds that only need to read back from 1 drive instead of all 3 others10:58
ArchaicLordI want to back up my pc, my wifes mac and my mac..... and then I also want to run a media server to host films and music10:58
ArchaicLordjust between the 2 macs.. thats 1tb of data..10:59
ArchaicLordand that wouldonly be 1 back up each..10:59
maxbSeems like RAID 5 is reasonable under the constraints, but you should either keep a spare drive on hand or be prepared to order one next day delivery if one fails11:02
ArchaicLordwhen i get a job I can prob justify it..11:02
RoyKArchaicLord: you can't convert from ext4 to xfs - you'll have to backup your data and recreate the filesystem11:23
RoyKArchaicLord: the only thing I know of that ext4 can do that xfs can't, is to be shrunk - xfs can only be grown11:23
ArchaicLordthats not an issue there isn't any data on it.. the data i thought was on it is on the usb drive11:23
RoyKok, just create a new fs, then11:24
ArchaicLordoh bother.. i need to destroy the curernt array completly and rebuild from scratch?11:24
RoyKmaxb: for async writes, the performance is likely to be better with raid5 than raid10, since you'll have more data drives11:24
RoyKmaxb: but don't use raid5 with a lot of drives, use raid611:25
RoyKArchaicLord: no, listen.... you have disks or ssds that together make up a raidset, represented by a blockdevice, like /dev/md0. on top of this, you put lvm2, meaning you create a volume group with one physical volume, md0, and on the vg, you create a logical volume, lv, onto which you place a filesystem11:26
RoyKArchaicLord: it's all layered nicely, so if you change something on one layer, whatever's below won't care, that is, if you have lvm setup and recreate the fs, all lvm will see is a bunch of i/o11:27
RoyKso will the raid11:27
ArchaicLordahhh ok so it matters not what file system my raid is currently11:30
ArchaicLordthat will make life happyier..I shall give it a go... so I gotta create volume groupd then create a logical volume then apply xfs to the lv.11:33
RoyKArchaicLord: they are separate enteties11:48
RoyKArchaicLord: yes, create a vg with the raid as a pv and then put an lv on top of that and then a filesystem on the lv11:49
RoyKArchaicLord: most things are like that in linux, the exceptions are btrfs and zfs, where the roles with raid/volume management/filesystems are mixed up, which gives some interesting opportunities11:50
ArchaicLordFreenas was zfs12:18
ArchaicLordok for the vg do I create that as the entire size of my array?12:20
ArchaicLordwhen creating the vg.. for a pool of 6tb would 128m be enough for the physical extent size?13:28
ArchaicLordso I done 6,000,000 / 65,000 = 92.307.. I figure that rounded up would be 12813:31
ArchaicLordok now I am confused I ran this14:25
ArchaicLordmount /dev/lvm-raid/lvm0 /mnt14:26
ArchaicLorddf -h /mnt14:26
ArchaicLordwhich gives me14:27
ArchaicLordFilesystem                 Size  Used Avail Use% Mounted on14:27
ArchaicLord/dev/mapper/lvm_raid-lvm0  5.5T   34M  5.5T   1% /mnt14:27
ArchaicLordso now would    mkdir test /mnt       create a file in the right place?14:28
jelly"mkdir /mnt/test"14:44
biniaor just cd /mount15:11
biniamkdir test :d15:11
ArchaicLordyeah i got it.. was afriad /mnt/ was the os /mnt/ which is why i wanted to check15:11
xibalbaany idea how i can install postgrey w/out postfix as a dependency17:04
xibalbaother than compiling it17:05
=== JanC is now known as Guest64473
=== JanC_ is now known as JanC
TJ-xibalba: "dpkg --unpack" then edit /var/lib/dpkg/status, finding the debian/control file entries for that package and edit the Depends: line :)17:17
TJ-xibalba: in theory then you can dpkg --install with the modified dependency17:18
patdk-laptj, that seems really overkil17:18
patdk-lappostfix isn't a dependency of postgrey17:18
* patdk-lap also wonders how you compile perl17:19
TJ-patdk-lap: that's generally how I hack a binary package's dependencies quickly :)17:20
patdk-lapbut why hack it? if it doesn't even depend on it?17:21
TJ-xibalba: it looks as if postfix is a recommends so you can just do "apt-get install --no-install-recommends postgrey"17:21
xibalbapatdk-lap , didn't know it was perl based hwne i started17:21
TJ-patdk-lap: xibalba said it depended; I didn't double-check on that17:21
xibalbaoh thanks17:21
xibalbai didn't find that option earlier i'll give that a go17:22
TJ-I used to apply that dpkg status hack to allow side-by-side installation of PC/UEFI grub packages that declare Conflicts17:22
=== TJ_Remix is now known as TJ-
=== techmagus_ is now known as techmagus
=== devil is now known as Guest4760
=== Guest4760 is now known as devil_
=== devil_ is now known as devil__
=== devil__ is now known as devilz
=== devilz is now known as devil_
=== andol_ is now known as andol
CodeMouse92#apache20:26
CodeMouse92Oops20:26
phantoms1if im using docker do i stil have to runn ubuntu server?22:24
bekksphantoms1: docker is an application running on a host OS.22:26
bekksyou still need a host OS.22:26
phantoms1y but it can be alsow desctop version!? or would that stil be a security risk ….22:52
bekksWhat are you talking about?22:52
bekksThere is no such thing as "docker without a host which runs docker".22:53
phantoms1ubuntu desctop with docker22:53
bekksYes, you can run docker on Ubuntu Desktop.22:53
phantoms1and how di i secure it?22:54
phantoms1i dont have a domain just public ip22:54
bekksA domain has nothing to do with it at all.22:55
=== devil is now known as Guest712
=== Guest712 is now known as devil_

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