SEARCH

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

You are not logged in.

#1 2012-05-06 09:19:35

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

The monumental #! LVM guide

Configure the Logical Volume Manager

Last edited by el_koraco (2012-05-06 09:29:13)

Offline

Be excellent to each other!

#2 2012-05-06 20:10:23

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

Re: The monumental #! LVM guide

sudo apt-get install xfsprogs xfsdump
mkdir -p videos

Last edited by el_koraco (2012-05-06 20:23:10)

Offline

#3 2012-05-06 20:58:39

rhowaldt
#!*$%:)
Registered: 2011-03-09
Posts: 4,396

Re: The monumental #! LVM guide

this is pretty cool... already waiting for the next chapter! keep it coming el koraco!

Offline

#4 2012-05-06 21:23:08

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

Re: The monumental #! LVM guide

It's not pretty cool, it's monumental!
For serious, LVM is the best discovery I've made since I switched to Debian a year ago. Everyone should use it.

Offline

#5 2012-05-06 21:26:59

gurtid
#! Junkie
From: NEW ZEALAND
Registered: 2011-04-07
Posts: 379

Re: The monumental #! LVM guide

this is very timely for me as i was considering LVM for my next install. tu el_k and eagerly awaiting the rest.


all your Base are belong to us

Offline

#6 2012-05-06 21:41:28

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

Re: The monumental #! LVM guide

Offline

#7 2012-05-06 22:29:12

greyproc
#! Member
From: Abarrach
Registered: 2012-04-30
Posts: 58
Website

Re: The monumental #! LVM guide

Offline

#8 2012-05-06 22:43:09

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

Re: The monumental #! LVM guide

I'm not into encrypting myself, but the encrypted LVM is an excellent option of the Debian installer. As for XFS, improvements in the post 3.0 kernels have been reported, though I can't say. I only made my videos partition XFS for educational purposes. The reliable online defrag option seems good, as does xfsdump.

Last edited by el_koraco (2012-05-06 22:50:29)

Offline

#9 2012-05-07 07:31:51

rhowaldt
#!*$%:)
Registered: 2011-03-09
Posts: 4,396

Re: The monumental #! LVM guide

Offline

#10 2012-05-07 14:10:41

gutterslob
#! Resident Bum
Registered: 2009-11-03
Posts: 3,207

Re: The monumental #! LVM guide


Point & Squirt

Offline

#11 2012-05-07 14:42:24

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

Re: The monumental #! LVM guide

root@mrdeb: lvextend -L+1GB /dev/debian/home
  Extending logical volume home to 32.00 GiB
  Logical volume home successfully resized

Last edited by el_koraco (2012-05-07 14:48:47)

Offline

#12 2012-05-07 19:43:21

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

Re: The monumental #! LVM guide

root@mrdeb: mkdir -p /mnt/backup
root@mrdeb ~ # lvcreate -L2G -n backup /dev/debian
  Logical volume "backup" created

Last edited by el_koraco (2013-02-23 08:50:34)

Offline

#13 2012-05-07 20:00:34

rhowaldt
#!*$%:)
Registered: 2011-03-09
Posts: 4,396

Re: The monumental #! LVM guide

i think this is unintentional?

root@mrdeb ~ # mkfs.ext4 /dev//debian/backup

(the double-slashes i mean)

aside from that: wow, that sounds awesome. real easy. and to make it even better, LVM has cow-tables!

COW-table size         1.00 GiB

moooooooo! lol

Offline

#14 2012-05-07 20:09:39

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

Re: The monumental #! LVM guide

Good catch, rho. Edited.
Once you learn how to backup and restore /, you can go as wild as you want with the system.

Offline

#15 2012-05-07 20:13:51

rhowaldt
#!*$%:)
Registered: 2011-03-09
Posts: 4,396

Re: The monumental #! LVM guide

i like it. this is just the backup-method i've been looking for. simple and easy, completely hassle-free. i'll have to check out LVM for sure, it looks really.. monumental smile

Offline

#16 2012-05-13 14:53:09

SabreWolfy
#! Die Hard
Registered: 2009-03-09
Posts: 1,285

Re: The monumental #! LVM guide

Offline

#17 2012-05-13 15:51:40

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

Re: The monumental #! LVM guide

Offline

#18 2012-05-13 16:01:31

SabreWolfy
#! Die Hard
Registered: 2009-03-09
Posts: 1,285

Re: The monumental #! LVM guide

^ The entire LVM "thing" exists as a primary partition in terms of the partition table? /dev/sda3 would be /boot and then /dev/sda4 would be LVM, which is then partitioned into / and /home and /swap and whatever else I want.

Last edited by SabreWolfy (2012-05-13 16:26:08)

Offline

#19 2012-05-13 16:13:50

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

Re: The monumental #! LVM guide

Last edited by el_koraco (2012-05-13 16:14:42)

Offline

#20 2012-05-13 16:26:00

SabreWolfy
#! Die Hard
Registered: 2009-03-09
Posts: 1,285

Re: The monumental #! LVM guide

^ Thanks. Yeah, I'll read about it a little more before trying, but I think I have a reasonable idea of how it works. The LVM sits in an extended partition and everything in their is configured via LVM, allowing for the creation, deletion, etc. of partitions easily inside the LVM.

Offline

#21 2012-05-13 17:13:12

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

Re: The monumental #! LVM guide

Offline

#22 2012-05-16 15:05:47

SabreWolfy
#! Die Hard
Registered: 2009-03-09
Posts: 1,285

Re: The monumental #! LVM guide

Offline

#23 2012-05-16 15:20:07

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

Re: The monumental #! LVM guide

The Debian installer offers this, but I've never done encryption myself. greyproc might help you, give him a shout.

Offline

#24 2012-05-17 13:05:53

jelloir
#! CrunchBanger
From: Outside the garden wall
Registered: 2009-08-21
Posts: 212

Re: The monumental #! LVM guide

Offline

Help fund CrunchBang, donate to the project!

#25 2012-05-17 13:16:39

SabreWolfy
#! Die Hard
Registered: 2009-03-09
Posts: 1,285

Re: The monumental #! LVM guide

^ How would LVM be useful on a desktop machine? sda1 = /, sda2 = /home, sda3 = /swap, or start with sda1=Windows, etc. All four partitions are allocated without a problem -- how could LVM improve on this?

Edit: OK, I guess snapshots and backups, for one thing. I meant, though, more in the sense of cutting and chopping and glueing chunks and partitions together -- how would that be useful for a desktop user?

Last edited by SabreWolfy (2012-05-17 13:19:02)

Offline

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.
Server: acrobat

Debian Logo