/srv/irclogs.ubuntu.com/2010/10/27/#ubuntu-server.txt

=== _Techie_ is now known as _TechAway_
owhI have a hardy server with 2 x 500Gb HDD configured as a software raid1 set. The drives are almost full. I need to replace them with 2 x 2Tb drives. I have 2 sata connectors. What is the smartest way to migrate?03:00
owhIs there an RTFM someone might point me at?03:00
twbPut all four disks in the machine, configure a four-way RAID1, then remove the old pair and grow the array03:00
owhNot enough sata connectors.03:01
=== _TechAway_ is now known as _Techie_
twbThen one way is to degrade the array first, then do the merge one-half of old and one-half of new03:01
owhCan I remove 1 x 500Gb, add 1 x 2Tb, boot from CD, then dd the data from small to large, rinse and repeat with the other two, then bring it up, then grow it?03:02
twbI suppose so, but that means your machine will be offline for the entire resync03:03
twb(You wouldn't use dd from one of the 2TBs to the other; you'd just assemble the array.)03:03
owhYeah, I was thinking dd from each of the 500Gb to each of the 2Tb.03:04
twbIt's a mirror03:04
twbthere's no point doing that03:04
owhYou're suggesting, degrade the array, shutdown, remove 1 drive, add a new drive, add the new drive to the array, resync, degrade the array again, add the other new drive - right?03:05
twbshut down, replace one 500Gb with one 2TB; bootdegraded from the remaining 500GB, add the 2TB to the array, let it resync.03:06
owhRight, and then rinse and repeat.03:06
twbThen, shut down, replace the remaining 500GB with the second 2TB, bootdegraded from the first 2TB, add the second to the array03:06
twbFinally, call mdadm with the appropriate command to say "notice that there's more space now"03:06
qman__that's not enough though, you still need to expand the filesystem afterward03:07
twb--grow, I think.  I haven't done it for a while03:07
qman__whcih is an offline operation03:07
twbqman__: not on ext303:07
qman__in any case, it's quite time consuming03:07
twbA resize2fs *grow* takes negligible time03:07
twbIt's probably O(n), but the k is quite small03:08
qman__I meant the process as a whole03:08
twbGranted03:08
owhAnd I'm partitioning the 2Tb the same as the 500Gb?03:08
qman__taking more space, of course03:09
owhOr am I partitioning it in the way that I want it to become?03:09
qman__if your 500GB is one full-size raid partition, your 2TB would be one full size raid partition03:09
owhNo, two partitions, swap and /03:09
qman__I guess that's a bad way to explain it03:10
qman__you want the new raid partition to be the size of the new raid03:10
owhAnd mdadm won't choke that the partitions are not the same size?03:10
qman__of course not03:11
qman__it uses the full capacity of the smallest device in the raid03:11
twbowh: the partitions on the new disks should be full size03:11
qman__the extra space is simply wasted until you eliminate the small disk and grow the array03:11
twbYep03:12
owhExcellent, seems we have a plan. Any gotchas?03:12
twbowh: the case edges are probably sharp03:12
qman__you will not be redundant while it's resyncing03:12
owhROTFL03:12
owhqman__: Yeah03:12
qman__so don't do something silly like wiping your 500GB drive before everything is said and done03:12
owhI wasn't intending to wipe it at all - nice offline backup :)03:13
qman__you'd think that would go without saying, but I've seen people do it03:14
owhAny merit in making home a new partition on the new large drive.03:14
qman__that's why I mention it03:14
owhqman__: fair enough03:14
qman__not really03:14
qman__the only reason you might do that is convenience if you wipe / frequently03:14
qman__or if you use encrypted filesystems03:14
owhNo, more from a perspective that silly users cannot fill the server / and bring it down :)03:15
=== MagicFab is now known as Guest62398
qman__that's what quotas are for03:15
qman__filling home will prevent users from logging on03:15
owh:)03:15
twbOn any multi-user system, I always make user data separate from the OS03:16
qman__there's certainly good reasons to do it03:16
owhYeah, this is a *historic* server and I'm trying to regain some composure while attempting to avoid shooting my foot off with a large cannon.03:17
qman__but it's not a necessity, and it will involve more downtime03:17
qman__up to you03:17
twbOf course, I'd also be using LVM03:17
owhThis will be over the weekend, so I'm expecting to at least have the server up and syncing in 48 hours, down-time over the weekend not so much an issue.03:17
qman__resyncing 2TB can take considerably longer than 48 hours03:17
owhtwb: I've been shy to use LVM, last time I used it, it ate my data.03:18
owhqman__: Only 500Gb, not 2Tb.03:18
katronixserfHi all, can someone tell me which Firewall Jaunty came with?03:18
twbkatronixserf: linux only has one firewall: netfilter03:18
katronixserfoh ok, not iptables?03:18
twbiptables is the UI for netfilter03:18
qman__and UFW is a frontend for iptables03:19
twbRight03:19
qman__owh, I see three resync operations, 500GB to the first 2TB, 500GB to the second 2TB, and then the expansion operation03:19
twbqman__: the third isn't a resync03:20
owhqman__: Right, but I only need to be on-site for the first one, since I'll need to reboot before 1, between 1 and 2, the rest shouldn't affect connectivity.03:20
katronixserfdoes: http://pastebin.com/vKRMSptr mean nothing is blocked?03:20
qman__that's true, I'm forgetting this is raid 1, not raid 5/603:21
twbkatronixserf: in the filter table, yes.03:21
qman__I added two drives to a raid 5 and it took over three days to finish expanding03:21
twbkatronixserf: you could be doing something silly in the nat, mangle, raw tables, etc.03:21
owhHow much should I budget for the first 500Gb sync?03:21
katronixserfhaven't touched it, tried running an app that connects using port 9000, and wanted to see if it was being blocked or not03:22
qman__katronixserf, ubuntu has, by default, an accept all policy with no rules03:23
qman__in essence no firewall, just the kernel modules03:23
katronixserfk03:23
qman__owh, that depends a lot on how fast your disks are03:24
qman__I'm going to take a fairly safe guess at 80MB/s03:24
qman__if you tweak the kernel to allow full speed syncing, that would theoretically be the same as a flat dd03:24
qman__quick calculator suggests about 2 hours03:25
owhSo, double it, add 1 for good measure, 5 - that's doable :-)03:26
qman__but yeah, make sure you tweak the kernel during the resync03:27
owhHow?03:27
qman__it has settings that slow it down to prevent excessive iowait during operations on an active server03:27
owhWhich RTFM should I consult?03:27
qman__http://www.cyberciti.biz/tips/linux-raid-increase-resync-rebuild-speed.html03:27
owhNiice03:28
qman__if you just set them absurdly high it'll go full speed03:29
qman__no need to change any configuration, just echo to proc03:29
owhIt won't lock the console?03:29
qman__no03:29
owhExcellent.03:29
qman__the system's actually quite responsive03:29
* owh guesses that booting in single mode would be a GOOD IDEA.03:29
qman__I did on mine03:30
owhYeah, as I said, no users to worry about :)03:30
qman__you don't have to, but I wasn't taking any risks03:30
owhI've heard suggestions, in addition to those uttered by twb to use LVM, but as I said, last time it ate my data - very, very unhappy, since it didn't eat it when I did it, just later when the users were actually using the system. As luck would have it, right before the regular backup :(03:32
owhAny comments about why I should consider LVM?03:32
twbBecause it allows you to resize partitions on the fly, and to move them between disks -- without an outage03:33
twbIn particular, it allows you to allocate only (say) 2GB to / and 10GB to /home, and increase this later when the users whinge03:33
owhSo this would be useful in a high-availability environment, not so much in a - we can fix it on the weekend environment?03:34
owhIn essence, I'd be adding another layer of abstraction between the os and the drive - right?03:35
qman__you use LVM basically instead of partitioning, though with a RAID the order is different03:38
qman__in non-raid, it goes full-disk partition, LVM, filesystems03:38
qman__in raid, it goes full disk partition, mdadm, LVM, filesystems03:39
owhI understand. I cannot do a full disk partition software raid with 2 sata connectors and only two drives - or did I miss something?03:41
qman__you could03:41
qman__but it would be very difficult to convert what you have to that03:41
qman__or at least a lot more difficult than if you could hook all the drives up03:42
qman__also of note, I normally put /boot outside any LVM or raid to avoid any hassles with grub03:42
qman__but 255MB off the size of the raid is insignificant with today's disk sizes03:43
owhWell, theoretically I could connect the sata drives via two sata/usb adapters, but I'm not sure what that gains me, other than a slower resync.03:43
owhs/slower/much much slower/03:44
qman__yeah, looking at about 40MB/s if each disk is on a separate controller03:44
owhIn return for time, do I get some other benefits that don't appear obvious to me?03:45
qman__well, you don't have to open your server as many times03:47
qman__and normally, it would be a time saving operation03:47
owhOther than that the first resync would take much longer and I'd still need to be there to do the final swap.03:48
owhWell, this has been enlightening, thanks qman__ and twb, much appreciated.03:50
=== _Techie_ is now known as _TechAway_
=== _TechAway_ is now known as _Techie_
=== Pilif12p is now known as Pilif12p|afk
katronixserfwhich package provides cmp?04:48
=== _Techie_ is now known as _TechAway_
owhkatronixserf: diff04:54
twbkatronixserf: dpkg -S or apt-file will tell you04:55
owhtwb: dpkg will only tell if you have it already installed.04:55
=== _TechAway_ is now known as _Techie_
twbowh: hence apt-file04:59
owhtwb: Fair enough :)05:01
twbIf I have a hardy NFS server and a bunch of harder workstations, and I want user quotas, do I need to install "quota" on the client machines?05:10
twbIIRC I only need to install it on the server itself, and that's only to modify/inspect quotas -- the actual quota enforcement is entirely done in the kernel.05:10
=== _Techie_ is now known as _TechAway_
yuri_sevatzhello06:46
yuri_sevatzI'm having an issue with the installer cd getting stuck at "Configuring linux-image-2.6.35"06:46
yuri_sevatzdid a verification and the cd integrity said perfect06:46
yuri_sevatzthis is the 10.10 edition06:47
* RoyK += 0xc0ffee06:49
Error404NotFoundi am trying to generate a multidomain ssl, but when i visit second domain firefox reports that cert is only valid for domain1, http://pastebin.com/1ANmNUKY07:02
=== twister004_ is now known as twister004
=== _TechAway_ is now known as _Techie_
Error404NotFoundeven tried with: http://pastebin.com/pXV5krTk (new conf at bottom)07:08
Error404NotFoundupdated pastebin: http://pastebin.com/Cwq89rRX07:11
Error404NotFoundfurther updated: http://pastebin.com/7gz03Mrt seems like method 1 doesn't work at all07:21
git__anyone here work with sheepdog ?07:43
=== _Techie_ is now known as _TechAway_
a_okwhat is the best place to add a location to path for all users?08:32
\sha_ok: /etc/login.defs ?08:43
a_ok\sh: well accourding to the documentation I just found /etc/envirionment. never knew of login.defs08:45
\sha_ok: yes that's also possible...depending on when and where you want to use the paths08:46
Error404NotFounda_ok, environment is the recommended place, there are other places as well, but conventionally /etc/environment has been used to define global settings such as PATH, HTTP_PROXY, JAVA_HOME, etc08:47
a_ok\sh: when do I want to use login.defs?08:48
=== Barre_ is now known as Barre
=== MenZa is now known as lhavelund
theblueonecan anyone point me to the location upstart logs process output to by default?09:36
theblueoneI can't seem to find this anywhere09:36
ghalebhello, I have ubuntu-server 8.10 installed and configured on server, and I moved the os disk to another server and it's not working, when the kernel starts it ends up with errors in modprob and starts initramfs, any help what to do ?09:47
=== _TechAway_ is now known as _Techie_
drcodehi all10:18
drcodeI can't make samba with printer to work10:18
drcodeI am running on ubuntu 10.0410:18
drcodeI have strange this error:10:19
drcode[2010/10/27 11:17:06,  0] smbd/server.c:1115(main)10:19
drcode  standard input is not a socket, assuming -D option10:19
drcode any idea?10:19
twister004hi guys.. during ubuntu 10.04 server installation, i selected 'do not update'and now, when i do an 'apt-get install <pkg>', it gives the following errors: "Couldn't find the package".. please advise if there is anything i can do to prevent this10:22
twister004i have uncommented entries in the sources.list file10:23
mike9055is there anyway i can see how much data my server has transfered to a certain ip10:25
=== _Techie_ is now known as _TechAway_
_bttwister004: suso apt-get update10:27
_btsorry   "sudo"10:27
twister004i did that10:29
twister004i get errors... Failed to fetch http://us.archive.ubuntu.com.......... Hash Sum mismatch10:31
jpdstwister004: Are you behind a proxy?10:35
twister004no10:35
twister004i did a apt-get clean10:35
twister004and ... apt-get update && apt-get upgrade10:36
twister004seems to be downloading something10:36
jpdstwister004: Try: sudo apt-get -o Acquire::http::No-Cache=true update10:39
twister004yes.. i did that10:40
jpdsWith the No-cache flag/10:40
twister004yes10:42
jpdsRighto.10:42
twister004it's downloading some stuff now...10:42
twister004ill try downloading the app and check10:42
twister004thanks a lot!!!10:42
=== NG_ is now known as ng_
binBASHhttp://lackrack.org/11:32
binBASHhaha, this is nice idea ;)11:32
=== ng_ is now known as NG_
cemcI have a 10.04 with snmpd on it. every time there's a request from another machine, the snmpd daemon writes a log entry "Connection from UDP etc etc". how can I disable that?12:21
joschicemc: http://raetsel.wordpress.com/2008/02/15/snmpd-filling-up-varlogmessages/12:41
joschicemc: alternatively filter these messages in your syslog daemon12:41
cemcjoschi: mhm, thanks. found it in the meantime12:43
MrWiserunning cap deploy, it asks for my git user pass twice, then just goes "Password:" and no matter what I type in I get permission denied12:44
MrWiseany ideas as of what I'm doing wrong? :|12:44
=== MagicFab is now known as Guest84101
AndyGraybealhi, i'm having a problem destroying a machine; it says it times out.13:42
AndyGraybealwhat do i do to kill it?13:42
AndyGraybeali'm using libvirt's virsh with kvm13:43
k5673AndyGrayBeal: A virtual one?13:43
k5673Ah13:43
AndyGraybealyes, no power button on this guy13:43
k5673AndyGrayBeal: I'm having issues shuting down the machine, not destroying it13:44
AndyGraybealyea, i can't connect, shutdown or destroy :(13:44
AndyGraybealif there was a virtual knife .....13:44
k5673AndyGrayBeal: No idea. Are you controlling a remote kvm or local one?13:44
AndyGraybeallocal13:44
AndyGraybealthe other virtual machines are running just fine13:45
binBASHAndyGraybeal: ps -ef|grep kvm13:45
binBASH:D13:45
binBASHand how you kill processes?13:46
k5673AndyGrayBeal: You can destroy them using virt-manager13:46
AndyGraybealk5673: i've tried tht too.. it acts the same as virsh13:47
binBASHand yup with virt-manager you can see their console as well13:47
AndyGraybealbinBASH: i can't connect to it13:47
binBASHyou can't connect to it with virt-manager?13:47
binBASHweird ;)13:47
AndyGraybealyea, virt-viewer doesn't work either13:48
binBASHor do you mean, virt-manager is unable to connect to your libvirt daemon?13:48
k5673So, there's your problem13:48
AndyGraybealvirt-manager connects to libvirt fine, i can connect to my other machines just fine.  they are all running just fine.13:49
k5673AndyGraybeal: can you see anything running virsh --connect qemu:///system list13:49
k5673AndyGraybeal: ?13:49
AndyGraybealyes, that works stupendously.13:49
binBASHok13:49
k5673AndyGraybeal: OK13:49
AndyGraybealit's specifically one machine that times out13:49
AndyGraybealbinBASH: i will try to destroy the process now13:49
binBASHyup13:49
binBASHtry it13:50
binBASHthen restart the machine in virt-manager and open the console13:50
binBASHmaybe you can see what's the issue13:50
AndyGraybealthat appears to have worked.13:51
mrpeters-islhey all anyone here use virt-manager and know the trick to getting a virt-manager graphical console to the dom0 is?  just simply instaling a vnc server on dom0?  something else?  Ubuntu 10.04 for virt-manager but Debian Lenny dom0's13:51
k5673AndyGraybeal: Maybe is an issue with the ACPI support for your guests13:51
AndyGraybealk5673: i'm not sure, it's ubuntu 10.04 on ubuntu 10.0413:51
sommermorning13:51
k5673morning13:52
k5673AndyGraybeal: It can be possible13:52
k5673AndyGraybeal: May be.13:52
k5673AndyGraybeal: Remember. The destroy feature lis like unplugging the power cord from the wall. Or pressing the power button for 4 seconds. That behavior is controlled by ACPI13:53
AndyGraybealwell it has worked fine until today13:53
AndyGraybealthis morning13:53
k5673AndyGraybeal: Can you see ACPI errors in dmesg | more, inside your guest?13:54
AndyGraybeallemme look13:54
k5673AndyGraybeal: Ah13:54
k5673AndyGraybeal: It's just an idea...13:54
AndyGraybealnope no errros in dmesg13:54
k5673AndyGraybeal: Mmmmmmm13:55
AndyGraybealit's working now, killing the process allievated whatever issue was happening.13:57
AndyGraybeal:)13:57
k5673AndyGraybeal: What process? KVM?14:05
uvirtbotNew bug: #667269 in samba (main) "winbind crashes" [Undecided,New] https://launchpad.net/bugs/66726914:11
garymcAnyone ever bought a SSL certificate? I bought one yesterday from Godadddy but its PENDING. Anyone know how long it takes till i can use this SSL certificate on my server?14:22
AndyGraybealgarymc: i want to buy some from startssl14:36
patdk-wkpending? what kind of cert did you get? normally it's like a few min14:37
patdk-wkunless you get one that needs some kind of background check14:37
garymcI got the best one they did14:39
garymcthey say they are doing checks14:39
garymctaking ages pissing me right off14:39
=== oubiwann is now known as oubiwann-away
=== oubiwann-away is now known as oubiwann
MrWiseI accidentally chmod -R 777 /15:57
MrWiseam I fucked? :|15:57
patdk-wkuse the undo command :)15:57
MrWisesorry, what?15:57
MrWiseI have nothing that runns from 'undo'15:58
patdk-wkI'm joking15:58
MrWise:|15:58
patdk-wkpretty much, going be annoying as hell to fix15:58
MrWisechmod SHOULD have an undo command :P15:59
patdk-wkthat would be your filesystem :)15:59
alvin(I did the same some 9 years ago on a live production system.) Did the command complete, or did you interrupt?16:05
MrWiseit completed16:07
=== oubiwann is now known as oubiwann-away
=== oubiwann-away is now known as oubiwann
patdk-wkhow can I get a user to have access to raw disks?16:24
patdk-wkI added the user to the disk group, but it's just not going16:25
=== NG_ is now known as ng_
pmatulisMrWise: i recommend a re-install16:36
patdk-wkah fixed it, had to reloging to notice the new group16:37
Reyukendoes anybody know if the pure-ftpd package is still in a repository?16:57
lauI got smbd INTERNAL ERROR: Signal 11 I tried to get a gdb backtrace of the smbd process16:57
Reyukeni clearly installed universe, but it gives me a cant find package error16:57
lauhttp://dpaste.com/265175/ but i am not familiar with those symbols16:57
Reyukenhttp://paste-it.net/public/p84f849/16:57
=== rmaccloy_ is now known as rmaccloy
lauReyuken: did you try packages.ubuntu.com ?16:57
Reyukenhmm16:58
Reyukenill try adding that one16:58
launo check the http://packages.ubuntu.com16:58
etceterahow intensive is it for rsync to sync a directory of thousands of files to an ftp every 5 seconds or so?16:58
rbnicknejReyuken, I found pure-ftpd package in lucid/universe17:00
Reyukeni Think i added that one17:01
Reyukenas shown in the paste-it above17:01
etceteraanyone? we are doing something similar on windows with a 3rd party utility, and we know the rsync algo is pretty fast.17:02
etceterajust not sure how well it handles large batches of < 1KB files.17:02
patdk-wketcetera, depends17:03
patdk-wkit syncs millions of files for me pretty damned quick17:04
patdk-wkit's harddrive intensive though, if all those files metadata doesn't fit in ram17:04
etceterapatdk-wk: yea, not near millions of files.17:05
etceterawe clear out stuff older than a day every day.17:05
etceteramaybe thousands, < 100K / day.17:05
rbnicknejReyuken, you try 'sudo apt-get update && sudo apt-get upgrade' after adding them?17:05
patdk-wkwhat I don't know is exactly how much bandwidth that will use up17:05
patdk-wkusing unison instead, will keep bandwidth down to basically nothing, if files don't change17:06
=== rbnicknej is now known as jenkinbr
etceterapatdk-wk: right we are only syncing new files.17:15
patdk-wkdoesn't matter if you sync only new or not17:16
patdk-wkit still has to check the metadata to know what is new or not17:16
etceteraright, obviouly you're IO bound.17:17
patdk-wkna, I'm not io bound, my metadata fits in ram nicely, and stays there :)17:20
etceterapatdk-wk: how does it get disposed?17:21
patdk-wkdisposed?17:21
patdk-wkit's cache data, if the system needs the ram for something else, out it goes17:21
=== jenkinbr is now known as rbniknej
LowValueTargetWTH.... i just had a db consultant tell one of my clients that Ubuntu is not good for a MySQL environment17:28
etceteramost people are stupid, let the benchmarks speak for your specific use case.17:29
LowValueTargetetcetera: this was Percona.... the "MySQL Experts"17:29
ChmEarlLowValueTarget, BestPractical uses latest Ubuntu to host their site (rt3 authors)17:36
zul__everyone has their own agenda17:38
Reyuken<rbnicknej> Reyuken, you try 'sudo apt-get update && sudo apt-get upgrade' after adding them?17:43
Reyukenhah that, works, thanks alot!17:43
Reyukenim such a newbie when it comes to linux17:44
ciastekwhere should i write about wrong information in ubuntu server guide?17:48
etceteraLowValueTarget: who cares?17:48
etceteraI plan on using postgres + ubuntu on the server.17:48
etceteraand Windows on the web server.17:49
jcastrociastek: is it on the wiki?17:49
LowValueTargetetcetera: just bothers me17:49
etceterait's appropriate for my use case and by budget.17:49
jcastroyou can just fix it17:49
etceteralet them show you why.17:49
LowValueTargetwe deploy hundreds of ubuntu servers17:49
LowValueTargeti just called them asking for benchmarks... none17:49
LowValueTargetmust be the consultants personal pref17:49
jcastrociastek: asommer can help you but we're at UDS this week so not on irc so much. If it's on the wiki and wrong dive in and fix it. :)17:49
ninja1When i try to do /oper on my ircd-hybrid server i always get wrong password even if i wrote right password, someone had this problem before?17:50
ciastekjcastro: it's not wiki, but i've found launchpad page for ubuntu-docs, so i fill a bug here17:50
ciastekjcastro: thank you17:50
etceteraLowValueTarget: what do they prefer?17:50
Error404NotFoundcan i ask an openssl related question here?18:02
taxI would like to install a mailserver (pop3, smtp), what is the best way to do it?18:27
cfairlestax, https://help.ubuntu.com/10.04/serverguide/C/email-services.html18:29
taxk5673: thnak you for your help yesterday, i succeeded in my firewall made of squid firestarter and dansguardia18:30
cfairlestax, i think dovecot is the most popular for an MDA, i dont really know though, i use postfix for an MTA18:30
etceterais anyone using zimbra on ubuntu?18:33
etceterathe server component.18:33
lieuwehey, i'm looking for a torrent client for on my server, so it needs an webinterface. but google isn't really helping, any ideas?18:39
jeiworthlieuwe: mldonkey18:39
taxcfairles: can you have the same users on the both of them?18:40
Picilieuwe: transmission-daemon provides a web interface.18:41
taxdoes anyone know how to use exim?18:44
k5673tax:OK18:46
progre55hi people. I upgraded libc6 from backports, but now I want to downgrade. when I say "apt-get remove libc6" ubuntu wants to remove half of my server. any suggestions, please?18:52
=== _TechAway_ is now known as _Techie_
=== _Techie_ is now known as _TechAway_
Error404NotFoundprogre55, disable backports and may be try apt-get install --reinstall, not sure if that will work or not18:56
Error404NotFoundprogre55, using backports/proposed on production environments is really a good idea btw18:57
=== _TechAway_ is now known as _Techie_
progre55thanks, I'll try that18:59
progre55Error404NotFound: now when I open the link, it's offering me the php file to download.. I think I've broken some config files..19:02
progre55it's actually a phtml file19:03
Error404NotFoundprogre55, which link?19:03
Error404NotFoundprogre55, webserver? make sure you have php module loaded, try apache2ctl -l, that small "L"19:04
progre55Error404NotFound: actually, I have the php mod enabled, just forgot to add .phtml to AddType in the apache conf file =)19:05
Error404NotFoundprogre55, that was "apache2ctl -t -D DUMP_MODULES" to list all modules19:05
Error404NotFoundprogre55, aah, great19:05
Error404NotFoundso it works now?19:06
progre55sec, let me try restarting it now19:06
progre55Error404NotFound: well, still now working19:10
=== _Techie_ is now known as _TechAway_
progre55and there is php5_module loaded19:10
Error404NotFoundprogre55, are you using userdir?19:16
progre55in apache?19:16
Error404NotFoundprogre55, yes19:16
progre55Error404NotFound: no19:17
Error404NotFoundprogre55, what if you try with a .php instead of .phtml?19:17
progre55Error404NotFound: oh, it's working.. I guess it was my browser cache =)19:19
progre55when I opened it with a different browser, it works fine19:19
Error404NotFoundprogre55, good..19:19
progre55Error404NotFound: pardon my ignorance =)19:19
progre55Error404NotFound: thanks a lot for the support19:19
Error404NotFoundprogre55, at these times using Incognito/private browsing mode, thats good for testing19:19
progre55I'll consider that, thanks19:20
ivoksis ubuntu one really running on IIS?19:52
ivoksi got IIS's error at one point19:53
ivoksit's powered by 7digital, so i guess it's their server19:53
Reyukenwhen i do usermod -d it strangely tells me the user is currently logged in20:04
Reyukenbut the who command only shows root as logged in ?20:05
lieuweis it possible to set up an samba share so that it's password protected?20:06
patdk-wkheh? you can password protect stuff?20:08
patdk-wknormally you just limit users to shares, then the user is required to enter their password, therefor protected20:08
=== _TechAway_ is now known as _Techie_
lieuwepatdk-wk: indeed, but there are three shares. two of which should only be accessible to the lan, one of which should be public and have a pw20:10
patdk-wkso?20:10
lieuwepatdk-wk: i don't want the two lan shares to have a password20:10
RoyKlieuwe: still running with security = share?20:11
lieuweRoyK: yes, my parents need to acces it and they forget passwords like shit20:11
RoyKlieuwe: you can't combine share security with authentication20:11
lieuweRoyK: sure? no way to do something like this?20:11
patdk-wkbut you can easily make a guest user :)20:11
RoyKnot that I know about20:11
lieuweFFFUUU20:11
lieuweRoyK: thanks :-320:12
RoyKlieuwe: create a user guest passwd guest20:12
RoyKallow that user access to the 'public' areas20:12
RoyKset security = user20:12
RoyKcase closed20:12
patdk-wkthis is where I don't know about samba that much20:12
lieuweRoyK: too difficult for my peeps :-/20:12
patdk-wkbut can you limit a user login to source ip's? or share access based on ip?20:12
patdk-wkthat would fix it up fine20:12
ivoksbad user = guest20:12
RoyKlieuwe: just save the password on their boxes while mapping the shares20:12
ivoksallways use security = user20:13
lieuwehmehhhmmmmmpfffffffffffff20:13
RoyKpatdk-wk: you can only allow/disallow from IPs20:13
lieuweRoyK: ip ranges?20:13
patdk-wkI know, but he wants to allow/disallow shares20:13
patdk-wkthe shares that have guest20:13
patdk-wkso that would work20:14
_Techie_does samba allow for authentication on a per IP basis?20:14
RoyKivoks: he was on some time back and wanted to know how to share to everyone in the household, so I told him security = share will _turn_off_ auth, which was what he wanted at that time20:14
patdk-wkunless the allow/disallow is samba global20:14
RoyK_Techie_: not that I know20:14
ivoksRoyK: even that's bad20:14
ivoksRoyK: vista and 7 probably won't work with that setup20:14
RoyKivoks: it's a choice20:14
RoyKivoks: it does20:15
ivoksmap to guest = Bad User20:15
ivoksif you have a share that need auth20:15
ivoksand a share that doesn't need it20:15
ivoksthen set up security = user20:15
ivoksand for public shares add20:15
ivoksmap to guest = Bad User20:15
ivoksthat's it20:15
patdk-wkhmm20:15
RoyKivoks: samba will still ask for auth for those connections20:15
ivoksit won't20:15
patdk-wkmaybe I am reading this wrong20:16
ivoksso:20:16
patdk-wk"but there are three shares. two of which should only be accessible to the lan, one of which should be public and have a pw"20:16
ivoks[global]20:16
ivoks    security = user20:16
patdk-wkthat mean two for local network with guest access, and one world accesable?20:16
ivoks[private_share]20:16
ivoks  guest ok = no20:16
ivoks[public_share]20:16
ivoks  guest ok = yes20:16
ivoks  map to guest = Bad User20:17
RoyKivoks: that will still ask for authentication20:17
lieuwepatdk-wk: no, the two lans should be without pass, and the global one with20:17
qman__depends on your client20:17
RoyKivoks: also, please use a pastebin for that sort of multiline output20:17
patdk-wklieuwe, yes, but what is the definition of GLOBAL?20:17
patdk-wkworld wide over the internet?20:17
qman__depending on the policy set, many versions of windows will simply auth as guest20:17
patdk-wkcause that doesn't work20:17
lieuwepatdk-wk: world wide20:17
patdk-wkwon't work20:17
qman__which has caused me all sorts of trouble in the past20:17
patdk-wkuse a vpn20:17
lieuwepatdk-wk: why wont it work?20:17
qman__yeah, you can't use samba over the net directly20:17
* RoyK wonders what some people in here are smoking20:18
qman__it's not a routable protocol20:18
lieuwewtf20:18
patdk-wkhehe20:18
lieuwewhy not? seems awfully limited20:18
patdk-wkmost isp's block the ports samba uses, for good purpose20:18
qman__well, it is routable, but yeah20:18
_Techie_qman__, i could prolly get samba working on the net, but have no needd for it20:18
qman__the name service isn't20:18
_Techie_quite easily20:18
qman__and most places block it20:18
_Techie_port 44520:19
RoyKqman__: netbeui is not routable, but samba uses this protocol called IP, see, so it's routable20:19
* patdk-wk doesn't use winserv20:19
ivokshttp://pastebin.com/3A3gv5sk20:19
ivoksthis works20:19
ivoksthose that don't belive, read smb.conf or try20:19
ivoksof course, add other variables20:19
patdk-wkivoks, yes, but that doesn't answer his question :)20:19
patdk-wkgetting that public share to work with user auth, over the internet :)20:20
ivoksover the internet?20:20
patdk-wkyep20:20
ivokssmb over the internet?20:20
ivoksdo not do that20:20
qman__even if you could, it's still a bad idea20:20
ivoksperiod.20:20
qman__use sftp20:20
lieuweokay, i get the point, never mind :P20:20
ivoksif you need something like that, setup webdav20:20
lieuwei better just host some files using apache then...20:20
* patdk-wk just uses ipsec/openvpn/....20:21
sobersabrehi guys.20:24
sobersabrewhat's the "right" way to install an init script ?20:24
RoyKSMB/CIFS over the internet is a PITA - the protocol is so chatty it'll slow down your multimegabit connection down to a single B-channel ISDN link for random access20:24
sobersabreI'm reading insserv manual, and I don't see examples of usage.20:24
sobersabreis insserv "the" way ? or update-rc.d ?20:25
sobersabre(I'm on 10.04)20:25
=== zul__ is now known as zul
qman__well, 10.04 is most of the way changed over to upstart20:25
sobersabreqman__: so ... what do I do ?20:25
qman__so only a few straggling init scripts left20:25
ivokssobersabre: copy it in /etc/init.d/ and then update-rc.d20:25
sobersabreivoks: but I looked in /etc/rc2.d and it has SO few scripts in there.20:26
sobersabreso, I assume more scripts have been invoked, because of some changes.20:26
sobersabreand I haven't been in sync with this.20:26
ivokssobersabre: ubuntu is moving to upstart20:26
ivokssobersabre: those are in /etc/init/20:26
sobersabreivoks:  so what do I do, how do I use upstart ?20:27
sobersabreI ran insserv, and got many warnings, loops, etc.20:27
qman__the entire sysvinit in 10.04 is just compatibility20:27
Reyukendoes anybody know how to create a user with ftp access to / ?20:27
ivoksi administred debian/ubuntu systems for more than a decade20:27
ivoksi've never used insserv :)20:28
Reyukeni know i shouldnt change a users home directory to /20:28
qman__you shouldn't be using ftp20:28
patdk-wknever used insserv also20:28
sobersabreivoks: I am running the script as S99 and it's supposed to be the last.20:28
sobersabrebut it IS NOT running the last.20:28
ivokssobersabre: it's not the last20:28
sorensobersabre: Why does it need to be last?20:28
qman__especially if you're not locked down to a chroot20:28
ivokssobersabre: i told you, ubuntu is moving to upstart20:28
Reyukeni just want something to move files over easily to my server20:28
ivoksupstart works differently20:28
sobersabreivoks: I'm at its homepage.20:29
Reyukenftp would be a good option imo20:29
qman__Reyuken, use sftp20:29
qman__it's part of SSH, which you probably have anyway20:29
ivokssobersabre: look at some examples in /etc/init/20:29
sobersabrehow do I upstart myself ? :)20:29
qman__and, FTP is never a good option20:29
sobersabreinit!20:29
sobersabreok.20:29
sobersabremoment.20:29
ivokssobersabre: figure out what your program requires to start20:29
sorensobersabre: Again, why does it need to be last?20:29
sobersabresoren: I don't have time to investigate who it depends upon.20:30
sorensobersabre: What is it?20:30
sobersabreif it runs manually after the system has been up20:31
ivokssoren: it's a secret :)20:31
sobersabreit brings up a bridge and nas interface20:31
sorensobersabre: But if you don't know what it depends on, put it in S99, add a "sleep 3600" to the top, and you should be fine.20:31
qman__Reyuken, http://mywiki.wooledge.org/FtpMustDie20:31
ivoksthen it starts after networking20:31
sorenProbably.20:31
sobersabreI assume it should be after $network.20:31
Reyukenheh20:31
ivoksstart on started networking20:31
ivoksdone20:31
sobersabreOK... I'll copy from ssh.20:31
ivoksssh doesn't start after network20:32
ivokscause ssh is smart; it detects network changes :)20:32
Reyukenoh my, using my root account details via sftp brings me to the root directory automaticly20:32
Reyukenproblem solved i guess20:32
Reyuken /*20:32
patdk-wkor, created :)20:33
sobersabreivoks: yep. so assuming I did modify ssh.conf to this thing, do I need to install anything, or is it supposed to work as soon as this script has been created ?20:33
ivokssobersabre: restart ssh20:34
_Techie_Reyuken, rm -R /*20:34
_Techie_JK20:34
sobersabreivoks: no, it's not ssh :)20:34
yann2btw, what's the best place to learn how to write upstart files?20:34
Reyukenlol20:34
ivoksthen start your_service20:34
sobersabreyep.20:34
sobersabrenow, questions...20:34
sobersabreexpect fork. I don't run daemon... I removed this. OK ?20:34
sobersabrerespawn, don't run daemons.20:34
sobersabreremoved.20:35
Reyukenim still incapable of changing home directories though, usermod just keeps telling me that the user in question is logged in :/20:35
ivokssobersabre: http://upstart.ubuntu.com/wiki/Stanzas20:35
_Techie_Reyuken, usually if you have the godly root access, then it shouldnt matter20:35
ivoksyann2: start with existing jobs in /etc/init/ and look at http://upstart.ubuntu.com/wiki/Stanzas20:35
binBASHbtw. soren good tip with that cloud stuff, I didn't buy many servers now :D But it took 4 weeks to adopt software :)20:36
Reyukeni kinda prefer to put everything under a ftp folder of some kind20:36
Reyukeninstead of lots of folders in home20:36
sobersabreOK.20:36
yann2bookmarked, cheers, that'll be useful :)20:36
qkumbersis there no longer a #ubuntu-virt room?20:51
sorenNo.20:51
soren(and they're called channels)20:51
qkumbersI'm trying to find a good example of how to take advantage of qemu overlays, but I'm not using virt-manager20:52
qkumbersI created the virtual machine with vmbuilder and I use virsh to manage it20:53
=== _Techie_ is now known as _TechAway_
=== luis__lopez is now known as luis_lopez
k5673Yo!20:59
k5673soren: vmbuilder can not build maverick guests in lucid. ALready updated the packages.21:00
k5673Why?!21:00
sorenBecause it sucks.21:00
ivoks:)21:01
alex88hi, i've setup the vsftp server, i'm in a folder owned by user, connected as user.. but it says permission denied for upload (i can connect and download)21:04
alex88how do i troubleshoot this?21:05
alex88no one?21:07
ivoksvsftpd.conf21:08
alex88oh..write_enable was default..21:12
=== ng_ is now known as NG_
=== rhys_ is now known as rhys
benediktif i have a libvirt/qemu/kvm system with a couple of virtual machines, what is the best way to peridocly backup the guest systems to a remote server?23:21
benediktor is there any other way then to transfer the disc images as they are?23:26
benediktim hoping for a incremental backup alternative23:26
owhbenedikt: Well, you can backup from within the guest using rsync. Alternatively you can shutdown/suspend the guest and backup the disc image. I'm using OS X as my host with a sparse-bundle disk image where all my virtual machines are stored. Time machine (rsync gui) does the differential backup, since the sparse-bundle is a collection of disk blocks in a directory structure.23:32
owhI've also heard of LVM snapshots being used for this purpose, but I have no experience with it.23:32
benediktowh: but the problem is that I dont have access to all of the guest systems23:32
benedikt(but they are not mission critical anyways)23:33
benediktso regular backup it is23:33
owhYou could store all the images for each machine on an LVM volume and snapshot that, but I have no personal experience with that.23:33
benediktneither do i23:34
benediktim not even using lvm23:34
owhGoogle: http://tldp.org/HOWTO/LVM-HOWTO/snapshots_backup.html23:34
owhMore: http://rhcelinuxguide.wordpress.com/2006/06/03/what-is-a-logical-volume-manager-lvm-snapshot-and-how-do-i-use-it/23:35
zealiodhey, i have inherited a network that has 10 vlans on eth.111, eth.112, etc - I want them all to share a common subnet - how can this be made possible?23:42
zealiodand what is a proxy network?23:44

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