/srv/irclogs.ubuntu.com/2016/04/09/#ubuntu-server.txt

conrmahryes it's UEFI00:02
conrmahrthere's even a UEFI guide that you can run00:02
conrmahrmy UEFI version is H97M Pro4 P2.0000:04
conrmahrby ASRock00:04
JanCI think meant GPT instead of UEFI00:07
JanCI think bekks meant GPT instead of UEFI00:08
sarnoldconrmahr: normally "raid array" means "two or more disks"00:08
conrmahryes00:09
conrmahri had 2 WD 4TB HDDs Raided together00:10
conrmahron a Synology NAS00:10
conrmahrCan I delete one of them on Ubuntu Server so I can transfer the backup HDD from the NAS to the Ubuntu Server HDD over the network?00:11
naccconrmahr: your question is very confusing00:12
nacccoreycb: you had a 2-disk RAID array00:12
nacccoreycb: sorry00:12
naccconrmahr: you had a 2-disk RAID array00:12
conrmahryes00:12
naccconrmahr: you have broken that array00:13
naccconrmahr: and you want to install one of those 2 disks as an external drive on your server?00:13
conrmahryes, but internal drive00:13
naccconrmahr: ok00:13
naccconrmahr: so to make the formerly RAID disk visible to your new system, you should just need to format it (partition table and all) and put a fs on it00:14
conrmahri'm sick of Synology. I want to use Ubuntu Server.00:14
naccconrmahr: but then I really don't understand the last question: "Can I delete on of them on Ubuntu Server so I can transfer the backup HDD from the NAS to the Ubuntu Server HDD over the network?"00:14
naccconrmahr: a) delete one of "what" on Ubuntu Server?00:15
naccconrmahr: b) transfer a HDD over the network?00:15
conrmahrok I have about 3 TBs of data on HDD 100:15
conrmahrand HDD 2 is a backup00:15
JanCbackup?00:15
naccconrmahr: RAID mirror or backup?00:16
conrmahrexact mirror00:16
naccconrmahr: so ideally, you'd just plug in HDD2 (or 1) into your server and it would work, but it's formatted as RAID member?00:17
conrmahrso I want to take HDD2, delete everything and format it for Ubuntu Server, then over the network copy all the files from HDD1 with a network mount.00:17
naccconrmahr: so if it's plugged into your server now, I'd expect you to be able to edit the partition table (fdisk, cfdisk, parted) and delete all partitions and create a new one00:17
nacc*new partition00:18
conrmahrI tried that but it didn't reconize because of the format that Synology uses.00:18
JanCSynology uses standard linux RAID AFAIK00:18
naccconrmahr: why would you need to recognize the format that Synology uses?00:18
conrmahrok00:18
naccconrmahr: you're deleting all the partitions, afaict00:19
sarnoldrecognizing the format might allow skipping the repartition and reformat steps :)00:19
conrmahrwhen i do "sudo fdisk -l"00:19
naccsarnold: that's true, but conrmahr seemed ok/resigned to that :)00:19
JanCactually, I guess his server recognizes the raid mirror & automatically starts it as a degraded RAID00:19
JanCor something00:20
naccJanC: oh that could be ...00:20
sarnoldJanC: ooh00:20
JanCthat would explain the "in use"00:20
naccJanC: didn't think of that00:20
naccconrmahr: need to step away, sorry, but if JanC is right, you'll need to stop that case (possibly with mdadm)00:21
conrmahrwhat do i do after00:21
conrmahractually looks like i got it removed00:21
conrmahri don't see /dev/md127 anymore00:21
conrmahri do i create a new primary partition after i type00:22
conrmahr$sudo parted /dev/sbd00:22
conrmahrso i did "(parted) print"00:26
conrmahrand it says the Partition Table: gpt00:26
conrmahrwith no partition00:26
sarnoldalright, now you've got to decide what you want the disk to do on ubuntu -- if you want to use mdadm to create a mirror, then format ext4, then copy data.. or use zfs to create a degraded mirror, add a filesystem, then copy data over..00:28
conrmahrSo I just want it to store media files00:29
Velus-universewhat is happening here E: Sub-process /usr/bin/dpkg returned an error code (1)00:29
conrmahri have a 60GB SDD for just the Ubuntu OS00:29
conrmahrI"m just wanting to set up these 2 WD Red 4TB HDDs as secondary drives for a NAS.00:31
JanCconrmahr: you want to create a new RAID?00:32
sarnoldVelus-universe: it means "look higher in the log to find out what the error is"00:32
conrmahrno, I just want to get this working and not lose my data.00:32
Velus-universein what log00:33
JanCso you want both drives as separate disks in the end?00:33
conrmahryes00:33
conrmahrInstall them like they are fresh out of the box00:34
conrmahrwith  nothing on it00:34
JanCwell, if there is nothing on it, you also can't put files on it  ;)00:34
sarnoldVelus-universe: the apt-get run00:35
conrmahrha, true. But I was hoping to clean one, transfer the data over the network, then clean the next one and install it.00:35
Velus-universeok its hissing about a folder missing00:35
JanCyou'll need a partition & a filesystem, but you could also make it such that you have one filesystem spread over both, etc. (there are lots of options...)00:36
Velus-universehttp://pastebin.com/e0Jk8GcX that is the log with it00:37
conrmahrwhen you say file system, you mean like OS?00:37
JanCno, the filesystem is what remembers which file, directory, etc. is where on the disk00:37
JanClike ext4, NTFS, FAT32, etc.00:37
sarnoldVelus-universe: check dmesg to see if you have errors, from the scsi layer or memory problems..00:38
conrmahroh right00:38
sarnoldVelus-universe: something like dmesg | tail -30   ought to be enough to give you an idea if there's anything serious00:38
conrmahrso would you recommend NTFS if I was sharing it with other Mac and PC computers?00:38
JanCif you mean sharing over the network, then no00:39
sarnoldwhat do you mean by "sharing it with"?00:39
conrmahryeah sharing over the network00:39
conrmahri want to make the device a NAS/Media Server00:39
Velus-universehttp://pastebin.com/wJ7Y88i100:39
sarnoldVelus-universe: good00:40
sarnoldVelus-universe: check df -h  -- are any filesystems at 100%, or close to it?00:40
Velus-universenope all 1 or 2 %00:41
Velus-universeor 0 %00:41
sarnoldVelus-universe: alright, try apt-get install -f00:41
Velus-universehttp://pastebin.com/TQ62TRZB00:42
JanCmight also be useful to check df -i00:42
Velus-universesame all 1%00:43
sarnoldJanC: definitely good idea, it's something I overlook all the time..00:44
conrmahrso any recommendations on the filesystem for NAS?00:44
JanCconrmahr: it all depends on how you want to use it, how much RAM you have, what Ubuntu version this is, etc.00:45
JanCand the type of files too00:45
conrmahronly 8GB DDR3 now00:45
sarnoldconrmahr: i'm partial to zfs; it provides compression, mirroring, snapshots, and other cool features; see https://pthree.org/2012/12/04/zfs-administration-part-i-vdevs/ for a great series of blog posts that describe it well00:45
conrmahrbut will upgrade to 16GB later00:46
JanCand you could later add the second drive to the same filesystem with ZFS00:46
conrmahrbasically a lot of mpg, mkv files for TV and Movies00:46
Velus-universei wonder why this aint working then00:46
conrmahrthat I will run Plex Media Server over00:46
sarnoldVelus-universe: I'm not sure. the next step is to save aside your dovecot configuration if you hve any, apt-get purge the docvecot package, then apt-get install the package again00:47
Velus-universehwo do i patget purge00:47
Velus-universeand also i got rid of the dovecot to start again00:48
sarnold"apt-get purge dovecot" should do it00:48
Velus-universeim still getting the problems00:48
Velus-universeok i rmeoved dovecot-lmtpd and it worked now00:50
conrmahrso is zfs easy to use for a noob?00:50
sarnoldconrmahr: I think it's easier than mdadm or lvm00:51
sarnoldprobably nothing comes close to the ease of the synology00:52
conrmahrwell once i have it set up i should be golden00:53
conrmahrI worked on RHEL and Ubuntu VPSs for web development00:54
conrmahrbut never had to install hardware00:55
conrmahrwhere's the zfs ubuntu repo? This looks like Debian.00:57
sarnoldheh, I know the feeling, I've used linux for years, but only installed it a few times. the installer ...00:57
sarnoldconrmahr: in xenial, zfs is included; in wily, it's done via dkms packages. earlier than that, and you'll want to use some pakages from a PPA instead00:57
conrmahri have 14.04.4, is that xenial?00:59
conrmahrso i can just do apt-get?00:59
sarnoldthat's trusty00:59
conrmahrwhat's PPA?00:59
sarnolda personal package archive; in this case, darik horn has zfs packages built for precise, trusty, and wily here https://launchpad.net/~zfs-native/+archive/ubuntu/stable01:00
conrmahrgotcha01:01
JanCalternatively, you could try installing Ubuntu 16.04 (xenial) beta instead01:03
sarnoldthat's what I did last week with my new computer01:03
sarnoldso far so good01:03
JanCfinal release of 16.04 should be in two weeks, I think01:04
sarnoldit only took two or three minutes to set up my nine-drive zfs array01:04
JanCnice  :)01:05
conrmahrwhich zfs package should i install for trusty01:12
conrmahrzfs-fuse?01:12
sarnoldno, skip that01:12
conrmahri installed the ppa repo01:12
conrmahrdon't i have to install the package?01:12
sarnoldyou do, but zfs-fuse is an ancient and terrible thing01:13
conrmahroh01:13
sarnoldinstall zfs-linux -- hopefully that'll install whatever else it needs01:13
conrmahrhow about ubuntu-zfs?01:13
sarnoldthat might install everything from his repository in one go; using zfs for the / filesystem is a bit difficult, I wonder if that packge exists to help the zfs root case..01:15
conrmahri did a apt-cache search01:16
conrmahrand it says01:16
conrmahrubuntu-zfs - Native ZFS filesystem metapackage for Ubuntu.01:16
conrmahrzfs-dkms - Native OpenZFS filesystem kernel modules for Linux01:17
sarnoldmight as well go with ubuntu-zfs. it'll probably do the right thing.01:18
conrmahrdone01:19
conrmahrso can you walk me through how to create a new filesystem and partition?01:20
conrmahrwith parted right?01:20
sarnoldzpool create -n /dev/disk/by-id/.... --- pick the device name for the 4tb drive01:20
sarnoldzpool create will know how to partition and format the disk01:20
conrmahroooh01:21
conrmahri like i like01:21
sarnolddang, i've got to take off in a minute..01:21
sarnoldthe -n is a no-op mode, to make sure it looks fine01:21
sarnoldtake it off if you like the way the command output looks01:21
sarnoldand re-run it..01:21
conrmahrFRIDAY NIGHT!01:21
conrmahrok01:22
sarnoldah I got the command wrong, "zpool create -n poolname /dev/disk/by-id/..."01:22
conrmahrso if the disk is /dev/sdb01:23
conrmahrit would be "zpool create -n poolname /dev/sdb"01:24
conrmahrdo i have to create a poolname?01:24
sarnoldthe downside to the shortname /dev/sdb rather than /dev/disk/by-id/ata-WD_..... is that the long name shouldn't change; hte short name can change based on which drives are brought up first by the bios or os01:25
sarnoldyeah, a lot of people pick 'tank' or 'pool' or 'srv'01:25
patdk-lapheh01:25
patdk-lapaggr :)01:25
sarnoldaggr? never seen that one before :)01:25
patdk-lapnetapp01:25
sarnoldahh01:25
conrmahri can find the long name right?01:26
patdk-lapexport and import it01:26
sarnoldconrmahr: alright, after that, "zfs set compression=lz4 poolname  ; zfs set atime=off poolname ; zfs set checksum=sha256 poolname ; zfs create poolname/movies ;  zfs list"    :)01:26
sarnoldpatdk-lap: good point.01:26
sarnoldconrmahr: time to run, have fun :)01:26
patdk-lapwhy checksum sha256?01:27
patdk-lapthat would make it slow01:27
sarnoldbecause I trust it more than fletcher401:27
conrmahri like trust01:27
patdk-lapsure, it's *better*01:27
patdk-lapbut the level of difference is really small :)01:27
sarnoldactually01:27
patdk-laphave to have an ecc error from the disk first01:28
conrmahri do need my p0rn fast though01:28
sarnold... conrmahr if you're not going to have any redundancy anyway, you don't need the better checksum. heh.01:28
sarnoldpatdk-lap: hmm. I hadn't thoght about that.01:28
conrmahrso like later01:28
patdk-lapI would keep with default checksum, unless your going attempt dedup01:28
conrmahrwhen i add the 2nd drive01:28
conrmahrand i just want to clone it01:28
sarnoldpatdk-lap: .. is that why pool scrub runs at only 400 MB/s? :)01:28
conrmahrwould i just do an rsync?01:29
patdk-lapsarnold, no01:29
patdk-lapthat more has to do with iops01:29
patdk-lapand well, transaction sizes01:29
patdk-lapso much metadata to read and verify per block of data01:29
patdk-lapwell, figured out why some of my disks are going so slow :(01:30
patdk-lap3 bad bbwc01:30
sarnoldconrmahr: you'll use "zpool attach". DO NOT USE ZPOOL ADD. write that down.01:30
patdk-lapand 4 bbwc without any ram installed01:30
sarnoldpatdk-lap: awwww01:30
sarnoldouch01:30
patdk-lapI never put any workloads on them before I setup this test01:31
patdk-lapso didn't notice or really care01:31
conrmahrwhere does it say zpool add?01:31
sarnoldconrmahr: the zpool manpage.01:31
patdk-lapzpool add = making raid0's01:31
sarnoldconrmahr: it's way too easy for people to screw this up :) I've seen three people make that mistake already...01:31
patdk-laphad an l2arc die monday :(01:32
patdk-lapcaused the server to panic01:32
sarnoldpatdk-lap: awwwww :(01:32
sarnoldyikes01:32
patdk-lapbut that was illumos though01:33
* patdk-lap wonders if it is worth attempting to use luster01:34
patdk-lapso far, gluster has been horrible01:34
patdk-lapor, lustre01:34
conrmahrso i ran everything01:36
conrmahri get cannot open 'data1'; dataset does not exist01:36
conrmahrthat was my poolname01:36
conrmahroh creat01:36
conrmahrcrap01:36
conrmahri didn't remove the -n01:36
conrmahrwhat's this command?01:37
conrmahrzfs set attime=off data1 ;01:38
conrmahrit errors out01:38
patdk-lapone t01:38
patdk-lapatime, not at time01:38
conrmahrbeautiful01:38
conrmahrnow i just need to transfer the files!01:41
patdk-laprm does that good, really quick too01:41
conrmahrthat's a joke right?01:41
patdk-lap:)01:41
conrmahrhow about rm *01:42
conrmahroops, meant to put it here01:47
conrmahrwould you use "$ cp" to move 3TBs of data?01:48
patdk-lapwhat is it?01:48
conrmahrmedia files01:48
conrmahri mounted the network drive to /mnt01:48
patdk-laprsync -avwP --inplace, should do it nicely01:48
patdk-lapthe v and P are optional01:49
conrmahrwhat's the directories look like01:49
patdk-laptwo directories?01:49
conrmahri mean which is first and second01:49
patdk-lapsource dest01:49
patdk-lapput a / on the end, if you don't want it to copy the source folder itself01:49
patdk-lapbut just stuff in it01:49
conrmahrand what are the v and P do?01:50
patdk-lapv shows you the files as it copies01:50
patdk-lapP gives you progress per file01:50
Velus-universepatdk-lap, i have not got soem of it working by my dovecot wont start and i get nothing in the logs02:57
wsirccc__can anybody help which preseed scenarios are possible. Managed a working cl with virt-install, local preseed.cfg and remote network install. 1) Do not know if preseeding is possible with local iso and 2) do not know, what if in front of a physical computer. tia04:31
wsirccc__can anybody help which preseed scenarios are possible. Managed a working cl with virt-install, local preseed.cfg and remote network install. 1) Do not know if preseeding is possible with local iso and 2) do not know, what if in front of a physical computer. tia05:06
=== athairus is now known as afkathairus
=== afkathairus is now known as afkthairus
ratraceHello. Alt-tab between windows. Which program/package is responsible for that behavior? Unity or Compiz?08:46
ratraceeh... sorry, wrong chan.08:46
=== spammy is now known as Guest8439
mohanadvoxohello can anyone help me ?09:57
mohanadvoxohttp://paste.ubuntu.com/15706982/10:00
=== afkthairus is now known as athairus
conrmahrJanC: Thanks a million for your help.17:01
JanChelping is what we are here for  :)17:02
conrmahrCurrently ryncing data to drive17:02
conrmahrpatdk-wk: thank you too.17:05
wsirccc__is there anybody with any experience with unintended install?17:25
ratracewsirccc__: unintended? or unattended?17:48
wsirccc__ratrace18:16
wsirccc__ratrace: the latter.18:16
ratracewsirccc__: does this help? https://help.ubuntu.com/lts/installation-guide/armhf/apb.html18:22
ratracewsirccc__: oops, sorry, this link: https://help.ubuntu.com/lts/installation-guide/amd64/apb.html18:22
wsirccc__well one could discuss differences with debian https://wiki.debian.org/DebianInstaller/Preseed#Adding_the_preseed_file_to_the_installer.27s_initrd.gz18:28
wsirccc__What is different to debian? Then I understand easier.18:28
wsirccc__ratrace18:28
wsirccc__ratrace:18:28
ratraceI don't know what is different to debian.18:28
ratraceUnless you were referring to this? https://help.ubuntu.com/community/AutomaticSecurityUpdates18:30
ratraceunattended upgrades...18:30
wsirccc__no I want to atomate the install for any use cases, under standing the methods and unittest them,18:33
wsirccc__https://github.com/qemu-buro-point-dpkg/qemu-buro-point-dpkg/tree/master/qemuburo18:35
wsirccc__really18:35
=== Bray90820_ is now known as Brau90820
=== Brau90820 is now known as Bray90820
=== devil is now known as Guest13975
FManTropyxok, I tried to reboot my virtual server, but after disconnecting me it just hanged23:28
=== Monthrect is now known as Piper-Off
=== Piper-Off is now known as Monthrect

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