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

(Difference between pages)
 
 
Line 1: Line 1:
{{fancywarning| This page is currently a work in progress }}
+
{{MainPageSidebar|1=
 +
== Resources ==
  
 +
Our community has a number of excellent resources for communication and collaboration:
  
== Introduction ==
+
* '''{{CreateAccount}}''' to log in to the wiki, forums and bug tracker. See [[Funtoo Authentication FAQ]].
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.
+
* '''[http://forums.funtoo.org forums.funtoo.org]''' - our new forums!
 +
* [https://groups.google.com/forum/#!forum/funtoo-dev funtoo-dev] mailing list
 +
* '''[http://bugs.funtoo.org bugs.funtoo.org]''', our bug tracker.
 +
* [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.
 +
* '''[[Support Funtoo]]''' to help our project grow.
 +
* '''[[Funtoo Hosting|Get a Funtoo Virtual Container]]'''.
 +
}}
 +
{{MainPageSidebar|1=
 +
== UserMap ==
 +
{{#ask:[[Category:People]]
 +
|?Geoloc
 +
|format=googlemaps3|height=300|zoom=1|minzoom=1|markercluster=on}}
 +
[[Usermap|View Larger version]]
 +
}}
 +
== 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:
 +
* ...'''fun!''' Our priority is to create a ''great, supportive and responsive'' user community.
 +
* ...'''user-centric and collaborative'''. 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__
 +
* ...'''creative''': We seek creative, elegant and maintainable solutions to problems of all kinds.
  
=== Introduction to LVM ===
+
Learn more about Funtoo Linux's development priorities at [[Funtoo Linux Vision]].
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.
+
== Getting Started ==
  
 +
We encourage you to [[Funtoo Linux Installation|install Funtoo Linux]], and get involved in our user community. Get to know fellow Funtoo Linux users on our [http://forums.funtoo.org forums]. If you have any improvements or find any bugs in Funtoo Linux, you are strongly encouraged to report them on our [http://bugs.funtoo.org bug tracker]. We take all bugs seriously, and all work performed on Funtoo Linux is tracked on our bug tracker, for purposes of transparency.
  
== Live CD ==
+
Funtoo Linux has a very active [http://en.wikipedia.org/wiki/IRC IRC] community on Freenode, in the <code>#funtoo</code> channel, and you are encouraged to hang out online with us.
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.
+
  
== Prepare Hard Disk ==
+
== Distinctives ==
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.
+
  
{{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}}
+
Funtoo Linux is led by [http://en.wikipedia.org/wiki/Daniel_Robbins_(computer_programmer) Daniel Robbins], the creator and former Chief Architect of [http://en.wikipedia.org/wiki/Gentoo_Linux Gentoo Linux], who serves as benevolent dictator for life (BDFL) of the project. Our organizational structure consists of BDFL and a small number of support staff, as well as members of our user community who are involved in improving Funtoo Linux. Developement efforts are driven by the BDFL as well as our users, and efforts are under way to implement various mechanisms to allow supporters of Funtoo Linux to chart the future direction of the project.
  
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.  
+
Funtoo Linux packages are installed from source code, automatically, thanks to the [http://en.wikipedia.org/wiki/Portage_(software) Portage ports system.] Funtoo Linux has its own distinct ports tree (repository of packages), which is based on Gentoo's. Every several hours, the Funtoo Linux Portage tree is updated using an automated merge process, to include the latest changes from Gentoo Linux, Funtoo Linux developers and contributors, as well as other independent developers.  
If your following our setup your partition table should look like the following when completed:
+
  
'''GPT partition table'''
+
We use [http://en.wikipedia.org/wiki/Git_(software) Git] for all our development, and we also use Git to deliver our Portage tree to you.
<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)
+
  
Number  Start (sector)    End (sector)  Size      Code  Name
+
== Help Document Ebuilds! ==
  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>
+
  
'''MRB partition table'''
+
We need help adding documentation for ebuilds to our wiki. See below for a list of pages:
<console>Command (? for help): ##i##p
+
  
Disk /dev/sda: 42.9 GB, 42949672960 bytes, 83886080 sectors
+
This page lists all ebuilds with pages on the Funtoo Linux wiki.
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
+
{{#ask:[[Category:Ebuilds]] [[CatPkg::+]]
/dev/sda1            2048    1026047      512000  83  Linux
+
|?CatPkg=
/dev/sda2        1026048    83886079    41430016  83  Linux
+
|?Repository=
</console>
+
|?Summary=
 +
|format=listwidget
 +
|link=all
 +
|headers=show
 +
|searchlabel=… further results
 +
|class=sortable wikitable smwtable
 +
}}
  
== Creating Logical Volumes ==
+
'''Add an Ebuild page:''' (see [[Adding an Ebuild to the Wiki]] for instructions)
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 ===
+
{{#forminput:form=Ebuild|size=|default value=|button text=Add Package|autocomplete on namespace=Package|remote autocompletion|placeholder=Descriptive name|popup}}
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 ===
+
__NOTITLE__
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.
+
__NOEDITSECTION__
<console># vgcreate vg /dev/sda3</console>
+
 
+
=== Creating Logical Volumes ===
+
We now come to the heart of using LVM, logical volumes. Here we get to create logical volumes to store our data. Remember that the best part of LVM is the ability to resize volumes later on the fly so keep that in mind when deciding how big to make volumes. No need to allocate all your space right away. Also keep in mind when choosing a file system type that it must support resizing in order to take advantage of LVM's resizing features.
+
For our simple example we are only going to create 3 logical volumes and use them for /(root), /home, and /tmp.
+
Create the root volume:
+
<console># lvcreate --size 10G --name root vg
+
Logical volume "root" created</console>
+
As you can see we use the --size option to specify a 10 gig volume and the --name option to name the volume 'root'. Again , you can call your volumes anything you want just remember to adjust the paths in the commands for the rest of the guide. You'll notice we specified a relatively small root partition. This is due to our test disk only being 40G. The last item in the command is simply the name of the volume group we created in the previous section. Run 'lvcreate --help' or consult the manpages for more information on the options use.
+
 
+
Now lets create the other 2 logical volumes for our example:
+
<console># lvcreate --size 5G --name tmp vg
+
Logical volume "tmp" created
+
#lvcreate --size 10G --name home vg
+
Logical volume "home" created</console>
+
 
+
== Creating filesystems ==
+
{{fancynote|Before proceeding you should read through the brief section [[Funtoo Linux Installation#Creating filesystems|Creating filesystems]] in the install guide and decide what type of filesystem you would like to use. Do not actually create any file systems though, we will cover that below.}}
+
 
+
 
+
 
+
[[Category:HOWTO]]
+
[[Category:Install]]
+
[[Category:Official Documentation]]
+

Revision as of 06:01, June 18, 2014

Resources

Our community has a number of excellent resources for communication and collaboration:

UserMap

Loading map...

View Larger version

Welcome to Funtoo Linux

Funtoo Linux is a Linux-based operating system that is a variant of Gentoo Linux. Funtoo Linux is:

  • ...fun! Our priority is to create a great, supportive and responsive user community.
  • ...user-centric and collaborative. 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.
  • ...creative: We seek creative, elegant and maintainable solutions to problems of all kinds.

Learn more about Funtoo Linux's development priorities at Funtoo Linux Vision.

Getting Started

We encourage you to install Funtoo Linux, and get involved in our user community. Get to know fellow Funtoo Linux users on our forums. If you have any improvements or find any bugs in Funtoo Linux, you are strongly encouraged to report them on our bug tracker. We take all bugs seriously, and all work performed on Funtoo Linux is tracked on our bug tracker, for purposes of transparency.

Funtoo Linux has a very active IRC community on Freenode, in the #funtoo channel, and you are encouraged to hang out online with us.

Distinctives

Funtoo Linux is led by Daniel Robbins, the creator and former Chief Architect of Gentoo Linux, who serves as benevolent dictator for life (BDFL) of the project. Our organizational structure consists of BDFL and a small number of support staff, as well as members of our user community who are involved in improving Funtoo Linux. Developement efforts are driven by the BDFL as well as our users, and efforts are under way to implement various mechanisms to allow supporters of Funtoo Linux to chart the future direction of the project.

Funtoo Linux packages are installed from source code, automatically, thanks to the Portage ports system. Funtoo Linux has its own distinct ports tree (repository of packages), which is based on Gentoo's. Every several hours, the Funtoo Linux Portage tree is updated using an automated merge process, to include the latest changes from Gentoo Linux, Funtoo Linux developers and contributors, as well as other independent developers.

We use Git for all our development, and we also use Git to deliver our Portage tree to you.

Help Document Ebuilds!

We need help adding documentation for ebuilds to our wiki. See below for a list of pages:

This page lists all ebuilds with pages on the Funtoo Linux wiki.

    
389 Directory Servernet-nds/389-ds-baseThis is the core part of 389 Directory Server -- technically, all you need for an LDAP deployment, although many will want to install 389-ds-admin for the graphical management capabilities, too.
389 Directory Server Admin Servernet-nds/389-adminThe 389 Directory Server Admin Server is an Apache-based application server that can optionally be deployed alongside 389 Directory Server. It allows for remote Java-based management of your 389 Directory Server deployment.
389 Directory Server AdminUtildev-libs/389-adminutilAdminUtil is a set of utility functions written in C, and a dependency of 389 Directory Server.
389 Directory Server Consoleapp-admin/389-ds-consoleThis is the Java-based remote management console that is used for managing 389 Directory Server (administration as well as the server app itself.)
ACPI Daemonsys-power/acpidDaemon for Advanced Configuration and Power Interface
AMD Catalyst Video Driversx11-drivers/ati-driversAccelerated ATI/AMD binary drivers for Radeon HD 5000 and newer chipsets.
APC UPS Daemonsys-power/apcupsdAPC UPS daemon with integrated network-based remote shutdown
Apachewww-servers/apacheThe Apache Web Server
Apache-toolsapp-admin/apache-toolsUseful Apache tools - htdigest, htpasswd, ab, htdbm
Ardourmedia-sound/ardourArdour is a fully featured audio and MIDI multi-track recording and editing digital audio workstation.
Audacious Music Playermedia-sound/audaciousAudacious is a lightweight GTK-based music player which supports many formats. It does not use the library concept but rather playlists for managing your music.
Awesome (Window Manager)x11-wm/awesomeA dynamic floating and tiling window manager.
BSF Bean Scripting Frameworkdev-java/bsfA framework that allows many scripting languages to be plugged into a Java application.
Baselayoutsys-apps/baselayoutFilesystem baselayout, initscripts and /sbin/realdev command
Bashapp-shells/bashThe standard GNU Bourne-again shell.
Bash completionapp-shells/bash-completionBash tab-completion
Batikdev-java/batikJava-based SVG toolkit.
Bindnet-dns/bindBIND - Berkeley Internet Name Domain - Name Server
Bind-toolsnet-dns/bind-toolsbind tools: dig, nslookup, host, nsupdate, dnssec-keygen
Bitwig Studiomedia-sound/bitwig-studioMusic production and performance system
Blendermedia-gfx/blender3D Creation/Animation/Publishing System
Boodev-lang/booA wrist-friendly language for the CLI.
Boot-Updatesys-boot/boot-updateFuntoo Core Boot Framework for global boot loader configuration
Boot-Update/pt-brsys-boot/boot-updateFuntoo Core Boot Framework for global boot loader configuration
CA Certificatesapp-misc/ca-certificatesThis package contains SSL certificates in PEM format that are used to validate the authenticity of remote systems, using the certificate authority system.
CCachedev-util/ccacheCCACHE is an application that caches compilation results and reuses it in future compilations in order to achieve faster compile times.
Chromiumwww-client/chromiumChromium is the Open Source Web browser that serves as the foundation for Google Chrome.
Chronynet-misc/chronyChrony is a pair of programs (chronyd and chronyc) which are used to maintain the accuracy of the system clock on a computer. chronyd has been specifically written to work well for systems which have only an intermittent (e.g. dial-up) connection to the network where the NTP servers are. It still works well in a "permanently connected" mode.
Clamavapp-antivirus/clamavClam Anti-Virus Scanner
Comptonx11-miscA compositor for X.
Cx Oracledev-python/cx-oraclePython interface to Oracle.
Dashapp-shells/dashDASH is a direct descendant of the NetBSD version of ash (the Almquist SHell) and is POSIX compliant
Dbussys-apps/dbusA message bus ystem, a simple way for applications to talk to each other
DeaDBeeFmedia-sound/deadbeefA foobar2000-like music player
Dictd Moby Thesaurusapp-dicts/dictd-moby-thesaurusThis package contains the Moby Thesaurus, produced as part of the Moby Project. It is designed to work with dictd dictionary server.
Dirvish Backupapp-backup/dirvishSimple text-based configuration backup program composed of perl wrappers and using ssh and rsync
Dnscryptnet-dns/dnscrypt-proxyA tool for securing communications between a client, and a DNS resolver.
Dnsmasqnet-dns/dnsmasqSmall forwarding DNS server
Dovecotnet-mail/dovecotAn IMAP and POP3 server written with security primarily in mind
Drbdsys-cluster/drbdmirror/replicate block-devices across a network-connection: This is the user space tools to control, configure the DRBD driver, as well as integration programs and scripts that glues the DRBD system to cluster management software and other system components.
Drupalwww-apps/drupalPHP-based open-source platform and content management system
Dwmx11-wm/dwmdwm is extremely fast and lightweight window manager. It manages windows in tiled, floating and monocle layouts.
Eclipsedev-util/eclipse-sdk-binA powerful integrated development environment (IDE) written in Java.
Eixapp-portage/eixA command to search and query ebuilds, portage including local settings, overlays, version changes, and more.
Eselectapp-admin/eselectThis is Gentoo's multi-purpose management and configuration tool. The Funtoo version has been enhanced to support Funtoo's enhanced profile system.
Eselect (Java)app-admin/eselect-javaEselect (Java) is a Java module for eselect that is used to set the system JRE/JVM on Funtoo Linux systems.
Eselect (Jython)app-admin/eselect-jythonAn eselect module to manage the active system Jython implementation.
Eselect (OpenGL)app-admin/eselect-openglA Gentoo/Funtoo utility that allows the active OpenGL implementation on a system to be switched between a variety of installed options.
Eselect (Ruby)app-admin/eselect-rubyThis eselect module manages the active system implmentation of Ruby.
Eselect (Sh)app-admin/eselect-shThis eselect module manages the /bin/sh (POSIX shell) symlink.
… further results

Add an Ebuild page: (see Adding an Ebuild to the Wiki for instructions)