[00:03] hello, i'm back and i have decided to just go with mdadm as andol has said that he uses. although i do have a question... once /dev/md0 is created, how do you destroy it? and also, is it possible to unmount /dev/md0 and add another hard drive to it in raid0? [00:34] nicodarious: https://help.ubuntu.com/community/Installation/SoftwareRAID (and do not use RAID 0 on a server unless you do not care about your data) [00:36] jmarsden, thanks. i'm checking it out now. [00:37] jmarsden, no, it's just a home server. need lots of space without lots of partitions. just want something big with fast access times. [00:37] why lots of partitions? [00:38] hmmm.. ok, this is for a RAID installation. not just implementing a raid drive. [00:38] i already have the OS installed on a 10K RPM drive. i think it's plenty fast enough without raid. [00:38] Kamping_Kaiser, i have several hard drives to make up my 4TB home server [00:39] but none of them are bigger than 750GB, and most are only 500GB. i am trying to get raid0 implemented instead of lvm2 [00:39] nicodarious, perhaps lvm over raid 5 (although you will lose space using raid 5/6) [00:39] heh. ok [00:40] i bought a card with the merchant telling me 'it's REAL hardware RAID!' yeah, i'm about to go back and bust him one. [00:40] RAID5 is growable these days too [00:40] hmm... question on raid 5..... [00:40] hads, problem would be his different sized drives ;/ [00:41] ahh, so they all have to be the same size? [00:41] Yeah for sure, just mentioning that you can grow RAID5 now without LVM [00:41] that sucks [00:42] i really want REAL hardware raid so i can set it up outside the OS and it be completely translucent to 8.10, but it seems no one in Germany knows what real HW RAID card is. [00:42] Software RAID is pretty neat. [00:42] nicodarious: Do you have a real hardware raid controller? [00:43] only a VT6421 PCI controller with 2 500GB drives on it. then the nvidia JBOD RAID controller on the mobo. [00:43] but both are software types [00:43] nothing hardware wise [00:44] OK. You can't do real hardware RAID without a real hardwre RAID controller. Just can't be done. [00:44] that's where i was thinking dmraid, but i couldn't find anything to help me set up dmraid. so i went with mdadm to set up /dev/dm0 first [00:45] OK. You can do that, but I don't think you can expand a RAID0 array later adding extar drives without losing all the data on it. [00:45] yeah. i know. that's where i am pissed. the guy who sold me the VR6421 said it was real HW RAID controller [00:46] ok, so i'm down to software raid, but i have to do something with it. it's got to be better than it was back in the day 10 years ago. [00:46] It is, because your CPU is faster than it was 10 years ago. [00:46] you know of any sites that show step-wise how to set up a dmraid? [00:47] at two duallie CPUs running at 3.2 GHz? better be! rofl! [00:47] https://help.ubuntu.com/community/FakeRaidHowto [00:48] hw raid> software raid for a lot of things, no matter how fast the cpu [00:48] google is your friend... google for dmraid tutorial and go from there... [00:48] Kamping_Kaiser: True if you have the hardware, irrelevant if you don't [00:49] jmarsden, always relevant, just not always helpful. [00:52] hmm.. that website i have looked at a lot. google has been my site of choice for the past 8 hours of working on this. but most of it pertains to INSTLLING onto /dev/mapper/* not just setting up one and using the VIA instead of the nvidia controller. === _YaNn is now known as hiphopgeek === hiphopgeek is now known as YaNn86 === YaNn86 is now known as hiphopgeek [02:37] How do I boot the last person to SSH to my server? [02:54] hello [02:54] I have a bit of a problem setting up ubuntu server [02:55] I cannot ping the server for some reason [02:55] is there like a list of some of the apps that don't work on 64-bit? [02:55] JDStone try googling it [02:55] good idea, thanks [02:55] i should have thought of that [02:55] duh, lol [02:57] I set the ip on the server to 192.168.1.5 and the client I was testing the connection with to 192.168.1.7 [02:58] L1NUX_14SIDE: what's the problem? [02:58] for a server, should I go 64-bit or 32-bit? [02:59] well what's your proccessor [02:59] amd [02:59] yes [02:59] amd [02:59] well, for the 64 bit system [03:00] you can utilize more ram I believe [03:00] system only has 1GB [03:01] it probably won't ever need anymore than 3GB [03:01] hmm.. I'm not really sure about the benefits of running 64 bit [03:01] maybe even 2 [03:01] yeah, i know... [03:01] I suggest hitting up google for some answers [03:01] yep, thansk [03:01] *thanks [03:01] actually, I just found something... [03:01] sure [03:02] if you have some answers most questions can be found in a google search [03:02] I've already tried to look for answers to my problem with my system [03:03] but, alas I had to get some human help [03:03] hoopss.... [03:03] reverse what I wrote [03:04] hmm, this says I should go 64bit, but I still think I'm going to go 32bit [03:04] https://help.ubuntu.com/community/32bit_and_64bit [03:05] I wish I had a 64bit system [03:05] I could really use the extra speed for running simulations on blender [03:09] why don't you have one, they're pretty cheap [03:16] yeah, but besides running blender I don't really have a need for one [03:16] I got a pretty decent P4 workstation running at 2.9Ghz [03:17] that was given to me ;) [03:30] Anyone here any good with Unix command line? [03:31] .... [04:01] Lokin: what's up? [04:35] Hi all, I'm looking to see if there is a minimal Ubuntu Server install cd .. like a business card (80'ish MB) iso instead of the larger install cd? [04:37] OI' [04:38] Most of my servers are Ubuntu (8.04) with a couple Debian boxes but I would like to isntall with the smallest media possible and the biz card sized cds are perfect. [05:30] Hmm... now I have Ubuntu Server installed, I'm not sure what to do with it. [06:05] yo guys [06:06] hello [06:06] Anyone here used swat? [06:06] I thought about asking a question but I want to ask google first [06:40] With Ubuntu Server, is it difficult to configure the machine to be a DHCP server on *only* one of its attached networks? [06:45] it's not hard ball; you specify which interface should listen the DHCP server [06:48] Got a nasty error with my 2 md devices : EXT2-fs warning (device md0): ext2_fill_super: mounting ext3 filesystem as ext2 I've fsck'ed them several time but it still not good. What can I do please ? [06:53] LMJ :reformat your partition and restore from your most recent backup tape? [06:54] oh wait, is md a memory disk? [06:54] (ramdrive)? [06:57] no, it's software raid [06:59] Ah okay. [07:29] Hi everyone, I was wondering if anyone had time to discuss with me setting up an MTA on my web server - for sending mail only (not receiving, not relaying/forwarding - no MX records)? I've taken a quick look/search for postfix and exim and all the guides relate to configuring both sending and receiving. [07:51] Sludge321: ssmtp may be what you want [07:52] jmarsden: I'm currently using ssmtp to relay to my other hosting providers smtp server, but I will be cancelling that next month - so am looking for the web server to be able to send directly. [07:54] Sludge321: OK, then just configure postfix to only listen on the loopback interface, or even hack /etc/postfix/master.cf to not even run the listeners. Should be doable, if slightly strange. How will you *receive* email? [07:56] So I want to limit the amount of SSH connectinos I can have on My server. I want only 5 people to be able to connect at one time (for now), How should I do this???? [07:57] jmarsden: I host a few domains, i receive email at one of them (configured with google apps) - but dont want email to be sent through this (as it stores email in the sent items - and some of the emails aren't my business - they are friend's websites). [07:57] Anyone....? [08:01] Lokin_: I think you could run sshd from xinetd and configure that to limit how many to have at once, but that's pretty ugly. It seems a odd restriction to want. [08:02] I'll explain. It's a piece of crap salvaged some computers from the 90's (early 90's) and made it into one little crap server. Internet isn't exactly server ready either. [08:03] make more sense? [08:06] OK, but why 5? Maybe 4 of them are idle... is the issue system load, or network traffic, or what? Then limit based on the actual resource limit not on a arbirtary number of sessions, I'd think? [08:07] jmarsden: so forget that. How can I boot the Latest user via command line? [08:07] erg that's even harder [08:07] http://pastebin.com/d5cee30a5 [08:07] this was my only Idea but It failed [08:09] Sludge321: to get you started: apt-get install postfix && cp -p /usr/share/postfix/main.cf.debian /etc/postfix/main.cf && echo inet_interfaces lo >>/etc/postfix/main.cf [08:13] Lokin_: I can't figure out what you are attempting there... w shows all users not just SSH sessions, ... [08:14] ya but there's no physical or at least I won't be doing much physical. [08:14] You could consider a few lines of shell script in .profile that log out a user if there are "too many", or if load average is too high, or whatever [08:15] ya but how do I log Someone out? [08:15] ? If the code is running in their .profile, you just exit 0 :-) [08:15] Exit their login shell. [08:16] ... I don't follow? If the code is running in their .profile...... [08:20] Are you the sysadmin of this server?? If you get every session to execute, say: [ `users |wc -l` -ge 5 ] && exit 0 [08:20] at login time, then if there are too many people the session will auto-logout... [08:21] k [08:21] don;t make me restrict top [08:22] So stick that in /etc/profile and ... bingo? Yes? Of course this will also lock *you* out under load... [08:22] don't* [08:22] k..... [08:22] So do I need to add it to there silly little template or just cut copy... [08:24] Depends if you want the existing stuff in that file to work. You could put it in a new file under /etc/profile.d/ too... how you manage your server is your choice if you are the sysadmin :-) [08:25] Lol. I am. I'm just no admin was bored on a rainy Wednesday so I decided to make a server... yay. but I know very little Linux. [08:25] Then do not run a shell server... it will be exploited. [08:26] ? [08:26] as in how mine is now? [08:26] just Ubuntu 8.10 server? [08:26] Users will find ways to become root, or use it to attack others, or whatever. DOn't give random people shell access to a server if you are not 100% sure you know enough to secure it well. [08:27] k [08:28] Use it to learn. Use it as a little web server, maybe. But not shell access, that's (in my opinion) asking for trouble. [08:28] K [08:29] would It be bad to set it up as a personal FTP server where I can just store files when I need them wherever I am? [08:29] No, for you it's fine. I'd say use SSH and scp/SFTP rather than FTP, for security reasons, but that's fine. [08:31] ? [08:31] how do I download an app or file via SSH [08:35] where is top located? [08:35] I want to restrict it [08:37] Lokin_: Try man scp and also man sftp for copying files around over SSH. Try which top to see where top is. [08:37] k [08:40] Lokin_: You might want to go through http://tldp.org/LDP/intro-linux/html/intro-linux.html for a general intro to Linux? [08:41] ya I'm on chapter 4 [08:41] :-) OK. Well, I'm going to get some sleep... goodnight. [08:42] Night [08:42] What time zone? [08:42] Pacific. 1AM here. [08:42] same [08:42] cali! [08:42] night [08:44] jmarsden: Still there? Can't get this working [09:37] there's about 200 ppl in here but no one talking [09:38] ok then maybe it's my system, i'll go and check it out [10:58] hey... got a bit of a problem here. i've removed the old kernel version from my ubuntu-server, but for some reason linux-ubuntu-modules didn't purge. Now when i try to purge linux-ubuntu-modules it comlains that initrd.img doesn't exists (which isn't that odd) is there any way to remove linux-ubuntu-modules? [12:52] hi everybody [12:53] I've just ugraded from hh to ii [12:53] and now I've no Internet - no ping, no dns, nothing [12:53] what did you do? [12:54] do-release-upgrade [12:54] and rebooted? [12:54] there was a few config files to merge, nothing related to net [12:54] yes, twice [12:54] so, you have access to machine [12:54] ? [12:54] yes I have [12:54] just in front of me [12:54] ifconfig doesn't show any ip address? [12:55] no, everything is fine with ifconfig [12:55] do you have multiple ethernet interfaces on that computer? [12:55] I mean, /etc/init.d/networking restart gives no error [12:55] yes, eth0 that is connected to the net, and eth1 to the local network [12:56] and both aren't working? [12:56] I'm currently using direct connexion to my ISP modem with a laptop [12:56] no, only eth0 [12:56] I can ssh from any computer to this router [12:56] but you can't get out? [12:56] yes [12:57] it seems there's a firewall [12:57] yet I have stopped firehol [12:57] and ufw [12:57] iptables is the only right way to check if firewall rules are set [12:57] iptables -L [12:58] there's a lot of lines [12:58] what is the command to remove all iptables rules ? [12:58] stoping 'firewalls' like firehol and other not-real-firewalls usually means that you are stoping the service [12:59] but rules are preserved [12:59] I'll try to flush the rules [12:59] be careful [12:59] if your default policy is DROP [12:59] yet, before the upgrading, firehol was already allowing all traffic from this router [12:59] you'll kick your self out of the machine [12:59] so, that's a router? [13:00] can you access outside network, like google, from it? [13:00] yes, but it's a personnal router, so it does not matter... [13:00] no [13:00] ok [13:01] /sbin/iptables -P INPUT ACCEPT [13:01] /sbin/iptables -P OUTPUT ACCEPT [13:01] /sbin/iptables -P FORWARD ACCEPT [13:01] i can't even ping my dns servers [13:01] then flush them: [13:01] /sbin/iptables -F INPUT [13:01] /sbin/iptables -F OUTPUT [13:01] /sbin/iptables -F FORWARD [13:01] and delete all user defined chains: [13:01] /sbin/iptables -X [13:02] ok thank you, now I will have to disconnect my laptop to try the internet connexion on my router [13:02] so I'll disconnect [13:02] see you [13:07] ok ivoks, thanks for your help, but it didn't change anything [13:07] why did you diconnect? [13:07] you said you could connect to your router from local machine, right? [13:08] I have one internet connection, with one modem. I'm currently using directly this ISP-provided modem, with my laptop [13:09] I have a physical access to my router [13:09] my laptop is directly plugged to the modem [13:09] so I unplugged it to plug my router to the modem [13:09] ok [13:10] eth0 has an IP? [13:10] yes [13:10] ifconfig is correct, I mean, it is the right configuration [13:10] what kind of connection is that? [13:10] plain ethernet? [13:10] DHCP [13:11] yes [13:11] so, server gets an ip from router [13:11] yes [13:11] my modem works as a router, it is a freebox modem provided by my ISP [13:11] that means that network is working [13:12] but I'm using a server as a router, let's call it www it will be easier [13:12] you can't modem from server? [13:12] you can't ping modem from server? [13:12] :) [13:12] I'm sorry I'm French - as you may have recognised, so it's not quite easy [13:13] bien [13:13] :) [13:13] let' try... [13:13] tu parles un petit peu français ? [13:13] oui, mes petit peu [13:13] ok I'll disconnect to ping the modem [13:13] :-) [13:14] ok, I can't even ping the modem [13:15] that's strange, cause it recieved an ip from modem [13:15] yet from my laptop I can [13:15] there seems to be a complete firewall... [13:15] what network card is on server? [13:16] eepro 100 [13:16] and brodcom netxtreme gigabit [13:16] that should work [13:16] let me check which is eth0 [13:16] is it useful ? [13:16] both should work [13:16] yes, because it was working before upgrade... [13:16] i'd bet on firewall [13:17] did you flush it? [13:17] yes [13:17] when I do "iptables -L" [13:17] I get [13:17] Chain INPUT policy accept [13:17] ok [13:17] target... [13:17] Chain FORWARD policy accept [13:17] so I think it's ok [13:18] run dmesg | grep eth0 [13:18] and check if something is wrong there [13:18] try disconnecting the cable [13:18] and run that command again [13:18] then connect it back again [13:19] sorry, Internet is eth1, local eth0 [13:19] everything seems to be fine [13:19] I'll disconnect to try [13:21] everything is ok [13:21] I get a "link up" [13:21] but no ping... [13:21] :- [13:21] that's strange [13:22] if it's not secret, what's your ouside IP? [13:22] outside [13:22] i would scan it [13:22] hm [13:22] but i guess that's wouldn't show anything [13:22] since modem does the routing [13:23] yes [13:23] I don't think it will show anything [13:23] everything is routed [13:23] you will just scan the modem [13:24] right [13:24] you could try setting up static ip on server and laptop [13:24] and then connect them [13:24] and see if that works [13:24] that way you would eliminate router as a problem [13:25] I don't understand [13:25] server has the right address, laptop also [13:25] but you can't access server from laptop [13:25] cause server is disconnected [13:25] yes, on my laptop I've got only one ethernet port [13:26] what's the ip server gets? [13:26] is it from the same subnet as local network? [13:27] the right ip, I mean, I have a fixed IP and it is the right one [13:27] no [13:27] hm [13:27] i'm affraid i can't point at the problem [13:27] ok [13:28] that's very strange, isn't it ? [13:28] yes [13:28] there's somewhere user error, i'm sure [13:28] do you think it could come from the kernel ? [13:28] yes, that would be more probable [13:28] i have lots of servers with broadcom and intel and had non problems [13:28] ok [13:29] thanks for your help ! [13:29] I'll try something else [13:29] np, too bad we didn't solve anything [13:30] while upgrading, I was modifying the configuration of firehol, dansguardian, squid [13:30] It could come from this [13:30] try this [13:30] I'll try reinstalling firehol [13:30] chmod -x /etc/init.d/firehol [13:30] and then reboot [13:30] firehol is a service, right? [13:30] yes it is [13:30] right, disable it and reboot [13:30] ok [13:34] I'll disconnect [13:40] now I can ping my modem ! [13:40] but I can't ping anything else [13:40] nice [13:41] well, modem is a begining :) [13:41] yes but it is on the subnet of eth1 [13:41] i know, but that didn't work before, right? [13:42] so, after all, it was firewall issue [13:42] yes, but I can't ping anything else [13:42] I've done "route" [13:42] connect to server and try running [13:42] there is only two routes [13:42] nslookup www.google.com [13:42] only two routes? [13:43] yes [13:43] I have no access to dns [13:43] it times out every time [13:43] which routes? [13:43] one per subnet [13:43] you should have a lot more than 2 [13:43] i have three per one device [13:43] I did "route" [13:43] you're right [13:44] you did 'route'? your modem should forward routes to your machine [13:44] you shouldn't do that by hand [13:44] the command route gave me a table with two lines [13:44] ah [13:44] could you write those two lines? [13:44] Yes [13:45] just first three and last column [13:45] modem subnet ending by 0 - * - 255.255.255.0 - ... - eth1 [13:45] 192.168.0.0 - * - 255.255.255.0 - ... - eth0 [13:46] *? [13:46] that's it, yes [13:46] no 0.0.0.0? [13:46] no [13:46] it should be: [13:46] x.x.x.0 0.0.0.0 255.255.255.0 ............ eth1 [13:47] I don't have such line [13:47] 192.168.0.0 0.0.0.0 255.255.255.0 ............ eth0 [13:47] + [13:47] 0.0.0.0 [modem_IP] ........ eth1 [13:47] run this on your server: [13:47] route add default gw [13:48] ok, I'll disconnect now [13:49] I've disconnected too quickly [13:49] could you retype the command please ? [13:49] route add default gw [13:49] thank ! [13:50] wonderful job ! [13:51] it is working ! [13:51] of course it is [13:51] so... [13:51] so no route are initialized [13:51] and why is that? [13:51] past your /etc/network/interfaces somewhere [13:51] masq non-private ips [13:51] paste.ubuntu.com [13:52] and copy paste the link here [13:53] http://paste.ubuntu.com/78039/ [13:54] eth1 is dhcp and dhcp doesn't provide default gateway? [13:54] remove last line from eth0 [13:55] 'gateway 192.168.0.1' [13:55] and fix broadcast [13:55] it can't be 192?168.0.255 [13:55] sorry I mistyped broadcast, it is right in the file [13:55] ok [13:56] your modem is broken if it doesn't send 'gateway' to a client [13:56] but, since your laptop works... [13:56] yes... [13:56] how do I verify that my modem is sending the gateway ? [13:56] with ifconfig ? [13:56] no [13:57] syslog? [13:58] anyway, i have to go now [13:58] ok [13:58] thank you very much ivoks [13:58] np [13:59] check if you aren't touching network with some other services or tools [13:59] and remove all wanabe-firewalls [13:59] stick with iptables and ufw [14:00] ok [14:00] bye [14:31] Got a nasty error with my 2 md devices : EXT2-fs warning (device md0): ext2_fill_super: mounting ext3 filesystem as ext2 I've fsck'ed them several time but it still not good. What can I do please ? [15:12] hi guys [15:12] can sombody help me format a hdd using ufs on ubuntu? [15:48] stas: If I'm not totaly misstaking, Linux can read but not write ufs. [15:49] andol: I found ufsutils and libbsd0 on launchpad [15:49] but those will be included only in jaunty release [15:49] so far those are totally broken [15:50] I mean, mkfs.ufs /dev/xxx doesn't understand linux device naming [15:50] stas: Ok [15:50] so it can't find the device at all [15:50] sad... :( [21:18] w [22:50] if i move a raided drive set from one server to another will i have to completely re-install the system?