/srv/irclogs.ubuntu.com/2016/03/06/#ubuntu-server.txt

jancoowHi. Is it possible to port only 1 application over a vpn, but the rest of the connections (apache, normal ethernet) just trough the normal connection ?00:24
bekksMost likely not, no.00:25
mybalzitchhttps://schnouki.net/posts/2014/12/12/openvpn-for-a-single-application-on-linux/00:25
bekksmybalzitch: And which application is using that vpn?00:27
mybalzitchpopcorntime in this case00:28
jancoowi want to do it with transmission00:35
jancoowbut naice, it's possible00:36
jancoowdo i need a extra nic for this ?00:36
halvors1I have some problems with IPv6. Even when a gateway is set in /etc/network/interfaces ubuntu does not add it to the routing table. Why is that?00:40
mybalzitchhalvors1: what does your interfaces file look like00:44
mybalzitchalso, why not just use dhcp600:44
bearfacemybalzitch: you're everywhere!00:45
mybalzitchbearface: :(00:45
qwebirc88531Hi, I just connected a SAS hard-disk to my server machine, and i'm getting the following message in dmesg:  "Unsupported sector size 520."   What does this mean, and how to do I fix it so that I can use check the disk using badblocks (and then mke2fs to create FS) because right now badblocks is giving me the error message: "invalid starting block" "must be less than 0", which I suspect has to do with the former "Unsupporte00:48
mybalzitchqwebirc88531: 2 seconds of googling your error message gives me http://pissedoffadmins.com/general/unsupported-sector-size-520.html00:51
qwebirc88531mybalzitch:  I read that already.   I do not want to ruin a disk before understanding what exactly thosese commands do00:52
qwebirc88531is 520 a standard sector size for SAS disks and if so, why does the linux kernel not support it?00:53
mybalzitchno 520 is not a standard sector size.00:53
qwebirc88531these are seagate constellation disks.  if that a standard sector size for seagate constellation disks then?00:54
mybalzitchnone that I've ever seen00:54
qwebirc88531i'm trying to understand how the sector size of 520 was set to begin with.  these are used disks I bought off of ebay00:55
mybalzitchthey may have been used in some proprietary raid enclosure that decided 520 byte sectors is the way to go00:55
qwebirc88531now that you mention that, could it be the case that my SAS controller (hardware/firmware) on my server machine only supports sector size of 520, and how could I verify this...01:02
mybalzitchwhat kind of sas controller are you using01:03
mybalzitchalso, I've never heard of a sas controller reporting drives as being 520 bytes.01:03
mybalzitchbut what I don't know could fill a book01:03
mybalzitchor three01:03
qwebirc88531whatever comes presinstalled by default on my Lenovo ThinkServer, model# 70B5001TUX .  It has 4 SAS ports on the card.01:03
mybalzitchlspci|pastebinit01:04
qwebirc88531and I have only connected 1 SAS disk to this controller (other 3 ports are unconnected).01:04
qwebirc88531that server machine does not  have network access, so i would be able to do lspci, but not paste anywehre...01:05
mybalzitchahhh01:05
mybalzitchbut think about it logically for a second01:06
mybalzitch*everything* expects 512/4k sector sizes, and it's been this way since the age of modern hard drives. Why would they put out a sas card that only identifies drives as having 520 byte sectors, which breaks compatability with everything01:07
qwebirc88531right, that makes sense... but then again, keep in mind I'm a complete NOOB to this - this is my first ever SAS disk, and even SCSI is new to me, i've only deal with SATA thus far...01:08
mybalzitchquoting some random internet post: I read online the reason that these drive are formatted that way is due to some proprietary software that these vendor uses needs the additional sector size for some fancy parity stuff.01:09
qwebirc88531the previous owner/seller seems to have used SeaTools (SeaGate proprietery disk checking software) to check these disks, and AFAIK used these disks under Windows...01:10
mybalzitchnope01:11
qwebirc88531nope... ?01:13
mybalzitchthey weren't used under windows, not with 520 byte sector sizes01:13
qwebirc88531AFAIK, SeaTools only works under Windows, or maybe it was a BIOS/speacial-OS utility01:15
qwebirc88531https://en.wikipedia.org/wiki/SeaTools01:17
qwebirc88531Now, to the issue of making the disk usuable:  http://pissedoffadmins.com/general/unsupported-sector-size-520.html  says I have to download 'setblocksize'    ,    but https://bjartolini.wordpress.com/2014/11/06/108/  says I have to just run:  sg_format –format –size=512 /dev/sd...01:20
qwebirc88531again, i do not want to ruin these disks by running some command that makes them permanently inacessible (if that is even possible), and so is running:  "sg_format –format –size=512 /dev/sd..."  safe to do? (I'll be replacing "..." with the drive letter).01:22
Razvaguys I *really* need an advice with this one. check this out: http://screencast.com/t/cu6FhNFpiCf < what is ks? the source (cd/dvd) or the target?01:32
mybalzitchqwebirc88531: do it via sg_format and it's not like the disk works for you currently, so it's not going to get any worse.01:34
halvors1mybalzitch: It doesn't work with DHCPv6 either.01:40
halvors1mybalzitch: I don't know why it's not working. I've tried with dhcp as well.01:41
qwebirc88531interesting that the sg_format manual actually shows examples of using with a block s01:43
qwebirc88531size of 52001:43
qwebirc88531so 520 maynot be so unusual...01:43
Razvaok I'm officialy lost. can you please give me a hand with this: http://screencast.com/t/xWAygdZVzu I have no idea what the heck is going on.01:44
mybalzitchRazva: are you sure you mean to be asking in #ubuntu-server ?01:45
Razvamybalzitch well I have no idea where to ask... I'm just stuck at that darn issue01:47
qwebirc88531mybalzitch:  about how long is the 'sg_format –format –size=512 /dev/sd...'  format operation supposed to take on a 3TB disk?02:24
mybalzitchqwebirc88531: considering it has to rewrite every sector on the disk, 10 Hours at 80MB/s02:25
mybalzitchso any time between now and then likely02:25
qwebirc88531was not expecting that.... I thought it was an O(1) operation, not an O(n) operation... wish I had known about this block size issue earlier.... I would have started that process off, in advance... i'm running out of disk space and need that disk to be accessible fast ;-(02:33
qwebirc88531mybalzitch:  and does it matter if I used /dev/sg2 in the command line, rather than /dev/sda (since they both refer to the same device)?02:36
mybalzitchqwebirc88531: I'm not sure02:37
qwebirc88531sg_scan revealed /dev/sg2 as that disk device... so, I figured I'd stick with that , and running sg_format without any options on that device shows the appropriate diagnostic output of 520-block-size disk , etc.02:40
mybalzitchsure02:41
qwebirc88531correct me if i'm wrong but /dev/sg* are character devices and, /dev/sd* are block devices.  So, does this make the sg_format operation any slower when accessing the disk as a character device as opposed to a block device?02:44
jayjoi have a dead.letter that file that was outputting cron job outputs that I need to find an error message in, and it's now about 19.8 MB large. What are some tools I can use to search? I don't even mind scrolling, but I think cat is limiting the number of lines it prints05:15
jayjoI frustratingly caputured an ouput of the time a script took that ran often, so a lot if is meaningless lenghts of time (eg "completed 9.384 seconds\n")05:16
jayjoI do know that the error would first print the directory it was in, so I could eliminate a lot by just checking lines starting with "/home/jayjo/" knowing that it would have originated there, that would eliminate around 95% of lines. Can I do this with grep and piping or do I need some other tool?05:18
lordievaderGood morning.10:31
TangurinHi! Do anyone here know how to install imagick for PHP 7.0?12:02
=== shauno_ is now known as shauno
=== King` is now known as King
halvorsHow can i request a prefix with DHCPv6-PD with dhclient using configuration in /etc/network/interfaces?14:16
=== Guest82349 is now known as Jalen
Razvafor reasons I cannot really understand MAAS doesn't recognizes one of my server's NICs21:57
Razvait has two integrated (Dell) and one PCI with two ports21:57
=== thumper is now known as thumper-bjj

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