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

=== dendrobates is now known as dendro-afk
=== Alblasco1702_ is now known as Alblasco1702
MTecknologyWhere are teh ufw logs at?01:03
jdstrandkern.log01:04
* jdstrand is just passing by01:04
MTecknologythanks :D01:04
jdstrandsure01:04
cyphermoxnot quite related, but is anybody else having issues with ec2 instances?01:20
cyphermoxissues as in inability to connect to them :)01:20
MTecknologykindofabuzzkill: hi01:25
kindofabuzzhow do i change auto security updates to manual updates?01:25
kindofabuzzMTecknology: hello01:25
MTecknologyit's a cron task01:25
kindofabuzzMTecknology: oh ok01:26
kindofabuzzMTecknology: sudo crontab -e shows nothing01:26
MTecknologykindofabuzz: ls /etc/cron.*01:27
kindofabuzzMTecknology: /etc/cron.daily: apache2  apport  apt  aptitude  bsdmainutils  dpkg  logrotate  man-db  mlocate  popularity-contest  standard01:28
kindofabuzzmaybe aptitude?01:29
MTecknologykindofabuzz: look in the files and see what they do ;)01:30
kindofabuzzMTecknology: i've looked through ever one of those scripts and could not find anything about updating, except mlocate had something about updatedb01:36
MTecknologykindofabuzz: read the apt script ;)01:37
MTecknologykindofabuzz: don't disable it - but do look at it01:37
kindofabuzzMTecknology: lol i missed that one. read them all 'cept that one01:37
kindofabuzzMTecknology: found /etc/apt/apt.conf.d/50unattended-upgrades, can i just comment out the security line?01:43
kindofabuzzyup. https://help.ubuntu.com/9.10/serverguide/C/automatic-updates.html01:45
=== erichammond1 is now known as erichammond
=== dendro-afk is now known as dendrobates
maxagazhi, what should I add to /etc/apt/mirror.list to have karmic repositories ?02:49
twbNever heard of mirror.list02:52
twbSurely you mean sources.list?02:52
=== robbiew is now known as robbiew_
=== MTecknology is now known as MTeck-ricer
jmarsdentwb: mirror.list is used by apt-mirror04:02
twbHm.04:02
jmarsdenmaxagaz: Lines like    deb http://us.archive.ubuntu.com/ubuntu karmic main restricted universe multiverse04:03
jmarsdenAlso similar ones for karmic-updates, karmic-security, karmic-backports and karmic-proposed if you mirror those too...04:03
maxagazok04:07
maxagazthanks04:07
jmarsdenYou're welcome.04:07
bepright now i have my 2 1tb drives rsync eachother, and I want to do a raid so things are easier. But for one reason or another i do a lot of fresh installs, so if i decide to reinstall ubuntu server will i have any problems setting the raid back up without losing data?04:19
jmarsdenbep: Assuming you partition them sanely, and don't format/recreate the /home partition where your data is, you should be OK... and you have backups anyway, offline, right?  If not, rsync is safer than RAID for you anyway.04:20
bepno right now I jsut have the 2 drives in the one machine. i know its not smart. only thing I have i couldnt lose are family pics etc and i do have those backed up else where04:21
jmarsdenIt's not smart to "do a lot of fresh installs" either.  Use virtual machines for test installs, not your main/only real physical hardware.04:25
jmarsdenI'd suggest removing one drive, putting in an external case, then use it for regular backups and disconnect it from the machine when not actually backing up...  Since you can "rsync to each other" you must have under 1Gb total family pictures etc. anyway.04:27
jmarsdenYou will get more benefit from a good backup regime than from using RAID1, in your current circumstances.04:28
bepok thanks, definitely something ill consider04:29
jmarsdenYou're welcome.04:29
jmarsdenbep: One example of why ... RAID1 would make you very prone to "accidentally deleting the wrong files" kind of failure... having a separate disconnected backup makes that a lot easier to recover from.04:31
bepya, thats exactly why i went with rsync to begin with. because i do web sites and sometimes with a ton of small files with a ton of edits it nice to go back to the rsync files from a few hours before04:32
jmarsdenbep: Yes... also learn to use a version control system for that kind of work :)04:33
bepheh ya. i dont do web sites professionally or anything (well kinda i do sometimes) but ya04:34
bepim trying to get organized04:34
bepi would really like a nas with tiny power consumption to run 24/7 then just have htpc on when needed04:34
bepbut I cant find anything that i like so far04:35
bepive looked at the atom boards but idk04:35
jmarsdenbep: Build one you do like? :)  Have you seen the Jetway board: http://www.newegg.com/Product/Product.aspx?Item=N82E1681315309604:36
bepya , but i need gigabit lan and would like around 4 sata ports just in case of future expansion04:38
jmarsdenThat's not going to be quite so "low power" then...04:38
bepya04:38
bephence my problem04:38
bepim hoping the next round of atoms will be better but i have a feeling they wont be04:38
jmarsdenYour problem is at least partly caused by physics... doing stuff faster uses more power... it's not really fair to blame the Atom for that :)04:39
bepya04:39
bepim not atom does seem like a nice platform04:40
bepespecially with ion etc04:40
bepi dont mind having drives spin down etc04:41
bepbut id like to have it idle at 30 watt or less04:41
bepwith bill here 30 watts would add $3 a month, and for the convenience of the always on its definitely worth it04:42
jmarsdenbep: How much does the HTPC draw?  You might find leaving that always on would work for you, at close to those kind of power levels?04:43
bep70 watt04:43
twbPresumably you've already considered IBM SSDs?04:43
bepyes but 1tb ssds are not in my price range :)04:43
twbNod.04:43
jmarsdenHmmm, interesting tradeoff... running the HTPC costs you $4/month more than running a not-yet-purchased NAS... if the NAS costs you $200 to construct, that's over 8 years to recoup its cost.  I'd just run the HTPC :)04:45
jmarsdenOh, wait... did I mess up my mental math...?04:46
twbSigns point to ye04:46
jmarsden$200/4 = $50, so a year or so recoups the cost.... my bad.04:46
bepya ive been considering that04:47
jmarsden$200/4 = $50, so 50 months recoups the cost.04:47
bepive only been planning on spending like 75 though since all i need is motherboard & processor04:47
bepplus  i have a 25$ credit at newegg so really only out about $5004:47
jmarsdenNo case, RAM, PSU?04:47
bephave it all04:47
jmarsdenOK.04:48
bepthough I would like a new smaller case but its not a must04:48
bepright now my htpc is about to become both so i am going to see how it works out for me04:50
wizardslovakhello people06:01
wizardslovaksaturday i will be getting new server box and i need to know how to back up or transfer settings from my current ubuntu box06:02
ScottKjiboumans: https://blueprints.launchpad.net/ubuntu/+spec/server-lucid-more-mail-integration ready for review again.06:12
qman`wizardslovak, tar up your /etc directory and copy it over06:17
=== cemc1 is now known as cemc
wizardslovakwhat if i want to backup just firewall and apache06:21
SandGorgonhi guys.. we are migrating from one hosted UBuntu 8.04 box to another. I want to migrate all users and passwords as well. Is this possible ?06:32
qman`wizardslovak, /etc/apache207:07
qman`for firewall, it depends on how you have it set up07:08
qman`SandGorgon, yes, assuming they're system users. Just copy the users from your /etc/passwd and /etc/shadow files07:09
SandGorgonqman`, does it mean if I copy the relevant entries for /etc/passwd and /etc/shadow - it should all work right ?07:40
SandGorgoni would have to create the userhomes using a script07:40
qman`yes, just copy the users you want to keep out of both files to the destination system07:41
qman`and recreate the directories07:41
qman`you probably want to copy the homes over anyway07:41
uvirtbotNew bug: #495372 in bacula (main) "Please upgrade to 3.0.3 for lucid" [Undecided,New] https://launchpad.net/bugs/49537208:01
* starsunflowersu is away: I'm busy08:33
jiboumansgood morning guys09:07
jiboumansScottK: i'll take a look today, thanks for pointing me at it09:08
jiboumansScottK: thanks for the updates; looks great now so I've approved it09:30
uvirtbotNew bug: #495394 in libvirt (main) "autostart almost always fails on boot time host" [Undecided,New] https://launchpad.net/bugs/49539409:36
leniosScottK, is it necessary to have subtasks: basic (current mail-server) and mail-delivery (dovecot-postfix) ?10:33
uvirtbotNew bug: #494476 in linux (main) "Samba  blocked for more than 120 seconds." [Undecided,New] https://launchpad.net/bugs/49447611:56
seeker_hello all12:18
seeker_I am using Eucalyptus 1.6. when I try to run the image I am getting some error,12:19
seeker_can some one help me in this?12:20
jiboumansseeker_: what is the 'some error' you are getting?12:26
seeker_Server: SERVICE: FinishedVerify PROBLEM: null MSG-TYPE: RunInstancesType12:27
seeker_got the above error.12:27
seeker_can you help me to resolve this?12:27
jiboumansseeker_: hmm, that's very sparse. any chance of a log file or so to go with that?12:27
jiboumansttx may be more suited, if he's around though12:27
ttxo/12:28
ttxseeker_: what command did you run to get that error ?12:28
ttxseeker_: double check with "euca-describe-availability-zones verbose" that there is enough "space" in your cloud to run your instance type12:29
seeker_it is failing in ec2-run-instances cmd itself12:30
seeker_so I cannot  do "euca-describe-availability-zones verbose"12:30
ttxseeker_: could you paste the ec2-run-instances comand line you used ?12:31
seeker_am i correct?12:31
seeker_yes I'll do that12:31
ttxyou can run "ec2-describe-availability-zones verbose12:31
seeker_ec2-run-instances $EMI -k mykey12:32
seeker_emi number I got it, when I registered12:32
ttxseeker_: what does "ec2-describe-availability-zones verbose" return ?12:33
ttxseeker_: you end up using a default instance type12:33
ttxseeker_: for which you might not have any "space" in your cloud for12:33
seeker_no its (ec2-describe-availability-zones verbose) not printing anything.12:34
ttxseeker_: I'd recommend first getting everything described in the docs working, before starting to deviate12:34
ttxhttps://help.ubuntu.com/community/UEC12:35
ttxtheat involves using the euca2ools commands (euca-*)12:35
ttxif everything works ok, then it's time to try something smarter12:35
ttxlike running with ec2-* commands12:35
seeker_i am using "Eucalyptus-Jaunty "12:35
ttxah! Then your basic premise (" I am using Eucalyptus 1.6") is false12:36
ttxor is it not ?12:36
ttxJaunty is 1.512:36
seeker_ohh I am sorry then.12:37
seeker_I followed https://help.ubuntu.com/community/Eucalyptus-Jaunty12:37
seeker_the above steps12:37
ttxright12:37
seeker_I have reached till step612:38
ttxseeker_: I fear my experience running the 1.5 "technology preview" is very limited. I'd strongly recommend using the karmic UEC (based on euca 1.6)12:38
seeker_ttx: you want  me to switch to 1.6 version12:43
seeker_jiboumans: any help from your side?12:43
jiboumansseeker_: a lot of improvements in 1.6; switching is much recommended12:45
seeker_ok I will do that..but is there any solution for this?12:46
seeker_because I have done lot of work for this12:46
seeker_jiboumans: ok I will do that..but is there any solution for this? because I have done lot of work for this12:46
VSpikeIs saned on ubuntu server configured by default to bypass inetd/xinetd?12:48
dashnuIm runing ubuntu-server on Virtual PC 07, The ubuntu server date keeps changing.. Nothing can fix it short of a hard reboot. cant sudo when it happens13:07
dashnuanyone know why ?13:07
dashnui even have ntp installed and running still no luck13:08
dashnuwhen i reboot tims is ok again13:08
=== dxtr is now known as Guest28643
seeker_ttx: you want  me to switch to 1.6 version13:11
ttxseeker_: I encourage you to :)13:11
seeker_ok...but is there any way to fix this issue?13:12
seeker_ttx: in this link also http://open.eucalyptus.com/wiki/EucalyptusKnownBugs_v1.4 they mention the issue13:13
seeker_but i dont know how to change the parameter for VM type13:13
VSpikeHaving trouble with saned... it seems to be only binding to ipv6... http://pastebin.com/d4f6d013313:28
VSpikeIt used to work, and other than any updates I'm not aware of having changes anything13:28
VSpikeAlso http://pastebin.com/d12914ac213:28
ttxseeker_: pass a "-t " to ec2-run-instances ?13:30
ttxlike "-t c1.medium" if your image fits into 4Gb13:30
VSpikeThis looks relevant, except that he is using inetd and I'm not. https://bugs.launchpad.net/ubuntu/+source/inetutils/+bug/37962113:30
uvirtbotLaunchpad bug 379621 in inetutils "inetd fails to listen on IPv4 addresses" [Undecided,Confirmed]13:30
seeker_ttx: I getting the same error13:32
seeker_ttx: my image will fit in 4gb13:32
VSpikeOh, getting closer http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg352293.html13:32
VSpikeAh well, I can probably disable ipv6 on the server. Not actually using it13:33
VSpikeIt seems that whenever I have IPv6 enabled on a system, it just seems to cause problems :)13:34
jiboumansVSpike: taking a quick look at the manpage, the saned.conf file is supposed to allow you to set this stuff up13:34
jiboumansno guarantees that it actually *does* though13:34
ScottKlenios: I'm not sure, in the end, how we will work out the multiple configurations of mail servers question.  dovecot-postfix exists today and I'm going to do amavis-postfix for Lucid.  Stitching them together is a bit TBD.13:34
ttxseeker_: my guess would be that there is no room for any instance, like the node controller isn't registered (and you don't get anything in "ec2-describe-availablility-zones verbose"13:37
ttxbut that's a 1.5-uneducated guess13:37
seeker_ttx: but from the front (using url)  end I am able to see the image and I got the emi number too13:39
ttxthe emi is registered. There is just no free capacity in the cloud to launch it13:40
seeker_ttx: ok..how to approach this?13:40
VSpikejiboumans: it seems that if saned binds an address and port in ipv6, it is then prevented from doing so in ipv413:40
ttxseeker_: that's the thing, I'm not sure how to debug this in 1.5 :)13:43
seeker_ttx: have you seen this http://open.eucalyptus.com/wiki/EucalyptusKnownBugs_v1.4 they mention the issue13:44
seeker_ttx: by going through this, can you provide help?13:45
ttxThat's 1.4 doc and they say the proper solution will appear in v1.5.13:45
ttxseeker_: I can't, I don't have a 1.5 setup to test with13:46
ttxhence my recommendation.13:46
uvirtbotNew bug: #495469 in openssh (main) "E: openssh-server: subprocess installed post-removal script returned error exit status 1" [Undecided,Invalid] https://launchpad.net/bugs/49546913:51
zulttx: once the package is in main for the canonicala-application-support spec should it be removed from the workitems list?13:59
ttxzul: no, keep it there with "DONE"14:01
ttxotherwise it will look like you never worked on anything14:01
zulttx: k14:02
VSpikeI'm puzzled.  My scanner is only accessible to root, and I can't see why14:08
VSpikeIt's a USB scanner, and it is mention is /lib/udev/rules.d/40-libsane.rules14:08
VSpikes/mention is/mentioned in/14:09
VSpikeBus 003 Device 002: ID 04b8:0104 Seiko Epson Corp. Perfection 120014:09
VSpikeATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0104", ENV{libsane_matched}="yes"14:09
VSpikecrw-rw-r-- 1 root root 189, 257 2009-12-11 14:01 /dev/bus/usb/003/00214:10
VSpikeWhat am I missing?14:10
fullstopHi all!  Does anyone here have experience with kvm and gpt partitioned block devices?14:16
fullstophttp://www.pastebin.org/6352214:18
fullstopI created a /dev/sda3, 400 GB, and gave it to a KVM guest to use.  When I installed Ubuntu server 9.10 on the guest, I partitioned /dev/sda3 in the installer.. using DOS partitioning with fdisk.14:21
fullstopAfter this, the host linux will no longer boot from grub, and I have to boot into rescue mode and delete /dev/sda3 before it will boot.14:22
fullstopquiet in here.  :)14:24
=== robbiew_ is now known as robbiew
VSpikesure is14:28
fullstopis that normal for here?14:32
ScottKIt varies a lot14:33
hackeronI get messages like this in my syslog every hour or so for the past year: "smartd[2644]: Device: /dev/sda, 8 Currently unreadable (pending) sectors" -- what does pending mean and what do I do about this? (specifically to stop the messages flooding my logcheck reports)14:36
_rubenreplace the disk?14:38
hackeron_ruben: well, it's been working with these bad sectors for a year so far, another similar disk has been working for 3 with 5 unreadable sectors -- why bother replacing?14:41
VSpikehackeron: perhaps you could run badblocks on it?14:42
_rubenor just add an ignore to your logcheck config, if you dont care about the message14:43
VSpikehackeron: "e2fsck -ck/dev/sda" or something like that14:44
VSpikehackeron: "e2fsck -ck /dev/sda" even14:44
hackeronVSpike: I'm using raid though14:44
VSpikeah14:45
hackeronVSpike: so there is no filesystem on /dev/sda14:45
hackeronVSpike: I just have /dev/md0 which maps to /dev/sda1 and /dev/sdb114:45
hackeron_ruben: I don't want to ignore it, I want the disk to remap the blocks and reconstruct the array14:46
_rubencould try to break the mirror, wipe the disk (possibly with a disk management tool from the vendor), recreate the raid14:46
[diablo]afternoon all.. guys, can abgx360 change the region code of an ISO or not please?14:46
[diablo]whoops wrong window14:46
stacmandui just plugged a modem into my ubuntu-server 9.04.  how do i tell if it's working?15:11
hackeron_ruben: seems all I need to do is echo repair > /sys/block/mdX/md/sync_action -- and the drive appears to remap the bad sector15:12
_rubenhackeron: nice to know :)15:14
zulhas anyone thought of packaging spice now for kvm since its open now15:26
Status0hello ppl15:27
zulhttp://www.spice-space.org15:27
Status0i have installed to my qa the ubuntu 9.10 server15:28
Status0and i have some question15:28
Status0i personaly try develop ubuntu community in israel15:28
Status0can anybody help me about ubuntu server ?15:29
zulStatus0: someone might be able to answer15:29
Status0thanks, i wonder why there is no gui to server ?15:30
arji wonder why one would need a gui to server15:30
Status0arj, becuse ppl are stupid [most of them] but again this is some required by consumers15:31
Status0the want to make one click and it will work15:32
Status0some-where i can understand them15:32
=== dendrobates is now known as dendro-afk
Status0about this point of view15:32
arjthey can use webmin15:33
arjor plesk15:33
Status0yeh but i want "sell" ubuntu server and i have nothing why ubuntu server better ?15:33
Status0ok i will re-ask the question : why ubuntu server is better ?15:36
arjbetter than what?15:36
arjif you want a gui, ubuntu-server might not be the best choice15:36
Status0arj, generaly why is better ? (not about the gui) i try to promote more ubuntu. but i cant find resone..15:37
lauhi, i am trying to set an tls signed mta in order to send signed emails thru my web php/mail() function15:38
laui am running hardy, apache2 and apache2/php5/php.ini shows nothing particular except SMTP = localhost and smtp_port = 2515:39
laui assume exim is my mta but ps aux|grep exim returns nothing15:39
lauhow does the php/mail() function send mail ?15:40
Status0yes15:40
Status0lau, but you need to configure the php.in15:40
Status0to use your mail15:41
lauStatus0: currently the .php application is sending mails15:41
lauI want to add tls functionnality in order to sign the emails sent thru this application15:42
lauthus I am assuming a mta is already up and running on my server, is that a good assumption ?15:42
ScottKlau: Why do you assume exim is your MTA?15:43
=== dendro-afk is now known as dendrobates
Jeeves_ScottK: It's the only sane mailserver ;)15:46
Status0try opensocket to tls15:46
ScottKSince Ubuntu Server ships no MTA by default and prefers Postfix in general, assuming Exim is an odd choice.15:47
Jeeves_ScottK: I know :)15:47
ScottKOne might prefer Exim (I don't), but I don't see how one should assume it.15:47
Jeeves_But so is the preference for Postfix :)15:47
lauScottK: dpkg -l exim4 returns something, I got files in /etc/exim4/...15:47
ScottKlau: OK.  That's a good reason then.15:48
laualso I ls -lsa /usr/sbin/sendmail15:48
lauand this returned /usr/sbin/sendmail -> exim415:48
lauthus now I am assuming that the php application is sending emails thru calls to sendmail15:48
lauthat is a simlink to exim415:49
lauso exim4 is used in order to send emails15:49
lauam i right ?15:49
Jeeves_probably15:49
lau(enven if apache2/php5/php.ini is not configured)15:49
lauif I setup TLS/SSL for exim4 I should be ok ?15:51
=== dendrobates is now known as dendro-afk
=== dendro-afk is now known as dendrobates
zulkees: ping16:38
=== luis__lopez is now known as luis_lopez
TopKatzwhat procedure do you guys use that have hardware raids when a update to the headers comes out?  I know Im not doing it right.18:23
arjwhat's the relation between hardware raids and "the headers"? :)18:24
TopKatzafter installing new headers, the driver is gone18:24
TopKatzso the raid comes up as seperate disks, causing parity faults (I think)18:25
TopKatzand all around bad times18:25
arjseperate disks should not cause parity faults18:25
arjare you sure it's hardware raid and not fake raid?18:25
TopKatznot really18:25
TopKatzIm using a rocketraid 174018:25
TopKatzI have the driver installed18:25
TopKatzand the managment software18:25
TopKatzso I think Its a real raid18:26
arjreinstall the driver for the correct kernel before you reboot18:26
TopKatzhmm18:26
arjif you need a driver I doubt it's real18:26
TopKatzI jsut dont think its suported out of the box18:26
TopKatzso your sugesting a make install before rebooting after header update18:26
TopKatzwill it use the new header in that case?18:27
TopKatzI never tell it which to use, it just does it right now18:27
arjI don't know, if you're lucky you can specify what kernel to build for18:27
TopKatzhmmm18:27
TopKatzits an interesting idea18:27
TopKatzright now I jsut go to the driver dir and do sudo make install and it does the whole thing18:28
arjis the root or boot fs on those disks?18:29
arjif not, I'd halt, disconnect them, boot the new kernel, build the driver, connect them, boot18:29
TopKatzno, it has my mysql and www stuff18:29
TopKatzyeah, I have been thinking about that18:29
TopKatzor, how to do all that18:29
arjand I'd also check how well a raid card this card is, and consider software raid18:30
TopKatzits not a high end one, but this is also just a test dev enviorment18:30
arjif it's not high end, consider using it as a sata controller and do mdraid18:31
arjor run some benchmarks on the driver thingy and mdraid18:32
TopKatzwhen you update the header does it put it in /lb/modules... before the reboot?  so would they be there after update but before reboot?  The driver make builds against that18:32
TopKatzso in theory your inital idea might work18:33
arjI got to go now, good luck :)18:33
TopKatzthanks for your time18:34
arjno problem18:34
=== ding__ is now known as ding
jiboumanstime to pretend it's weekend; later guys18:45
zroyschI have an ubuntu 9.04 server that is having a multitude of problems that seem to be all related to network activities. rtorrent will randomly crash, mpd server also randomly crashes. My ssh and any other tcp connection will randomly go down for a few minutes at a time while i can still ping it, then tcp will come back up again. I have found no logs to tell me what the hell is going on. could anyone tell me where to find 19:02
uvirtbotNew bug: #495605 in samba (main) "lucid alpha1 shares-admin segmentation fault" [Undecided,New] https://launchpad.net/bugs/49560519:16
=== Maelos is now known as rmk
fullstopare there any known issues w/gpt KVM setups and grub2?19:52
fullstopI have a KVM host which uses GPT due to large partition sizes.  I gave a KVM guest a raw partition to use.   The guest used a MS-DOS partition table on that raw partition, such that fdisk -l /dev/sda3 would show sda3p1 and sda3p2.19:54
fullstopHowever, this messed up grub2, which was noticed after a reboot.  It just sat there at "Loading GRUB"19:55
fullstopbooting into rescue mode and deleting /dev/sda3 and re-installing grub recovered.  I don't know if reinstalling grub was necessary.19:55
fullstopI am more familiar with xen, but KVM seems to be the way the winds are moving right now.19:56
=== jsalisbury_ is now known as jsalisbury
=== Pici` is now known as Pici
=== jsalisbury_ is now known as jsalisbury
fullstopwow, netsplit sucks20:04
Belgarathhi20:05
Belgarathdoes anybody know how to clear kerberos instalatioon/configs20:06
Belgarathso I can start all over20:06
Belgarathwithout reinstalling ubuntu ?20:06
Belgarathdpkg --purge is nto good enough apparently20:07
ListerthrawnI want to set up KVM on a server with LVM on Raid and use the LV's as the disks for KVM.  Anyone know a good guide on aligning the 3?20:22
Clusty_still trying to jail a user and allow him to use just scp and not ssh nor to snoop around and reall all the stuff20:28
Clusty_i tried this: http://geekzine.org/2007/09/28/easy-sftp-and-chroot-sftp-with-scponly/20:28
Clusty_but it chokes20:28
Clusty_connection closes for no good reason20:29
mjs2hey - just installed karmic koala but i'm stuck behind a firewall.  what's the proper way to make apt use an http proxy?20:38
mjs2simple google resulted in a few methods - setting "http_proxy" env var (didn't work), setting /etc/apt/apt.conf (doesn't exist, apparently changed in 9.1)..20:39
mjs2well, never mind.  apparently i have to apt-get update20:46
ruben23hi20:50
BlueT_ruben23: morning20:50
ruben23BlueT_:what time in your place now..?20:51
=== luis__lopez is now known as luis_lopez
BlueT_ruben23: 4:51am here in Taiwan :P20:52
[diablo]evening #ubuntu-server21:01
Clusty_ahoy21:01
[diablo]guys, I have a box I wish to run ubuntu server 8.04 on ...21:01
[diablo]I can only slap a wireless (atheros) pci card in it... will server still have support for the ath card?21:01
Clusty_[diablo]: this is a kernel issue21:03
Clusty_8.04 is running 2.6.2421:03
Clusty_if support is not there you can add it21:04
[diablo]sure, true21:04
[diablo]actually I should really set up an AP -> ethernet21:04
[diablo]less messy21:04
Clusty_any reason to put 8.04 and not 9.x?21:04
[diablo]yeah, the project I wish to develop I prefer LTS21:05
Clusty_i see21:05
[diablo]either that or would have to go RHEL or CentOS21:05
Clusty_i am also unfortunately on 8.0421:05
[diablo]but for server, its a good move21:05
Clusty_cursing already for 2 days cause of this21:05
Clusty_i want to set up a username that cnot see stuff outside his home folder via sftp21:06
Clusty_next from 8.04 works out of the box21:06
[diablo]that can be done21:08
[diablo]Clusty_, there is an option in sshd to do it21:09
Clusty_yeah, chroot with scponly21:09
[diablo]nope21:09
Clusty_[diablo]: for next version from 8.0421:09
Clusty_:D21:09
[diablo]well, sort of21:09
[diablo]you sure?21:09
Clusty_8.04 has old openSSH21:09
[diablo]one second21:09
Clusty_yeap21:09
[diablo]Clusty_, http://www.openbsd.org/cgi-bin/man.cgi?query=sshd_config21:10
[diablo]Clusty_, check the ChrootDirectory option21:10
Clusty_the message is: cannot do chroot inside a blahhh block21:11
Clusty_the one that catches one user21:11
[diablo]Clusty_, do a man sshd_config21:12
[diablo]does it show the ChrootDirectory in there?21:12
Clusty_nope21:13
[diablo]Clusty_, what version of sshd is it?21:13
[diablo]Clusty_, actually if its not supported in the version shipping with LTS, personally, for I would just build from source the openssh server..21:14
Clusty_OpenSSH_4.7p1 Debian-8ubuntu1.2, OpenSSL 0.9.8g 19 Oct 200721:14
[diablo]Clusty_, you could even have it running on a higher port and not mess up your ubuntu sshd21:14
[diablo]Clusty_, you should be able to have it up and running in a couple of minutes21:14
[diablo]Clusty_, openssh is easy to compile21:14
Clusty_[diablo]: i would have to write my own rc.d script, which feels scary :D21:15
[diablo]Clusty_, just copy the existing one21:16
Clusty_[diablo]: plus machine is behind a firewall and i do not have easy access to firewall to punch holes through21:16
[diablo]Clusty_, then rebuild the source package with the latest version21:17
Clusty_good point21:17
[diablo]Clusty_, also double check your sshd_config file to be sure the ChrootDirectory is not listed21:17
Clusty_i searched through man21:18
[diablo]yeah, but look in the actual config file too21:18
Clusty_ohh ok21:19
Clusty_nope21:19
[diablo]ah ok...21:19
[diablo]apparently it seems its from 4.8 onward21:19
[diablo]you could try grabbing the .deb from 8.10 ... and installing it21:20
[diablo]sorry Clusty_ I have to walk my dog... bbl21:20
Clusty_:D21:21
ListerthrawnI notice you can create a 2 device raid10 array in mdadm.  Are there any benefits/drawbacks with using raid10 over raid1 with 2 disks?21:36
qman`Listerthrawn, that would effectively be exactly the same21:38
qman`different in name only21:38
jeiworth_Listerthrawn: i wouldn't do it, so the idea is to have 2 equally sized partitions on each disk, mirror the 2 disks and  use 1 partition each for striping?21:38
ListerthrawnWhat I want to do is this: -21:38
ListerthrawnI have 4 disks 2x500Gb and 2x750Gb (I think, it's been a while since I've seen them)21:39
ListerthrawnI want to install a small raid1 on the 2x750's and install ubuntu server.21:39
ruben23hi, any application whihc i can make a clone image of my local server form an ubuntu server then can restore then any time to the state i imgae thm.21:39
jeiworth_ruben23: dd21:39
jeiworth_Listerthrawn: ok...21:39
neonfreonListerthrawn i like to setup 2 disk RAID 1 groups and then if i want to extend beyond that use LVM21:40
neonfreonadd another 2 disks for another raid 1 group and then just add the new physical volume to my volume group21:40
ListerthrawnI then want to use the rest of the space on the 2x750's as another raid1, then the 2x500's as another raid1 then LVM them21:40
neonfreonyes21:41
Listerthrawnneonfreon, We are so on the same wavelength here.  Great so far :)21:41
neonfreoni think that's a good setup21:41
neonfreonexcept i didn't raid1 my OS21:41
neonfreonbecause it's easy to replace21:41
neonfreon(compared to data)21:41
qman`Listerthrawn, the correct thing to use for that setup is raid 1, not raid 1021:41
ListerthrawnTrue, but I want to run KVM on top of this and use the LVM'd RAID arrays as backing storage for VM's.21:41
qman`raid 10 would be if you want to set aside 500GB on all four disks for one array21:41
Listerthrawnso while the OS is easy to replace, the downtime isn't easy to stomach.21:42
ruben23jeiworth_: i read on ubuntu pro book- about DRBL and clonezilla..to do imaging of server.21:42
neonfreonsure Listerthrawn makes since for time critical setups21:42
neonfreonsense21:42
jeiworth_you could also create a 4x500gb raid5 or 6 and use the 2x250gb that are over for another raid1 for system, programs, etc...21:43
neonfreonboo software raid521:43
qman`ruben23, that's more suited to making multiple copies, like setting up a bunch of identical client computers21:43
ListerthrawnWhat I'm really having trouble with is finding a good guide on how to align all the different chunk/stripe sizes from disk/raid/lvm/filesys21:43
qman`ruben23, you can use dd to make a single raw backup, and compress with gzip or bzip221:43
neonfreonsoftware raid5/6 is a no go for me21:43
jeiworth_ruben23: no, but i also read about drbl, on the fly synchronization between 2 machines over network21:43
Listerthrawni've used software raid5 before when I wanted to store lots of static data with some resilience but with the relatively high random writes I expect from the VM workload it wouldn't be suitable I don't think.21:44
jeiworth_ruben23: is this a one time thing or do you want to make regular backups that way?21:44
ruben23 jeiworth_: yes, regular backup and aside that i have an imgae of my server so i can restore it on a good working condition then copy my backup files to make it run if any donw time..21:45
jeiworth_Listerthrawn: well, if you prefer you culd make a raid10 the same way, 4x500gb and a raid1 for the remaining 2x250gb21:45
qman`I use software raid 6 on my file server, but VMs are a much heavier load21:45
ruben23or what steps you can suggest best would fit on the purpose of failover.21:46
qman`ruben23, for failover you need two servers up and running21:46
qman`dedicated to that purpose21:46
ListerthrawnI could I suppose but eventually I'll run out of disk space and I intend to replace the 2x500's with 2x1TB by adding them in as another raid1 and pvmoveing the LVM off the 2x500's21:47
ListerthrawnAnyone got any advice on how to align all the stripe stuff?21:47
Listerthrawnanyone still here?21:56
Listerthrawni've not used IRC for nearly 10 years.  Thought they'd have fixed netsplits by now!21:56
neonfreonwhat size writes and reads will you be doing?21:58
neonfreonif you're doing raid 1 there is no stripe size to configure21:58
neonfreonat the raid level21:58
IrCYopCould someone be so kind to paste me their /etc/init.d/networking file for 9.10?22:00
qman`IrCYop, http://pastebin.com/f2ff08c3c22:00
IrCYopqman`: <322:00
crohakonAwww, a cute couple.22:00
qman`IrCYop, this system has been upgraded since 7.10, so that might not be the stock 9.10 file, but it's a working 9.10 system22:00
qman`and I haven't messed with it22:00
crohakonShould I bother upgrade my server to 9.10?22:00
crohakonI just upgraded my laptop, and it seemed to go well...22:00
ruben23 jeiworth_: what is best option on an external drive or another server..?22:00
qman`crohakon, if it's 9.04, yes, if it's 8.04, no22:00
qman`reason is, unless you really need something, 8.04 will be able to upgrade straight to 10.0422:00
ruben23 jeiworth_:how do dd backup an entire image of my linux server22:00
qman`so you can avoid a lot of hassle if you can wait until april22:00
jeiworth_ruben23: hehe well, that really depends, do you want to be able to move your backup to safe places or is the other server in a safe place, i.e. far away from the 1. server, another building, another city, another country or even continent? ;)22:00
qman`ruben23, dd if=/dev/sda1 of=/path/to/backup-file22:00
jeiworth_yes, with dd you can backup the entire block device as is, e.g. dd /dev/sda22:00
qman`where /dev/sda1 is your server's filesystem22:00
jeiworth_haha22:00
=== jeiworth_ is now known as jeiworth
qman`or you can compress on the fly, dd if=/dev/sda | gzip > /path/to/backup-file22:00
ruben23 jeiworth_:how about the restoration..?22:00
jeiworthruben23: if you make e.g. sudo dd if=/dev/sda of=//server/share/backup this will actually backup the entire disk including mbr and everything, you should pipe it through tar and bzip2 though, just to decrease size22:00
jeiworthruben23: exactly the same, boot with a live-cd and then: sudo dd if=//server/share/backup of=/dev/sda22:00
qman`yeah, dd will create a raw file, including free space, so you definitely should compress it with something, even if you can't use the CPU on good compression22:00
jeiworthqman`: say, doesn't dd itself also have a parameter to ignore unused blocks?22:00
* jeiworth checks man:dd....22:01
qman`not that I know of, it would have saved me a lot of effort in the past22:01
jeiworthhehe so i better not find it then, not to embarass you? ;o)22:01
qman`learn something new every day :)22:02
Listerthrawnneonfreon, I'm not too bothered about the size, the default may well be OK,  I just want to make sure that 1 fs block is 1 lvm block is one Raid block.  If they don't align 1 fs read can mean reading 2 raid blocks from disk and that's gonna kill performance22:03
jeiworthhmm qman`nope, don't find anything in the man doc22:04
ruben23i will find how to for dd...22:04
ruben23are there any, just a guide for reading22:05
jeiworthhehe i think for dd you won't have trouble finding22:05
ruben23 jeiworth: if you have a good link there, that would be deeply appreciated..:-D22:07
neonfreonListerthrawn: i dont think there is anything to worry about if you're doing raid 1 and linear LVM22:08
neonfreonthere is no striping occuring there22:08
crohakonHow do I upgrade to 9.10 from the command line?22:08
neonfreonso you just want to look at your file system's block size to make sure it's most appropriate for the size of writes you'll be getting typically22:09
=== lamont` is now known as lamont
jeiworthsry ,eetnig22:11
jeiworthmeeting22:11
Listerthrawnneonfreon, I'm not sure.22:12
crohakonHow do I upgrade to 9.10 from 9.04 from the command line?22:12
ScottKcrohakon: You mean 9.04 to 9.10?22:13
crohakonScottK, thats what I said...22:14
=== Clusty__ is now known as clusty1
crohakonto 9.10 from 9.0422:14
ScottKAh.22:14
crohakonhehe22:14
ScottKRight.22:14
ruben23hi22:14
ruben23guys22:14
ScottKcrohakon: sudo do-release-upgrade should do it.22:14
crohakonokay22:14
crohakonthanks22:14
ScottKNo problem.22:15
jumbersDoes update-motd run every time a user logs in? I've added a script to the update-motd.d folder and now every time I log in, it takes a while before the motd displays22:17
jumbersI see there's an update-motd cron job, but it seems like it also runs every time somebody logs in22:20
=== dendrobates is now known as dendro-afk
neonfreonListerthrawn: what are you not sure about22:43
Listerthrawnhttp://wiki.tldp.org/LVM-on-RAID22:44
Listerthrawnneonfreon, the link i just said22:44
Listerthrawnneonfreon, My head's just toast at the moment lol.22:44
Listerthrawnneonfreon, I've been trying to work this out whilst off work sick with Swine Flu.  Trying to get your head around Raid/LVM and aligning the lot with a fever of 104 has been a challenge I'll tell you.22:45
Listerthrawnneonfreon, I think I may have just worked it out.  If I set my partition tables to start say 1024k into the disk rather than skipping 1 sector everything should align.22:51
neonfreonah cool22:51
neonfreonstart of your partition tables or start of your partitions?22:52
Listerthrawnpartitions22:52
neonfreonyeah that's the conclusion i came to as well22:52
neonfreonif there are any alignment issues that will be it22:52
neonfreonissues caused by label or whatever at start of disk22:52
Listerthrawni'll have to do this on a test rig.  do a bit of bonnie'ing22:55
neonfreonya22:55
Listerthrawnsee if it actually does make a difference.22:55
Listerthrawnyou on here often?22:55
neonfreonhave been lately22:55
ListerthrawnI'll let you know what I find.  Thanks for the help, much appreciated.22:56
Aisonevening, i'm searching a way that my server can send SMS to my cellphone22:56
neonfreoni've tuned stripe alignment with raid 5 and XFS before22:56
neonfreoni used ioread to do my perf tests22:56
Listerthrawni'll look at that tool too22:56
neonfreoni only saw differences on read performance, but it was really big22:56
neonfreonerr, iometer22:56
neonfreonsorry22:56
AisonI heard, that it's possible to connect nokia devices with the server22:56
Aisonbut i cant find anything that explains that22:56
neonfreonlets you set size of write/read, number of streams, and change what % are sequential22:57
Listerthrawnonly trouble is, the machine I want to use for this is currently used hosting Xen VM's and one of which is my firewall/router.  Arranging downtime with the wife is harder than arranging it at work.22:57
=== dendro-afk is now known as dendrobates
bep_does ubuntu server support sleep etc or do i need to install something else?23:11
RoyKbep_: sleep?23:12
jumbersRoyK: Suspend23:13
RoyKafaik suspend to disk should be there23:13
jumbersSuspend to disk would be hibernate, suspend is the one where it suspends to RAM23:13
RoyKbut not sure if the userspace parts are installed by default23:13
RoyKk23:14
RoyKI don't really want that on a server, though23:14
jumbersNeither would I, especially because I don't have physical access23:14
* RoyK only has ubuntu server VMs by now23:15
jumbersMy box runs Ubuntu server on a dedicated machine. Pretty cheap monthly costs too23:15
RoyKI have an opensolaris pizzabox with three ubuntu VMs23:19
RoyKzfs for storage management and ubuntu for the apps part23:19
IrCYopCould anyone give me a hand with openvpn23:58

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