/srv/irclogs.ubuntu.com/2015/12/18/#ubuntu-server.txt

=== Lcawte is now known as Lcawte|Away
neonixcoderHay Arnold. The issue is number of max connection limit02:13
neonixcoderOur hosts reached that value.02:13
sarnoldneonixcoder: ah! :)02:13
sarnoldfun02:13
neonixcoderNow I increased that count and it is working fine now..02:13
nameuser_I'm looking for an easy way to do full server backup. Something like Macrium Reflect ( http://www.macrium.com/reflectfree.aspx)02:48
nameuser_I know Clonezilla, but it requires the system to reboot02:49
nameuser_Rsnapshot is more for backing up files02:50
patdk-lapduplicity :)03:00
patdk-lapor if you want to go the payed route, acronis03:00
Logos01nameuser_: bacula.03:44
Logos01rsnapshot can do the job, but bacula is a very robust enterprise-ready fully OSS backup engine.03:44
Logos01(And it's block-level)03:44
nameuser_Thank you!03:46
nameuser_1Just bought a SSD for my self hosted web server. Expected a huge i04:32
nameuser_1Expected a hugh improvement04:32
nameuser_1But disappointed04:33
patdk-lapheh?04:35
patdk-lapwhy?04:35
nameuser_1Except when installing or backup/restore server, the postgresql query speed doesn't seem to improve mouch04:36
patdk-lapand you tested that disk speed was the problem?04:37
nameuser_1Test disk speed with hdparm and dd04:37
patdk-lapheh?04:37
nameuser_1The ssd is fine04:37
patdk-lapwhat does those have to do with anything?04:38
patdk-laphdparm doesn't do anything04:38
patdk-lapand dd doesn't test anything, that has to do with sql04:38
patdk-lapand on an ssd, dd really is horrid04:38
nameuser_1so give me some tips then04:38
patdk-lapinstead of doing a streaming test, using dd, with all 0's04:39
patdk-lapdo a test that is correct for your usage04:39
patdk-lapwhat that is, I dunno, that depends on your usage04:39
patdk-lapfirst, ask postgresql what the problem is04:39
patdk-lapI dunno postgresql, but it's simple enough in mysql04:39
patdk-lapif you have cpu issue, locking issues, disk issues, ...04:39
nameuser_1Yea04:42
=== MinedAWAY is now known as Mined
=== tinyhippo is now known as darthhippo
znfHi10:52
znfDoesn't ubuntu-server have a way to finish a install over ssh?10:52
=== CiPi is now known as cipi
=== Opcode90- is now known as Opcode90
=== cipi is now known as CiPi
=== cpaelzer is now known as cpaelzer_afk
=== Mined is now known as MinedAWAY
asheesh_Need some help with openstack single install on an Ubuntu server using Juju11:47
asheesh_The installer is waiting for creating some machines for 4 hours now11:52
=== cpaelzer_afk is now known as cpaelzer
theptrIs it a good idea to run an ms active directory on ubuntu 14.04 with samba ?13:22
patdk-wktheptr, never had that work, good enough, personally13:44
theptrpatdk-wk, I want to keep as many as possible linux so13:45
patdk-wkyou asked my thoughts, I gave them, now you want to say they are invalid?13:46
rbasakhallyn, stgraber: is lxc on vivid trying to run a xenial container known to be broken? Wily works, but Xenial doesn't. I see an init process with a bunch of subprocess zombies and nothing else. I also see an apparmor denial but I think I get that in the success case with wily too.13:58
rbasakaudit: type=1400 audit(1450447067.190:28): apparmor="DENIED" operation="mount" info="failed flags match" error=-13 profile="lxc-container-default" name="/" pid=18303 comm="systemd-machine" flags="rw, rslave"13:58
rbasakUsing lxc-start-ephemeral.13:59
ifohancroftHello, guys. I am having trouble creating a software RAID 0 on Ubuntu Server 14.04.3 x86_64 using two discs (/dev/sdb and /dev/sdc) using mdadm14:16
ifohancroftI've created it using mdadm --create /dev/md0 --level=raid0 --raid-devices=2 /dev/sdb /dev/sdc14:18
ifohancroftThen I've created folder 'storage' (without the quotes) in / then I've put in fstab Then I've put this in /etc/fstab /dev/md0 /storage ext4 defaults 0 014:19
ifohancroftThen I rebooted and after grub times expires and ubuntu loads i pretty much get a black screen14:19
patdk-wkwell, that isn't going to work14:20
patdk-wkyou never told mdadm to *mount* your raid14:20
ifohancroftHow to do that?14:20
patdk-wkmdadm --detail --scan >> /etc/mdadm/mdadm.conf14:22
ifohancroftI will execute that in a minute, as soon as the server boots (well from recovery console)14:23
ifohancroftbtw I've manually put lines in mdadm.conf now I executed the command and will check the conf14:27
ifohancroftwell it looks the same14:27
ifohancroftfirst line: DEVICE /dev/sd[bc]14:27
ifohancroftsecond line: ARRAY /dev/md0 devices=/dev/sdb,/dev/sdc14:28
patdk-wkthat is strange14:31
patdk-wkit doesn't do something like, ARRAY /dev/md0 UUID=xxxxx14:31
patdk-wkgenerally, depending on the drives to be called the correct letters, is a horrible thing to depend on14:31
patdk-wksuch as, replacing a disk, adding a disk, or even installing a new hba14:32
patdk-wkwill cause that all to get changed14:32
patdk-wka disk failing14:32
ifohancroftactually i think for some reason it's not writing in the conf14:33
ifohancrofti just checked14:33
ifohancrofti deleted it and executed the command again and the conf was empty14:33
ifohancroftalso i don't think it was created after i installed mdadm and created it manually14:33
ifohancroftmdadm after being installed mentionend mdamd.cf maybe its conf is somewhere else?14:34
patdk-wkit's not14:35
patdk-wkI have a few systems, including this one I'm on now, using 14.04.3 with mdadm14:35
ifohancroftso maybe if I change it to use UUID? however which UUID is that of which drive or of what and how do i find it?14:36
patdk-wkfirst I would comment out DEVICE line14:36
patdk-wkblkid will give you the UUID14:36
patdk-wkhmm, it will give it in a different format though14:37
patdk-wkwhat does mdadm -Es, give you?14:37
ifohancroftoh awesome it gives me the UUID and stuff of /dev/md014:38
ifohancroftit gives:14:38
patdk-wkyou do NOT want the uuid of md014:38
ifohancroftARRAY /dev/md/0 metadata=1.2 UUID=uu:id:etc name=os1.014:38
patdk-wkunless your putting it into /etc/fstab14:38
ifohancroftname=os1:0 i mean14:38
patdk-wkno, that iline is good14:39
patdk-wkI meant blkid one14:39
patdk-wkfrom blkid:  /dev/md0: UUID="626a5a92-b783-44ff-8a7d-a0236287892f" TYPE="ext4"14:39
ifohancroftshould I put the uuid in fstab instead of '/dev/md0'14:39
patdk-wkthat UUID is of the ext4 filesystem installed ON md0 :)14:39
patdk-wkthat is optional, but generally better14:39
ifohancroftwell it doesn'ty give me uuid of md014:39
ifohancroftblkid i mean14:39
patdk-wkincase md0 is called something else, but not *as* likely to happen14:39
patdk-wkis md0 started/assymbled?14:40
patdk-wkdid you format it with a filesystem yet?14:40
ifohancroftmaybe i should not put it in fstab as /dev/md0 but as /dev/md/0?14:40
ifohancroftthe md0?14:40
ifohancroftlet me check14:40
patdk-wkya14:40
ifohancroftfdisk can't find it14:41
patdk-wkfdisk finds partitions14:41
patdk-wkdid you put a partition on md0?14:41
ifohancrofti don't think i did though (stupid tutorials on the web, show you how to do something and what to do but not how)14:41
patdk-wkI never do14:41
ifohancrofti don't think i have14:41
ifohancroftbut not why i mean14:41
patdk-wkyou are not suppose to use tutorials14:41
patdk-wka tutorial is notes someone created for their usage14:42
patdk-wkdocumentation is created to explain to others14:42
ifohancroftgood point, thank you (didn't know that to be honest)14:42
patdk-wkso a tutorial/blog/... is only useful if you already know how to use something14:42
ifohancroftbtw atm mdadm --detail /dev/md0 gives me mdadm: cannot open /dev/md0 no such file or directory14:42
patdk-wkwell, that is cause most poeple advertize it wrong :)14:42
patdk-wkthey make a tutorial thinking to help other people14:43
patdk-wkforgetting to put in all their *thoughts* on why they did any of it14:43
ifohancrofti guess the raid is not created atm because i executed mdadm --create /dev/md0 --level=raid0 --raid-devices=0 /dev/sdb /dev/sdc and it asks me to create it again14:44
ifohancroftsays they appear to be part of a raid array and that partition table exists there etc and asks to continue the array creation14:44
ifohancroftat this point how should I proceed into creating the array, making it stick after reboot and making it auto-mount on boot etc14:45
ifohancroftcreate it, check the uuid, put it in mdadm.conf then reboot?14:46
rbasakhallyn, stgraber: fyi, upgrading to wily fixed the issue. I can start xenial containers now. I don't know if that's due to a side effect of the upgrade or an actual package version difference though.14:46
=== CiPi is now known as cipi
ifohancroftpatdk-lap: I created the raid again, used the command to make mdadm put stuff in its conf, cleared the conf from my stuff so only what it put in there stays in there, saved it, rebooted and pretty much the same thing (a black screen)14:52
patdk-wkI think your having a different issue14:53
=== cipi is now known as CiPi
patdk-wkand don't think mdadm is the problem :(14:53
ifohancroftI will boot into recovery console and check if the raid is up and running, if it is i will try to find what else might be the problem, if not, I will try to get it to work and then see if the problem presists14:56
patdk-wkat this point14:59
patdk-wkI would just remove mdadm.conf and your line from fstab (thought shouldn't be needed)15:00
patdk-wkeven with it failing, it should not give you a blank screen15:00
ifohancroftok, I removed them and am now rebooting to see what will happen15:01
ifohancroftyeah, still the same, let me try few things15:04
ifohancroftwithout the drives inside, it's booting and even the grub timeout time (you know the time after which the chosen option will be auto loaded )15:07
ifohancroftbut that is probably because of less drives and because the only drive now inside is an ssd on which is the os15:07
ifohancroftalso i think with the drives formated and without partitions it can also boot15:07
ifohancrofti will try to erase them and try to boot with them inside15:08
ifohancroftbefore I start creating the raid should i have some partition on the drives and any flags set?15:10
ifohancroftor should i keep them as unallocated space15:10
patdk-wkoptional15:13
patdk-wkgenerally it can be a good idea to create a parition, and use that parition to mdadm15:14
ifohancroftI think the problem now may have been that the raid was still running, I stopped it now and rebooted now we will see15:14
patdk-wkjust so you don't accidently think it's a blank disk and create a partition on it later, wiping it15:14
ifohancroftso create ext4 on each then create raid then I guess I should create a partition on /dev/md0 then mount it?15:15
patdk-wkflags are completely useless these days, really15:15
patdk-wkdunno what you mean by create ext415:15
ifohancroftbtw yes, now that the raid is stopped (using sudo mdadm --stop /dev/md0 and sudo mdadm --zero-superblock /dev/sdX... for each drive)15:15
patdk-wkdisk, partition, mdadm on partition, ext4/... on md15:15
ifohancrofti mean create ext4 partition15:16
patdk-wkwhy?15:16
patdk-wkthere is no such thing as an ext4 partition15:16
ifohancroftdidn't you mean that is a good idea to do so i don't think the disk is empty?15:16
ifohancroftah yeah it's a filesystem15:16
=== cpaelzer is now known as cpaelzer_afk
ifohancroftso i guess i didn't realize there is a difference between a partition and filesystem15:16
ifohancroftso i am starting from scratch now in creating the raid, what is the first thing i should do?15:17
patdk-wkthe filesystem type in the partition table is also mostly useless15:17
jrwrenone of those important subtle distinctions15:17
patdk-wknormally set to 83 == linux filesystem15:17
patdk-wkbut it is mdadm, not linux filesystem15:17
patdk-wkso generally fd is perferred15:17
patdk-wkmdadm auto mount15:17
patdk-wkfd  Linux raid auto15:17
patdk-wk   Device Boot      Start         End      Blocks   Id  System15:18
patdk-wk/dev/sda1            2048   128901119    64449536   fd  Linux raid autodetect15:18
ifohancroftso I should operate on /dev/sdb1 not /dev/sdb?15:19
ifohancroftor?15:19
patdk-wkoptional, but most people expect partition table to exist15:19
patdk-wkso if it does, you can future protect yourself15:19
patdk-wkbut it's strictly not needed15:19
patdk-wkI used to never use partitions15:20
ifohancroftok now I have /dev/sdb1 start 2048 End 1953525167 Blocks 976761560 ID 83 System Linux15:20
patdk-wkthen I found several *utilities* they kept wiping out my drives that didn't have partitions, really upset me15:20
ifohancroftlol15:20
ifohancroftso your point about creating a partition is a very good one15:20
patdk-wkoh? you have an uninitialized disk, let me fix that for you!15:20
ifohancroft:D15:21
ifohancrofthow did you set Linux raid autodetect to your drive and does it matter if it's just Linux or Linux raid autodetec or is this just a comment to the partition?15:22
patdk-wkit doesn't matter what it is15:22
ifohancroftah yeah I found it15:22
patdk-wkbut I think mdadm checks it15:22
ifohancroftthe id15:22
ifohancroftok so what should I do next? Create raid with mdadm -C /dev/md0 --level=raid0 --raid-devices=2 /dev/sdb1 /dev/sdc1 ?15:24
patdk-wksure15:25
ifohancroftOk it is created. Now I should make mdadm put the conf for the array in its conf?15:26
patdk-wkyes15:26
patdk-wkpost that line here too15:26
ifohancroftmdadm --detail --scan >> /etc/mdadm/mdadm.conf15:26
patdk-wkwell, I meant of the line added to mdadm.conf15:26
ifohancroftah :D15:27
ifohancroftARRAY /dev/md0 metadata=1.2 name=os1:0 UUID=700:long:etc15:27
patdk-wkok15:27
patdk-wkthat looks good15:27
patdk-wkblkid has stuff15:28
ifohancroftso I should check blkid now?15:28
patdk-wkshould show linux_raid_member lines15:28
ifohancroftwell it shows /dev/sdb1, /dev/sda1, /dev/sda3, /dev/sda4 and /dev/sdc1 (no /dev/md0)15:28
patdk-wkyes15:29
ifohancrofton both /dev/sdb1 and /dev/sdc1 it says that its TTYPE is linux_raid_member15:29
patdk-wkmdadm --assymble15:29
ifohancroftmdadm --assemble?15:29
patdk-wkprobably15:29
patdk-wkenglish was my first language15:29
ifohancroft:D15:29
ifohancroftit says an md device must be given in this mode15:30
ifohancroftso mdadm --asemble /dev/md0?15:30
ifohancroft(btw i will go for a cigarette)15:31
patdk-wkah15:31
patdk-wkmdadm --assemble --scan15:31
ifohancroftback and ok15:35
ifohancroftdone15:35
patdk-wknow blkid shows md0?15:36
patdk-wkor it might not15:36
patdk-wkbut md0 exists now right?15:36
patdk-wkprobably best to, cat /proc/mdstat15:36
ifohancroftyes, it doesn't show md0 and yes catting /proc/mdstat shows md0:active raid0 sdc1[1] sdb1[0]15:37
patdk-wkok, time to mkfs.ext4 /dev/md0 ....15:37
ifohancroftdone15:38
patdk-wkblkid15:38
patdk-wkadd to /etc/fstab using the UUID15:38
ifohancroftyes it now shows UUID15:38
ifohancroftof md015:38
ifohancroftdefaults for options and 0 0 for dump and pass?15:41
patdk-wkwell, likely 1 or 2 for pass15:42
patdk-wkbut it shouldn't matter much15:42
ifohancroftok i put 1 like on /15:43
ifohancroftso now in theory it's all done and a reboot follows?15:43
patdk-wkyes15:43
patdk-wksince you don't need it in initramfs15:43
patdk-wkas it's not a boot/root drive15:44
ifohancroftok, time to pray to the server :D15:44
ifohancroftIt works! Thank you so much dude! I will write the stuff down and look at documentation to fill in the gaps (learn the stuff I now figured out I don't know)15:48
ifohancroftbtw as my user I don't have write permission on there atm, did I not mount it well or it's normal15:48
ifohancroftI mean I didn't mount it as read only or something?15:48
patdk-wkdunno15:48
patdk-wkbut you didn't setup permissions15:48
patdk-wkso likely only root has write access15:48
ifohancroftwell I can write as root15:48
ifohancroftif it was read write I won't be able to write even as root, right?15:49
patdk-wkyes15:49
ifohancroftThank you very much!15:49
ifohancroftI should really start like right now to see what I don't know much about or don't understand and fill in the gaps15:49
capoderrahello, all. I've just install ubuntu server and the top and left portions lay off screen so I am having a hard time configuring files.16:18
capoderraxrandr only works in GUI16:18
capoderraI've tried fbset, but I can't get it to change my resolution16:18
capoderrai've tried fbset -xres=1360 -yres=850, but that outputs the usage for fbset16:19
capoderrathis last command supposedly worked for somebody, but it doesn't work for me, even with the same version of fbset16:20
tewardcapoderra: have your monitor autoconfigure16:42
stgraberrbasak: well, that's pretty odd seeing how lxc is identical in vivid and wily (exact same source)16:53
stgraberrbasak: the behavior you describe sounds like a broken or crashed lxcfs though16:54
capoderrateward, sorry, it's a TV connected via HDMI16:54
tewardcapoderra: oh.  I typically see HDMI TVs cut off things, and I never found a way to resolve it, server or otherwise16:55
teward(TVs aren't the best for that stuff)16:55
ogra_capoderra, find the "overscan" option in your TV settings menu ... and toggle it16:56
=== m1dnight1 is now known as m1dnight_
capoderrateward, it's all I got. It's funny, I never had that problem on my old machine.16:56
davidic657Hi guys, had a server with hetzner for a while now and never seem to get kernel updates, just the kernel dev, Ubuntu 12.04.5 its currently at Linux 3.11.0-26-generic on x86_64 is this normal?  I ticket hetzner and they just said they have nothing to do with software etc as usual16:56
capoderraogra_, I don't think I have that16:57
ogra_it might be named differently ... but it should be there ... TVs that dont have it are rare16:57
capoderrateward, the old machine used a VGA cable. This one has to be HDMI because it doesn't have a vga port16:58
davidic657anyone tell me what the current kernel should be for Ubuntu 12.04.5 64 bit server should be please16:59
davidic657Do not understand why I do not get main kernel updates, just the dev updates17:00
ogra_davidic657, https://launchpad.net/ubuntu/+source/linux17:01
ogra_(scroll to the bottom)17:01
davidic657ty17:01
davidic657ogra_:  hetzner wont answer me why it does not upgrade?17:04
ogra_upgrade from what to what ?17:04
ogra_the latest kernel in precise is obviously  3.2.0-96.136  ...17:05
davidic657ogra_: says Linux 3.11.0-26-generic on x86_64 here17:06
davidic657sry bit confused here17:06
quanticlikely installed a hwe kernel.17:06
ogra_3.11 ?17:06
ogra_well, hwe kernels come from other LTS releases17:06
davidic657quantic: all I get is the dev updates17:06
ogra_there is no 3.11 in either of them17:06
ogra_the hwe kernel for 14.04 would be 3.14 based17:07
quantic3.11 is the kernel from saucy.17:07
davidic657not sure what they are up to17:07
quantic12.04 has an hwe kernel that's 3.11. 12.04.4, I believe.17:07
ogra_yeah, that looks like a broken release upgrade17:07
quanticogra_: not necessarily.17:08
quantichttps://wiki.ubuntu.com/Kernel/LTSEnablementStack#Kernel.2BAC8-Support.A12.04.x_Ubuntu_Kernel_Support17:08
davidic657just want to know if the kernel is ok and no security problem, never get any updates17:08
davidic657thanks guys for the input17:09
quanticdavidic657: install the "linux-generic-lts-trusty" package.17:09
quanticdavidic657: And review https://wiki.ubuntu.com/Kernel/LTSEnablementStack17:09
davidic657noob here proberbly mess everything up :)17:09
davidic657should be ok fingers crossed17:10
ogra_yeah, what quantic said "linux-generic-lts-trusty" should get you 3.1317:10
quanticdavidic657: Just install a single package, it will pull in the currently-supported kernel.17:10
davidic657thanks17:11
=== cpaelzer_afk is now known as cpaelzer
rbasakstgraber: I think that's reasonably consistent with what I've seen. If the latest SRU is broken but the release pocket works in both Wily and Vivid, then that is consistent with my observations.17:26
rbasakstgraber: I only upgraded in Wily to work around a different bug.17:26
stgraberrbasak: except that we also use the exact same lxc source in xenial as wily and vivid (1.1.5 + 2 bugfix uploads for all 3)17:41
stgraberrbasak: anyway, the symptoms point towards lxcfs (as mentioned in the bug), hopefully hallyn can take a look when he's back17:42
rbasakThat makes sense. Thanks.17:42
=== cpaelzer is now known as cpaelzer_afk
=== cpaelzer_afk is now known as cpaelzer
capoderrais anybody familiar with fail2ban? Do I need it if I'm going connecting to my server from my local network?19:11
patdk-wknothing19:12
patdk-wkexcept if you are in a habbit if not using the right password, you might want to add yourself to the exceptions19:12
patdk-wkor adjust what it blocks, to only block external19:12
patdk-wkor add a firewall rule that overrides fail2ban rules19:13
patdk-wkso many things you can do19:13
capoderrawait wait19:13
capoderraok, fail2ban, as I understand, prevents brute force attempts to crack ssh password... but if I'm going to only connect to my server from another computer on the same local network, do I need fail2ban?19:13
capoderraWhat i'm saying is..19:14
capoderramy server is not facing the wide open internet19:14
geniicapoderra: If the ssh port is not forwarded at the router from the internet at alrge to that machine, you're pretty safe without it19:14
patdk-wkit protects against attacks that it is programmed to notice19:14
genii*large19:14
patdk-wkif the attacks cannot attack your server, why do you care?19:15
capoderragenii, that's what I was thinking19:15
capoderrapatdk-wk, I'm not a security expert, so I just wanted to confirm my assumptoins19:15
patdk-wkwell, it doesn't help to have an extra layer19:16
patdk-wkjust incase someone opens it up later19:16
patdk-wkor someone attacks it on the local network (though probably easier ways to do it)19:16
patdk-wkbut strictly, if what you say is true, it's not required19:16
capoderraok, thanks so much19:17
patdk-wkand it's really not for security too much19:17
patdk-wkthough it can help slow down brute force attempts19:17
capoderraI have another question. In my /etc/ssh/sshd_config file, there is a %h before the pathway to my authorized_keys... what is that?19:19
quanticcapoderra: Thats a shorthand for the user's home directory. I.e. the authorized keys file for each user is located in that path relative to the users home directory.19:24
capoderragot it19:25
jarkinoxhow can I make ubuntu server detect and mount my external drive on reboot?19:41
jarkinoxi have to unplug/plug every time19:41
Syntheadjarkinox: what do you have now?19:45
jarkinoxSynthead what do you mean?20:00
Syntheadjarkinox: how are you mounting it?  Do you have any /etc/fstab or auto-mount settings?  What do you mean by "have to unplug/plug"?  When you do that, what happens?20:12
=== cpaelzer is now known as cpaelzer_afk
jarkinoxfdisk -l doesn’t even show the drive after reboot20:19
jarkinoxi unplug the harddrive, and then it shows up20:19
=== Luke__ is now known as Luke
jarkinoxSynthead ^20:37
=== Luke_ is now known as Luke
=== darthhippo is now known as tinyhippo
Syntheadjarkinox: is there any kind of error in the ring buffer (dmesg) about the drive after the server is booted with it plugged in?22:50
Syntheadjarkinox: is it usb?22:50
Syntheadjarkinox: what make/model of the drive?  if it's usb, what does it show in lsusb?23:00
jarkinoxSynthead: It is usb23:32
jarkinoxit’s a western digital 3tb drive23:32
jarkinoxlet me check on those other items you asked for23:32
Syntheadjarkinox: a lot of hard drives hang a while as they spin up23:32
Syntheadjarkinox: maybe it's timing out as it's being queried by some means?23:33
jarkinoxwhat am i looking for in dmesg?  there’s a lot there.  can you give me a grep command?23:33
Syntheadjarkinox: might check lsusb first and grep for its description23:34
Syntheadjarkinox: perhaps grep for /dev/sd ?23:34
Syntheadjarkinox: I recommend dmesg | less and just / to try to look for it23:34
Synthead-i (without /) toggles case sensitivity23:35
jarkinoxjarkinox@Ubuntu:~$ lsusb23:36
jarkinoxBus 001 Device 002: ID 0480:a003 Toshiba America Info. Systems, Inc.23:36
jarkinoxBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub23:36
jarkinoxBus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub23:36
jarkinoxBus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub23:36
jarkinoxBus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub23:36
jarkinoxnot in there23:36
Syntheadjarkinox: is your drive plugged in?23:36
jarkinoxyup23:36
Syntheadjarkinox: are you able to use it?23:36
jarkinoxyes, but after a reboot, i need to physically remove the usb and plug it back in23:36
jarkinoxthen it’s detected23:36
Syntheadjarkinox: what does lsusb say when you unplug it, then plug it back in?23:37
Syntheadby the way, is this drive going to be permanently installed on this box?23:37
jarkinoxBus 001 Device 007: ID 1058:1230 Western Digital Technologies, Inc.23:37
jarkinoxBus 001 Device 002: ID 0480:a003 Toshiba America Info. Systems, Inc.23:37
jarkinoxBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub23:37
jarkinoxBus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub23:37
jarkinoxBus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub23:37
jarkinoxBus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub23:38
jarkinoxyes, permanently on the box23:38
Syntheadjarkinox: you might seriously reconsider using it via the usb enclosure23:38
Syntheadjarkinox: there's is almost always a data drive inside23:38
Syntheadsata*23:38
jarkinoxwhat does that mean?23:38
Syntheadjarkinox: if you remove the drive from the enclosure and plug it directly into your motherboard with sata, not only will you circumvent this issue, but you'll have an enormous speed improvement23:39
Syntheadjarkinox: usb 2 or 3?23:39
jarkinoxok now there’s something in dmesg23:39
jarkinoxcan i paste a bunch of lines without it looking like spam?23:39
Syntheadjarkinox: pastie.org23:39
jarkinoxit’s usb 3 on a very old Dell box23:39
Syntheadusb 3 isn't so bad23:39
Syntheadjarkinox: does the dell box have usb 3 as well?23:40
jarkinoxhttp://pastie.org/private/uvsblr2ncn5nubgzanjr9w23:40
jarkinoxi seriously doubt it has usb 323:40
jarkinoxit’s ancient23:40
jarkinoxback when 80 gigs was a lot23:41
Syntheadjarkinox: are you ok with your read and write speed being a combined 30 MiB/s ?23:41
jarkinoxyeah, i don’t use it a whole bunch.  it’s like cold storage23:41
jarkinoxbut i like to tinker with things :)23:42
jarkinoxdon’t mind a little speed improvement23:42
Syntheadjarkinox: ok, as long as you're aware.  sata 2 will operate at 3 GiB/s, which is ~100x faster.  Your drive will likely peak at a couple hundred MiB/s though, being a disk with platters23:43
Syntheadjarkinox: do you see "Western Digital" anywhere in your ring buffer before plugging that disk in?23:43
jarkinoxdmesg | grep Western23:44
jarkinox[14339.730100] usb 1-4: Manufacturer: Western Digital23:44
jarkinoxnope, only after I plugged it in23:44
Syntheadjarkinox: what about "USB"?23:45
Syntheadjarkinox: anything worth mentioning?23:45
Syntheadjarkinox: also, when the drive is unplugged with the platters stopped, how long does it take to spin up and be recognized?23:46
Syntheadjust generally23:46
Synthead5-10 seconds ish?23:46
jarkinoxyeah it’s pretty quick23:46
Syntheadsome motherboards have a setting in the bios that goes by the tune of "wait for disks" or something23:46
Syntheadit doesn't continue to boot until all attached storage responds23:47
jarkinoxhttp://pastie.org/private/cv1dpaa1wqmedwcfj3hblg23:47
jarkinoxthe box boots fine even with the hard drive attached23:47
jarkinoxthere’s another Toshiba drive attached that doesn’t have the problem23:47
Syntheadyou might look at dmesg via less as just grep'ing dmesg will remove a lot of nice errors23:48
jarkinoxhow far back does dmesg go?23:48
Syntheadjarkinox: since the box was booted unless you clear the buffer23:48
jarkinoxi rebooted today after some updates23:49
Syntheadwhat is the model of your dell?  dmidecode will tell you23:49
jarkinoxDE05123:50
jarkinoxreleased 200623:50
Syntheadjarkinox: do you have a visible grub boot loader when the machine is turned on?23:50
jarkinoxthere’s no monitor attached to it23:50
jarkinoxand no gui23:50
Syntheadjarkinox: oh right on23:50
jarkinoxso paste the whole dmesg?23:51
Syntheadjarkinox: the reason I mentioned it is because you might check if this is the problem preemptively by interacting with the grub menu while the disk spools up23:51
Syntheadafter ~15 seconds, boot the os and see if the disk was detected23:51
Syntheadjarkinox: if you really wanted, you could23:52
jarkinoxi could go that route but that would require attaching a monitor and keyboard, and I’m determined to figure this out via ssh :)23:52
Syntheadjarkinox: that's a lot of text23:52
jarkinoxyeah i don’t want to but i’m not sure what i’m looking for in dmesg23:52
Syntheadjarkinox: what is your grub timeout value?23:52
jarkinoxwhere would I find that?23:53
Syntheadjarkinox: probably /boot/grub/grub.cfg23:53
Syntheadjarkinox: ubuntu will kill any changes make directly in that file via scripts, but this would only be a temporary test23:53
Syntheadjarkinox: actually, if you have to wait for the disk to spool up before it works properly, maybe just putting a longer timeout in there would be good enough23:54
Syntheadyou'll probably want to do it the "formal" way via /etc/defaults/grub, though23:54
jarkinoxit’s either 2 or 3023:54
jarkinoxnot too sure how to read this bash script23:54
Syntheadgruc.cfg shouldn't be a bash script23:54
Syntheadwhat does the line say?23:55
jarkinoxsorry, it’s not.  I think it’s perl23:55
jarkinoxI’m a C# guy so it’s all jibberish to me ;-)23:55
Syntheadjarkinox: what file?23:55
jarkinoxok hold on, there was a note in there to go to /etc/default/grub23:56
jarkinoxGRUB_TIMEOUT = 223:56
Syntheadjarkinox: as mentioned, grub.cfg is the real config script for grub.  grub doesn't care about /etc/default/grub, but it's where you'd make permanent changes23:57
Syntheadif you want to make a temporary test, /boot/grub/grub.cfg is fine.  If you want to make permanent changes, /etc/default/grub is where you'd likely put it, then run some kind of grub updater script23:58
Syntheadtbh, I'm more of an Arch guy, so I hand-write grub.cfg23:58
jarkinox terminal_output gfxterm23:58
jarkinox 85 if [ "${recordfail}" = 1 ] ; then23:58
jarkinox 86   set timeout=3023:59
jarkinox 87 else23:59
jarkinox 88   if [ x$feature_timeout_style = xy ] ; then23:59
jarkinox 89     set timeout_style=menu23:59
jarkinox 90     set timeout=223:59
jarkinoxArch guy?23:59
Syntheadbleh23:59
jarkinoxArchitect?23:59
SyntheadArch Linux23:59
jarkinoxwhoa23:59
* jarkinox bows down23:59
Syntheadheh, nah, it's not like that23:59

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