-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Bonsoir,
I have an fc6 install with LVM and want install f8.
I have 3 hdd: sda, sdb, sdc.
sda has 1 partition: sda1 LVM
sdb has 2 partitions: sdb1 ext3 sdb2 LVM
sdc has 1 partition: sdc1 LVM
sdc1 and sdb2 are in the same volume group.
System in living in sdb and sdc and sda is practically free.
The root partition / is on sdb1 and all other vital partitions (/usr, swap, /var, /opt, /tmp and /home) are logical volumes on sdc1.
My idea is to perform the new install on sda: sda1 will be the root partition /, and build a volume group sda2 for /usr, swap, /opt /tmp and /var; /home will be left where it is.
Here begins my problem: I would like, after install retrieve (almost) all files from fc6 install. For /home, there is no problem, I think that, at install time, I will be be asked if I want to keep my /home volume wherever it is. But for other volumes (/var where my dns config is...) or /opt (where my texmf and some other out of standard are) I don't know how to get them once the new system will be installed.
How could I access to these partitions for, now, they are mounted on /dev/mapper/.... but these devices are created at boot time in the /dev which is on sdb1 and, even if I mount /dev/sdb1 from the fresh install, I will be unable to access them because the new system is mounted on sda.....
I don't know how to proceed.... If someone could give me some lights, I will be happy.
Another (related) question: is it possible, through grub, to have the 2 systems (f8 and fc6) working? I mean, not at the same time but possibly choosen at boot time? what are the magic command to give before installing the bootloader, during the installation of f8, in order to get this possibility.
Thanks for any answer.
- -- François Patte UFR de mathématiques et informatique Université Paris Descartes 45, rue des Saints Pères F-75270 Paris Cedex 06 Tél. +33 (0)1 44 55 35 61 http://www.math-info.univ-paris5.fr/~patte
François Patte wrote:
I have an fc6 install with LVM and want install f8.
I don't see any problem.
I have 3 hdd: sda, sdb, sdc.
sda has 1 partition: sda1 LVM
sdb has 2 partitions: sdb1 ext3 sdb2 LVM
sdc has 1 partition: sdc1 LVM
sdc1 and sdb2 are in the same volume group.
System in living in sdb and sdc and sda is practically free.
The root partition / is on sdb1 and all other vital partitions (/usr, swap, /var, /opt, /tmp and /home) are logical volumes on sdc1.
My idea is to perform the new install on sda: sda1 will be the root partition /, and build a volume group sda2 for /usr, swap, /opt /tmp and /var; /home will be left where it is.
Here begins my problem: I would like, after install retrieve (almost) all files from fc6 install. For /home, there is no problem, I think that, at install time, I will be be asked if I want to keep my /home volume wherever it is. But for other volumes (/var where my dns config is...) or /opt (where my texmf and some other out of standard are) I don't know how to get them once the new system will be installed.
How could I access to these partitions for, now, they are mounted on /dev/mapper/.... but these devices are created at boot time in the /dev which is on sdb1 and, even if I mount /dev/sdb1 from the fresh install, I will be unable to access them because the new system is mounted on sda.....
I haven't understood the details of your setup. But couldn't you run Knoppix (or one of the other Linux-on-a-CD's) and activate your LVM partitions with "vgchange -a y" (as root)? Won't "lvdisplay" then tell you the names of the corresponding devices? Then you could mount the partitions as you wish, and copy whatever you want from one to the other.
Another (related) question: is it possible, through grub, to have the 2 systems (f8 and fc6) working? I mean, not at the same time but possibly choosen at boot time? what are the magic command to give before installing the bootloader, during the installation of f8, in order to get this possibility.
Again, I'm not sure of your exact question, but it is certainly possible to have grub stanzas corresponding to different versions of Fedora.
Personally, I would not rely on the Fedora installation to setup things as I desire. I would install F8, and then re-write grub.conf to contain one or more entries for FC-6. You shouldn't need to re-install grub, as far as I can see.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Timothy Murphy a écrit : | François Patte wrote: | |> I have an fc6 install with LVM and want install f8. | | I don't see any problem.
If this refers to the preceeding, I agree.... | |> I have 3 hdd: sda, sdb, sdc. |> |> sda has 1 partition: sda1 LVM |> |> sdb has 2 partitions: sdb1 ext3 |> sdb2 LVM |> |> sdc has 1 partition: sdc1 LVM |> |> sdc1 and sdb2 are in the same volume group. |> |> System in living in sdb and sdc and sda is practically free. |> |> The root partition / is on sdb1 and all other vital partitions (/usr, |> swap, /var, /opt, /tmp and /home) are logical volumes on sdc1. |> |> My idea is to perform the new install on sda: sda1 will be the root |> partition /, and build a volume group sda2 for /usr, swap, /opt /tmp and |> /var; /home will be left where it is. |> |> Here begins my problem: I would like, after install retrieve (almost) |> all files from fc6 install. For /home, there is no problem, I think |> that, at install time, I will be be asked if I want to keep my /home |> volume wherever it is. But for other volumes (/var where my dns config |> is...) or /opt (where my texmf and some other out of standard are) I |> don't know how to get them once the new system will be installed. |> |> How could I access to these partitions for, now, they are mounted on |> /dev/mapper/.... but these devices are created at boot time in the /dev |> which is on sdb1 and, even if I mount /dev/sdb1 from the fresh install, |> I will be unable to access them because the new system is mounted on |> sda..... | | I haven't understood the details of your setup. | But couldn't you run Knoppix (or one of the other Linux-on-a-CD's) | and activate your LVM partitions with "vgchange -a y" (as root)?
This I don't know, I think that I could do something like this using the rescue cd.
| Won't "lvdisplay" then tell you the names of the corresponding devices?
The problem is there:
~ ~]# lvdisplay ~ --- Logical volume --- ~ LV Name /dev/fedora/usr <snip>
This /dev is the one which is currently working on the fc6 (so, in sdb1 partition).
Once f8 will be installed on sda, there will be a /dev for f8 on sda1 but even if I mount /dev/sdb1 (which an ext3 partition, the "/dev" of this fc6 partition will be empty because the device "fedora" is created during the fc6 boot....
So, I don't know how to mount the "old" logical volumes.
| |> Another (related) question: is it possible, through grub, to have the 2 |> systems (f8 and fc6) working? I mean, not at the same time but possibly |> choosen at boot time? what are the magic command to give before |> installing the bootloader, during the installation of f8, in order to |> get this possibility. | | Again, I'm not sure of your exact question, | but it is certainly possible to have grub stanzas | corresponding to different versions of Fedora.
Yes, of course.
| | Personally, I would not rely on the Fedora installation | to setup things as I desire. | I would install F8, and then re-write grub.conf | to contain one or more entries for FC-6. | You shouldn't need to re-install grub, as far as I can see.
I was just wondering if I could write some "grub.conf" at install time...
Thanks for your answer.
- -- François Patte UFR de mathématiques et informatique Université Paris Descartes Tél. +33 (0)1 44 55 35 61 http://www.math-info.univ-paris5.fr/~patte
If I am reading this right you still have unallocated space on /dev/sda?
Option 1: If that is the case then with the DVD install just create a new logical volume (ie /dev/VGNAME/rootf8lv) to install Fedora 8 into that logical volume. You can tell the install to use /dev/sdb1 as your /boot again and tell the installer to not format that device which will preserve the old Fedora 6 kernel files. (You might have to manually edit the grub.conf to add Fedora 6 as a boot option afterwards.
Option 2: If you can move the data that is on /dev/sda to some other location (and do not forget to exportvg or removevg it from you Fedora 6 install). then you can repartition /dev/sda so that it has 2 partitions which are a /boot ext3 partition and a LVM partition. During the install have Fedora 8 installed to a new logical volume in the new volume group (you could add /dev/sda to the old volume group as well to have all the drives in the same volume group) on /dev/sda. You will have to edit the grub.conf in /dev/sda1 to setup chain loading to /dev/sdb1.
On Tue, 2008-01-29 at 12:16 +0100, François Patte wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Timothy Murphy a écrit : | François Patte wrote: | |> I have an fc6 install with LVM and want install f8. | | I don't see any problem.
If this refers to the preceeding, I agree.... | |> I have 3 hdd: sda, sdb, sdc. |> |> sda has 1 partition: sda1 LVM |> |> sdb has 2 partitions: sdb1 ext3 |> sdb2 LVM |> |> sdc has 1 partition: sdc1 LVM |> |> sdc1 and sdb2 are in the same volume group. |> |> System in living in sdb and sdc and sda is practically free. |> |> The root partition / is on sdb1 and all other vital partitions (/usr, |> swap, /var, /opt, /tmp and /home) are logical volumes on sdc1. |> |> My idea is to perform the new install on sda: sda1 will be the root |> partition /, and build a volume group sda2 for /usr, swap, /opt /tmp and |> /var; /home will be left where it is. |> |> Here begins my problem: I would like, after install retrieve (almost) |> all files from fc6 install. For /home, there is no problem, I think |> that, at install time, I will be be asked if I want to keep my /home |> volume wherever it is. But for other volumes (/var where my dns config |> is...) or /opt (where my texmf and some other out of standard are) I |> don't know how to get them once the new system will be installed. |> |> How could I access to these partitions for, now, they are mounted on |> /dev/mapper/.... but these devices are created at boot time in the /dev |> which is on sdb1 and, even if I mount /dev/sdb1 from the fresh install, |> I will be unable to access them because the new system is mounted on |> sda..... | | I haven't understood the details of your setup. | But couldn't you run Knoppix (or one of the other Linux-on-a-CD's) | and activate your LVM partitions with "vgchange -a y" (as root)?
This I don't know, I think that I could do something like this using the rescue cd.
| Won't "lvdisplay" then tell you the names of the corresponding devices?
The problem is there:
~ ~]# lvdisplay ~ --- Logical volume --- ~ LV Name /dev/fedora/usr
<snip>
This /dev is the one which is currently working on the fc6 (so, in sdb1 partition).
Once f8 will be installed on sda, there will be a /dev for f8 on sda1 but even if I mount /dev/sdb1 (which an ext3 partition, the "/dev" of this fc6 partition will be empty because the device "fedora" is created during the fc6 boot....
So, I don't know how to mount the "old" logical volumes.
| |> Another (related) question: is it possible, through grub, to have the 2 |> systems (f8 and fc6) working? I mean, not at the same time but possibly |> choosen at boot time? what are the magic command to give before |> installing the bootloader, during the installation of f8, in order to |> get this possibility. | | Again, I'm not sure of your exact question, | but it is certainly possible to have grub stanzas | corresponding to different versions of Fedora.
Yes, of course.
| | Personally, I would not rely on the Fedora installation | to setup things as I desire. | I would install F8, and then re-write grub.conf | to contain one or more entries for FC-6. | You shouldn't need to re-install grub, as far as I can see.
I was just wondering if I could write some "grub.conf" at install time...
Thanks for your answer.
François Patte UFR de mathématiques et informatique Université Paris Descartes Tél. +33 (0)1 44 55 35 61 http://www.math-info.univ-paris5.fr/~patte -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFHnwsYdE6C2dhV2JURAv/mAJsEMPVHS4qEMilYwE6jKegevoDm3gCeJu6R NIDBiZ4RF0lyu0U8Wm3KhUk= =nbd3 -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Le 01.02.2008 16:39, Adam Hough a écrit :
If I am reading this right you still have unallocated space on /dev/sda?
Option 1: If that is the case then with the DVD install just create a new logical volume (ie /dev/VGNAME/rootf8lv) to install Fedora 8 into that logical volume. You can tell the install to use /dev/sdb1 as your /boot again and tell the installer to not format that device which will preserve the old Fedora 6 kernel files. (You might have to manually edit the grub.conf to add Fedora 6 as a boot option afterwards.
Thanks for answering. I think that I will follow option1; but what is unclear for me is: how will I access logical volumes from volume group sdb2+sdc1?
My idea is to devote sda to the system, so one vg on sda2 with logical volume usr, swap, tmp, opt, var, and use vg sdb2+sdc1 for data, including home.
Right now, home is on /dev/mapper/fedora-home and mounted from /dev which is on sdb1.
As soon as the new install will be booted, this /dev won't exist no more, because is it created if you boot with the "/" partition on sdb1, for the new system, it will be on sda1
There something there that I do not understand, so I might be unclear myself....
<snip>
On Tue, 2008-01-29 at 12:16 +0100, François Patte wrote: Timothy Murphy a écrit : | François Patte wrote: | |> I have an fc6 install with LVM and want install f8.
| |> I have 3 hdd: sda, sdb, sdc. |> |> sda has 1 partition: sda1 LVM |> |> sdb has 2 partitions: sdb1 ext3 |> sdb2 LVM |> |> sdc has 1 partition: sdc1 LVM |> |> sdc1 and sdb2 are in the same volume group. |> |> System in living in sdb and sdc and sda is practically free. |> |> The root partition / is on sdb1 and all other vital partitions (/usr, |> swap, /var, /opt, /tmp and /home) are logical volumes on sdc1. |> |> My idea is to perform the new install on sda: sda1 will be the root |> partition /, and build a volume group sda2 for /usr, swap, /opt /tmp and |> /var; /home will be left where it is. |> |> Here begins my problem: I would like, after install retrieve (almost) |> all files from fc6 install. For /home, there is no problem, I think |> that, at install time, I will be be asked if I want to keep my /home |> volume wherever it is. But for other volumes (/var where my dns config |> is...) or /opt (where my texmf and some other out of standard are) I |> don't know how to get them once the new system will be installed. |> |> How could I access to these partitions for, now, they are mounted on |> /dev/mapper/.... but these devices are created at boot time in the /dev |> which is on sdb1 and, even if I mount /dev/sdb1 from the fresh install, |> I will be unable to access them because the new system is mounted on |> sda.....
- -- François Patte UFR de mathématiques et informatique Université Paris Descartes 45, rue des Saints Pères F-75270 Paris Cedex 06 Tél. +33 (0)1 44 55 35 61 http://www.math-info.univ-paris5.fr/~patte
Okay so the volume group meta-data is actually stored on the disk and not just in /etc. So when the kernel is booting up it will see all volume groups on the disks in the machine or attached to the machine. Then udev or something will actually activate all the volume groups.
So if you boot from /dev/sda1 and the root is located in /dev/ROOT_VG/ROOT_LV, the kernel and/or udev should automagically active / see the volume groups that reside on the hard drives in the machine assuming that nothing has corrupted the partition information and the volume group information. This means that your /dev is dynamically created every time the system is booted up. Which is why you will be able to access the volume groups that or on the other 2 disks.
With volume groups you can actually export the volume group and remove it from a system an put it into another system an import it into the new machine. The other machine is just have to be able to see the disk. I highly discourage creating a volume groug / logical volume on an external disk. If that disk is accidentally just unplugged, LVM gets really pissed off and you will be rebooting to fix the issue (or at least that has been my experience in the past).
You might find that if you go back and re-read the documentation for LVM that it will make more sense now then when you first looked at the documentation. I know that I had to do it for LVM and iptables a few times before I understood what was going on when I was running those commands.
On a personal note, I like to put a "vg" in my volume group names and a "lv" in my logical volume names. So a volume group name would look like NAMEvg, vg_NAME, or NAME_vg, and a logical volume name would look similar. This helps to make the names more meaningful and descriptive to me.
On Fri, 2008-02-01 at 17:05 +0100, François Patte wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Le 01.02.2008 16:39, Adam Hough a écrit :
If I am reading this right you still have unallocated space on /dev/sda?
Option 1: If that is the case then with the DVD install just create a new logical volume (ie /dev/VGNAME/rootf8lv) to install Fedora 8 into that logical volume. You can tell the install to use /dev/sdb1 as your /boot again and tell the installer to not format that device which will preserve the old Fedora 6 kernel files. (You might have to manually edit the grub.conf to add Fedora 6 as a boot option afterwards.
Thanks for answering. I think that I will follow option1; but what is unclear for me is: how will I access logical volumes from volume group sdb2+sdc1?
My idea is to devote sda to the system, so one vg on sda2 with logical volume usr, swap, tmp, opt, var, and use vg sdb2+sdc1 for data, including home.
Right now, home is on /dev/mapper/fedora-home and mounted from /dev which is on sdb1.
As soon as the new install will be booted, this /dev won't exist no more, because is it created if you boot with the "/" partition on sdb1, for the new system, it will be on sda1
There something there that I do not understand, so I might be unclear myself....
<snip>
On Tue, 2008-01-29 at 12:16 +0100, François Patte wrote: Timothy Murphy a écrit : | François Patte wrote: | |> I have an fc6 install with LVM and want install f8.
| |> I have 3 hdd: sda, sdb, sdc. |> |> sda has 1 partition: sda1 LVM |> |> sdb has 2 partitions: sdb1 ext3 |> sdb2 LVM |> |> sdc has 1 partition: sdc1 LVM |> |> sdc1 and sdb2 are in the same volume group. |> |> System in living in sdb and sdc and sda is practically free. |> |> The root partition / is on sdb1 and all other vital partitions (/usr, |> swap, /var, /opt, /tmp and /home) are logical volumes on sdc1. |> |> My idea is to perform the new install on sda: sda1 will be the root |> partition /, and build a volume group sda2 for /usr, swap, /opt /tmp and |> /var; /home will be left where it is. |> |> Here begins my problem: I would like, after install retrieve (almost) |> all files from fc6 install. For /home, there is no problem, I think |> that, at install time, I will be be asked if I want to keep my /home |> volume wherever it is. But for other volumes (/var where my dns config |> is...) or /opt (where my texmf and some other out of standard are) I |> don't know how to get them once the new system will be installed. |> |> How could I access to these partitions for, now, they are mounted on |> /dev/mapper/.... but these devices are created at boot time in the /dev |> which is on sdb1 and, even if I mount /dev/sdb1 from the fresh install, |> I will be unable to access them because the new system is mounted on |> sda.....
François Patte UFR de mathématiques et informatique Université Paris Descartes 45, rue des Saints Pères F-75270 Paris Cedex 06 Tél. +33 (0)1 44 55 35 61 http://www.math-info.univ-paris5.fr/~patte -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFHo0NPdE6C2dhV2JURArzKAKDBUKkoIP+ZN/syTdFfxjRVsaHP+gCdEwGe RJHFNaGc7VG50Dvf2TH/3Y4= =bAPF -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Le 02.02.2008 00:20, Adam Hough a écrit :
You might find that if you go back and re-read the documentation for LVM that it will make more sense now then when you first looked at the documentation. I know that I had to do it for LVM and iptables a few times before I understood what was going on when I was running those commands.
OK. Thank you very much for these explanations.
Best regards. - -- François Patte UFR de mathématiques et informatique Université Paris Descartes 45, rue des Saints Pères F-75270 Paris Cedex 06 Tél. +33 (0)1 44 55 35 61 http://www.math-info.univ-paris5.fr/~patte