/srv/irclogs.ubuntu.com/2010/05/25/#ubuntu-server.txt

taurenI cannot perform any write operations on my drive anymore. This is a KVM host. Other KVM hosts on the server are operating properly.00:07
taurenI tried stopping the host (virsh shutdown hostname),and it stopped.00:08
taurenBut now it won't start back up:  virsh start hostname says: "error: failed to create logfile /var/log/libvirt/qemu/hostname.log: Read-only file system00:09
SpamapStauren: maybe you need to fsck it?00:09
taurenAnd trying "sudo fsck /dev/vol/partitionname" returns with "Superblock invalid"00:10
taurenfsck.ext2: Bad magic number in super-block while trying to open /dev/mapper/vol-hostname00:10
taurenThe superblock could not be read or does not describe a correct ext200:10
taurenSpamapS, that's what I'm thinking too. Any ideas why fsck would fail?00:11
taurenagain, the rest of the server is working fine, so I think its related to just this one partition.00:11
SpamapSI've not done such things with kvm.. but I'd suspect there's a partition table on the lvm block device maybe?00:12
taurenhmm, maybe so. not sure how to check that.00:13
taurenSpamapS, yeah, from my notes I built it with a root, swap and /var partition00:14
taurenso do you know how I would run fsck on those partitions from the host system?00:15
SpamapStauren: maybe kpartx?00:18
taurenah, yes. it's been years since i used that. I'll have to figure it out again. thanks for the idea!00:18
SpamapShttp://ubuntuforums.org/showthread.php?t=126220700:19
SpamapSgot the idea from that00:19
taurenthanks, looks like that will help00:20
taurenI have a remote ubuntu 9.10 server and I need to run fsck on its partitions. Do i have to physically go to the server with a recovery CD, or can I remotely change to single user mode, run fsck, then switch back to normal operation?00:52
bogeyd6tauren you can reboot into safe mode with ssh01:02
bogeyd6its on the server guide01:02
bogeyd6g2g01:02
taurenbogeyd6, I'd like to force fsck to run at boot, but my drive is read-only now, and I can't change /etc/default/rcS or touch /forcefsck01:03
taurenbogeyd6, sorry, misread your post. I'm not finding info in the server guide about doing that. Without write access on my drive, how would I remotely reboot into safe mode with ssh?01:07
cybrocopHello all, I'm having libvirt problems. Can anybody help me?02:14
=== ajaya_ is now known as ajaya
=== unreal_ is now known as unreal
jiboumanscybrocop: best to just ask your question. The local expert is soren though who should be soon asleep right now  (he's in CEST)02:39
cybrocopjiboumans: Here is my issue http://open.eucalyptus.com/forum/libvirt-operation-failed-failed-retrieve-chardev-info-qemu-info-chardev#comment-1135902:50
cybrocopI'm also discussing this on #eucalyptus, but they are puzzled as well. This is I guess more of a libvirt issue than eucalyptus anyway02:51
uvirtbotNew bug: #585208 in openldap (main) "slapd becomes non-responsive after several weeks runtime" [Undecided,New] https://launchpad.net/bugs/58520802:56
SamuelPetersonI ran "sudo ifconfig eth2 hw ether 00:00:00:00:00:10" on a computer to spoof it's mac address, but it returned "siocsifhwaddr: too many open files in system." I had eth2 down before doing this. I ran ifconfig and the mac did change, but I can not connect to any networks.03:13
SamuelPetersonWould anyone happen to know what the issue is?03:14
uvirtbotNew bug: #585212 in apache2 (main) "Apache2 userdir does not like encrypted home directories" [Undecided,New] https://launchpad.net/bugs/58521203:36
solarionquestion: how do I change the upgrade policy to make sure to stya with LTS releases?03:42
solarion/etc/update-manager/release-upgrades Prompt?03:42
ScottKsolarion: If you are on an LTS release you won't be automatically offered the chance to upgrade except to the next LTS.03:43
solarionaah, ok03:43
* solarion is a fan of things Just Working. :)03:43
solarionin 2 years hopefully I'll be buying the 12-way Atom nettop. :)03:43
solarionwith 128GB RAM03:43
solarionthanks03:43
ScottKsolarion: If you want to check, that file should have "Prompt=lts"03:43
solarionyeah, that's what it has03:44
ScottK(if you're on an LTS)03:44
solarionyeah03:44
GeekmanHi everyone, need some help regarding RAID on Ubuntu server 10.04.  I'm working with Ubuntu's software RAID 1 right now, and it works fine, however I'm running into problems when needing to partition a fresh drive to add to the array for re-building -- having just removed one of the original drives.  I've used the command sfdisk -d /dev/sdb | sfdisk /dev/sda to partition the new drive and it works fine, but I'm doubting that's going to wo03:59
GeekmanI'm trying to use fdisk to partition the new drive, but can't seem to create the extended partition as per the other drive -- the original drives were partitioned automatically by the installer.04:00
GeekmanThe following shows the partition table: http://pastebin.com/ajyDieuk -- I can create the partition sda1 just fine, but then when trying to create sda2 as an extended partition, cylinder 120675 is out of range I.  I am forced to enter 120676 but this means the second partition is slightly too small and hence rejected by MDADM.04:03
GeekmanI've tried using sectors as the view in fdisk hoping that would be more specific, I was able to create the extended partition, but then had the same issue when trying to create the logical partition.  Is there some way I can force fdisk to do what I want?  Or is there a better utility for me to partition the drive like this?04:05
GeekmanOr even, is there a hardware RAID controller that someone can suggest which is compatible with Ubuntu server?04:06
bogeyd6Geekman, almost any storage works card like a 400 or 42004:41
GeekmanWhat Vendor are we talking about?  I'm fairly new to Hardware RAID.04:42
GeekmanI was looking at MegaRAID which seems to be used by Dell servers, but it looks like the drivers only natively support SUSE/Redhat.04:43
twbI wouldn't trust anything with third-party drivers.04:54
twb(OTOH, lots of people seem to LIKE using ATI and Nvidia GPUs, so I'm pretty conservative.)04:54
GeekmanI want to obviously try and ensure that at 2am, when we are going to have to do a re-build, that things just work.  Same goes for installing a new machine, because who knows if we'll have a time crush when doing so.  So I definitely don't want to go with anything that isn't isn't natively supported, if I can help it.04:58
GeekmanATI and NVidia have worked well for me in the past, but I also remember how much I had to tweak things back in 6.06, so I wouldn't use them in a production server environment.04:59
GeekmanSo if anyone knows of a RAID card they've used with Ubuntu that "just works", I'd appreciate it.05:03
foxbuntuGeekman, are you talking enterprise Cards or Desktop cards such as you mentioned?05:04
GeekmanWell, depends on the cost.  But it's for our servers which are about to be put in some rack space in a data centre - so I'd assume enterprise.05:05
foxbuntuGeekman, i.e. Adaptec/LSI vs ATI/nVidia05:05
GeekmanI had no idea that the MegaRAID stuff was for desktops.05:06
foxbuntuGeekman, I would assume fairly good results with many recent Adaptec/LSI Logic cards05:06
GeekmanThanks man, I'll look into that.05:07
foxbuntunp05:07
foxbuntuGeekman, I would suggest googling the model number of the card you look at prior to purchase just to double check05:08
twbPersonally, I use md raid.05:08
Geekmantwb, you mean Ubuntu's software MDADM RAID?05:08
twbIt means I don't need to buy backup controllers, or worry about drivers.  The servers aren't doing anything for which I/O is critical -- just mail, file sharing, serving website, etc.05:09
twbGeekman: the kernel's md layer, yes.05:09
GeekmanI've set that up at the moment, but as I stated above, I'm having issues with partitioning a clean drive to match the partition table correctly.05:09
twbGeekman: RAID1 or RAID5?05:10
GeekmanOther than that, it does work fine.  But I/we just don't want to have to mess with it at 2 in the morning if it doesn't work just right.05:10
GeekmanRAID105:10
twbAre both disks from the same batch?05:10
GeekmanThe disks are identical - if I use sfdisk to clone the partition table onto the fresh drive it works, but trying to use fdisk to do it manually, I run into problems.05:11
twbWhy are you using fdisk?  It's unmaintained.  Use something based on libparted -- parted, gparted, gnu fdisk05:11
GeekmanWhich, if I could trust that all drives in future were identical, using sfdisk would be fine - but I obviously can't gauruntee in future that a spare drive is going to be identical.05:12
Geekmanfdisk is just what I've always used.05:12
twbOr: how, exactly, is fdisk failing05:12
Geekmanhttp://pastebin.com/ajyDieuk05:12
GeekmanThat's the partition table on one of the original disks.05:12
twbWhat of it?05:13
GeekmanAs you can see, sdb2 starts on 120675, with sdb1 ending also on 12067505:13
Geekmanfdisk won't let me do that.05:13
GeekmanIt says 120675 is out of range.05:13
twbAre you using the right units?05:14
twbDoes /proc/partitions reports that both disks are the same size?05:14
GeekmanI got around that by setting fdisk to use sectors instead, but ran into a similar issue when trying to setup the logical partition sdb505:14
twbIn the past I've found e.g. 250GB drives varying in size by a few MB.05:14
GeekmanJust a sec, SSHing in to check /proc/partitions.05:16
GeekmanI do recall sfdisk reporting that both drives had the same cylinder count, though.05:16
GeekmanSo you said fdisk is out of date, is there any of the utilities you listed that you can suggest to replace it?05:19
GeekmanI always assumed gparted was GNOME parted and hence required a GUI - don't have one of those.05:19
twbC/H/S is totally meaningless in a modern system05:26
twbgparted is a GUI for libparted; parted is a CLI for it.05:27
twbThe parted UI isn't very nice, so maybe you would prefer to boot a live CD or move the disks into another host to run gparted -- I don't really care.05:27
GeekmanI probably would like that, but the server's don't have CD drives, so that would be a hassle.  I'll try doing it with parted and see how it goes.05:28
GeekmanThanks for all your help.05:28
twbI just think switching to hardware RAID because you can't partition a disk is a bit of a leap05:35
GeekmanI think you're right, but nobody wants me to sink any more time into trying to get it to work ok - so we figured hardware RAID would work better without a fuss.05:38
GeekmanBut I'll take another look when I get a spare moment.05:38
twbBTW, for RAID1 you don't *need* each node to be exactly the same size05:41
twbmd will just use the smallest05:41
GeekmanI know, but the way fdisk was working for me, the swap partition - sda5 always ended up being 1 cylinder too small or something.05:49
GeekmanOh and for the record, both the drives are reported as being the same size in /proc/partitions.05:49
twbThere's usually no point RAIDing swap05:54
twbEspecially RAID0 -- linux swap is automatically striped05:54
GeekmanSo, if one of the disks die at runtime, it's not going to corrupt the swap partition?  How can that be if it's not mirrored?05:58
Geekman.../part of the RAID array.05:59
twbI suppose so06:00
twbTo be honest, since 2.6 came out, I have lost faith in swap *at all*06:01
GeekmanHeh.06:01
GeekmanIn terms of what?  Application crashes when they fall back to swap?06:01
GeekmanThe only thing I want to avoid is having the OS crash because something's using swap and one of the drives has died, which has destroyed the swap.06:02
twbAFAICT when my hosts start swapping, they're too fucked to respond to fork a "telinit 6"06:02
GeekmanI figure if the swap partition is part of the array, it'll prevent that.06:02
GeekmanWell yeah that's true.06:02
twbSo I might as well not have swap at all06:02
GeekmanBut just because you're swapping doesn't necessarily mean that you're swapping constantly, in my experience.06:03
SpamapSswap is *completely* worthless with RAM prices of today06:25
SpamapSthere's no server app that does well when memory page fetches take longer than 1ms06:25
SpamapSeven 1ms is pushing it quite a bit06:26
SpamapSGeekman: I prefer to think ahead.. build a system to run at 30% capacity 95% of the time.. and the other 5%, never over 50% capacity. If you breach either of those thresholds, the system cannot stand up when the business becomes a success.06:27
twbswap really means "I need more RAM than I can afford"06:27
twbAnd as you say, RAM is pretty damn cheap now06:28
SpamapShttp://www.crucial.com/store/mpartspecs.aspx?mtbpoid=FF101E53A5CA730406:31
SpamapS16G for $1400 US ...06:31
SpamapSand thats 2x8G sticks06:31
GeekmanHow have you guys found Ubuntu to handle 32-bit apps in 64-bit?  The decision was made to stick with 32-bit for now as it's only going to be a web server, we don't think any of our core servers should really need more than 4GB.06:33
twbI don't run any 32-bit apps.06:33
GeekmanBut personally I'm a little uncomfortable with being limited to 4GB.06:33
GeekmanYou've never run into a situation where you've had to search the net because some app doesn't natively support 64-bit well?06:34
twbThere are only three cases where biarch is useful: proprietary software, compilers that only support -m32, and development jails.06:34
GeekmanI don't mind having to do that myself - it is Linux - but I guess business is business and we can't be having to do that if we need something running urgently.06:34
SpamapSGeekman: you're not limited to 4G06:34
twbscsh and scheme48 fall into the second category, and on some hosts I use the third.06:35
twbSpamapS: yeah, but PAE is such a kludge06:35
SpamapSkludge or not..06:35
SpamapSits better than replacing entire working systems06:35
twbGeekman: IMO your "rule of thumb" should be to use 64-bit06:35
SpamapSnobody should *design* to use PAE06:35
SpamapSbut its certainly a decent plan B06:36
SpamapStwb: depends on how you want to scale06:36
GeekmanPAE, I assume that's what I was reading about regarding the ability to use more than 4GB under 32-bit using some kind of emulation, albiet more slowly?06:36
twbSpamapS: granted06:36
SpamapStwb: 32-bit has some advantages when you need crazy high concurrency06:37
twb64-bit also means you can simply assume things like SSE206:37
twbThat's less of a problem on Ubuntu, where i386 really means i686 nowadays :-/06:37
SpamapSGeekman: its a small memory access trade off that allows the OS as a whole to use more than 4G, but processes still only have a limited 32-bit address space.06:37
GeekmanI see.06:38
SpamapStwb: yeah I think as of Maverick i586 is dead in ubuntu06:38
twbSpamapS: I saw the GCC changelog go through06:38
SpamapSI'm sure someone somewhere is cursing their Geode SOC design. ;)06:39
foxbuntuGeekman, PAE can break some apps too, although its usually poorly written apps misusing memory marshaling and threading06:39
GeekmanWell in our case I think that if we're hitting a wall where we need more than 4GB, it's probably time to start looking at a higher spec server overall.  I don't have the specs with me, but they're not high end.06:39
twbFortunately my Atom not-quite-SOC is x86-64.06:39
SpamapSfoxbuntu: PAE *exposes* buggy apps... it doesn't break them. :)06:39
foxbuntuSpamapS, thats also a wa of looking at it06:40
foxbuntuway*06:40
twbfoxbuntu: if apps were well written they wouldn't need >4 GB!06:40
* twb kicks the entire java community06:40
foxbuntutwb, lmao06:40
foxbuntutwb, im not sure thats quite the case with things like Oracle06:40
twbYeah, I know06:40
SpamapStwb: SOLR is the first java server app that I trust completely... somehow, they got it right, a nd it doesn't even eat *ALL* of your RAM. ;)06:40
twbI'm just sick of those kids with the mindset that making everyone buy more RAM is cheaper than their time to solve a problem properly.06:41
foxbuntutwb, agreed06:41
SpamapStwb: PHP devs have the same mindset. ;)06:41
foxbuntutwb, many apps do not/should not require that much RAM06:42
twbEspecially when the first-year java lecturers explicitly TEACH that mindset >:-/06:42
twbfoxbuntu: Emacs is only "Eight Megabytes and Constantly Swapping"06:42
SpamapSyeah they'll say things like 'RAM is 500 times faster than disk, so you should never use disk unless you absolutely must'06:43
twbSpamapS: ugh.  Block caching is the kernel's job, not the apps06:43
SpamapSits ok for an app to swap a little out.. I don't use the calendar in evolution, so it probably drops any bits I'm not using in swap. Its just not ok to PLAN for that.06:43
foxbuntutwb, unfortunately I work in the windows world (as many do :( ), and I have seen some really bad .Net apps (yeah yeah, bear with me here) that will crush a system under load to the point where x64 can even save the system06:43
SpamapStwb: tell that to InnoDB. :)06:44
twbOr like the Zimbra support company that tells us "you should deploy zimbra on its own host.  Zimbra assumes that the host its on is dedicated to JUST running zimbra"06:44
foxbuntutwb, more java!06:44
foxbuntutwb, feed the monster06:44
twbWell, Zimbra is mainly postfix and openldap.  The java is just their shitty "value added" glue06:44
twbFlipping calendaring06:45
foxbuntutwb, yeah, tis true, but the java magic is the main sludge in the system06:45
twbGranted.06:45
foxbuntuwtf?!06:45
foxbuntuspeaking of witch06:45
foxbuntuwhich rather06:46
foxbuntumaybe both06:46
foxbuntulol06:46
foxbuntutrying to convert a VM from Xen to VMWare and it keeps imploding06:46
twbfoxbuntu: qemu-img convert ? ;-)06:46
foxbuntutwb, its windows06:46
foxbuntu:(06:46
twbYou poor bastard06:46
foxbuntutwb, lol06:47
foxbuntusomething like that06:47
foxbuntudoesnt help that the VM host that Xen is on is a turd machine06:48
twbTell me about it06:48
foxbuntuthe client expected miracles on an array of 5400 SATA disk06:48
twbWe have two hosts that can run KVM, but I can't use either.  One is running a Windows VM to talk to the tax office (sigh), and the other was stolen to run a flipping pppoe session (FFS!)06:49
twb"modprobe kvm" on the vmware/openvz host causes the entire system to hard hang06:49
foxbuntupppoe, ugh06:49
foxbuntuawesome06:50
twbfoxbuntu: exactly.  The pppoe could be done by a 200MHz MIPS system -- it doesn't need a 3GHz quad-core06:50
foxbuntutwb, lol06:50
twbBut that's what was sitting on the test bench when $coworker needed a host06:50
twbAnd we can't take it out because it's mission critical06:50
foxbuntutwb, I am swaping this server over to a box with SAS 10k Spin and Dual 6-Core Opterons06:50
twbNice06:51
foxbuntuyeah, gonna run much better06:51
twbHopefully not running 2k8, tho06:51
foxbuntunot to mention the hypervisior wont suck either now06:51
twbOr whatever the hell is the current Windows Server06:51
twbOh, right, you said vmware, so it's probably esxi06:51
foxbuntuwell the guests at Win 2k8, but the host is VMWare ESXi06:52
foxbuntuyea06:52
twbI never tried that, only "vmware server".  Gods, that's an awful piece of shit06:52
foxbuntuthey only have the one box, so no reason to buy ESX06:52
foxbuntuVMWare server == full blow job06:52
foxbuntu(and not the good kind)06:52
foxbuntuESX/ESXi are really nice06:53
twb2.x wants you to run tomcat and a client-side java app just to talk RFB06:53
foxbuntulol06:53
foxbuntuif you are gonna run a bunch of *nix guests stick to KVM (or similar) but if there are any windows hosts get ESXi06:54
foxbuntuer guests that is06:54
twbI like qemu a lot more because I can run it entirely in userspace (including userspace networking), and it's easy to get serial or the 80x25 VGA console inside your xterm -- nice and fast, rasterizing the ascii06:55
twb*no rasterizing06:55
twb(kvm just being fast qemu)06:55
foxbuntuyeah06:55
twbAll my $coworkers love vbox because it has a GUI and generally targets desktop-in-desktop virtualization :-/06:56
foxbuntuyea06:56
=== jturek_ is now known as jturek
twbAt least qemu 0.12 can read/write to vbox images natively06:56
foxbuntuIm thinking more along the lines of bare metal hypervisor06:56
foxbuntulike ESXi06:56
foxbuntuthough kvm really isnt either06:57
foxbuntuI am just not a huge fan of the userspace VM hosts06:57
foxbuntufor production systems06:57
twbYeah, I agree06:57
twbI have lots of ephemeral VMs for scratch work, so userspace is simple and convenient for me06:58
foxbuntuindeed06:58
twbFor permanent systems my preference would be for jails, or failing that a lightweight hypervisor (like xen)06:58
foxbuntuyea06:58
foxbuntuis the ubuntu xen kernel still around these days?06:59
foxbuntuI havent looked in a long time06:59
twbNo idea; I'm still on 8.0406:59
foxbuntuah06:59
foxbuntuI run dev on my laptop06:59
foxbuntualways dive into the ver. around A207:00
foxbuntumostly because its a PITA to deal with VMs for my little bit of devel07:00
twbI run sid on my laptop because I'm not a GUI weenie :-P07:00
foxbuntulmao07:00
foxbuntuwhile I *could* run sid, I like things that *just work* I spend too much time fixing c*&$ already07:01
twbAFAICT non-LTS releases are as flaky as debian/testing07:02
foxbuntuI learned on gentoo a long time ago, and that was enough of the whole build it when you need it thing for me07:02
jmazaredoi need to load balance 2 backend servers (web) what could be the best on ubuntu07:02
twbe.g. "oh hey, we moved openldap config into the database against upstream's advice.  HAND!"07:03
twbI was running testing with a handful of sid pins, but it was too reliable and  boring. :-)07:03
foxbuntujmazaredo, define what you see as load balanced07:04
foxbuntutwb, lol, ok you got me on that one, things do like to change07:04
foxbuntu...in Ubuntu07:04
foxbuntu...allot07:04
foxbuntunot that I have anything against it07:05
twbMore to the point, they change without much discussion or testing, AFAICT07:05
foxbuntutwb, no, not true07:05
twbWhich is actually convenient for me, because it means that Ubuntu users are on the front line, testing stupid ideas before they hit Debian/testing07:05
jmazaredobalancing http request07:05
foxbuntutwb, people assume that but lots of those (most) decisions get made in UDS07:05
foxbuntujmazaredo, go on, do you mean one request comes in and the next goes to another server07:07
foxbuntujmazaredo, or do you mean the load gets calculated and weighted to pick the correct server07:07
jmazaredorequest ----> goest ro balancer ---> spreads to two servers07:07
jmazaredolike balanceNG and nginx07:08
jmazaredofree balanceNG only has 1, Niginx need to configure every balance i do07:08
jmazaredocan iptables do the trick?07:09
foxbuntujmazaredo, dont think for what you want it will07:09
foxbuntujmazaredo, you might be able to do it with squid07:10
twbnetfilter/iproute can perform some kinds of load balancing, yes.07:15
twbAn application-level (e.g. nginx, pound, haproxy) load balancer is more conventional.07:16
|corpse|my PC must hate me, iv been trying to set up a file srver for 5 days now and i can not, for the life of me, get an istallation to work07:21
killownis there any option to encrypt entire / during ubuntu-server install?07:42
twbBlock-level encryption is possible07:44
twbI don't know the details, especially I don't know if the release you're using supports it directly in the d-i UI07:45
killowntwb, i need do something to not allow peoples of chroot my / partition from a live distro07:45
twbDo you *really* want to encrypt the OS filesystem of a server?07:45
killowntwb, there is another way to block chroot instead encrypt?07:46
twbWhy do you want that?07:46
twbWhat attack are you trying to prevent?07:47
killowntwb, i need protect the information into my system07:47
twbWhat information?  The user data, or the OS?07:47
killowni am doing a proxy solution07:47
killowni thinks /etc /var07:48
killownthink*07:48
twbWhy?07:48
killowntwb, to not allow peoples to copy conf content...07:49
killown/var for openldap07:49
twbWhat configuration could you possibly have that needs to be protected against physical attack?07:50
killownand etc for confs07:50
killowntwb, i am just figure out anyway to protect my conf content07:51
killowntwb, think about, you have a proxy solution for a vpn with 15 networks, so if you configured the master and the first network slave, why would anyone will need of you for finish the job??07:58
twbIf your core routers aren't behind a locked door, you're probably screwed07:59
killowntwb, encrypt etc and var is not a good idea?08:02
killowntwb, hello08:06
twbSorry, I don't have time to help you now08:07
killownchange the phrase for: sorry, i don't know about that.08:08
killowntwb, you are good for questions, but answers....08:11
RoyKany idea how I can find out which swap device this is about? http://pastebin.com/Hvmg4SUY09:05
uvirtbotNew bug: #585264 in freeradius (main) "package freeradius-mysql 2.1.8+dfsg-1ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1" [Undecided,New] https://launchpad.net/bugs/58526409:06
cemcRoyK: you have more swap devices?09:08
cemcI mean more than one?09:08
RoyKcemc: ubuntu 9.04 standard, somehow - /dev/ramzswap0 and a partition09:33
RoyKswapping to compressed memory before using the disk09:34
cemchuh? :)09:36
cemcswapping to where?09:36
twbRoyK: /proc/swaps?09:36
twbcompcache is ramzswap, so it's clearly not talking about /dev/sda2 or whatever09:37
twbThe 251 and 0 looks like major and minor block device numbers, so you could also ls -l /dev and look for 251,009:38
RoyKfrom /proc/devices 251 ramzswap009:40
RoyKwierd09:40
twbWhoops, I can't modprobe ramzswap until I reboot.09:42
twbStupid ricer kernel...09:42
qman__killown, encrypting your root directory won't help against online attacks of any kind, as the files have to be readable by the system in order for it to work10:31
qman__it would only offer protection against attacks from physical access10:31
qman__but, if you don't have physical security, you're basically screwed anyway10:32
qman__I suggest you get a locked room10:32
qman__it's a great option for laptops, but not so much for servers10:32
xperiadoes anybody know how can i reset the bios password on a hp proliant ML 530 G210:34
qman__probably a better question for google, that sort of thing tends to get very hardware specific10:35
qman__if it's not a simple jumper setting, anyway10:35
qman__perhaps searching for a manual for that server would help10:37
xperiaqman: thanls for the info. looking at google since hours. thinked maybe some person is here with experience background about this topic10:39
qman__yeah, sorry, never used one of those10:39
qman__I've got a DL380 but I've never had to reset the BIOS10:39
xperiaqman: me stuipid have set extra a password for the bios and forgot it now. need to enable the netwrok card for installing ubuntu-server10:41
cemcRoyK: is there any howto on setting that thing up?10:44
RoyKcemc: setup what?10:56
xperiaqman: i was able to reset the bios password with the smartstart cd. needed to erase everything.11:01
qman__ah, figured it'd take more than pulling the battery11:02
twbUsually there's a jumper on the motherboard11:02
twbWhich is why physical security is critical11:02
twbJumper the bios password away, then change the boot device, then you have root access to the hard disks (unless there's block-level encryption).11:03
cemcRoyK: nvr mind, found it11:07
Pirate_HunterI keep getting 404 error every time I try to connect to localhost through lightpd on  port 8080. lighttpd restarts without a problem so I cannot understand why I can't connect through its port can anyone suggest something11:31
cloakablePirate_Hunter: 404... not found. Check to see if your docroot exists.11:39
xperiaqman_: very cool ! ubuntu server LTS Edition runs now on my professional server proliant ML530G2 :-)11:50
xperiaqman_: is there any possibility to controll the speed of the main fans. they run allways full and poduce a lot of noice. system temperature is 8 Celcius11:51
xperiaso the fans dont need to run 100% when the temperature is such low11:51
Pirate_Huntermaybe im doing something wrong but if I wanted to access lighttpd through my browser wouldn't it be something like httP://localhost:8080?12:04
leniosxperia, aptitude show cpufreqd12:04
leniosor maybe with acpi12:05
cloakablePirate_Hunter: 404 means "File Not Found" lighttpd is not finding what you pointed it at.12:05
leniosaptitude show lm-sensors too12:06
leniosto change fan speed12:06
twbBugger the cpufreqd package.12:11
twbCurrent kernels default to the kernel-space ondemand governor, which is a reasonable default.12:12
twbxperia: fan control depends on what kind of fan setup you have.  Sometimes it's uncontrolled, sometimes it's controlled by firmware, sometimes it's controlled by the kernel.12:13
twbxperia: if the fan connects to the motherboard with only two pins, you're probably screwed.12:14
twbxperia: otherwise you could find /sys/ -iname '*fan*'12:14
jo-erlendhow do I find all files and folders that have been created or changed during the last 30 minutes?12:30
twbfind -mtime -1 is "last 24 hours"12:38
twbDunno if it takes other units12:38
twbAh, -mmin 3012:38
pmatulisjo-erlend: man find12:39
jo-erlend-mmin did the trick. Thanks. :)12:39
twbYeah, manpage is your friend12:39
jo-erlendof course I read it before I asked. I didn't understand it, that's all. :)12:40
jo-erlendI'm writing a script to automate creation of a virtual machine I've created. I need to reconfigure all the services before the first boot. What I'm doing now, is to simply install the services one by one and noticing which files change as I configure them, and how they change.13:01
jo-erlendany better ideas?13:01
xperiatwb: lenios: thanks for the tips. will report back what i have for a fan13:02
=== unreal_ is now known as unreal
sommermorning13:36
bogeyd6When I put username=blah,password=blah in my fstab file for mounting a samba share in my log it says it is connecting as user nobody. How can this be?13:39
rgreeningkirkland: hey. In the upstart job for libvirt-bin, when it shut's down, are the currently running VM's shutdown or is there a way to make them come down gracefully?14:27
rgreeningrather than manually going to each VM and shutting down?14:27
danttiI'm looking for a web tool to handle virtual machines (KVM or Xen), but one important thing would be that it has webbrowser plugins like VmServer (since I'm moving from it), does some one knows a tool that has something like that?14:44
danttiI'm trying openQRM but it's not populating my postgres db.. :/14:44
fairview_Thank you sommer for creating the ubuntu server guide.  very helpful14:52
sommerfairview_: welcome :-) glad it helps14:53
fairview_I have lots of learning to do so it will14:54
KnifaPHP is disabled by default for Apache 2 user directories. Despite following the instructions to re-enable it again, PHP files still don't work in user directories. I followed these instructions: https://wiki.ubuntu.com/UserDirectoryPHP15:03
KnifaAm I missing anything out?15:03
KnifaIt tries to make me download the file instead of running it.15:06
KnifaBut PHP works fine in the root web folder.15:06
ivoksdid you restart apache?15:07
Knifayes15:08
Knifaabout eighty times.15:08
Knifabut it doesn't make a difference15:08
ivoksand it offers downloading .php file15:09
ivoks?15:09
Knifayes15:09
Knifarather than processing it15:09
Knifabut it processes it on /var/www15:09
ivokswhich ubuntu?15:09
ivoksversion15:10
Knifa10.0415:10
ivokspaste /etc/apache2/mods-enables/php5.conf to pastebin15:11
ivoksenabled15:12
Knifahttp://pastebin.com/KWs66qyd15:12
KnifaI tried setting it it to On with it uncommented15:13
Knifabut that didn't help either.15:13
ivoksdo you have .htaccess file in public_html/?15:13
Knifanope15:14
ivoksok, create a file names15:14
ivoksnamed15:14
ivoksrnd246.php in public_html15:14
ivoksput in it:15:14
ivoks<? phpinfo(); ?>15:15
ivoksand try accessing it15:15
Knifait tries to download it15:15
ivokshm15:15
Knifareally no idea what's going on15:16
Knifait should work15:16
ivokslet me try it15:17
ivoksworks15:17
Knifakk15:17
Knifaman what :[15:17
ivokssudo service apache2 stop15:18
ivokssudo killall -9 apache215:18
ivokssudo service apache2 start15:18
Knifai tried rebooting the server for the sake of it (it is not an important machine)15:18
Knifaso apache should have been proeprly restarted15:18
ivoksand access that file with w3m15:18
LinuxAdminhi  guys15:19
ivoksKnifa: do you have additional configuration in conf.d/ or sites-enabled/?15:19
Knifanope15:19
Knifathis is a fresh apache2 install15:19
Knifai had lighttpd before.15:19
ivoksprefork?15:20
Knifai have no idea15:20
LinuxAdminI'm trying to use ocfs2 on top of drbd. everything went well on first node but when I tryed to mount the partition on the second node I get this error:15:20
LinuxAdminmount.ocfs2: I/O error on channel while opening  device /dev/drbd015:20
ivoksKnifa: dpkg -l | grep apache2-mpm15:21
LinuxAdmincan someone help me?15:21
Knifayeah it's prefork15:21
ivoksLinuxAdmin: is drbd master/master?15:21
ivokser... primary/primary15:21
LinuxAdminI think so. Where can i see that?15:21
ivokscat /proc/drbd15:22
Knifa...15:22
KnifaI tried reinstalling the php5 module for apache215:22
Knifanow it spontanously does not work at all.15:22
Knifaanywhere.15:22
ivoksKnifa: libapache2-mod-php5 is the name of the package15:22
LinuxAdminro:Secondary/Primary15:22
Knifayeah15:23
Knifathat's the one.15:23
LinuxAdminwhere can I define this?15:23
ivoksLinuxAdmin: there you go, second node isn't primary15:23
ivoksLinuxAdmin: and cannot write to device15:23
ivoksKnifa: check /var/log/apache2/error.log15:23
LinuxAdminI wan to have the capability to write to the shared storage from both of nodes, that's why I created an ocfs2 clustering file system15:24
ivoksLinuxAdmin: drbdadm primary <resource>15:24
ivoksLinuxAdmin: but you have to set up drbd to work in primary/primary node first15:24
ivoksLinuxAdmin: ocfs is just a filesystem15:24
LinuxAdminok15:25
ivoksLinuxAdmin: drbd is the device15:25
LinuxAdminyeah15:25
ivokshave you followed any documentation?15:25
LinuxAdminyes15:25
ivoksthen you added needed stuff to drbd's config?15:25
LinuxAdminubuntu server official book, and ocfs2 how to15:26
LinuxAdminI configured drbd and it synchronized well in both hosts15:26
Knifaivoks access logs for php files in user directories aren't showing up15:27
Knifabut there are no errors.15:27
ivoksLinuxAdmin: but did you add allow-two-primaries to drbd's config?15:27
ivoksand become-primary-on both15:27
LinuxAdminno15:27
ivoksLinuxAdmin: configs for drbd for ext3 and ocfs2 aren't the same :)15:28
ivoksLinuxAdmin: https://wiki.ubuntu.com/ClusterStack/LucidTesting#Pacemaker,%20drbd8%20and%20OCFS2%20or%20GFS215:28
LinuxAdminshould I configure it on common section?15:28
ivokscheck '3. Configure drbd'15:28
Knifaivoks sigh. turns out firefox is caching the fucking download mimetype thing.15:28
Knifaugh.15:28
ivoksKnifa: i said use w3m15:29
ivoksKnifa: for a reason :)15:29
Knifaoops :p15:29
Knifathanks :315:29
jo-erlendthis was informative.. I didn't know drbd allowed both hosts to be primary at the same time.15:29
ivoksjo-erlend: it does; but then you need clustered file system15:31
ivoksjo-erlend: and stonith, and lrm and everything15:31
jo-erlendthen it will simply work both ways?15:31
jo-erlendI'm not familiar with lrm. What's that?15:32
LinuxAdminivoks, do I have to configure pacemaker?15:33
LinuxAdmincan I avoid it?15:33
ivoksLinuxAdmin: you don't have to, but it might be a smart thing to do :)15:33
LinuxAdmincan you please tell me what pacemaker do?15:33
ivoksuh15:34
ivokshttp://clusterlabs.org/15:34
LinuxAdminit's another tool like heartbeat?15:34
LinuxAdminok15:34
ivoksit's not another15:34
LinuxAdminI go read there15:34
ivoksit replaces heartbeat15:34
LinuxAdminok15:34
cdubyaWe have a Domain Controller setup with Exchange on the same machine. I'm wondering if there is a good method of setting up a fallback for a failure to that machine, but obviously Exchange is an issue. Are there any good methods to resolve something like this using ubuntu?15:47
tschundeeehow can I add the usergroup www-data?16:15
tschundeeeI havent installed nginx via apt-get16:15
ivoksaddgroup --system www-data16:16
tschundeeeinstead i compiled it myself... so i need to set its default user and chown the www-data folder to this user and its group... so I need to know if the group exists16:16
tschundeeeivoks: thx man :)16:17
tschundeeebtw... where is the equivalent file to /etc/passwd?16:19
tschundeeefor groups?16:19
ivoksguess :)16:19
tschundeeehmm16:19
ivokswhat would be a first thing you would think of?16:19
ivoks/etc/webserver?16:20
tschundeeeetc/groups16:20
ivoks:D16:20
ivoksthere you go16:20
ivokswithout s16:20
tschundeeeokay sry16:20
tschundeeei tried to edit with s and so I found nothing lol16:20
ivokstab is your friend16:22
=== dendrobates is now known as dendro-afk
=== dendro-afk is now known as dendrobates
=== dendrobates is now known as dendro-afk
=== dendro-afk is now known as dendrobates
ivoksanyone knows where are defined options libvirt passes to kvm?16:40
ivokshow does it generates command line from xml16:40
=== unreal_ is now known as unreal
uvirtbotNew bug: #585456 in samba (main) "E: /var/cache/apt/archives/samba-common_2%3a3.4.7~dfsg-1ubuntu3_all.deb: non c'è alcuno script nella nuova versione del pacchetto - saltato" [Undecided,New] https://launchpad.net/bugs/58545616:51
uvirtbotNew bug: #387708 in apache2 "ProxyPassMatch does not work" [Undecided,Invalid] https://launchpad.net/bugs/38770817:38
MTecknologyDo you guys know if it's possible to setup the user/group that's accessing a samba share on the filesystem?17:56
MTecknologyor does samba default to existing?17:58
webPragmatistis there a sample partition schema available for using drbd18:02
webPragmatistIs it common to put /var /home /etc on these?18:02
MTecknologywebPragmatist: I'd exclude var18:02
MTecknologywebPragmatist: I'm going to play with that nifty little thing eventually.. but it mostly just depends on what needs to be sync'ed - probably /home and /etc only - maybe /var/www or something specific in /var - you don't want to sync /var/logs - that could get ugly18:03
webPragmatistright hrm18:04
webPragmatistMTecknology: okay my next question is how am i mounting each of these specific folders to this separate partition18:04
MTecknologywebPragmatist: hm?18:04
MTecknologywebPragmatist: just make one partition for each thing you want to sync18:05
MTecknologyprobably easiest18:05
webPragmatistso a bunch of logical volumes?18:05
MTecknologyya - probably easiest18:06
webPragmatistseems kinda hard to tell what the partition size should be for each18:06
MTecknologybeyond that though - i can't tell you much because i haven't done it yet18:06
ivoksi responded on #ubuntu-ha :)18:07
webPragmatistoh okay18:07
R0dHi all18:13
R0ddoes anyone know how can I configure Ubuntu to route trafic between 2 private nets, like 192.168.0.X and 192.168.1.X18:14
ivoksroute add net 192.168.0.0/24 dev eth018:14
ivoksroute add net 192.168.1.0/24 dev eth118:14
ivoksor -net18:15
ivoks-net :)18:15
mcasivoks: echo "1" > /proc/sys/net/ipv4/ip_forward18:15
MTecknologyIs it possible to have a Win7 user not have to type in credentials to log into a share? (Their system account) I have this in the config http://dpaste.com/199062/  I want adam to be able to seamlessly connect to the share.18:17
R0divoks, and with these 3 steps (route add & ip_forward), Clients from 0.X could access to clients from 1.X and vice versa?18:17
zulhey mathiaz18:18
ivoksmcas: /etc/sysctl.conf18:18
mcasivoks: right18:18
ivoksR0d: if your server is their router, yes18:19
R0dok, perfect :)18:20
=== Thell|Away is now known as Thell
hackeronhey, now that ubuntu has done away with hal - I'm trying to use gudev to get information about devices - I tried query_by_subsystem("sound") under gudev Client, but how do I filter just the capture devices from the list?18:21
zulhggdh: ping18:22
hggdhzul: pong18:22
ivokshackeron: udevadm monitor18:22
R0dand... If after that, there is a Gateway to internet? For Example... [A Clients] - [Ubuntu Router] - [B Clients] - [Gateway] - INET... Being A= 1.X, B= 0.X and Gateway LAN IP= 0.118:22
zulhggdh: can you nominate 551097 for lucid for me please?18:22
hggdhbug 55109718:22
uvirtbotLaunchpad bug 551097 in mysql-dfsg-5.1 "start & stop hang on mysql-server (10.0.4 upgrade from 8.04) (dup-of: 551130)" [Medium,Fix released] https://launchpad.net/bugs/55109718:22
uvirtbotLaunchpad bug 551130 in mysql-dfsg-5.1 "infinite loop in /etc/init/mysql.conf if mysqld is not running." [Medium,Confirmed] https://launchpad.net/bugs/55113018:22
hackeronivoks: so how do I get alsa capture devices with udevadm?18:23
ivoksR0d: than ubuntu router will have default route to 0.118:23
hggdhzul: you actually want me to nominate 551130, correct? 551097 is a dup of 551130...18:23
zulhggdh: yes18:23
ivokshackeron: i'm afraid i don't understand you :)18:23
R0divoks, Wow... Awesome! Thank you very much!!18:24
hackeronivoks: something similar to: hal-find-by-capability --capability alsa | grep capture18:24
ivoksalsa, hal... what are these words? :)18:24
zulhggdh: thanks in advance18:24
hggdhzul: done, and you are welcome18:25
ivokshackeron: don't know18:25
hackeronanyone? - before lucid, I used to do hal-find-by-capability --capability alsa | grep capture -- what do I do now to get alsa capture devices?18:26
xperiahello to all. i was able sucessfull to install ubuntu-server LTS on a proliant ML530 G2 Server. it works everything like it should beside one small problem. everytime i poweroff the server and start it from new it hangs on the boot proccess asking me if i want to go into bios settings or if i want to continue. as long as keyboard and Monitor are attached to the Server this is no Problem but...18:31
xperia...if this devices dont exist i cant boot really in Ubuntu. anybody know how to solve that ?18:31
SpamapSxperia: this actually sounds more like a BIOS issue18:33
xperiayeah it is na18:33
xperiaa bios thing18:33
SpamapSxperia: you saying when you halt windows/redhat/etc it doens't do that?18:33
darkscrypthey. I did not install lamp in the installer when it came up18:34
darkscryptbut now i want it18:34
darkscrypthow do i install the lamp package with apt-get18:34
darkscryptis there like a group install?18:34
ivokssudo tasksel install lamp-server18:35
ivoksis that right?18:35
ivoksit is :)18:35
=== dendrobates is now known as dendro-afk
=== dendro-afk is now known as dendrobates
xperiaSpamaps: yes if i sutdown the server with poweroff and after a while power on the server i get three lines on the server that ask me if i want to continue or to go in to bios. normally after 30 seconds the server boot direct in to ubuntu but in my case it just sit there without doing anything. now i have changed a setting in the bios and need to look if this will help to resolve the Problem.18:36
xperiabooting ubuntu is no problem18:36
darkscrypt.thanks18:37
hackeronanyone? - before lucid, I used to do hal-find-by-capability --capability alsa | grep capture -- what do I do now to get alsa capture devices?18:37
darkscryptnever used tasksel before is that specific to ubuntu?18:37
xperiathe thing is that it dont do it automatic after 30 seconds or so18:37
ivoksdarkscrypt: all debian derivates have it18:38
darkscrypt<-- rpm / red hat guy18:40
xperiaSpamapS: fixed it in the Bios settings. there was one Line with "F1 prompt" that was activated have now deactivated it and it works. so now after poweron of my server ubuntu boot automatic without any user interaction on my Proliant ML530 G2 Server :-)18:44
killownehy, i would like know how encrypt /var and /etc partitions.. does ubuntu server allow it during installation?18:47
pmatuliskillown: in combination with lvm, yes18:49
killowni will try , thanks18:49
SpamapSxperia: excellent, please if you would give us warning in here before you take over the world. :)18:51
eagles0513875how can i change the sources list to a better mirror?18:58
eagles0513875im currently on lucid18:58
OverandHas anyone had any luck with using 10.04 exporting an NFS datastore for VMWare ESX/ESXi?18:59
pmatuliseagles0513875: with a text editor edit /etc/apt/sources.list18:59
ikoniaeagles0513875: it's a text file18:59
eagles0513875ikonia: i know so i would have to look at the ubuntu mirrors list to determine the address of the mirror i want then?19:00
ikoniaeagles0513875: it's that simple, yes19:00
eagles0513875ikonia: i have kinda gotten spoiled using kpackagekit19:01
OverandOh for pete's sake, I had a type-o in my exports line.19:03
pmatulistypo, typographical error19:04
Overandpmatulis: thanks, that correction is both very helpful to my frustrated state, and very topical.19:05
RoyKanyone here using hardy on a Xen DomU?19:06
MTecknologyAny ideas what's wrong with this config? A user can authenticate to the samba server, but the shares don't seem to exist. http://dpaste.com/199082/19:09
RoyKMTecknology: which user is authenticating?19:13
MTecknologyRoyK: kalliki-docs19:14
RoyKdies it work with adam?19:14
MTecknologyRoyK: hm.. yes it does19:15
RoyKperhaps trying with a username without a dash works better19:16
RoyKjust a hunch19:16
MTecknologyRoyK: I also removed the printable part - i guess i'm not sure what that did19:16
uvirtbotNew bug: #585501 in samba (main) "mounted cifs share failed to ls dir with cyrillic filenames" [Undecided,New] https://launchpad.net/bugs/58550119:17
RoyKshouldn't mean much - see man smb.conf19:17
Italian_Plumberare there any disadvantages to using the 64 bit OS instead of 32?19:22
smoserflash will be your biggest sticking point19:23
smoserbut for server... no19:23
atomic__1\19:26
danutzhello all ,I have a question..I have a vps and a domain...I created the name server at the domain registers ns1.mydomain.com and ns2.mydomain.com that goes to the vps ip and then set the domain to these nameservers the problem is that is not resolving..what do I have to do next?19:26
Italian_PlumberI just got a new motherboard/CPU and I thought it was 32 but now I've discovered it's 64, and I'm trying to decide if I want to install 32 bit or 64 bit Ubuntu (server)19:27
hggdhItalian_Plumber: probably you would want 6419:30
Italian_Plumbermmkay19:31
uvirtbotNew bug: #584428 in samba (main) "Lucid server upgrade login times out" [Undecided,New] https://launchpad.net/bugs/58442819:35
sabator2Does anyone uses Promise RAID card with Ubuntu ?19:36
Overandsabator2: there are many different Promise RAID cards - most of which are not 'really raid' - i.e. they're "FakeRAID" - only a few are hardware-assist or really RAID19:39
Overandsabator2:  take a peek at https://help.ubuntu.com/community/FakeRaidHowto19:39
Italian_PlumberBTW... you can kill the Fake Kraid with a simple ice beam or wave beam shot -- no need for missiles.19:40
OverandItalian_Plumber: generally speaking, I'd go for 64 bit on a server, and 'debate it' only on a workstation19:41
OverandItalian_Plumber: Unless you have very esoteric hardware, that's the route I'd go - I've actually been running ubuntu-server 64 bit on 8.04 for quite some time - and if I recall correctly, the machine was actually originally installed with a prior release19:42
sabator2Promise provide "FastTrak TX4310 Partial Linux source code", do I need to compile driver or Lucid will support it?19:42
zulyou will have to compile the driver19:43
OverandItalian_Plumber: some of the files on that system were created 2006-04-19 - I may have in fact installed 6.06 LTS on it19:43
Overandsabator2: May I make a suggestion?19:43
Italian_PlumberHardware is ASUS M4A785-M, AMD Phenom X4 9650, 2048MB PC6400 DDR219:43
Overandsabator2: http://www.lmgtfy.com/?q=ubuntu+TX431019:44
PiciOverand: Thats not helpful.19:44
Italian_PlumberI'll be running Hardy Server ...  DNS, 24/7 bitTorrent, apt-cacher-ng, svn, vmware ... no webserver.19:44
OverandPici: It's one click away from some discussions on the particular harwdare19:44
Pici!lmgtfy19:44
ubottuAcronyms or statements like noob, jfgi, stfu, or rtfm are not welcome in this channel. Period.19:44
Picier,19:44
Pici!google19:45
ubottuWhile Google is useful for helpers, many newer users don't have the google-fu yet. Please don't tell people to "google it" when they ask a question.19:45
OverandPici: Alright.19:45
OverandWould providing a direct link to the google response that lmgtfy proviced be acceptable?19:45
ivokssabator2: is that the driver for 2.4 kernel?19:45
OverandItalian_Plumber: given what you've described, that's so nearly identical to what I run that I'd say 'go for it'19:48
OverandItalian_Plumber: just do a stress test on it before you put it into production.  Also - since you're using apt-cacher-ng, you should be aware that the 32 and 64 bit packages will be different, so you're not going to get much benefit for the 64 bit box if everything else is 32, etc.19:49
sabator2Do we need to setup Kernel Compile Environment with Lucid like we do in Suse with "make mrproper" command ?19:49
mathiazzul: I've nominated/accepted bug 57716519:50
uvirtbotLaunchpad bug 577165 in vsftpd "Typo in etc/init/vsftpd.conf" [Low,Fix released] https://launchpad.net/bugs/57716519:50
zulmathiaz: thanks19:50
Overandsabator2: Just a question - before you start digging into this- have you tried the card yet?19:50
Italian_Plumberwhat would the stress test tell me?19:52
OverandItalian_Plumber: it's just a good way to poke around for unexpected incompatabilities - it's probably unneeded 'specifically' for a 64 bit system, but it's never a bad idea19:53
Italian_Plumbergotcha19:53
sabator2Overand: No, I thought I had to load the driver prior to boot with the Lucid.19:55
Overandsabator2: have you verified that the array you build *doesn't* show up in the lucid installer?19:57
OverandI'm just trying to make sure you're not trying to fix something that's already working, that's all19:57
BigThetanHello all20:02
BigThetancan anyone tell how to print from command line20:03
BigThetanI do not have gui installed on my server20:03
ivokslpr20:04
BigThetanis ther a man for lpr?20:05
pmatulisBigThetan: i beg your pardon?20:06
savidHi all.  I'm trying to get glusterfs set up.   When I run sudo /etc/init.d/glusterfs start,  nothing happens,  and when I run /etc/init.d/glusterfs status,   I get "GlusterFS server is not running"20:06
BigThetani was trying to see if there was a manual for lpr but I founs it thanks20:07
savidusing ubuntu 10.0420:07
pmatulissavid: strace perhaps20:07
sabator2Overand: I'm not installing Lucid on RAID5, I'm just accessing data on it.20:09
uvirtbotNew bug: #585522 in ntp (main) "Somes bad var values and old name calling in lucid" [Undecided,New] https://launchpad.net/bugs/58552220:11
smosername calling is just not nice20:13
pmatulisyeah20:13
savidpmatulis,  http://dpaste.com/199112/20:15
webPragmatistis a grow partition always logical?20:17
imthenachomananyone used webmin?20:17
pmatulissavid: i would research the "Inappropriate ioctl for device" part20:19
webPragmatistif you guys were trying to cluster two servers would you try to share /etc between the two?20:23
=== dendrobates is now known as dendro-afk
=== dendro-afk is now known as dendrobates
SpamapSwebPragmatist: /etc contains a lot of local configuration settings, so thats usually not advisable20:31
SpamapSwebPragmatist: typically when clustering you need to identify shared, and local configs20:32
webPragmatistSpamapS: do you have an resources on doing this?20:32
SpamapSsavid: do you have config files created in /etc/glusterfs ?20:32
imthenachomanis ufw better than Shorewall?20:33
SpamapSwebPragmatist: clustering is a very broad topic... one which I don't have a definitive source for information on.20:33
webPragmatistSpamapS: well what I am using is drbd as that seems a common solution...20:33
webPragmatistand i am just using typical web services20:34
webPragmatistapache2, mysql, pgsql, svn20:34
SpamapSwebPragmatist: ahh drbd is a high availability failover solution20:34
webPragmatistright20:35
RoAkSoAxwebPragmatist: if you want to keep config file in sync within various nodes, you can take a look to csync220:36
webPragmatistRoAkSoAx: whats your take on using drbh20:38
webPragmatistdrbd*20:38
RoAkSoAxwebPragmatist: if've used it before but to replicate data as in Web Server data and MySQL20:39
RoAkSoAxwebPragmatist: but never for /etc. However, I strongly recommend DRBD. I really like it.20:39
RoAkSoAxwebPragmatist: for config files, I'd recommend you to take a look to csync220:39
RoAkSoAxwebPragmatist: here's a howto I did couple years ago: http://www.roaksoax.com/2008/06/cluster-sinchronization-tool-csync220:40
webPragmatistRoAkSoAx: so you just replicate the individual service data?20:41
webPragmatistlike /var/www20:41
RoAkSoAxwebPragmatist: something like that yes20:41
webPragmatistdid you just tell the service to store it's data in a different location?20:42
webPragmatistalso how did you go about upgrading the service… it seems like you could easily fubar your data that way if you don't upgrade both services to the same version?20:42
webPragmatist(at the same time)20:43
RoAkSoAxwebPragmatist: For multiple webservers, since they needed the same data, I use two nodes with DRBD, exporting the data with NFS, the same for MySQL. Two nodes. Then the webservers only mounted the exported NFS data and connected to the MySQl20:43
RoAkSoAxwebPragmatist: in my case, I used csync2 to sync up apache config file's between servers20:43
RoAkSoAxwebPragmatist: each apache web server, mounted the NFS share and set it as the root for apache20:44
webPragmatistdoes it sync the entire /sites-available?20:44
RoAkSoAxwebPragmatist: check out the post. You can either sync single files, or complete folders20:44
webPragmatistoh okay20:44
webPragmatistso really theres three "nodes" because of your NFS?20:46
webPragmatisti mean whats the point of the nfs20:46
awbHello20:48
pmatulisawb: 'wassup?20:48
webPragmatistRoAkSoAx: ?20:48
awbDoes anyone know how to setup a Primary Domain Server on Ubuntu Server 10.04 from Scratch (I want to be able to join windows clients to it)20:49
RoAkSoAxwebPragmatist: Two nodes in HA, replicating data with DRBD. used as NAS. Then various loadbalanced webservers accesing the shared data through the NFS export20:51
pmatulisawb: search "ubuntu server guide"20:51
RoAkSoAxwebPragmatist: keep in mind that webservers nodes are in a different level of storage servers20:51
guntbert!serverguide20:51
ubottuThe Ubuntu server guide may be found at http://help.ubuntu.com/10.04/serverguide/C/20:51
webPragmatistRoAkSoAx: ohh i see… so you just used the drdb as a centralized file storage20:52
webPragmatistfor some dummy web servers20:52
RoAkSoAxwebPragmatist: The architecture I used is explained here: http://www.roaksoax.com/2008/07/ubuntu-in-my-thesis-part-220:53
webPragmatistRoAkSoAx: what would you do if you just had 2 servers….. or rather $500 bucks a monthish heh20:54
webPragmatistbest bang for buck20:54
RoAkSoAxwebPragmatist: to servers for what? Web serverS?20:55
webPragmatistweb/db20:55
akinceris there a way to create custom commands with eBox like you could with Webmin?20:55
webPragmatistpostgresql, mysql, apache2, streaming video files (mp4s), other junk20:55
webPragmatistall related to the webserver20:55
webPragmatistsvn20:55
webPragmatistthats it20:56
RoAkSoAxwebPragmatist: webPragmatist you want loadbalacing?20:56
akincersimilarly, is eBox the preferred Ubuntu web based config tool these days?20:56
webPragmatistRoAkSoAx: not really necessary20:56
webPragmatistavailability is key20:56
webPragmatistit's an ecommerce website20:56
RoAkSoAxwebPragmatist: if you only want two webservers in HA, with active/passive, I'd just go for DRBD to replicate the shared data (mysql, apache data and etc)20:56
webPragmatistcould i do more with 500 bucks a month (dedicated hosting) … ? We send out a hefty bit of data…. about 8TB a month20:58
webPragmatistthat's my original plan20:58
webPragmatistwas to just get drdb working20:58
RoAkSoAxwebPragmatist: well other thing that you could do, if you have really good hardware, is setup virtualization and set everything in VM's20:59
webPragmatistnot sure if i'd do that… seems a bit pointless20:59
RoAkSoAxwebPragmatist: not really21:00
webPragmatistunless i was just running something that was terrible at threading21:00
RoAkSoAxwebPragmatist: setting multiple VM's gives you the possibility to have different VM's for each service21:00
RoAkSoAxwebPragmatist: for example, you could even have a loadbalanced webserver that provides scabalability by adding VM's running apache21:01
RoAkSoAxand stuff like that21:01
webPragmatistI guess it could help allocate the resources better21:03
webPragmatistbut in the long run you might end up just limiting one services resources to gurantee anothers21:04
webPragmatistatleast this is how i see it21:04
webPragmatistno matter what you have 8gb of ram to work with….. partitioning it off using a vm doesn't improve anything21:04
awbWhat do I actually need to install to make a Ubuntu Server PDC for Windows Machines, I have Samba 4 already is this all I need to install?21:05
akincerawb: I believe there is info on the Samba Wiki if you feel like digging into the documentation there. Once upon a time, you had to install Kerberos and a few other packages. I want to say that is all built in to Samba 4, but you will want to check the docs to be sure21:06
webPragmatistRoAkSoAx: did you end up with a crapload of logical partitions21:06
webPragmatistusing lvm21:06
webPragmatistfor your drbd partition21:07
webPragmatistoh wait just /srv or something21:07
webPragmatisthrm21:07
webPragmatist hrmmmmmmmmmmmmmmmmmmmmmmm21:08
webPragmatistso much21:08
webPragmatistlets see if this idiot guy can setup a web server21:08
webPragmatistwith drbd21:08
RoAkSoAxwebPragmatist: i didn't use lvm21:13
RoAkSoAxwebPragmatist: it is not hard :) it is fun21:13
webPragmatistRoAkSoAx: just a big ol' drbd part?21:14
RoAkSoAxwebPragmatist: yep. I just used ext3 over drbd21:15
RoAkSoAxs/over/on top21:15
webPragmatistRoAkSoAx: with your scaling idea how did you propose to keep all the service updated?21:18
webPragmatistwith each node21:18
webPragmatistRoAkSoAx: would you bother to raid mirror 1 your cluster21:23
webPragmatistnodes21:23
webPragmatisti'm thinking it's a waste of sapce21:24
webPragmatistspace*21:24
RoAkSoAxwebPragmatist: take a look to something like glusterfs21:25
RoAkSoAxwebPragmatist: or a cluster filesystem on top of DRBD21:25
webPragmatistwell this is a hardware raid21:25
webPragmatistso that would be only somewhat equivalent21:25
webPragmatistgfs though hrm21:26
RoAkSoAxwebPragmatist: oh well then. I think you should evaluate what is best form you then given the hardware you have and what you want to implement21:26
webPragmatisti just don't want crap to break21:26
webPragmatistbut in the 3 years i've been running this server it's only hardware mirror and it's never broke :(21:27
webPragmatistbut we have another server that we are only using to backup to which i've never had to use either21:27
=== ersoy is now known as hersoy
MTecknologymy linode seems to be really slow on the disk :S21:28
akincerOK, a quick check of eBox shows me that #1 it is feature anemic and #2 it is NOT a suitable replacement for Webmin in any sense of the word. At least not for what I need it for21:28
MTecknologyakincer: learn to use the command line?21:29
guntbertakincer: yes (I see it similarly) but webmin *is* bound to damage your system some time21:30
akincerMTechnology: That is a complete non sequitur WRT my needs. I can use the CLI just fine21:30
akincerguntbert: Not using it for system configuration but rather to restart some services using custom commands. Was hoping to move to eBox since its interface is much nicer looking than Webmin. But eBox sticks you in a box and holds you there21:31
guntbertakincer: the services management will not work for long any more - the move from sys-v to upstart is fully under way and webmin has no idea of that21:32
akincerguntbert: The fact that Webmin will execute any shell command I want it to says otherwise21:33
akincerI really was just hoping eBox had the same flexibility21:34
akincerperhaps one day21:34
guntbertakincer: as long you not only know what you are doing but also what webmin is doing ... :-)21:35
akincerhaha true enough. I just configure custom commands to be executed from the CLI and create a single click button to get it to do that. For example: /etc/init.d/myservice restart21:36
qman__if all you need is a web-based terminal, there's always ajaxterm21:36
akincerso long as it does nothing more than do what I tell it to on the CLI, we're all good21:36
akincerno, this is for people who know zero about the CLI to be able to do handy things like restart some custom software services I have21:37
qman__but frankly, I'd put my own interface together before I used any of the above21:37
akinceralso to let them edit some config files for those services with the web based text editor21:37
qman__a simple PHP script with some exec()s wrapped around the service command21:37
akinceryeah, as soon as I get some time, I'm going to do just that21:37
qman__handle auth with apache21:37
akincerNah, I'm going to make a Joomla plugin to do it21:38
akincerI just find it very puzzling that you can't restart system services with eBox unless there are predefined plugins specifically for those services21:39
akincerSeems like absurd overkill to essentially just have something behind the scenes do /etc/init.d/blahblah restart21:40
qman__well, that's not even the correct way anymore21:42
qman__because of upstart21:42
qman__so the service command, now included, is the 'right' way21:42
akincerI guess I don't know much about upstart21:42
qman__because it can handle both sysv scripts and upstart scripts21:42
qman__or at least it's supposed to21:43
qman__I haven't done enough investigating to find out whether it actually works21:43
akincerSo if I have a script that has stop/start/restart defined, once upon a time I would use update-rc.d myscript defaults to register the service and use /etc/init.d to control it21:44
akincerYou are saying that is now the wrong way. What's the right way?21:44
qman__well, that'll still work21:44
qman__but only with sysv scripts21:44
qman__upstart scripts are handled differently21:44
qman__I don't know how to register one, but an upstart script is handled via "start <script" and "stop script"21:45
qman__however, the service command is supposed to handle both upstart and sysv21:45
qman__service <servicename> [start|stop|restart]21:45
akincerWell I know next to nothing about upstart so if that's now the "preferred" way or whatever, guess I'll have to read up on it21:46
qman__sysv style still works for now21:46
qman__but it's getting phased out21:47
qman__and actually, the current setup is just a compatibility layer on top of upstart21:47
qman__actual sysvinit is gone21:47
akincerright, it's the "for now" part that moves me to think learning upstart would be wise21:47
ScottKJust don't get too attached to Upstart as it is now, since it's promised to change a lot by 12.04.21:48
akincerWell then I'll just wait a bit to worry about it21:48
qman__I think the safest bet is to write your stuff around the service command, since that should be updated to handle whatever comes21:48
qman__but, just my opinion21:49
akincerI won't have to worry about it for now since 10.04 seems to honor the old ways21:49
akincerI'll just test out the non-LTS versions as they come along, play with it and then when the next LTS nears, I'll see what I need to know21:50
qman__yeah21:50
akincerthanks for the info though21:51
=== ajmitch_ is now known as ajmitch
savidOk,  so on ubuntu it installs   /etc/glusterfs/glusterfsd.vol --   but, it looks like those are example files.  I have my own files in that folder that I generated using glusterfs-volgen.    The problem is that the init script seems to be using the glusterfsd.vol file when it starts.   How do i make glusterfsd just use all the config files?22:03
Tweedasavid, I move the default files in /etc/glusterfs/ out of the way and sym-link /etc/glusterfs/glusterfsd.vol to the file generated by glusterfs-volgen and refer to the glusterfs-client files by name in /etc/fstab22:10
savidTweeda,  When I did glusterfs-volgen,  it generated three files.    I did "glusterfs-volgen --name=slurpee_media --raid 1 slurpee-web1:/export/slurpee_media slurpee-web2:/export/slurpee_media".     It created  slurpee_media-tcp.vol,  slurpee-web1-slurpee_media-export.vol,   and slurpee-web2-slurpee_media-export.vol.22:14
savidNot sure which of those is the client file,  or which of those is the server file :-P22:14
savidvery confusing22:14
Tweedasavid, one sec22:15
Tweedasavid, the /etc/glusterfs/glusterfsd.vol should contain something like "option directory /export/data0/data0" in the volume block.  that eventually gets shared out as a 'brick'22:17
jo-erlendwhat is the dyngroup schema for in an LDAP directory?22:17
Tweedasavid the glusterfs.vol will list the servers and describe how to assemble the bricks into a filesystem22:18
savidTweeda, are you talking about the default glusterfsd.vol that's included when installed?22:18
TweedaI'm talking about what volgen generates22:18
Tweedasavid, honestly, this should probably be taken to #gluster :)22:19
savidTweeda,  volgen doesn't generate a glusterfsd.vol file.      I did "glusterfs-volgen --name=slurpee_media --raid 1 slurpee-web1:/export/slurpee_media slurpee-web2:/export/slurpee_media".     It created  slurpee_media-tcp.vol,  slurpee-web1-slurpee_media-export.vol,   and slurpee-web2-slurpee_media-export.vol.22:19
cybrocopHi all. Can someone tell me how I can troubleshoot a "suspected" kernel bug within Apparmor?22:21
cybrocopSymptoms:22:21
cybrocopa) Access to a file is denied.22:22
cybrocopb) Nothing is kern.log22:22
cybrocopc) I purged Apparmor modules22:22
Tweedasavid, slurpee_media-tcp.vol is the client description that gets listed in /etc/fstab or used by the mount command.  The slurpee-web1-slurpee_media-export.vol is the glusterfsd.vol file on slurpee-web122:23
cybrocopto be specific on a) access is denied when I'm running KVM through virsh. And to be even more specific this happens when I'm providing a <serial> directive in order to define a serial port for my virtual machine.22:24
cybrocopkirkland: Sorry, I pinged you yesterday on #eucalyptus but I dropped off so I don't know if you answered my questions there. A kernel bug seems to be the only logical explanation for the problems that I am having.22:25
savidTweeda,  Ahh,  I see.  So I need to move the files it generated to the relevant servers.  Gotcha.22:26
cybrocopSome more background on the problem I'm having: http://forum.eucalyptus.com/forum/libvirt-operation-failed-failed-retrieve-chardev-info-qemu-info-chardev#comment-1133422:28
BigThetanhow do i test to see if my rsyslog server is receiving??????????22:38
webPragmatistRoAkSoAx: you still around?22:39
webPragmatisthave any of you configured drbd22:39
webPragmatisti'm just wondering if i have to create a ext3 partition first22:40
webPragmatistor if drbd needs unallocated space22:40
BigThetanhow do i test to see if my rsyslog server is receiving??????????22:43
=== erichammond1 is now known as erichammond
KillMeNowbigthetan:  IIRC there should be a log22:45
KillMeNowalso check to make sure the port active and listening22:46
|corpse|im having a problem trying to install ubuntu server from a usb drive on a machine that has no cd-rom. is a cd-rom required?22:46
BigThetanthere are a few logs which one should I check?22:46
|corpse|actualy it has a cd-rom and its listen in the bios and post but the server install dosnt not recognize it and i cant get passed it22:46
BigThetani can ping my server22:47
BigThetanfrom another machine22:47
=== erichammond1 is now known as erichammond
webPragmatisti want to create a /srv directory to hold svn repositories, www, etc...22:53
webPragmatistwith drbd should i create a partition for each?22:53
webPragmatistor can i just map the entire /srv dir22:53
webPragmatistto the drbd22:54
=== unreal_ is now known as unreal
RoAkSoAxwebPragmatist: you can map the entire /srv dir23:01
webPragmatistgot it23:01
|corpse|im stuck at my install right after the keyboard setup,i get a progress bar that says Detcting hardware to find CD-ROM drives, and it just sits at 0%23:06
webPragmatistRoAkSoAx: hey i screwed up and put the wrong ip for my cluster123:08
webPragmatisti fixed it and tried to restart drbd and it says the volume is in use23:09
webPragmatistoh detach drive023:09
webPragmatist0: State change failed: (-2) Refusing to be Primary without at least one UpToDate disk23:10
kirklandcybrocop: i'm sorry, i don't have the bandwidth to answer your questions this week23:26
kirklandcybrocop: please check #ubuntu-kernel, if you think it to be a kernel issue23:27
RoAkSoAxwebPragmatist: try something like drbdadm -- --overwrite-data-of-peer primary data-lower23:27
RoAkSoAxwebPragmatist: try something like drbdadm -- --overwrite-data-of-peer primary <drbd-resource>23:27
webPragmatisti need to read all these commands23:31
webPragmatisti'm just copy pasting random crap23:31
riz0nHey guys, I have an ubuntu server 8.04LTS and am curious what steps I should take to upgrade to the new 10.04 LTS without having to do a fresh installation?23:34
uvirtbotNew bug: #585615 in nut (main) "UPS is lost at the random point" [Undecided,New] https://launchpad.net/bugs/58561523:36
ScottKriz0n: In general it's recommended to wait for 10.04.1 in two months to upgrade.  If you want to now, sudo do-release-upgrade -d should do it.23:37
riz0nThanks ScottK!!23:37
centaur5How do you give sudo access on a ltsp fat client?23:38

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