Difference between pages "Welcome" and "LVM Install Guide"

From Funtoo
(Difference between pages)
Jump to navigation Jump to search
Tag: visualeditor
 
 
Line 1: Line 1:
'''Welcome to Funtoo Linux!''' Funtoo Linux is a Linux-based operating system that is a variant of [http://www.gentoo.org Gentoo Linux]. Funtoo Linux is:
{{fancywarning| This page is currently a work in progress }}
* ...'''fun!''' Our priority is to create a ''great, supportive and responsive'' user community.
* ...'''user-centric'''. Everyone is considered a '''user''' of Funtoo, first and foremost. You don't need any special privileges to collaborate with us.
* ...'''production-oriented''': Our goal is to have Funtoo be useful for ''real-world tasks''. We use Funtoo to do stuff, like host our infrastructure. It needs to work.__NOTOC__
=== Resources ===


* [http://forums.funtoo.org forums.funtoo.org] - our new forums!
* [https://groups.google.com/forum/#!forum/funtoo-dev funtoo-dev] mailing list (Google Groups) - primary source for news and info.
* [http://bugs.funtoo.org bugs.funtoo.org], our bug tracker, is online and has been upgraded to JIRA 6.
* [http://larrythecow.org larrythecow.org], our Gentoo blog aggregation service.
* [http://kernel-seeds.org kernel-seeds.org], resources for building your kernel from scratch.
* [http://git.funtoo.org git.funtoo.org], our cgit repository browser.


==== How Do I Get An Account For Wiki/Bugs? ====
== Introduction ==
This tutorial will show you how to install Funtoo, including the rootfs, on logical volumes. This guide is meant to complement the regular [[Funtoo_Linux_Installation|Funtoo Installation Guide]]. It is recommended to open it in another tab, window ect.. and follow along with it as we will only be documenting the steps that are different or in addition to the regular guide.


Funtoo is currently beta-testing a new centralized login infrastructure. You can create a new account by heading to our [http://auth.funtoo.org:9093/new beta funtoo account creation page]. A new account will work on the wiki, bug tracker and forums. See [[Funtoo Authentication FAQ]] for more information.
=== Introduction to LVM ===
LVM (Logical Volume Management) offers a much more flexible way of managing your storage devices. Not only does it allow you to resize your volumes while the system is still up, it also frees you from having to decide exactly how many or how big volumes need to be at the time of installation.  


=== Funtoo Containers ===
For a detailed tour and introduction to LVM please consult the [[LVM Fun]] page.


'''Funtoo currently offers discount Funtoo Linux virtual server containers to supporters:'''


* $10/mo : '''3GB''' RAM, '''4''' CPU threads, 50GB disk
== Live CD ==
* $15/mo : '''6GB''' RAM, '''8''' CPU threads, 100GB disk
Please read the [[Funtoo Linux Installation#Live CD|Live CD]] section in the regular guide. The only thing you need in addition to the [[Requirements|requirements]] it mentions is the sys-fs/lvm2 package or equivalent. If you use [http://www.sysresccd.org/ System Rescue CD], it includes the lvm2 package.
* $30/mo : '''12GB''' RAM, '''12''' CPU threads, 200GB disk
* $45/mo : '''48GB''' RAM, '''24''' CPU threads, 300GB disk


Each container gives you '''root''' access to your own Funtoo Linux server, uses '''fast SSD storage''', includes '''one''' static IPv4 address as well as IRC and email support. To sign up, first set up a regular monthly support payment, below. Then email me (drobbins at funtoo.org) with your desired hostname (''something''.host.funtoo.org) and an SSH public key that you will use to log in to the container. Get more details on the [[Funtoo Hosting]] page.
== Prepare Hard Disk ==
Preparing the hard disk for an LVM install isn't much different from a normal install except that we won't be creating a bunch of partitions as we are going to use logical volumes instead. All we need is a /boot partition, if your using gpt, you'll need the GRUB partition, and the rest of the space will just be one big partition which we'll create our logical volumes out of.


=== Support Our Work ===
{{fancynote|We're using the previous mentioned setup to keep things simple in this guide. We are also assuming your only using one hard disk though LVM supports adding multiple hard disks and partitions to a volume group. Please adapt these instructions to suit your needs}}


We encourage all Funtoo Linux users to support our project via a comfortable recurring monthly support payment. Support at levels $10/mo and above grant you the ability to utilize Funtoo Containers. '''Subscribe by selecting a monthly amount below, and this click ''Subscribe''''':  
The regular install guide does a good job explaining MRB, GPT, and gdisk/fdisk so we won't be repeating that here. Read through the [[Funtoo Linux Installation#Prepare Hard Disk|Prepare Hard Disk]] section and create the previous mentioned partitions.  
If your following our setup your partition table should look like the following when completed:


==== Monthly Recurring Support via Credit Card ====
'''GPT partition table'''
<console>Command (? for help): ##i##p
Disk /dev/sda: 83886080 sectors, 40.0 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): A4E5208A-CED3-4263-BB25-7147DC426931
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 83886046
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)


{{#Widget:FuntooSupport}}
Number  Start (sector)    End (sector)  Size      Code  Name
  1            2048        1026047  500.0 MiB  8300  Linux filesystem
  2        1026048        1091583  32.0 MiB    EF02  BIOS boot partition
  3        1091584        83886046  39.5 GiB    8300  Linux filesystem
</console>


==== Monthly Recurring Support via PayPal ====
'''MRB partition table'''
<console>Command (? for help): ##i##p


{{#Widget:FuntooSupportPayPal}}
Disk /dev/sda: 42.9 GB, 42949672960 bytes, 83886080 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: 0x6919e82c
 
  Device Boot      Start        End      Blocks  Id  System
/dev/sda1            2048    1026047      512000  83  Linux
/dev/sda2        1026048    83886079    41430016  83  Linux
</console>
 
== Creating Logical Volumes ==
In this section we will cover the basics of creating volume groups and logical volumes. For an in depth explanation please see the [[LVM Fun]] page.
 
=== Creating a Physical Volume ===
Our first step is to create a physical volume which basically just tells the lvm where to write the data to.
Create a physical volume out of the big partition we created in the previous step. If your using the MRB setup then change /dev/sda3 to /dev/sda2 in the following command
<console># pvcreate /dev/sda3</console>
 
=== Creating a Volume Group ===
Now that we have a place to store our data we need to create a volume group for it. A volume group is simply a named group of at least one physical volume. This allows multiple physical volumes to be used to store data. In our simple example we only have one physical volume so we'll create a volume group and add our physical volume to it in one command. We are going to call our volume group "vg" but you can name it anything you want. Remember to adjust the device path if your using MRB.
<console># vgcreate vg /dev/sda3</console>
 
=== Creating Logical Volumes ===
 
[[Category:HOWTO]]
[[Category:Install]]
[[Category:Official Documentation]]

Revision as of 14:55, June 5, 2014

   Warning
This page is currently a work in progress 


Introduction

This tutorial will show you how to install Funtoo, including the rootfs, on logical volumes. This guide is meant to complement the regular Funtoo Installation Guide. It is recommended to open it in another tab, window ect.. and follow along with it as we will only be documenting the steps that are different or in addition to the regular guide.

Introduction to LVM

LVM (Logical Volume Management) offers a much more flexible way of managing your storage devices. Not only does it allow you to resize your volumes while the system is still up, it also frees you from having to decide exactly how many or how big volumes need to be at the time of installation.

For a detailed tour and introduction to LVM please consult the LVM Fun page.


Live CD

Please read the Live CD section in the regular guide. The only thing you need in addition to the requirements it mentions is the sys-fs/lvm2 package or equivalent. If you use System Rescue CD, it includes the lvm2 package.

Prepare Hard Disk

Preparing the hard disk for an LVM install isn't much different from a normal install except that we won't be creating a bunch of partitions as we are going to use logical volumes instead. All we need is a /boot partition, if your using gpt, you'll need the GRUB partition, and the rest of the space will just be one big partition which we'll create our logical volumes out of.

   Note

We're using the previous mentioned setup to keep things simple in this guide. We are also assuming your only using one hard disk though LVM supports adding multiple hard disks and partitions to a volume group. Please adapt these instructions to suit your needs

The regular install guide does a good job explaining MRB, GPT, and gdisk/fdisk so we won't be repeating that here. Read through the Prepare Hard Disk section and create the previous mentioned partitions. If your following our setup your partition table should look like the following when completed:

GPT partition table

Command (? for help): p
Disk /dev/sda: 83886080 sectors, 40.0 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): A4E5208A-CED3-4263-BB25-7147DC426931
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 83886046
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048         1026047   500.0 MiB   8300  Linux filesystem
   2         1026048         1091583   32.0 MiB    EF02  BIOS boot partition
   3         1091584        83886046   39.5 GiB    8300  Linux filesystem

MRB partition table

Command (? for help): p

Disk /dev/sda: 42.9 GB, 42949672960 bytes, 83886080 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: 0x6919e82c

   Device Boot      Start         End       Blocks   Id  System
/dev/sda1            2048     1026047       512000   83  Linux
/dev/sda2         1026048    83886079     41430016   83  Linux

Creating Logical Volumes

In this section we will cover the basics of creating volume groups and logical volumes. For an in depth explanation please see the LVM Fun page.

Creating a Physical Volume

Our first step is to create a physical volume which basically just tells the lvm where to write the data to. Create a physical volume out of the big partition we created in the previous step. If your using the MRB setup then change /dev/sda3 to /dev/sda2 in the following command

root # pvcreate /dev/sda3

Creating a Volume Group

Now that we have a place to store our data we need to create a volume group for it. A volume group is simply a named group of at least one physical volume. This allows multiple physical volumes to be used to store data. In our simple example we only have one physical volume so we'll create a volume group and add our physical volume to it in one command. We are going to call our volume group "vg" but you can name it anything you want. Remember to adjust the device path if your using MRB.

root # vgcreate vg /dev/sda3

Creating Logical Volumes