Re: [gentoo-user] SOLVED hdparm and write caching
On 03/28/2011 10:35 AM, Mick wrote: > On Monday 28 March 2011 09:11:51 Coert Waagmeester wrote: >> Hello all, >> >> Running a box with 2x1TB software raid disks. >> A while back I read up about disk write caching and it's pros/cons. >> >> I then decided to disable it on my box. >> Edited /etc/conf.d/hdparm and added -W0 for sata_all_args. >> And added it to the default runlevel. >> >> It works, on bootup it turns off write caching. >> But a while later when KDE is up and running and I check with hdparm -W >> /dev/sd? write caching is on again. >> >> Now, I have two questions, >> How can I find out what turned it back on, and how can I prevent it? >> >> Is it necessary/prudent to turn it off in the first place? >> >> At the moment I run a cron job that checks every 10 minutes and turns it >> off if it is enabled. But that feels like a somewhat ugly solution... > > Try touch /etc/pm/power.d/harddrive to see if it works. Also read this > thread > and the bugs mentioned in there: > > http://thread.gmane.org/gmane.linux.gentoo.user/232788/focus=233098 Great! Thanks. That did indeed solve the problem.
Re: [gentoo-user] New bugzilla has broken search?
2011/3/29 Nikos Chantziaras : > Either I'm doing something wrong, or the new bugzilla version at > bugs.gentoo.org really sucks at searching. Let's for example go here: > > http://bugs.gentoo.org/query.cgi?format=specific > > and select "All" for "Status". Then search for "kde-base/kdelibs". It takes > a *lot* of time to complete, and worse, it returns a hell of a lot of > results that have nothing whatsoever to do with the search query. > > Did no one else notice? AFAIK, this is because the search defaults to not only query summaries but also comments, so you get a lot of unrelated results. I think there is a bug open about it. In the meantime you can use the advanced search. -- Daniel Pielmeier
Re: [gentoo-user] python-2.7 && python-updater
Am 28.03.2011 17:41, schrieb Roman Zilka: > KH (Mon, 28 Mar 2011 15:22:55 +0200): >> > I do have python-2.7 and python-3.1 emerged. I just took al look in >> > /usr/lib64/ and I can find trace of python2.4 python2.5 python2.6 >> > python2.7 python3.1 . Are those folders (2.4; 2.5; 2.6) needed anymore? >> > If no, why are the still there? > Is there anything else inside those dirs besides *.pyc and *.pyo files? > If not, it's safe to remove them. Hi, there have been links to files which did not exist anymore. 2.6 is full with some stuff, but depclean wants to remove something. I'll keep you up to date. Regards KH -- _ ASCII ribbon campaign ( ) against HTML e-mail X / \ ascii ribbon campaign - stop html mail - www.asciiribbon.org
Re: [gentoo-user] Re: Anyone successful in paravirtualizing Gentoo on XenServer?
On Thu, Mar 24, 2011 at 21:28, J. Roeleveld wrote: > On Thu, March 24, 2011 2:10 pm, Pandu Poluan wrote: >> On Thu, Mar 24, 2011 at 19:57, J. Roeleveld wrote: >>> On Thu, March 24, 2011 1:19 pm, Pandu Poluan wrote: On Thu, Mar 24, 2011 at 18:21, J. Roeleveld wrote: > On Thu, March 24, 2011 10:36 am, Pandu Poluan wrote: >> On Thu, Mar 24, 2011 at 15:32, J. Roeleveld >> wrote: [-- SuperSnip --] Okay, problem solved. Apparently it was XenCenter that's buggy, and after the first time of booting a PV-enabled VM, I must close and re-open XenCenter. Meh. And to think that I had recompiled Gentoo for perhaps 20-30 times >.< Oh well. All's well that ends well. At least I'm now really intimate with how Gentoo works :-P Rgds, -- Pandu E Poluan ~ IT Optimizer ~ Visit my Blog: http://pepoluan.posterous.com
[gentoo-user] Re: Updating world
Neil Bothwick writes: > On Mon, 28 Mar 2011 14:11:55 -0400, Elaine C. Sharpe wrote: > >> Apparently not everyone who uses kmail has the problem. >> Maybe it's the people who use html mail? >> Neil Bothwick's posts often have the "==20", but usually just one or >> two. Some posts are positively riddled with them, to the point of >> being terribly difficult to parse. >> Everytime I look at the headers of such a post it says kmail, but >> not every kmail user has the problem. > > That's intriguing, considering it's been many years since I used > KMail. > > The =20 is usually caused by a quoted-printable message, meaning either > your newsreader cannot handle quoted-printable or the mail-to-news > gateway is screwing it up. I'd say something is screwing it up. Unless someone typoed here, the =20 is shown as ==20. -- Nuno J. Silva (aka njsg) gopher://sdf-eu.org/1/users/njsg
Re: [gentoo-user] Re: Anyone successful in paravirtualizing Gentoo on XenServer?
On Tuesday 29 March 2011 15:28:56 Pandu Poluan wrote: > On Thu, Mar 24, 2011 at 21:28, J. Roeleveld wrote: > > On Thu, March 24, 2011 2:10 pm, Pandu Poluan wrote: > >> On Thu, Mar 24, 2011 at 19:57, J. Roeleveld wrote: > >>> On Thu, March 24, 2011 1:19 pm, Pandu Poluan wrote: > On Thu, Mar 24, 2011 at 18:21, J. Roeleveld wrote: > > On Thu, March 24, 2011 10:36 am, Pandu Poluan wrote: > >> On Thu, Mar 24, 2011 at 15:32, J. Roeleveld > >> > > >> wrote: > [-- SuperSnip --] > > Okay, problem solved. > > Apparently it was XenCenter that's buggy, and after the first time of > booting a PV-enabled VM, I must close and re-open XenCenter. Did you raise this with the developers for XenCenter? > Meh. And to think that I had recompiled Gentoo for perhaps 20-30 times >.< Good learning experience :) > Oh well. All's well that ends well. At least I'm now really intimate > with how Gentoo works :-P Yes, and you can probably do the installation blindfolded now? :) -- Joost
Re: [gentoo-user] Spellchecker in KDE
On Monday 28 of March 2011 22:17:55 Volker Armin Hemmann wrote: > it is just he use flag 'spell'. kdelibs need it. Maybe more packages. Just > turn it on globally, if it isn't enabled already. Now is working after adding globally flag 'spell' and recompile world. I didn't know, that flag 'spell' is needed. Thank you very much once again. Andrzej
Re: [gentoo-user] Re: Anyone successful in paravirtualizing Gentoo on XenServer?
On Tue, Mar 29, 2011 at 16:22, Joost Roeleveld wrote: > On Tuesday 29 March 2011 15:28:56 Pandu Poluan wrote: >> On Thu, Mar 24, 2011 at 21:28, J. Roeleveld wrote: >> > On Thu, March 24, 2011 2:10 pm, Pandu Poluan wrote: >> >> On Thu, Mar 24, 2011 at 19:57, J. Roeleveld wrote: >> >>> On Thu, March 24, 2011 1:19 pm, Pandu Poluan wrote: >> On Thu, Mar 24, 2011 at 18:21, J. Roeleveld wrote: >> > On Thu, March 24, 2011 10:36 am, Pandu Poluan wrote: >> >> On Thu, Mar 24, 2011 at 15:32, J. Roeleveld >> >> >> >> >> wrote: >> [-- SuperSnip --] >> >> Okay, problem solved. >> >> Apparently it was XenCenter that's buggy, and after the first time of >> booting a PV-enabled VM, I must close and re-open XenCenter. > > Did you raise this with the developers for XenCenter? > The Citrix guys said: "It's a well-known glitch" >.< Anyways, as long as the XenServer hypervisor works fine and stably, I can live with that. >> Meh. And to think that I had recompiled Gentoo for perhaps 20-30 times >.< > > Good learning experience :) > >> Oh well. All's well that ends well. At least I'm now really intimate >> with how Gentoo works :-P > > Yes, and you can probably do the installation blindfolded now? :) > LOL I've reached the point of scripting the installation so it can be driven automatically by AutoHotkey :P And even write myself a XenServer script to easily modify the pygrub parameters: http://pastebin.com/hTsxi4QM > -- > Joost > > -- Pandu E Poluan ~ IT Optimizer ~ Visit my Blog: http://pepoluan.posterous.com
Re: [gentoo-user] Updating world
In linux.gentoo.user, you wrote: > --Sig_/TRElrs3oa099GBUkPVLmB/I > Content-Type: text/plain; charset=US-ASCII > Content-Transfer-Encoding: quoted-printable > > On Mon, 28 Mar 2011 14:11:55 -0400, Elaine C. Sharpe wrote: > >> Apparently not everyone who uses kmail has the problem. >> Maybe it's the people who use html mail? >> Neil Bothwick's posts often have the "=3D=3D20", but usually just one or >> two. Some posts are positively riddled with them, to the point of=20 >> being terribly difficult to parse. >> Everytime I look at the headers of such a post it says kmail, but=20 >> not every kmail user has the problem.=20 > > That's intriguing, considering it's been many years since I used > KMail. > > The =3D20 is usually caused by a quoted-printable message, meaning either > your newsreader cannot handle quoted-printable or the mail-to-news > gateway is screwing it up. > > > --=20 > Neil Bothwick > > WinErr 01C: Uncertainty error - Uncertainty may be inadequate. > > --Sig_/TRElrs3oa099GBUkPVLmB/I > Content-Type: application/pgp-signature; name=signature.asc > Content-Disposition: attachment; filename=signature.asc > > -BEGIN PGP SIGNATURE- > Version: GnuPG v2.0.17 (GNU/Linux) > > iEYEARECAAYFAk2RCc4ACgkQum4al0N1GQMW0gCfUWbfcTsR0qud/emp2jPLKp+w > vTYAmgMURy8e9zJU1XSI0ZRv6Lhi7m/P > =84Zr > -END PGP SIGNATURE- > > --Sig_/TRElrs3oa099GBUkPVLmB/I-- I see you're using claws, sorry -- guess I misremembered. You can see an "=20" though in the quote, there at your sig delimiter? It appears to replace the trailing space, so that your sig is not delimited and shows in the quote. Anyway, apologies to the kmail users. Probably the mail2news is the culprit, as I've used slrn for usenet for years and have it working extremely well on every other group. Later I'll try setting up mutt for nntp just for this one group, as it can pipe through lynx. Maybe that'll be easier to read. -- ...she kept arranging and rearranging the rabbit and kind of waving to it. I decided, "this is the person I want to sit next to".
[gentoo-user] kvm and libvirt
Hello all, At the moment I have a running install of kvm. I do all the virtual networking manually with help of tap adaptors and bridges. And I use LVM for the VMs disks. It is working very well, but to add a VM or to migrate it to another host is laborious. Now I have started playing with libvirt, and I would like to know if anyone else here uses the combination of kvm and libvirt? What is the most dynamic way of automatically setting up virtual networks per VM? Should I use qemu-ifup? I do not use routed or NATted virtual nets. only bridging. Kind regards, Coert Waagmeester
Re: [gentoo-user] Circular blockage
On Tuesday 29 March 2011 07:21:24 Eray Aslan wrote: > Re-sync your tree. Temp breakage when virtual/mta was added to the > tree. Sorry about that. Ah! That explains it. Many thanks Eray. -- Rgds Peter
Re: [gentoo-user] inaccessible virtual machine
On Mon, Mar 28, 2011 at 9:51 PM, Valmor de Almeida wrote: > > Hello, > > I have been using a windows 7 virtual machine guest with a gentoo linux > virtualbox host for a while. I was never able to get sound working on > the guest but it works on the host. Recently I decided to re-emerge > virtualbox with the USE flag pulseaudio to try to get sound working. > After the emerge (list below) I also re-emerged the > virtualbox-modules-3.2.12; logged out and rebooted. > > Now when I try to start virtualbox, it lists the guest machine as > inaccessible; no other information is provided by the virtualbox startup > window. I would appreciate inputs on how to fix this. > > Thanks, > > -- > Valmor > > A couple of questions: 1) Is the machine on a RAID partition or some other form of storage which, for whatever reason, isn't mounted? I have that problem now and again on my compute server. The Linux kernel guys haven't made my drive D & E disk interfaces 100% reliable as of yet so in my case I might have to reboot once or twice to get the drives recognized. 2) What kernel are you using. I saw a few messages this week on Virtualbox problems when running the 2.6.38 series kernel. I'm running 2.6.38 and haven't seen them myself though. Good luck, Mark
Re: [gentoo-user] inaccessible virtual machine
On 03/29/2011 09:07 AM, Mark Knecht wrote: > On Mon, Mar 28, 2011 at 9:51 PM, Valmor de Almeida > wrote: >> >> Hello, >> >> I have been using a windows 7 virtual machine guest with a gentoo linux >> virtualbox host for a while. I was never able to get sound working on >> the guest but it works on the host. Recently I decided to re-emerge >> virtualbox with the USE flag pulseaudio to try to get sound working. >> After the emerge (list below) I also re-emerged the >> virtualbox-modules-3.2.12; logged out and rebooted. >> >> Now when I try to start virtualbox, it lists the guest machine as >> inaccessible; no other information is provided by the virtualbox startup >> window. I would appreciate inputs on how to fix this. >> >> Thanks, >> >> -- >> Valmor >> >> > > A couple of questions: > > 1) Is the machine on a RAID partition or some other form of storage > which, for whatever reason, isn't mounted? I have that problem now and > again on my compute server. The Linux kernel guys haven't made my > drive D & E disk interfaces 100% reliable as of yet so in my case I > might have to reboot once or twice to get the drives recognized. > > 2) What kernel are you using. I saw a few messages this week on > Virtualbox problems when running the 2.6.38 series kernel. I'm running > 2.6.38 and haven't seen them myself though. > > Good luck, > Mark I am running VB on a gentoo laptop; everything is mounted. I have not had any problems for a long time. I sync'ed portage a couple of weeks ago and the VB worked with my virtual win7 machine without problems. I am using 2.6.36-gentoo-r5. I have been searching the web and the VB forum pages but no luck yet. In the meantime I re-emerged VB without the pulseaudio USE flag and copied a working backup of .VirtualBox/ to my home directory; still get the same message (inaccessible). I will try an older backup later. Thanks, -- Valmor -> emerge --info Portage 2.1.9.42 (default/linux/amd64/10.0, gcc-4.4.5, glibc-2.11.3-r0, 2.6.36-gentoo-r5 x86_64) = System uname: Linux-2.6.36-gentoo-r5-x86_64-Intel-R-_Core-TM-_i7_CPU_L_640_@_2.13GHz-with-gentoo-1.12.14 Timestamp of tree: Sat, 19 Mar 2011 05:15:01 + app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.6.6-r1, 3.1.2-r4 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 1.12.14-r1 sys-apps/sandbox:2.4 sys-devel/autoconf: 2.13, 2.65-r1 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.5 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.81-r2 virtual/os-headers: 2.6.36.1 (sys-kernel/linux-headers) ACCEPT_KEYWORDS="amd64"
Re: [gentoo-user] Spellchecker in KDE
On Tuesday 29 March 2011 11:55:59 Andrzej Styczeń wrote: > On Monday 28 of March 2011 22:17:55 Volker Armin Hemmann wrote: > > it is just he use flag 'spell'. kdelibs need it. Maybe more packages. > > Just turn it on globally, if it isn't enabled already. > > Now is working after adding globally flag 'spell' and recompile world. a --newuse world would have been sufficient.
Re: [gentoo-user] Updating world
On 3/28/2011 6:20 PM, Neil Bothwick wrote: > On Mon, 28 Mar 2011 14:11:55 -0400, Elaine C. Sharpe wrote: > >> Apparently not everyone who uses kmail has the problem. >> Maybe it's the people who use html mail? >> Neil Bothwick's posts often have the "==20", but usually just one or >> two. Some posts are positively riddled with them, to the point of >> being terribly difficult to parse. >> Everytime I look at the headers of such a post it says kmail, but >> not every kmail user has the problem. > > That's intriguing, considering it's been many years since I used > KMail. > > The =20 is usually caused by a quoted-printable message, meaning either > your newsreader cannot handle quoted-printable or the mail-to-news > gateway is screwing it up. It's not KMail, it's your OpenPGP signature. Attaching the signature switches your mail from text/plain to multipart/signed, and the mail client switches to quoted-printable for the text part of the message. However, there does seem to be some kind of problem with the mail-to-news gateway. The quoted-printable "soft-return" sequence is =20, but it's being turned into "==20" somewhere along the way. slrn *does* support quoted-printable messages, if they were well-formed quoted printable :) For reference, this is what your mail looks like coming over SMTP; note the lack of "==20" anywhere: --Sig_/TRElrs3oa099GBUkPVLmB/I Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 28 Mar 2011 14:11:55 -0400, Elaine C. Sharpe wrote: > Apparently not everyone who uses kmail has the problem. > Maybe it's the people who use html mail? > Neil Bothwick's posts often have the "=3D=3D20", but usually just one or > two. Some posts are positively riddled with them, to the point of=20 > being terribly difficult to parse. > Everytime I look at the headers of such a post it says kmail, but=20 > not every kmail user has the problem.=20 That's intriguing, considering it's been many years since I used KMail. The =3D20 is usually caused by a quoted-printable message, meaning either your newsreader cannot handle quoted-printable or the mail-to-news gateway is screwing it up. --=20 Neil Bothwick
Re: [gentoo-user] kvm and libvirt
On Tue, 2011-03-29 at 13:02 +0200, Coert Waagmeester wrote: > Hello all, > > At the moment I have a running install of kvm. > I do all the virtual networking manually with help of tap adaptors and > bridges. > And I use LVM for the VMs disks. > > It is working very well, but to add a VM or to migrate it to another > host is laborious. > > Now I have started playing with libvirt, and I would like to know if > anyone else here uses the combination of kvm and libvirt? > > What is the most dynamic way of automatically setting up virtual > networks per VM? Should I use qemu-ifup? > > > I do not use routed or NATted virtual nets. only bridging. The best way i to manually set up the bridge device via normal Gentoo means, and create a virtual nic with the host device being that bridge device. libvirt should take care of the rest.
[CLOSED] Re: [gentoo-user] inaccessible virtual machine
On 03/29/2011 09:16 AM, Valmor de Almeida wrote: > On 03/29/2011 09:07 AM, Mark Knecht wrote: >> On Mon, Mar 28, 2011 at 9:51 PM, Valmor de Almeida >> wrote: [snip] >> >> A couple of questions: >> >> 1) Is the machine on a RAID partition or some other form of storage >> which, for whatever reason, isn't mounted? I have that problem now and >> again on my compute server. The Linux kernel guys haven't made my >> drive D & E disk interfaces 100% reliable as of yet so in my case I >> might have to reboot once or twice to get the drives recognized. >> >> 2) What kernel are you using. I saw a few messages this week on >> Virtualbox problems when running the 2.6.38 series kernel. I'm running >> 2.6.38 and haven't seen them myself though. >> >> Good luck, >> Mark > > I am running VB on a gentoo laptop; everything is mounted. I have not > had any problems for a long time. I sync'ed portage a couple of weeks > ago and the VB worked with my virtual win7 machine without problems. > > I am using 2.6.36-gentoo-r5. I have been searching the web and the VB > forum pages but no luck yet. In the meantime I re-emerged VB without the > pulseaudio USE flag and copied a working backup of .VirtualBox/ to my > home directory; still get the same message (inaccessible). I will try an > older backup later. > > Thanks, > > -- > Valmor > I went back to a previous windows 7 VM backup and re-emerged VB without the pulseaudio flag. All worked. I also installed AC'97 codecs driver in the windows 7 VM and got sound working. Interesting that the VM got corrupted when VB was emerged with the pulseaudio USE flag. -- Valmor > > [snip]
Re: [gentoo-user] Emerge server
On Monday 21 March 2011 11:44:47 I wrote: > On Monday 21 March 2011 10:40:52 I wrote: > > Have I missed something in the setup? > > I had. I'd missed "--config-root=/target" to go with "--root=target". I'm now finding one problem that threatens to invalidate the whole idea. Today I returned after a few days away and ran an update, after mounting the Atom's file systems to /mnt/atom/target on the i5 and chrooting into /mnt/atom. 12 packages needed to be updated; four of those were installed to the chroot and the other eight to the target. They should all have gone to the target. Has anyone here tried working this way? I can't tell whether the problem is woolly thinking on my part or problems in portage. I did think portage had all the tools it needs to maintain another system mounted on a target directory under the file-system root. -- Rgds Peter
Re: [gentoo-user] Re: Updating world
On Tue, 29 Mar 2011 10:19:51 +0100, Nuno J. Silva wrote: > > The =20 is usually caused by a quoted-printable message, meaning > > either your newsreader cannot handle quoted-printable or the > > mail-to-news gateway is screwing it up. > > I'd say something is screwing it up. Unless someone typoed here, the =20 > is shown as ==20. In the message I quoted, it said ==20, my reply contained =20. Both showed correctly here. -- Neil Bothwick Fine day for a good workout. Steal something heavy. signature.asc Description: PGP signature
Re: [CLOSED] Re: [gentoo-user] inaccessible virtual machine
On Tuesday 29 March 2011 17:06:23 Valmor de Almeida wrote: > I went back to a previous windows 7 VM backup and re-emerged VB without > the pulseaudio flag. All worked. I also installed AC'97 codecs driver in > the windows 7 VM and got sound working. Interesting that the VM got > corrupted when VB was emerged with the pulseaudio USE flag. The only time I ended up with a corrupted guest OS was when I overdid it on snapshots and run out of space on the virtual partition. Do you have enough space? -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Xulrunner 2.0 seems to demand Alsa : any advice ?
110328 Florian Philipp wrote: > Am 27.03.2011 20:51, schrieb Philip Webb: >> Wanting to try Firefox 4.0 , I tried to emerge Xulrunner 2.0 >> & ran into this problem : >> root:527 profile> emerge xulrunner >> checking for alsa... Package alsa was not found in the pkg-config search >> path. > Definitely a bug. I have filed bug 361205. -- ,, SUPPORT ___//___, Philip Webb ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto TRANSIT`-O--O---' purslowatchassdotutorontodotca
Re: [CLOSED] Re: [gentoo-user] inaccessible virtual machine
On 03/29/2011 05:56 PM, Mick wrote: > On Tuesday 29 March 2011 17:06:23 Valmor de Almeida wrote: > >> I went back to a previous windows 7 VM backup and re-emerged VB without >> the pulseaudio flag. All worked. I also installed AC'97 codecs driver in >> the windows 7 VM and got sound working. Interesting that the VM got >> corrupted when VB was emerged with the pulseaudio USE flag. > > The only time I ended up with a corrupted guest OS was when I overdid it on > snapshots and run out of space on the virtual partition. Do you have enough > space? > I have enough space and I have not used snapshots for a very long time. -- Valmor
Re: [gentoo-user] How to change from one harddrive to software raid
Am 30.03.2011 05:02, schrieb Einux: > Hi, > > I bought a new 1T harddrive which is exactly the same as my previous > harddrive. So I'm planning to make a Raid-1 layout(for security > reasons). But here's the problem: I've already setup LVM2 on the > existing harddrive and I don't want to destroy the existing LVM volume > groups. I tried to google it, but I'm not sure which is the right keyword. > Could you guys help me out? > > Thanks in advance:) > > -- > Best Regards, > Einux > 1. Create a degenerated RAID1 with your new disk mdadm --create /dev/md0 --level=1 --raid-devices=2 missing /dev/sdb 2. Partition the raid device 3. Add one of the partitions to your LVM volume group. pvcreate /dev/sdb2 vgextend volume_group /dev/sdb2 4. Move everything from the old physical volumes to the new pv. pvmove /dev/sda3 /dev/sdb2 5. Remove the old and now empty physical volume vgreduce volume_group /dev/sda3 6. Move everything else which is not on LVM to your new raid. Guess you need to go to single user mode to do this safely. 7. Grow your raid to also contain the old disk. mdadm /dev/md0 -a /dev/sda No, I have not tested this and you should double-check everything. No guarantees, etc. One warning, though: pvmove is known to create problems from time to time. Leaking memory, bogging systems with infinite system load and so on. If it gives you trouble, you can abort it with `pvmove --abort` and try it again later by calling `pvmove volume_group` (without physical device specified) to resume it. It SHOULD survive system crashes. Trying another kernel version sometimes helps when pvmove gives you trouble. Hope this helps, Florian Philipp signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] How to change from one harddrive to software raid
Am 30.03.2011 07:28, schrieb Florian Philipp: > Am 30.03.2011 05:02, schrieb Einux: >> Hi, >> >> I bought a new 1T harddrive which is exactly the same as my previous >> harddrive. So I'm planning to make a Raid-1 layout(for security >> reasons). But here's the problem: I've already setup LVM2 on the >> existing harddrive and I don't want to destroy the existing LVM volume >> groups. I tried to google it, but I'm not sure which is the right keyword. >> Could you guys help me out? >> >> Thanks in advance:) >> >> -- >> Best Regards, >> Einux >> > > 1. Create a degenerated RAID1 with your new disk > mdadm --create /dev/md0 --level=1 --raid-devices=2 missing /dev/sdb > > 2. Partition the raid device > > 3. Add one of the partitions to your LVM volume group. > pvcreate /dev/sdb2 > vgextend volume_group /dev/sdb2 > > 4. Move everything from the old physical volumes to the new pv. > pvmove /dev/sda3 /dev/sdb2 > > 5. Remove the old and now empty physical volume > vgreduce volume_group /dev/sda3 > > 6. Move everything else which is not on LVM to your new raid. Guess you > need to go to single user mode to do this safely. > > 7. Grow your raid to also contain the old disk. > mdadm /dev/md0 -a /dev/sda > > No, I have not tested this and you should double-check everything. No > guarantees, etc. > > One warning, though: pvmove is known to create problems from time to > time. Leaking memory, bogging systems with infinite system load and so > on. If it gives you trouble, you can abort it with `pvmove --abort` and > try it again later by calling `pvmove volume_group` (without physical > device specified) to resume it. It SHOULD survive system crashes. > Trying another kernel version sometimes helps when pvmove gives you trouble. > > Hope this helps, > Florian Philipp > Argh, of course a partition on md0 is not called sdb2. Just if that got you confused ;) signature.asc Description: OpenPGP digital signature