SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#51 2012-11-30 18:31:28

el_koraco
#!/loony/bun
From: inside Ed
Registered: 2011-07-25
Posts: 4,749

Re: The monumental #! LVM guide

Try Parted magic, it comes with fsarchiver.

Offline

Help fund CrunchBang, donate to the project!

#52 2012-11-30 23:00:44

el_koraco
#!/loony/bun
From: inside Ed
Registered: 2011-07-25
Posts: 4,749

Re: The monumental #! LVM guide

A possibru alternative approach with grml (taken from one of dr. Xaos's posts):

(1) Boot from the grml live media
position your cursor over the 'default entry' and press the 'Tab' key
This will show you the default boot options.
Then jus type 'lvm' and it will be inserted after the default options
(2) after booting into the live system, check that your LVM devices are there:
find /dev/mapper
All my LV's were found
(3) create the mountpoit, mount, restore, chroot and fix up Grub if you need to.

Offline

#53 2013-01-31 19:25:48

Gordon
#! CrunchBanger
From: Blackpool, Lancashire, UK
Registered: 2012-05-22
Posts: 238

Re: The monumental #! LVM guide

Hi el_koraco,

I have read and reread also printed out your tutorial but not sure that I fully understand it but fancy having a go at it.

I have a question. I am a bit of a numnut so please bear with me. at the moment I have a dual boot with windows XP and need to keep a version of XP going. In your excellent guide you say that you can add any distro, does this mean that XP will run inside the lvm or will I still need to keep it seperate.


Cheers smile smile
Gordon
Using Janice Testing at present also sid and systemd and  VSIDO
A7N8X delux motherboard, 1 GB ram, AMD ATHLON XP 2800+ ( 2255 Mhz ), Nvidia Geforce PNY 62000 graphics card

Offline

#54 2013-01-31 22:15:33

el_koraco
#!/loony/bun
From: inside Ed
Registered: 2011-07-25
Posts: 4,749

Re: The monumental #! LVM guide

Gordon wrote:

I have a question. I am a bit of a numnut so please bear with me. at the moment I have a dual boot with windows XP and need to keep a version of XP going. In your excellent guide you say that you can add any distro, does this mean that XP will run inside the lvm or will I still need to keep it seperate.

XP will not run inside LVM, because Windows doesn't know what LVM is. in this case, you would need to manually create your physical volume, volume group and logical volumes. It's not a whole lot of trouble. Essentially, you need to look at my first post. You will choose your current Linux partition to serve as the physical volume. You can follow the first post from there on, but do ask if you have further questions.

Give my a

sudo fdsik -l

Offline

#55 2013-02-01 20:06:43

Gordon
#! CrunchBanger
From: Blackpool, Lancashire, UK
Registered: 2012-05-22
Posts: 238

Re: The monumental #! LVM guide

Hi el_koraco

As requested here it is

root@crunchbang:/home/gordon# fdisk -l

Disk /dev/sda: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders, total 80293248 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0003c35c

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048    12290047     6144000   83  Linux
/dev/sda2        35031040    45264895     5116928   82  Linux swap / Solaris
/dev/sda3        45264896    80291839    17513472    7  HPFS/NTFS/exFAT
/dev/sda4        12292094    35031039    11369473    5  Extended
/dev/sda5        12292096    24580095     6144000   83  Linux
/dev/sda6        24582144    35031039     5224448   83  Linux

Partition table entries are not in disk order

Disk /dev/sdb: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders, total 80293248 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xd21f5278

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1              63    80292869    40146403+  83  Linux


Cheers smile smile
Gordon
Using Janice Testing at present also sid and systemd and  VSIDO
A7N8X delux motherboard, 1 GB ram, AMD ATHLON XP 2800+ ( 2255 Mhz ), Nvidia Geforce PNY 62000 graphics card

Offline

#56 2013-02-03 22:24:12

el_koraco
#!/loony/bun
From: inside Ed
Registered: 2011-07-25
Posts: 4,749

Re: The monumental #! LVM guide

Sorry, I kinda forgot about you big_smile

So, what's on /dev/sdb (the second disk)?

What you need to do is back stuff up, then fire up a Live CD and delete all your Linux partitions, so that they are listed as free or unclaimed space and move it so that it's seen as one continuous block of free space. You can do that with GParted. Then you go on installing. When you get to the partitioning stage in the installer, you need to select the manual method, click on the free space and set the installer to "use as Physical volume for LVM". You will then get the option to "configure the Logical Volume Manager" and you can follow my first post. 

However, since your disks are fairly small, and since moving partitions around is not the safest thing to do (especially with XP as the man in the middle), I wouldn't suggest you go for this. I mean, it's not a whole lot of danger, but I'm gonna be fairly busy in the next few weeks and can't promise to support you.

Offline

#57 2013-02-05 11:21:28

brontosaurusrex
#! Red Menace
Registered: 2012-06-15
Posts: 1,185

Re: The monumental #! LVM guide

And all this LVM wonderfullnes is also included in #! waldorf installer?
(I need a huge /home folder for the machine that will be constructed next)

Last edited by brontosaurusrex (2013-02-05 11:22:13)

Offline

#58 2013-02-05 11:29:07

el_koraco
#!/loony/bun
From: inside Ed
Registered: 2011-07-25
Posts: 4,749

Re: The monumental #! LVM guide

brontosaurusrex wrote:

And all this LVM wonderfullnes is also included in #! waldorf installer?

Yes, the #! installer is just the debian installer with a different logo.

Offline

#59 2013-02-09 16:20:52

Gordon
#! CrunchBanger
From: Blackpool, Lancashire, UK
Registered: 2012-05-22
Posts: 238

Re: The monumental #! LVM guide

el_koraco,

Well I jumped and have used LVM. Before I started I moved all my stuff of sdb to a stick and formatted bothe drives to ext4 then started from a live dvd. All went well and the howto was great and easy to follow THANKS  big_smile .

It has left a minor problem that I haven't as yet managed to fix, on boot up is says

 error fd0 read errorr 

.
The thing is that I have removed the floppy drive ( which I assume fd0 is ) and dissabled the seek and floppy controller in the bios setup.

I will get it in the end somehow  hmm

Againg thanks for the GREAT howto and help

Edit : 21:17 read error

Last edited by Gordon (2013-02-09 21:17:41)


Cheers smile smile
Gordon
Using Janice Testing at present also sid and systemd and  VSIDO
A7N8X delux motherboard, 1 GB ram, AMD ATHLON XP 2800+ ( 2255 Mhz ), Nvidia Geforce PNY 62000 graphics card

Offline

#60 2013-02-09 19:01:17

Gordon
#! CrunchBanger
From: Blackpool, Lancashire, UK
Registered: 2012-05-22
Posts: 238

Re: The monumental #! LVM guide

Hi el_koraco,

First of all everything is working but with some odd things happenening I keep having to run a lot of prog as root so I guess I have missed sonething. Don't know what yet though. A question I have done an fdisk -l with the following output

Disk /dev/sda: 41.1 GB, 41110142976 bytes
Disk identifier: 0x000a625e

Device Boot          Start          End             Blocks        Id    System
/dev/sda1   *        2048          5859327     2928640    83    Linux
/dev/sda2            5859328    80291839    37216256   8e    Linux LVM
Disk identifier: 0x000a625e

Disk /dev/sdb: 41.1 GB, 41110142976 bytes
Disk identifier: 0x000cacd2

Device Boot         Start         End              Blocks        Id    System
/dev/sdb1            2048         80291839    40144896   8e    Linux LVM

Disk /dev/mapper/debian-root: 4999 MB
Disk identifier: 0x00000000
Disk /dev/mapper/debian-root doesn't contain a valid partition table

Disk /dev/mapper/debian-home: 9999 MB, 9999220736 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/debian-home doesn't contain a valid partition table

Disk /dev/mapper/debian-swap: 2998 MB
Disk identifier: 0x00000000
Disk /dev/mapper/debian-swap doesn't contain a valid partition table

Disk /dev/mapper/debian-documents: 10.7 GB
Disk identifier: 0x00000000
Disk /dev/mapper/debian-documents doesn't contain a valid partition table

I have left out bits in the middle of all those para's. why does the mapper say

doesn't contain a valid partition table

on all those sections and does it matter ?


Cheers smile smile
Gordon
Using Janice Testing at present also sid and systemd and  VSIDO
A7N8X delux motherboard, 1 GB ram, AMD ATHLON XP 2800+ ( 2255 Mhz ), Nvidia Geforce PNY 62000 graphics card

Offline

#61 2013-02-10 00:53:30

el_koraco
#!/loony/bun
From: inside Ed
Registered: 2011-07-25
Posts: 4,749

Re: The monumental #! LVM guide

fdisk is trying to read LVM logical volumes as MBR disks, but LVM doesn't conform to the MBR scheme. Therefore you get warnings about valid partition tables. The fd0 error doesn't seem troublesome to me if everything works. It seems to some kind of Wheezy thing, and will probably get resolved.

Offline

#62 2013-02-10 08:22:48

Gordon
#! CrunchBanger
From: Blackpool, Lancashire, UK
Registered: 2012-05-22
Posts: 238

Re: The monumental #! LVM guide

Hi el_koraco,

Thanks for the reply. I can live with that smile


Cheers smile smile
Gordon
Using Janice Testing at present also sid and systemd and  VSIDO
A7N8X delux motherboard, 1 GB ram, AMD ATHLON XP 2800+ ( 2255 Mhz ), Nvidia Geforce PNY 62000 graphics card

Offline

#63 2013-02-10 10:54:51

Gordon
#! CrunchBanger
From: Blackpool, Lancashire, UK
Registered: 2012-05-22
Posts: 238

Re: The monumental #! LVM guide

hi el_koraco,

floppy drive problem solved, missed out a setting in bios  devil


Cheers smile smile
Gordon
Using Janice Testing at present also sid and systemd and  VSIDO
A7N8X delux motherboard, 1 GB ram, AMD ATHLON XP 2800+ ( 2255 Mhz ), Nvidia Geforce PNY 62000 graphics card

Offline

#64 2013-02-10 12:31:02

el_koraco
#!/loony/bun
From: inside Ed
Registered: 2011-07-25
Posts: 4,749

Re: The monumental #! LVM guide

Awesome, brother.

Offline

#65 2013-04-09 03:59:40

DapperMe17
#! CrunchBanger
From: Todd's Gang
Registered: 2012-10-19
Posts: 219

Re: The monumental #! LVM guide

Nice job, and thank you for taking the time to write up this tip, el_k.

It sounds like LVM simply allows secondary partitioning and backups "on-the-fly", and from the current session terminal. So, a major convenience upgrade in terms of partitioning and backups.

So, for basic desktop users...it sounds like any performance gains will be in the partitioning and backups. And boot, session and shutdown performance is not necessarily affected by switching to LVM.

And, by all means, please correct me if that is not accurate.

Thanks again for your contribution.
smile

Last edited by DapperMe17 (2013-04-09 04:02:56)

Offline

#66 2013-04-09 04:59:08

el_koraco
#!/loony/bun
From: inside Ed
Registered: 2011-07-25
Posts: 4,749

Re: The monumental #! LVM guide

DapperMe17 wrote:

So, for basic desktop users...it sounds like any performance gains will be in the partitioning and backups. And boot, session and shutdown performance is not necessarily affected by switching to LVM.

All of those might even be negatively affected by LVM, though I doubt this is  amajor issue on modern hardware.

Offline

#67 2013-04-15 03:14:10

Ozitraveller
#! Junkie
From: Far from the madding crowd!
Registered: 2011-04-26
Posts: 258

Re: The monumental #! LVM guide

I'm just coming to the realisation the LVM is the way to go. I search this thread and no one so far has asked about SSD's and Trim support on LVM. I have a new pc with an SSD + HDD so I curious to know the best way to setup LVM. And will systemd/grub2 have any impact?

Thanks el_koraco for the "Monumental Guide"! smile Awesome work!

Last edited by Ozitraveller (2013-04-15 03:16:03)

Offline

#68 2013-04-26 20:43:10

babouk
#! CrunchBanger
From: #!_de
Registered: 2009-08-10
Posts: 110
Website

Re: The monumental #! LVM guide

Gordon wrote:

Hi el_koraco,

First of all everything is working but with some odd things happenening I keep having to run a lot of prog as root so I guess I have missed sonething. Don't know what yet though. A question I have done an fdisk -l with the following output

Disk /dev/sda: 41.1 GB, 41110142976 bytes
Disk identifier: 0x000a625e

Device Boot          Start          End             Blocks        Id    System
/dev/sda1   *        2048          5859327     2928640    83    Linux
/dev/sda2            5859328    80291839    37216256   8e    Linux LVM
Disk identifier: 0x000a625e

Disk /dev/sdb: 41.1 GB, 41110142976 bytes
Disk identifier: 0x000cacd2

Device Boot         Start         End              Blocks        Id    System
/dev/sdb1            2048         80291839    40144896   8e    Linux LVM

Disk /dev/mapper/debian-root: 4999 MB
Disk identifier: 0x00000000
Disk /dev/mapper/debian-root doesn't contain a valid partition table

Disk /dev/mapper/debian-home: 9999 MB, 9999220736 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/debian-home doesn't contain a valid partition table

Disk /dev/mapper/debian-swap: 2998 MB
Disk identifier: 0x00000000
Disk /dev/mapper/debian-swap doesn't contain a valid partition table

Disk /dev/mapper/debian-documents: 10.7 GB
Disk identifier: 0x00000000
Disk /dev/mapper/debian-documents doesn't contain a valid partition table

I have left out bits in the middle of all those para's. why does the mapper say

doesn't contain a valid partition table

on all those sections and does it matter ?

I get a similar error message ...

Everything else looks fine!
THANX A LOT - for the tutorial - really cool - I am a LVM-Noob
Seems like a big improvement over the normal partition-scheme
smile


waldorf | openbox
pekwm

Offline

#69 2013-04-27 00:11:19

VDP76
#! Bean Roaster
Registered: 2012-04-12
Posts: 833

Re: The monumental #! LVM guide

I have been wondering myself about those errors...it is all fine...


#!#!#! Forum etiquette #!#!#!
Are you a new member!? Have you introduced yourself?!
CLI basics | LVM | smxi | chrooting | multiarch

Offline

#70 2013-04-27 00:23:41

babouk
#! CrunchBanger
From: #!_de
Registered: 2009-08-10
Posts: 110
Website

Re: The monumental #! LVM guide

Thanx VDP76
cool

Last edited by babouk (2013-04-27 00:24:13)


waldorf | openbox
pekwm

Offline

#71 2013-05-20 03:57:33

shake6
New Member
From: Arizona
Registered: 2013-03-04
Posts: 8

Re: The monumental #! LVM guide

Thanks for the guide, el koraco.  Soaking up Linux like a sponge since my first install last year...   & I love practicing w/this.  LVs every time until I find a reason not to - if it exists.  The time you've spent sharing your knowledge is appreciated.


Spiral out...   keep - going.

Offline

#72 2013-05-20 07:14:04

el_koraco
#!/loony/bun
From: inside Ed
Registered: 2011-07-25
Posts: 4,749

Re: The monumental #! LVM guide

Happy to help.

Offline

#73 2013-06-03 08:21:25

farinet
#! Junkie
Registered: 2012-11-03
Posts: 291

Re: The monumental #! LVM guide

el_koraco: Some time ago you guided me patiently through the lvm setup and helped me out great when i had a big trouble and all seemed lost.

Now,  it's all working fine but came up to my mind just a - probably very stupid(?) - question: The filessystems on the lvm need maintaining? Partly, i can argue from what was said above, that fdisk is not really compatible to lvm?

Thanks in advance for your patience.

Offline

#74 2013-12-23 08:36:01

superwow
#! Member
From: rlyeh
Registered: 2013-08-23
Posts: 58

Re: The monumental #! LVM guide

It's been a while since this thread had a post but I'll try and revive.

On a recent reinstall, I decided to use guided encrypted LVN and I saw the LVN-partitioning dialogs for both the 32 gb SSD and the 500 gb HDD on my laptop. After install completed, only the 32 gb SSD was LV mapped. The 500 gb was not. (It's also only accessible via sudo.) Is there a reason LVM was unable to complete the mapping job on install? Shouldn't the install process and LVN's volume management be completed successfully during install?

Offline

Be excellent to each other!

#75 2014-06-21 20:07:04

donkeyotay
#! CrunchBanger
From: Everywhere
Registered: 2011-01-28
Posts: 192

Re: The monumental #! LVM guide

Evening All,
I've just installed Sabayon XFCE over a previous #! lvm installation. I had two partitions

/dev/lvm/root

&

/dev/lvm/home

I thought that I had set up the installation using Anaconda (which I've not used before) correctly, but I haven't and I don't have access to my old home directory. When I do

lvdisplay

the partition is present, but I don't have access to it.
Is there something I can do to get access to my old /home directory?
Many thanks
Donkeyotay


I didn't say it was your fault... I said I was going to blame you.

Online

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo