Announcement

Collapse
No announcement yet.

10.04 onto existing lvm2

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    10.04 onto existing lvm2

    I have installed 10.04 with lvm2 option, so I have lvm partitioning and a boot/root/swap partitions. Now I need to install clean kubuntu 10.04 system without loss of already existing installation (preserving lvm2), just into new lvm2 partition.

    How to do so with Kubuntu installer?

    ps. This is a real need to use lvm snapshots for kubuntu/kde/beta testing where I use clean install as a base root, and lvm snapshot of root volume in +read/write mode as a place to test kde/beta updates. Please, point out to useful link, thanks.

    #2
    Re: 10.04 onto existing lvm2

    please, help.

    Comment


      #3
      Re: 10.04 onto existing lvm2

      It sounds like you just want/need to install a 'second' 10.04 onto your HD, meaning, you would have two 10.04 installs. If that is so, you just need to setup partitions for this second installation (most prefer using GParted LiveCD for this), and then installing from the 10.04 LiveCD as normal, pointing the install to the desired partitions. Or am I not understanding your question?
      Windows no longer obstructs my view.
      Using Kubuntu Linux since March 23, 2007.
      "It is a capital mistake to theorize before one has data." - Sherlock Holmes

      Comment


        #4
        Re: 10.04 onto existing lvm2

        Originally posted by Snowhog
        It sounds like you just want/need to install a 'second' 10.04 onto your HD, meaning, you would have two 10.04 installs. If that is so, you just need to setup partitions for this second installation (most prefer using GParted LiveCD for this), and then installing from the 10.04 LiveCD as normal, pointing the install to the desired partitions. Or am I not understanding your question?
        yes, sure, but the same for root volume only (so they will share same boot and swap), since they are identical mostly (except fstab and apt updates). homes live in a separate volume, so they also can be shared.

        Why to use gparted if I only need to create new lvm partition, and then point installer on to existing boot (/dev/sda1), swap (/dev/mycomp/swap_1) and new root (say root1 = /dev/mycomp/root1)?

        Comment


          #5
          Re: 10.04 onto existing lvm2

          Originally posted by molostoff
          yes, sure, but the same for root volume only (so they will share same boot and swap), since they are identical mostly (except fstab and apt updates).
          Hmm, it seems that there is nobody around who can say "Well, it is easy.. just do...."

          Yestoday I have got the case where apt update with new kernel images ruined usual wifi drivers and I have lost network connectivity. I have decided to reinstall the whole kubuntu on top of previously configured hard disk lvm2 layout keeping it unchanged, with home and other things on separate volumes.

          The answer to my first question is very (very) simple: just run installer from alternate-cd install and goto manual partitioning, where are numerous options to point out installer on how to use existing lvm2 volumes. I have selected boot as /boot and root as / , and checked reformatting only for root lvm volume.

          And I am very happy how, because after successul installation I have tested lvm snapshot on root volume - update-grub successfully found that new root and added it into boot menu. Excellent!

          Comment


            #6
            Re: 10.04 onto existing lvm2

            I've never tried using LVM partitioning. Can you notice any difference in performance of the system, compared to a non-LVM layout?

            Comment


              #7
              Re: 10.04 onto existing lvm2

              Originally posted by dibl
              I've never tried using LVM partitioning. Can you notice any difference in performance of the system, compared to a non-LVM layout?
              fine. no loss, and even a bit speedup. apps go very smooth. no hard drive stuck on swapping - and all in default sysctl settings. very good.

              boot into KDE login in 10-15 sec (eventually even about 5, most time spent on fsck, I assume). I have not tested exactly how mush seconds it spend, but booting is very fast.

              Comment


                #8
                Re: 10.04 onto existing lvm2

                The reason that I've never tried LVM was:
                root on LV should be used by advanced users only
                root on LVM requires an initrd image that activates the root LV. If a kernel is upgraded without building the necessary initrd image, that kernel will be unbootable. Newer distributions support lvm in their mkinitrd scripts as well as their packaged initrd images, so this becomes less of an issue over time.
                from the LVM HowTo. What is the status of this issue in *buntu? Or am I just too ignorant try it?

                Comment


                  #9
                  Re: 10.04 onto existing lvm2

                  Originally posted by molostoff
                  boot into KDE login in 10-15 sec
                  Yep, dmesg reported boot in 15 seconds.
                  Code:
                  $ dmesg | tail -20
                  [  14.936495] vga16fb: not registering due to another framebuffer present
                  [  15.345583] Console: switching to colour frame buffer device 160x50
                  [  15.443993] svc: failed to register lockdv1 RPC service (errno 97).
                  [  15.445003] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
                  [  15.508400] NFSD: starting 90-second grace period
                  [  27.565546] CPUFREQ: Per core ondemand sysfs interface is deprecated - up_threshold
                  [  64.326447] wlan0: deauthenticating from 00:25:12:87:50:48 by local choice (reason=3)
                  [  64.327786] wlan0: authenticate with 00:25:12:87:50:48 (try 1)
                  [  64.335126] wlan0: authenticated
                  [  64.336146] wlan0: associate with 00:25:12:87:50:48 (try 1)
                  [  64.387242] wlan0: RX AssocResp from 00:25:12:87:50:48 (capab=0x431 status=0 aid=6)
                  [  64.387247] wlan0: associated
                  [  64.391098] cfg80211: Ignoring bogus country IE
                  [  64.391322] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
                  [  64.554762] Intel AES-NI instructions are not detected.
                  [  64.597090] padlock: VIA PadLock not detected.
                  [  74.580043] wlan0: no IPv6 routers present
                  [ 106.635365] EXT4-fs (dm-8): mounted filesystem with writeback data mode
                  [ 461.593309] CE: hpet increasing min_delta_ns to 15000 nsec
                  [ 1622.210489] lo: Disabled Privacy Extensions

                  at 27 sec - me (after some manual hangout) logging. There are some services like nfs server and so on, so it can be less than 15 secs. Just straightforward kubuntu configuration, with added usual addons/services. You dont trust me?

                  Comment

                  Working...
                  X