VSIDO Community

VSIDO Controls => VSIDO Discussions => Topic started by: ozitraveller on April 09, 2013, 11:30:02 PM

Title: Setting up LVM
Post by: ozitraveller on April 09, 2013, 11:30:02 PM
I'm just wondering whether anyone has any experience with LVM? I don't know much about it but it looks like something I should be using. I have an SSD and a HDD and I have just done a clean build, so before I go too far now would be a time to change. Can I just have /home setup on LVM? Are there any downsides?

Cheers
Ozi
Title: Re: Setting up LVM
Post by: VastOne on April 09, 2013, 11:31:28 PM
^ I agree and want to use it as well.. I would not mind collaborating on this with you and anyone else interested to get it setup on VSIDO and then do a write up about it
Title: Re: Setting up LVM
Post by: ozitraveller on April 09, 2013, 11:47:06 PM
Excellent! here is a starting point.

Debian Sid / Wheezy Netinstall with LVM – Network Installation Guide
http://www.if-not-true-then-false.com/2012/debian-unstable-testing-netinstall/ (http://www.if-not-true-then-false.com/2012/debian-unstable-testing-netinstall/)

:)
Title: Re: Setting up LVM
Post by: VastOne on April 10, 2013, 12:04:42 AM
^ I want to be able to setup LVM on a current install ... I am wondering if that is possible
Title: Re: Setting up LVM
Post by: ozitraveller on April 10, 2013, 12:15:06 AM
My current thoughts are that it would be possible by adding another drive and setup LVM on it, and then start moving stuff to it and the recommissioning existing drives to LVM, arranging your stuff as you go as LVM gets bigger. Rather than smoke everything and start again.

I haven't tried this, I'm just assuming it will work.



Title: Re: Setting up LVM
Post by: VastOne on April 10, 2013, 12:25:03 AM
I have 3 drives in this system and I also have several fsarchiver backups of the absolute most critical one (the VSIDO build partition)

So I can do that... I will start the process tomorrow, it is supposed to rain! (no golf)
Title: Re: Setting up LVM
Post by: ozitraveller on April 10, 2013, 12:35:25 AM
What are you afraid of getting wet? ;)

I'm assuming that LVM can't be overlayed on an existing partitioned drive. I'd like to know if someone has any ideas about this too.
Title: Re: Setting up LVM
Post by: ozitraveller on April 11, 2013, 12:43:02 AM
Some useful stuff!

The monumental #! LVM guide - el_koraco
http://crunchbang.org/forums/viewtopic.php?id=19411 (http://crunchbang.org/forums/viewtopic.php?id=19411)
Title: Re: Setting up LVM
Post by: ozitraveller on April 11, 2013, 10:05:45 PM
ZFS might be also a possibility too.

Quote
ZFS is a combined file system and logical volume manager designed by Sun Microsystems. The features of ZFS include protection against data corruption, support for high storage capacities, integration of the concepts of filesystem and volume management, snapshots and copy-on-write clones, continuous integrity checking and automatic repair, RAID-Z and native NFSv4 ACLs. ZFS is implemented as open-source software, licensed under the Common Development and Distribution License (CDDL). The ZFS name was registered as a trademark of Oracle until September 20, 2011

http://linuxaria.com/pills/zfs-is-ready-for-your-linux-desktop?lang=en (http://linuxaria.com/pills/zfs-is-ready-for-your-linux-desktop?lang=en)

Title: Re: Setting up LVM
Post by: dizzie on April 11, 2013, 10:34:23 PM
ZFS on Linux? Good luck! you're going to need a lot of it (oh and do take backups, to a few disks and cds)
Title: Re: Setting up LVM
Post by: ozitraveller on April 11, 2013, 11:29:17 PM
Hi dizzie that's what I thought too! Just thought I'd throw it into the mix, and then wait for someone else to try. ;)
Title: Re: Setting up LVM
Post by: hinto on April 12, 2013, 01:58:58 AM
I'm still not sure why LVM is good. (maybe for restore points?)  At least once a week I wish I had repartitioned away LVM when I blew away RHEL.
-Hinto
Title: Re: Setting up LVM
Post by: VastOne on April 12, 2013, 02:12:18 AM
^ Thats the same way I feel about it... fsarchiver does an unbelievable job in archiving and restoring my critical systems and it takes less than 30 seconds for each one.. I have my critical systems at less that 1 gig so I can throw them on a usb and restore them anywhere...

It is by far the most effective Disaster Recovery tool I have ever used, and I spent a career working in Disaster Recovery
Title: Re: Setting up LVM
Post by: dizzie on April 12, 2013, 08:42:59 AM
Hi dizzie that's what I thought too! Just thought I'd throw it into the mix, and then wait for someone else to try. ;)
My ZFS guide : http://fredslev.dk/2012/zfs-2-drives-mirrored/ (http://fredslev.dk/2012/zfs-2-drives-mirrored/)
Title: Re: Setting up LVM
Post by: ozitraveller on April 13, 2013, 03:29:40 AM
Excellent well done thanks dizzie. :)
Title: Re: Setting up LVM
Post by: dizzie on April 13, 2013, 08:34:29 AM
Made for FreeBSD though  8)
Title: Re: Setting up LVM
Post by: ozitraveller on April 13, 2013, 11:37:00 PM
I haven't tried FreeBSD, but it's on my TODO list. :)
Title: Re: Setting up LVM
Post by: dizzie on April 14, 2013, 09:01:06 AM
Good luck with that :)
Title: Re: Setting up LVM
Post by: ozitraveller on April 14, 2013, 10:44:51 PM
https://groups.google.com/a/zfsonlinux.org/forum/?fromgroups=# (https://groups.google.com/a/zfsonlinux.org/forum/?fromgroups=#)!topic/zfs-announce/ZXADhyOwFfA

