[SLUG] LVM Re-mounting Hell
Hi All. Hoping someone can help. First the question, then the background Q: Can anyone help me re-mount LVM disks to a new machine Background Machine 1, Fedora core 4, 3 disks in a LVM. SOmething went horribly wrong and the box wont boot anymore (I suspect one of the disks has failed) So I have built a 2nd machine with the hope of plugging in the disks from Machine one, mounting them and retrieving some of the data (Whatever is there). Machine 2 has a single 13Gb Drive in it, also set up LVM. I plug in one of the drives from the old machine and it comes up as /dev/hdc with a single partition on it (hdc1). If i run a fdisk -l on the box I get the following: Disk /dev/hda: 13.0 GB, 13022324736 bytes 255 heads, 63 sectors/track, 1583 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 13 104391 83 Linux /dev/hda2 14 1583 12611025 8e Linux LVM Disk /dev/hdc: 250.0 GB, 250059350016 bytes 255 heads, 63 sectors/track, 30401 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hdc1 * 1 30401 244196001 8e Linux LVM All good. SO, trying to follow the directions I found on the web at http://forums.teamphoenixrising.net/archive/index.php/t-32150.html (three quarters of the way down the page) and I come up no good. I type lvm and get the correct prompt. I type vgs and get [EMAIL PROTECTED] ~]# vgs Couldn't find device with uuid 'eGeBrP-O0XF-K5qr-g76h-XYut-1bBQ-PbzVdK'. Couldn't find all physical volumes for volume group VolGroup01. Couldn't find device with uuid 'eGeBrP-O0XF-K5qr-g76h-XYut-1bBQ-PbzVdK'. Couldn't find all physical volumes for volume group VolGroup01. Volume group VolGroup01 not found VG #PV #LV #SN Attr VSize VFree VolGroup00 1 2 0 wz--n- 12.00G 32.00M ANd then of course nothing goes right after that. Can anyone help me? What have I missed? kev -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Sudo broken in Ubuntu
Thanks, I'll give it a try. My /etc/groups file seems to be stripped bear: root:x:0: daemon:x:1: bin:x:2: sys:x:3: adm:x:4: tty:x:5: disk:x:6: lp:x:7:cupsys mail:x:8: news:x:9: uucp:x:10: man:x:12: proxy:x:13: kmem:x:15: dialout:x:20: fax:x:21: etc, with all names following the : missing. Muz Michael Fox wrote: On 7/3/06, Billy Kwong [EMAIL PROTECTED] wrote: Worst case scenario, boot the PC using any Linux live CD, then chroot to the installed root partition on your HDD, and give the remaining user sudo priviledges. And to give a user sudo access add them to the group admin in /etc/group As the sudo configuration on Ubuntu is configured to allow any user in the admin group sudo access and usage. Thanks Michael Fox -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] ALSA and OSS guru required
Howard == Howard Lowndes [EMAIL PROTECTED] writes: Howard I would be interested to keep this on SLUG as I too am having Howard volume problems with microphones under ALSA. What's the problem? I just plug a microphone in, adjust the mixer, and it works. You have to use the right microphone for the kind of socket it's plugged in to... dynamic mics are fine; electret mics with external power supply are fine. But mics that need phantom power won't work without an external box to give them the power. And the sensitivity of the input circuitry for some sound cards is appalling... they need an external preamp. -- Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au http://www.ertos.nicta.com.au ERTOS within National ICT Australia -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] LVM Re-mounting Hell
On Mon, Jul 03, 2006 at 05:44:46PM +1000, Kevin Fitzgerald wrote: Hi All. Hoping someone can help. First the question, then the background Q: Can anyone help me re-mount LVM disks to a new machine Background Machine 1, Fedora core 4, 3 disks in a LVM. What do you mean by that? Do you mean you are striping across the disks using LVM i.e. a volume group/logical volume spanning all three disks? If so, I suspect you are hosed. I _think_ LVM requires the entire volume group for you to be able to bring it up on a new machine. Striping/RAID0 is dangerous in this respect - you're increasing your likelihood of volume failure by the number of disks in your stripe. You should only use striped volumes for data you don't care about, or you should stripe over an underlying mirror instead (which is RAID 10). Cheers, Gavin -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] optimizing/ugrading LAMP hardware
I have a LAMP server with RH7.3, Apache 1.3, MySQL 3., Postfix/MySQL, Amavis, ClamAV; Typo3, Mambo; the hardware is P3 1GHz, 1Gb, 20G IDE. it runs quite well, but, after I installed user-supplied CMS with XML/XSLT(?), it seems page generation is somewhat slower than faster, [also, on Gallery2 album generation seems slowish (though, it hasn't been fully configured yet)] what, if any, hardware upgrades or other optimization should I look at ? --- 6:41am up 119 days, 7:59, 1 user, load average: 0.11, 0.08, 0.10 163 processes: 161 sleeping, 2 running, 0 zombie, 0 stopped CPU states: 19.4% user, 1.7% system, 0.0% nice, 78.7% idle Mem: 1023120K av, 951452K used, 71668K free, 0K shrd, 69980K buff Swap: 522104K av, 178540K used, 343564K free 507848K cached PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND 16154 apache17 0 18732 16M 4776 S15.9 1.6 0:32 httpd 10454 apache 9 0 18784 16M 4836 S 3.9 1.6 1:01 httpd 16537 mysql 9 0 39292 10M 1156 S 0.5 1.0 0:02 mysqld 32057 root 11 0 1132 1132 848 R 0.5 0.1 0:00 top 10820 apache10 0 18556 16M 4828 S 0.1 1.6 0:53 httpd - # free total used free sharedbuffers cached Mem: 1023120 953464 69656 0 70096 507964 -/+ buffers/cache: 375404 647716 Swap: 522104 178540 343564 - # df Filesystem 1k-blocks Used Available Use% Mounted on /dev/hda2 18682544 12465236 5268272 71% / /dev/hda146636 27809 16419 63% /boot none511560 0511560 0% /dev/shm Server Version: Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_gzip/1.3.26.1a mod_python/2.7.8 Python/1.5.2 mod_ssl/2.8.12 OpenSSL/0.9.6b DAV/1.0.3 PHP/4.3.8 mod_perl/1.26 mod_throttle/3.1.2 Server Built: Jan 27 2006 18:20:23 Current Time: Tuesday, 04-Jul-2006 06:46:09 EST Restart Time: Sunday, 02-Jul-2006 04:24:08 EST Parent Server Generation: 2 Server uptime: 2 days 2 hours 22 minutes 1 second Total accesses: 139731 - Total Traffic: 659.7 MB CPU Usage: u1132.53 s83.04 cu.26 cs.14 - .671% CPU load .771 requests/sec - 3815 B/second - 4950 B/request 1 requests currently being processed, 18 idle servers --- Server traffic: These tables show the network traffic statistics of this MySQL server since its startup. Traffic ø per hour Received 33,593 KB 12,011 Bytes Sent 213,050 KB 76,173 Bytes Total246,643 KB 88,184 Bytes Connections ø per hour % Failed attempts 166 0.060.04 % Aborted 1,027 0.360.25 % Total417,220 145.67 100.00 % -- Voytek -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Seeking recommendations for a video camera
Hi all, Well, our trusty Sony analogue video camera has just bit the dust :( I'm looking for a recommendation for a new one. Our budget is limited to under $1000. I have no firewire adapter on the desktop machine (on which I'd be doing home vid editing). The desktop runs (K)Ubuntu 5.10. Anything that will 'just work' using Kino (for instance) would be preferable (DV raw). I do have a firewire adapter on my laptop, though I've never used it - don't have any firewire devices and don't know HOW to use them :). The laptop runs FC4. Any assistance or advice would be most appreciated. Regards, Patrick -- Registered Linux User 368634 -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] CDs on Broadway?
is there anyplace that sells Linux CDs near Broadway ? I'm looking for a Centos server CD. -- Voytek -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Sudo broken in Ubuntu
On Mon, Jul 03, 2006 at 02:17:02PM +1000, Billy Kwong wrote: Muz, Have you tried booting Ubuntu up in single user mode and see if you can login? Worst case scenario, boot the PC using any Linux live CD, then chroot to the installed root partition on your HDD, and give the remaining user sudo priviledges. or if your using grub edit the boot line and append init=/bin/bash and then do your stuff. You will probably need to mount -o remount,rw / to get write access to the partition Regards, Bill On Mon, Jul 03, 2006 at 02:03:55PM +1000, Murray Waldron wrote: G'day all, Late last night, with a foggy head, I deleted two user accounts from my machine, one having full admin privilages, using the GUI tools. Know, sudo doesn't accept my password in my only remaining account, so I'm very lost as to how to fix this. Any assistance and advice on fixing this will be greatly appreciated? Thanks, Muz. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- -BEGIN GEEK CODE BLOCK- Version: 3.12 GCS d+ s: a- C++ UL P- L+++ E--- W++ N* o-- K-- w--- O-- M V- PS PE Y PGP++ t 5 X++ R tv b++ DI+ D++ G e++ h! r y? --END GEEK CODE BLOCK-- -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] LVM Re-mounting Hell
On Tue, Jul 04, 2006 at 06:56:12AM +1000, Gavin Carr wrote: On Mon, Jul 03, 2006 at 05:44:46PM +1000, Kevin Fitzgerald wrote: Hi All. Hoping someone can help. First the question, then the background Q: Can anyone help me re-mount LVM disks to a new machine Background Machine 1, Fedora core 4, 3 disks in a LVM. What do you mean by that? Do you mean you are striping across the disks using LVM i.e. a volume group/logical volume spanning all three disks? Well the problem is not hopeless if you have the vg information and any single lv is entirely on any single disk. The recovery could still be messy though. We need more information. If so, I suspect you are hosed. I _think_ LVM requires the entire volume group for you to be able to bring it up on a new machine. Striping/RAID0 is dangerous in this respect - you're increasing your likelihood of volume failure by the number of disks in your stripe. You should only use striped volumes for data you don't care about, or you should stripe over an underlying mirror instead (which is RAID 10). Nod. FWIW note that even in raid 10 or raid 01 the probability of data loss increases a lot as the number of disks increases. Matt -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] CDs on Broadway?
On Tue, Jul 04, 2006 at 07:33:35AM +1000, Voytek Eymont wrote: is there anyplace that sells Linux CDs near Broadway ? I'm looking for a Centos server CD. Which version of Centos? Let me know and I might be able to burn one off and post it to you. Matt -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Sudo broken in Ubuntu
Thanks everyone, It's all working again. Single user mode did the trick. Though I had to look up how to us VIM ;-) Muz Alexander Samad wrote: On Mon, Jul 03, 2006 at 02:17:02PM +1000, Billy Kwong wrote: Muz, Have you tried booting Ubuntu up in single user mode and see if you can login? Worst case scenario, boot the PC using any Linux live CD, then chroot to the installed root partition on your HDD, and give the remaining user sudo priviledges. or if your using grub edit the boot line and append init=/bin/bash and then do your stuff. You will probably need to mount -o remount,rw / to get write access to the partition Regards, Bill On Mon, Jul 03, 2006 at 02:03:55PM +1000, Murray Waldron wrote: G'day all, Late last night, with a foggy head, I deleted two user accounts from my machine, one having full admin privilages, using the GUI tools. Know, sudo doesn't accept my password in my only remaining account, so I'm very lost as to how to fix this. Any assistance and advice on fixing this will be greatly appreciated? Thanks, Muz. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- -BEGIN GEEK CODE BLOCK- Version: 3.12 GCS d+ s: a- C++ UL P- L+++ E--- W++ N* o-- K-- w--- O-- M V- PS PE Y PGP++ t 5 X++ R tv b++ DI+ D++ G e++ h! r y? --END GEEK CODE BLOCK-- -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Greylisting on Postfix
Howard Lowndes wrote: Would anyone like to share their views on any of these solutions, or on greylisting itself. We implemented grey listing about 2 years ago. As I get most of our contact@ mail and since that address is all over the web, you can probably guess what a difference this made. I went from about 300 SPAMs every day (mostly caught by Spam assassin and my mail reader) to around 20. At the beginning, the grey listing was a bit of a pest; some mailers *don't* resend, even for legitimate mail. For example, someone I knew had a dodo.net.au email address. I consistently didn't get her emails, and didn't white-list her because she didn't tell me of the problem. She's since set up her own mail server, so that solves that. This is a problem for businesses though. I can't say whether we've lost bookings or business due to people trying to send us email and us not receiving it. I can hope that such people would call us, but they may not. If most of your new contacts are made from people emailing you; then grey listing could lose you some of those people. On the other hand, I can say that grey listing has saved me hours of looking over my spam folder, to fish out the occasional false-positive. I've been able to use this information to write more courses, do more advertising and even relax a little more. Of course, once we got our SPAM down I got subscribed to a mailing list which I had to be on, and which acted as an open relay... but that was another story. Fortunately it's fixed now. :( Jacinta -- (`-''-/).___..--''`-._ | Jacinta Richardson | `6_ 6 ) `-. ( ).`-.__.`) | Perl Training Australia| (_Y_.)' ._ ) `._ `. ``-..-' | +61 3 9354 6001| _..`--'_..-_/ /--'_.' ,' | [EMAIL PROTECTED] | (il),-'' (li),' ((!.-' | www.perltraining.com.au | -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html