/srv/irclogs.ubuntu.com/2013/02/23/#ubuntu-server.txt

=== wedgwood is now known as wedgwood_away
keithzgSeriously, any ideas how best to troubleshoot/diagnose a server being unable to resolve names?00:43
keithzgIt's perfectly fine for pure IP addresses, for the record, so I can ping 8.8.8.8 or local servers to my heart's content.00:44
sarnoldkeithzg: what's in /etc/resolv.conf?00:57
sarnoldkeithzg: what's in /etc/nsswitch.conf?00:57
keithzgsarnold: the contents of both (with my company name removed, heh) are up at http://paste.ubuntu.com/5556793/01:00
keithzgI fear I have inherited a sprawling, interlocking and precarious beast from the previous sysadmin (the central router which ostensibly acts as one of the nameservers----it's the 10.1.186.204 one---is running Trustix, to give you an idea.)01:02
sarnoldoh my. blast from the past.01:03
mattwj2002howdy room02:23
mattwj2002I have a question about software raid02:23
mattwj2002if you add an additional drive in a software raid 5 set does it expand the total data capability of the raid set?  can you even add an additional drive?02:24
lifelessyou can and it does. See man mdadm and look for --add02:25
mattwj2002thanks lifeless02:26
mattwj2002you don't seem very lifeless to me02:26
mattwj2002:P02:26
escottmattrae, you cant easily add drives to a raid 5 type device02:27
lifelessescott: why do you say that?02:27
escottlifeless, because it is stripped (with a checksum)02:28
escottmattwj2002, sorry not mattrae02:29
lifelessescott: that just makes the software to do it complex, it doesn't make it hard to use.02:29
mattwj2002no problem escott02:29
mattwj2002has anyone ever done that?02:29
lifelessescott: mdadm --add /dev/mdX /dev/sd<whatever>; mdadm --grow /dev/mdX --size max; resize2fs /path/to/mountpoint02:29
lifelessescott: the whole stack supports online resizes upwards :)02:30
lifelessescott: see the man pages, but its most definitely easy.02:30
escottlifeless, but it does require moving the data around. which is not exactly in the spirit of just adding a device and it being immediately available02:31
lifelessescott: you don't have to wait tough02:31
escottlifeless, im more skeptical of online personality switches02:32
lifelessescott: all unmigrated data is safe to read, all new writes go into the new layout02:32
mattwj2002thanks guys02:32
lifelessmay need a --raid-disks parameter in the grow, its been a while.02:33
mattwj2002no problem02:33
lifelessescott: raid5-6? Thats quite simple too; the Q parity is first calculated onto the new disk02:33
mattwj2002I just wanted to know if it was possible02:33
lifelessescott: then the whole array is walked migrating from the transient 5+Q layout to the final layout (normally left-symmetric)02:34
escottmattwj2002, it is certainly possible and it can be done online, but it is a personality switch and is therefore equivalent to reading all the disk off and writing it all back02:34
escottmattwj2002, im super cautious about stuff like that02:34
mattwj2002I hear ya02:34
lifelessone thing that is worth doing is adding a bitmap first02:35
lifelessmdadm --grow --bitmap internal /dev/mdX02:35
mattwj2002bitmap?02:35
mattwj2002what is that?02:35
lifelessthat makes poweroff's in the middle of the rebuilds not require rescanning anything on the new disks02:35
escottlifeless, i get how it works and i dont dispute there is online switching capability. its just that if i put something into raid its because i want to be really careful02:35
lifelessmattwj2002: gives you transactional writes - writes to bitmap marking blocks as dirty, writes to the blocks, clears the bitmap.02:36
lifelessmattwj2002: its a bit of overhead so normally off, but useful to have on when doing rebuilds or reshapes02:36
mattwj2002okay cool02:37
mattwj2002thanks guys :)02:37
rurufufusshey guys, if I get say, 32 GB ram, will the OS Be able to utilize all that ram for caching _everything_ after being accessed, without ever having to decache them?03:01
rurufufussas in, is there a setting somewhere to specify how much RAM is to be used for disk caching?03:01
escottrurufufuss, there are tunables for the kernel caches03:02
keithzgvm.swappiness for the win.03:02
patdk-lapyou can adjust it as much as you want, but default is to use all ram for cache/buffers03:02
patdk-lapand even program memory :)03:03
rurufufussoh, so by default it already tries that huh03:03
patdk-laprurufufuss, well, atleast for the last 15years or so03:03
rurufufussso I guess this cheap ram I'm eyeing could be beneficial after all? reduces potential swapping and the likes03:03
rurufufussawesome03:04
patdk-lapreally depends03:04
patdk-lapmy desktop machine has 16gigs ram, I normally dont get over 8gigs, unless I start kvm up03:04
patdk-lapreally depends exactly what the machine does03:04
rurufufussalso, is it possible to see how much space a ramdisk (mounted tmpfs) is using?03:05
patdk-lapas much space as is in it, df -h03:06
patdk-lapunless it has swapped it to disk03:06
rurufufusshmm, it has multiple tmpfs listing.. I thought I did unmount it though03:07
rurufufusswith umount -V thedirectory/itwas/mountedto03:07
patdk-lapnormally there are like 3 tmpfs03:07
rurufufussthere's like 13 here03:07
patdk-laphmm, no more /dev/shm03:08
patdk-lapah, it's just /run now, with symlinks03:08
patdk-lapI use a lot of tmpfs on my servers03:08
rurufufussever unmount them?03:09
patdk-lapmany times03:09
rurufufussso they should disappear from df-h afterwards right?03:09
patdk-laponly if nothing is using it03:10
rurufufusswait, so you can unmount and it'll still "exist"?03:10
rurufufussI think I better buy that 32gb ram03:11
patdk-lapthese days, I see no point in not loading up ram, at $50 per 8gigs a stick03:12
patdk-laploading up new servers with 512gigs03:12
rurufufussthat's true I guess, they're so cheap03:13
=== aarcane_ is now known as aarcane
autojackdoes anyone know if I can mount a linux RAID 1 disk with an ext4 partition as just a regular drive in a different system, and access the data?03:45
autojackI should say, software RAID 1.03:45
lifelessmdadm partitions have their own metadata and uuid on the disks03:46
lifelessif you take a single disk from a 2-disk raid1 set, you can assemble it in degraded mode and mount the fs from it, yes.03:47
lifelessyou'll want to make sure you tell mdadm to expose it readonly if you want to take it backw ithout doing a full consistency scan03:47
autojackOK.03:48
lifelessif its a 3-or-4-or-more raid1 set, I don't believe you can03:48
lifelessbecause they are more complex layouts03:48
autojacknope, it's just 2.03:48
autojackto elaborate a little, I have an oldish Debian system with RAID 1, and I want to switch to Ubuntu. so I was thinking I would break the mirror, install Ubuntu to one drive as a degraded RAID 1 if possible, then copy the data off the other drive before adding it into the RAID.03:49
EvoXhello03:58
=== yofel_ is now known as yofel
roaksoax/win/win 1304:51
xxiaoneed build a powerpc cloud image, what's special about that image? just a network enabled rootfs will be fine?04:58
xxiaonot sure if i should use vmbuilder or lxc-creator, want to build it so i can load it under openstack/lxc04:59
=== paddymahoney1 is now known as paddymahoney
scarleo Hi, just configured IPv6 on my Ubuntu server but when I try to ping external addresses it tries to ping from my Scope:Link address instead of the Scope:Global address. Does anyone know what might cause this?10:51
scarleoAnd of course it then fails with: Destination unreachable: Beyond scope of source address10:51
scarleoI can ping my IPv6 address from external sources just fine10:52
Ben64route?10:56
scarleo# ip -6 route 2a02:28f0:0:c::/64 dev eth0  proto kernel  metric 256 fe80::/64 dev eth0  proto kernel  metric 256 default via 2a02:28f0:0:c::1 dev eth0  metric 102410:58
scarleoBen64, was that what you were asking for?11:12
Ben64dunno, i've never had a problem with ipv611:15
Ben64but if you can't ping out but you can ping in, sounds like routing11:15
Ben64had something similar with ipv4 recently11:15
=== 16WAAHOCF is now known as paddymahoney
duncan-nzI've got a samba server running (at least it should be running) and I've installed Swat t ostart configuring it. But I get no reply in the browser when I try localhost:901 from another machine on the network (via wireless) What can I check to see hwat's wrong?12:50
yeatsduncan-nz: 'localhost' is the machine you're on - if you replace 'localhost' with the IP (or hostname if you have DNS or a hosts file configured), that should work13:00
yeatsIP of the *server* that is13:01
duncan-nzhi thanks. first though how do I stop the ping I started on localhost ... ? :)13:01
yeatsduncan-nz: ctrl-c?13:02
duncan-nzwhew! thanks.13:03
duncan-nzthis is where i always get confused. when i run ifconfig i get quite a few ip addresses.13:06
duncan-nzi've tried the one listed as inet and Bcast but they don't work...13:06
duncan-nz(gotta go out and help the kids for a few minutes)13:07
yeatsduncan-nz: the inet one is the one that matters... is the server on the same network as the computer you're trying to access it on?13:11
yeatsother things to consider: firewall on the client machine? firewall on the server? can the server ping the client? can the client ping the server?13:13
duncan-nzwell, ping localhost:901 on the server machine doesn't work, but ping localhost there works fine.13:17
duncan-nzwhen you ask if there server can ping the client. I haven't got samba up and running with access from other machines yet, i guess that's what you mean by clients?13:18
yeatsduncan-nz: client in this case just means "the machine with which you're trying to reach the server"13:21
yeatsping localhost:901 will ping the machine you're on at that time, whether that's the client machine or the server13:21
yeatsget the IP address of each machine (inet address) and try pinging one from the other (without the ":901"13:22
duncan-nzand ping localhost:901 on the server machine (SSH via Putty) gives no reaction.13:22
yeats)13:22
yeats"ping localhost" = "ping myself" - is that what you're trying to do?13:23
yeatsduncan-nz: this might help: http://en.wikipedia.org/wiki/Localhost13:24
duncan-nzjust now i'm trying to see if there is any reply from port 901 on the server. when I try to get a reaction on the server from a SSH to the server I get no reaction. I'm assuming that localhost when written in SSH is regarded as on the machine I'm accesing.13:24
yeatsI see13:24
duncan-nzso I don't think Swat is running, or maybe samba itself is not... that's what I'm tryingt ot work out.13:25
yeatsping doesn't work that way - you can't ping a specific port13:26
yeatsjust a host13:26
duncan-nzoh, so I can't use it to test what's wrong! well that's an important thing to learn. Thanks.13:26
yeatsyou could try 'nmap localhost' (nmap may need to be installed)13:26
yeatsping just tests whether a host is "up" (available on the network)13:26
yeatsnmap will show which ports are open13:27
duncan-nzI have four open ports, all tcp and each for ssh, netbios-ssn, microsoft-da and port 901 for samba-swat13:28
yeatsokay, so the port is open - now the question is can you reach the server from the other machine13:29
duncan-nzI think I should do some more reading about the config files. sounds like I've overseen or misunderstood something critical.13:29
yeatsduncan-nz: is the "client" machine a Windows machine?13:30
duncan-nzI can see that the server has turned up under networks in explorer in windows on this machine. so that's something.13:30
yeatsduncan-nz: if so, open cmd and do 'ping ip-of-server' (where 'ip-of-server' is the actual IP of the server)13:31
duncan-nzclient is windows. but i can jump onto a linux machine if you think that would be better for me to learn and understand this stuff.13:31
duncan-nzok13:31
yeatsduncan-nz: I will always recommend linux over windows, but no need for what you're trying to do right this minute13:31
duncan-nzthat answers fine when pinged from this windows client to the servers inet ip.13:32
yeatsokay, then try opening a browser and entering ip-of-server:90113:32
duncan-nzi'm trying to do everything over SSH and whatching what happens in this windows machine.13:33
yeatsokay - I was just looking back at the original question you asked - you're no longer trying to access the GUI?13:33
duncan-nzwhen i send firefox to the server I get 'can't make connection' when i try the server machine at port 901 i get 'connection reset'. so something must be reacting to my attempt at connection, or no?13:34
duncan-nzI want to get into swat to configure Samba - I doubt I have configured samba correctly and thought Swat would be easier to learn and understand.13:35
duncan-nzSwat is a Samba gui isn't it?13:36
yeatsI've not used it.  My samba knowledge is basically limited to getting a windows machine to see the printer hooked to my linux box ;-)13:36
yeatsI would recommend asking in #samba, though13:37
duncan-nzok. I think i sould spend some more time here: https://help.ubuntu.com/12.04/serverguide/samba-fileserver.html working on getting the config right.13:37
yeatsyeah - and I would read up on networking basics13:37
duncan-nzyeah, i've realised I need to get some basic knowledge here. fun projekt... thanks for the help.13:38
yeatsduncan-nz: sure ;-)13:42
KatronixGreetings all, I'm currently setting up a new web server running Apache. I would like each file to be owned by its own owner and for scripts like WordPress to be able to edit the files. Can you give recommendations on what I need to install?15:01
ikoniaKatronix: they just need to share a common group, and that group be the web server group, that's it15:03
Katronix    ikonia so instead of it being owned by chris:chris it would be chris:nobody ?15:04
ikoniaKatronix: if nobody is the group of the webserver, sure15:08
Katronixikonia ok thanks15:08
Katronixgotta love it when you ask your new hosting company for your IPs, and they say "yes you get 4 IPs"15:20
ruben231hi guys how do i unmount an NFS share..?15:22
melmothlike any other volumes. umount15:22
ruben231melmoth:  exact coomand.?15:23
ruben231command*15:23
melmothumount /path/to/mountpoint15:23
ruben231if i unmount it the storage file of it will be delete or not..?15:23
melmothno, just unmounted15:23
Katronixruben231 unmount just tells the server not to access it15:23
Katronixmay want to make sure your not using any files on it before unmounting it15:24
ruben231 Katronix:but i have this mount as NFS share -----------------> 172.16.0.205:/volume1/NewMP3Recordings  -  5.4T  4.8T  637G  89% /var/spool/asterisk/monitorDONE/MP315:28
ruben231how do i unmount that15:28
ikoniait won't unmount if it's got open files15:28
ikoniaruben231: umount /var/spool/asterisk/monitorDONE/MP315:28
ruben231 ikonia: thanks15:33
Katronixto configure an ubuntu server for an additional IP on eth0 would you refer to it as eth0:1 ?15:54
duncan-nzI've made basic changes to my smb.conf file, created a smb.conf.master file, but when I try to run $ sudo testparm -s smb.conf.master > smb.conf15:54
duncan-nzit says "-bash: smb.conf: permission denied"15:55
RoyKKatronix: just add "up ip addr add 1.2.3.4/24 dev eth0" to the end of the interfaces block15:55
RoyKeth0:x is deprecated15:55
duncan-nz... that should have ended with "... >smb.conf"15:56
KatronixRoy OK, what is the newest way to start networking?16:04
Katronixor restart that is16:06
duncan-nzsudo restart smbd16:07
duncan-nz(if it's samba you're talking about)16:08
Katronixduncan-nz no I was refering to networking16:08
duncan-nzbummer, for 2 secs I thought I'd understood something...16:08
duncan-nzbut I have just learnt that restarting services is no longer done with init scripts.16:09
Katronixyeah I just saw that too16:09
KatronixI've tried service networking restart and it says it doesn't know what is meant by stop and then says its stopped lol16:09
duncan-nzwhat do you mean by networking, surely there's a specific package to call?16:11
duncan-nzor is 'networking' a package?16:11
Katronixadded a new IP to the server, networking at least used to be the way to tell it to re-read its configuration for what IPs it had16:11
duncan-nzso we're two people looking for help talking to each other? bummer again.16:12
Katronixlol yep guess so seems everyone else are off doing other things16:12
duncan-nzso you know Samba16:13
duncan-nz?16:13
Katronixa little, been a while since I used it16:13
duncan-nzI get why I need to restart smbd, but what is nmbd - how do I get info on what something is in bash?16:15
Katronixnmbd is something that works with smb16:15
ruben231 hi guys im having hardtime...finding what cause the huge storage of my server HDD, any idea how to find it..? -----------> http://pastebin.com/1W9ct6du16:16
Katronixruben231 you don't know what is causing: /home/openweb/.Private ?16:17
KatronixAre you still here RoyK?16:20
RoyKyep16:21
KatronixRoyK so this should work: http://pastebin.com/VBVMtPiD ?16:22
RoyKI would have written it as this http://pastebin.com/DKtzwTvm16:25
RoyKbut then - keep in mind that those two addresses are on different subnets16:25
RoyKKatronix: $HOME/.Private is a symlink used if you encrypt the homedir16:27
KatronixOK and then after that what command do I run to get ubuntu to reconfigure the network? is it service network restart?16:27
RoyKnetworking16:27
Katronixok16:28
=== paddymahoney1 is now known as paddymahoney
Katronix service networking restart does not seem to have the desired effect :(16:29
RoyK/etc/init.d/networking restart16:29
RoyKperhaps16:29
RoyKbtw, can you manually do 'ip addr add 192.95.23.246/24 dev eth0' ?16:30
Katronixyou mean type that in at a bash prompt?16:31
RoyKyes16:31
RoyK'up (something)' in interfaces means 'when this nic goes up, run this'16:31
KatronixRTNETLINK answers: File exists <<< was the response16:31
RoyKso what does ip addr list tell?16:34
Katronixhttp://pastebin.com/DUpgX4pP so I guess it is there? even if ifconfig doesn't list it?16:36
RoyKno, ifconfig won't list more than one IP per nic16:36
RoyKunless you use the older ethx:X16:37
Katronixok, so going by that it should work if i ping it?16:38
RoyKit should16:39
Katronixyay it works16:39
RoyKbut clients on 192.95.29.0/24 probably won't be able to reach it unless you setup routing correctly16:39
KatronixI didn't have any control of the IP, it was the host who assigned it16:40
RoyKso the one on 192.95.29.x is from dhcp?16:47
Katronixthey are both from the company I'm getting the dedi from16:48
Katronixthanks for the help all, time to go off and do other things16:50
=== paddymahoney1 is now known as paddymahoney
=== paddymahoney is now known as Guest95608
=== Guest95608 is now known as paddymahoney
lydafor your weekend amusement: a venn diagram of unix commands/utils, us states and territories and irish license plate codes: http://goo.gl/Zy3eY17:02
an_deI do " sudo service dovecot start" service seems to start, i have enabled logging in docecot.conf, service seems to instant die, and my logs are empty. any advice? i have tried to touch the logfiles and gave them chmod 777 to amke sure dovecot could write them if the user\group or anything like that should be wrong.20:24
an_deI am logging to info_log_path = /var/log/dovecot-info.log        log_path = /var/log/dovecot.log20:25
=== gary_poster is now known as gary_poster|away
Styler2goHey Guys. What can i do if i accidently blocked port 22?21:27
maswanlogin on the console and unblock it21:29
Styler2gossh is on port 22...21:29
maswanthat's why I suggested the console21:29
Styler2gowhat console do you mean?21:29
genii-aroundThe physical keyboard21:30
Styler2goits a root...21:30
Styler2goi dont have physical access21:30
maswanor a serial remote console or remote management console if you have a real server in there21:30
Styler2gothe only thing working is port 80 and the CP21:30
genii-aroundStyler2go: So no telnet either?21:31
Styler2goonly port 80 and the cp seems to work21:32
Styler2gowhat options do i have?21:33
genii-aroundProbably depends on your control panel options there.21:34
Styler2goa restart wont help anything, or?21:34
Styler2goits a parallels plesk power panel21:34
genii-aroundStyler2go: Did you turn off/remove sshd, or did you just do something like make an iptables rule which locked you out?21:35
Styler2goufw21:35
Styler2gobut i made ufw 22 allow...21:35
Styler2goi could uninstall ufw.. would thi shelp?21:37
genii-aroundStyler2go: I'd probably try that, yes21:40
Styler2gook it got removed successfully...21:41
Styler2gosemms not...21:41
genii-aroundStyler2go: Since there is probably a way to re-enable ssh access from Plesk, I'd suggest to call your site provider tech support. I do see a page explaining how to let ftp users access by ssh here http://kb.mediatemple.net/questions/914/Enable+SSH+Terminal+for+FTP+user+within+Plesk#dv_4021:46
genii-aroundBut they would know more about the inner workings of that control panel21:47
Styler2gogrr21:47
Styler2gook i have to think about it21:47
genii-around( and, it's not really a support question for ubuntu server in the sense that it's something you did within the control panel which is the issue, and not the underlying operating system is having some issue)21:49
Styler2goi also cant restart the server..21:49
Styler2gothe guys in #ubuntu told me to go here21:50
Styler2gook i got the restart working, i have access to ssh back...21:51
genii-aroundStyler2go: Good, the reboot would have flushed the iptables rules21:52
Styler2gomaybe you could help me now with the real ubuntu... i want to set up a firewall to block if there are coming more than X/sex requests from one ip21:53
genii-aroundStyler2go: I have to go to a hockey game shortly. But someone else might take it up. If you just want to slow down people trying to brute-force password attack maybe look at fail2ban though21:55
lenioshttps://help.ubuntu.com/community/Fail2ban21:55
_KaszpiR_yawn22:22
_KaszpiR_I'd like to install ubuntu LTS minimal ion UEFI via usb22:23
_KaszpiR_any tutorial?22:23
_KaszpiR_ugh now I know, the md5sums got borked22:43
_KaszpiR_ok, looks like it is working22:54
_KaszpiR_whehe, works23:06
PlizzoI have a RAID5 array which used to consist of three 2TB drives. Last week I added another drive and after that I grew the array to include four devices. Although, I forgot to modify the filesystem size. I will attempt to do this overnight, but I'm wondering if this command is correct: "mdadm --grow /dev/md0 --size=max"23:15

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