Debian: Add to /etc/apt/sources.list
   deb http://archive.zfsonlinux.org/debian (http://archive.zfsonlinux.org/debian) wheezy main
   deb-src deb http://archive.zfsonlinux.org/debian (http://archive.zfsonlinux.org/debian) wheezy main
Title: Re: Setting up LVM
Post by: ozitraveller on April 15, 2013, 02:06:08 AM
I'm looking for some advice on setting up LVM on SSD + HDD. can I setup LVM only on /Home or does it have to be everything? Shoudl I enable TRIM support or not? Debian wiki is short on LVM info.
Title: Re: Setting up LVM
Post by: jedi on April 15, 2013, 02:42:32 AM
Not sure on the LVM question, but the answer for enabling TRIM is "NO"!

EDITED/CORRECTED 20150329

Since 2011 Trim has been enabled in the Linux Kernel.  It is however, NOT optimized for whatever reason.  My advice in this 'HowTo' posted at, "How To: SSD + TRIM + Linux (http://vsido.org/index.php?topic=958.msg10896#msg10896)
Title: Re: Setting up LVM
Post by: ozitraveller on April 15, 2013, 02:52:22 AM
Thanks Jedi I'm loading into to ram also which certainly helps making this more snappy. :)
Title: Re: Setting up LVM
Post by: dizzie on April 15, 2013, 07:16:25 AM
Single drive ZFS on a GPT disk, is by far, faster and more complex than ext3/4. No 2tb limit, no 4 primary partitions crap limit either. Want me to go on?  ;D
Title: Re: Setting up LVM
Post by: ozitraveller on April 15, 2013, 10:12:19 PM
I had already decided to use gpt rather than msdos. No, no need thanks Dizzie. :)
Title: Re: Setting up LVM
Post by: dizzie on April 16, 2013, 06:29:37 AM
Let me know if you need help buddy :)
Title: Re: Setting up LVM
Post by: ozitraveller on April 16, 2013, 11:04:17 PM
Advantages and benefits of ZFS and Btrfs over ext4
http://distrowatch.com/weekly.php?issue=20130415#qa (http://distrowatch.com/weekly.php?issue=20130415#qa)

I have a box I need to rebuild, so I see a project coming up !

Thanks Dizzie I'll let you know how I go. :)
Title: Re: Setting up LVM
Post by: dizzie on April 17, 2013, 06:41:07 AM
ZFS on Linux is still having "child diseases" So be careful  :)
Title: Re: Setting up LVM
Post by: ozitraveller on April 17, 2013, 11:34:57 PM
Thanks Dizzie!

I might wait until they get inoculated then! :)
Title: Re: Setting up LVM
Post by: dizzie on April 18, 2013, 06:12:25 AM
Install FreeBSD :)
Title: Re: Setting up LVM
Post by: ozitraveller on April 18, 2013, 08:29:37 PM
I'll see what I can do over the weekend. :) I have plenty of space for another vm!

EDIT:
Ok I'm intrigued, instructions please. :)
Title: Re: Setting up LVM
Post by: jedi on April 19, 2013, 12:14:41 AM
Hey ozitraveller!  You can get the latest FreeBSD ISO from ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/amd64/ISO-IMAGES/9.1/

I would grab the 'mem-stick' iso and use 'dd' to make a bootable USB image and install away!  It's not quite the same as your regular garden variety distro of Linux, so you might want to read a little about it first.  I have the 32-bit version 9.0 installed on a 12 or 13 year old laptop, that has given it new life!  However, there was a learning curve for me to get up and over before I was successful at it!  That said, it was a blast to play with...
Title: Re: Setting up LVM
Post by: ozitraveller on April 19, 2013, 12:42:39 AM
Thanks jedi !

I found these, so far:
http://www.freebsd.org/doc/en/books/handbook/ (http://www.freebsd.org/doc/en/books/handbook/)
http://www.a1poweruser.com/Install_Guide_Frame_w-Counter.php (http://www.a1poweruser.com/Install_Guide_Frame_w-Counter.php)
https://cooltrainer.org/2012/01/02/a-freebsd-9-desktop-how-to/ (https://cooltrainer.org/2012/01/02/a-freebsd-9-desktop-how-to/)
Title: Re: Setting up LVM
Post by: jedi on April 19, 2013, 05:23:57 AM
Yeah it ain't too difficult obviously if I was able to get it going and am still using it!!!  ??? :D ???
Title: Re: Setting up LVM
Post by: ozitraveller on April 19, 2013, 05:48:06 AM
It's friday here, so I think I'm going to systhesize myself some beer! And lubricate myself.... ;)

It's beer o'clock!
Title: Re: Setting up LVM
Post by: ozitraveller on April 22, 2013, 12:22:46 AM
Well I actually have a command line FreeBSD installed in a vm. :) Ugly screens, reminds me of Arch installer.