Difference between revisions of "Disk Selection Screen/10.0"

From PC-BSD Wiki
Jump to: navigation, search
m (Protected "Disk Selection Screen/10.0": Finalized/Published (‎[edit=sysop] (indefinite) ‎[move=sysop] (indefinite)))
 
(10 intermediate revisions by 2 users not shown)
Line 2: Line 2:
  
 
<!--T:1-->
 
<!--T:1-->
{{NavHeader|back=System Selection Screen|forward=Installation Progress Screen}}</noinclude>
+
{{UseTOC{{putVers}}|Nav}}</noinclude>
  
 
<!--T:2-->
 
<!--T:2-->
The "Disk Selection" screen, seen in Figure 3.4a, summarizes the default disk configuration.
+
The "Disk Selection" screen, seen in Figure 3.3a, summarizes the default disk configuration.
  
 
<!--T:3-->
 
<!--T:3-->
By default, PC-BSD® will assume that you wish to install on the entire first disk. [[File:Disks1b.png|thumb|393px|'''Figure 3.4a: Disk Selection Screen''']]  
+
By default, PC-BSD® will assume that you wish to install on the entire first disk. [[File:Disks1b.png|thumb|393px|'''Figure 3.3a: Disk Selection Screen''']]  
  
 
<!--T:4-->
 
<!--T:4-->
Line 14: Line 14:
  
 
<!--T:5-->
 
<!--T:5-->
If you wish to select which disk or partition to install PC-BSD® into, click the "Customize" button to start the "Disk Setup Wizard", shown in Figure 3.4b.
+
If you wish to select which disk or partition to install PC-BSD® into, click the "Customize" button to start the "Disk Setup Wizard", shown in Figure 3.3b.
  
 
<!--T:6-->
 
<!--T:6-->
Line 29: Line 29:
  
 
<!--T:10-->
 
<!--T:10-->
{{danger|icon64=''' ''Regardless of the mode that you select, once the disk wizard completes and you click "Next" at the disk "Summary" screen, a pop-up window will ask if you would like to start the installation. Be sure to review the disk summary before clicking "Yes" and starting the installation.'' ''' {{redlight|text=The disk "Summary" screen is your ''' ''very last chance'' ''' to make sure that you are ready.}} Once you click "Yes", the selected hard drive or partition will be formatted and ''' ''any data it contains will be lost'' '''.}}
+
{{danger|icon48=''' ''Regardless of the mode that you select, once the disk wizard completes and you click "Next" at the disk "Summary" screen, a pop-up window will ask if you would like to start the installation. Be sure to review the disk summary before clicking "Yes" and starting the installation.'' ''' {{redlight|text=The disk "Summary" screen is your ''' ''very last chance'' ''' to make sure that you are ready.}} Once you click "Yes", the selected hard drive or partition will be formatted and ''' ''any data it contains will be lost.'' '''}}
[[File:Installer3a.png|thumb|393px|'''Figure 3.4b: Disk Setup Wizard''']]
+
[[File:Installer3a.png|thumb|393px|'''Figure 3.3b: Disk Setup Wizard''']]
  
 
<!--T:97-->
 
<!--T:97-->
Line 38: Line 38:
  
 
<!--T:12-->
 
<!--T:12-->
If you select "Basic" mode, the wizard will display the screen shown in Figure 3.4c.
+
If you select "Basic" mode, the wizard will display the screen shown in Figure 3.3c.
[[File:Disks2a.png|left|thumb|393px|'''Figure 3.4c: Select a Disk or Partition''']]
+
[[File:Disks2a.png|left|thumb|393px|'''Figure 3.3c: Select a Disk or Partition''']]
 
By default, the first hard disk will be selected. If you wish to install on a different disk, use the "Selected Disk" drop-down menu to select the disk to install into.
 
By default, the first hard disk will be selected. If you wish to install on a different disk, use the "Selected Disk" drop-down menu to select the disk to install into.
  
 
<!--T:13-->
 
<!--T:13-->
 
By default, the entire selected disk will be formatted. If the disk has been divided into partitions and you wish to install into a specific partition, use the "Selected Partition" drop-down menu to select the desired primary partition.
 
By default, the entire selected disk will be formatted. If the disk has been divided into partitions and you wish to install into a specific partition, use the "Selected Partition" drop-down menu to select the desired primary partition.
 +
 +
<!--T:105-->
 +
If you are installing to an SSD instead of a hard drive, check the box "Installing to SSD".
  
 
<!--T:14-->
 
<!--T:14-->
Line 54: Line 57:
  
 
<!--T:21-->
 
<!--T:21-->
If you select advanced mode, the wizard will display the screen shown in Figure 3.4d.  
+
If you select advanced mode, the wizard will display the screen shown in Figure 3.3d.  
  
 
<!--T:99-->
 
<!--T:99-->
[[File:Advanced1.png|frame|'''Figure 3.4d: Advanced Mode Options''']]
+
[[File:Advanced1a.png|frame|'''Figure 3.3d: Advanced Mode Options''']]
  
 
<!--T:100-->
 
<!--T:100-->
Line 67: Line 70:
 
<!--T:101-->
 
<!--T:101-->
 
* '''Force ZFS 4k block size:''' this option should only be checked if you know for sure that the disk supports 4k, even though it lies and reports its size as 512b. Use with caution as it may cause the installation to fail.
 
* '''Force ZFS 4k block size:''' this option should only be checked if you know for sure that the disk supports 4k, even though it lies and reports its size as 512b. Use with caution as it may cause the installation to fail.
 +
 +
<!--T:106-->
 +
* '''Installing to SSD:''' check this box if you are installing to an SSD instead of a hard drive.
  
 
<!--T:102-->
 
<!--T:102-->
* '''Install GRUB boot-loader:''' unchecking this option will disable {{local|link=Boot Manager}}.
+
* '''Boot-Loader:''' changing the default of ''GRUB'' will disable {{local|link=Boot Manager}}. Choices  are ''GRUB'' (required to use multiple boot environments), ''GRUB-slice'' (installs GRUB on the partition instead of the MBR so that it can be chain loaded from a different boot loader), ''BSD'' (installs the FreeBSD boot manager), or ''NONE'' (does not install a boot manager).
  
 
<!--T:103-->
 
<!--T:103-->
Line 133: Line 139:
  
 
<!--T:70-->
 
<!--T:70-->
In Advanced Mode, the disk setup wizard allows you to configure your ZFS layout. The initial ZFS configuration screen is seen in Figure 3.4e.
+
In Advanced Mode, the disk setup wizard allows you to configure your ZFS layout. The initial ZFS configuration screen is seen in Figure 3.3e.
  
 
<!--T:71-->
 
<!--T:71-->
[[File:Zfs2a.png|thumb|393px|'''Figure 3.4e: ZFS Configuration''']]
+
[[File:Zfs2a.png|thumb|393px|'''Figure 3.3e: ZFS Configuration''']]
  
 
<!--T:73-->
 
<!--T:73-->
If your system contains multiple drives and you would like to use them to create a ZFS mirror or RAIDZ, check the box "Enable ZFS mirror/raidz mode" which will enable the rest of the options in this screen. In the example shown in Figure 3.4e, the system has 7 disks, all of which are the same size. The first disk, ''ada0'', was pre-selected in Figure 3.4d and the remaining 6 disks (''ada1'' to ''ada6'') are available to be added to the ZFS pool.
+
If your system contains multiple drives and you would like to use them to create a ZFS mirror or RAIDZ, check the box "Enable ZFS mirror/raidz mode" which will enable the rest of the options in this screen. In the example shown in Figure 3.3e, the system has 7 disks, all of which are the same size. The first disk, ''ada0'', was pre-selected in Figure 3.3d and the remaining 6 disks (''ada1'' to ''ada6'') are available to be added to the ZFS pool.
  
 
<!--T:74-->
 
<!--T:74-->
Line 166: Line 172:
  
 
<!--T:82-->
 
<!--T:82-->
To use multiple disks, select the type of configuration from the "ZFS Virtual Device Mode" drop-down menu, then check the box for each disk that you would like to add to that configuration. When finished, click the Next button to see the default layout screen shown in Figure 3.4f.
+
To use multiple disks, select the type of configuration from the "ZFS Virtual Device Mode" drop-down menu, then check the box for each disk that you would like to add to that configuration. When finished, click the Next button to see the default layout screen shown in Figure 3.3f.
  
 
<!--T:83-->
 
<!--T:83-->
[[File:Installer3j.png|thumb|393px|'''Figure 3.4f: Default ZFS Layout''']]
+
[[File:Installer3k.png|thumb|393px|'''Figure 3.3f: Default ZFS Layout''']]
  
 
<!--T:84-->
 
<!--T:84-->

Latest revision as of 02:04, 29 January 2014


Contents


The "Disk Selection" screen, seen in Figure 3.3a, summarizes the default disk configuration.

By default, PC-BSD® will assume that you wish to install on the entire first disk.
Figure 3.3a: Disk Selection Screen
DANGER! If you are installing PC-BSD® as the only operating system on your computer, simply click "Next" to start the installation. However, if this is not your intent, review the rest of this section to determine how to layout your disk. If you plan on booting PC-BSD® with another operating system, you should also review the section on Dual Booting.

If you wish to select which disk or partition to install PC-BSD® into, click the "Customize" button to start the "Disk Setup Wizard", shown in Figure 3.3b.

The wizard provides three modes of operation. The rest of this section describes these modes in detail.

  • Basic: (default) select this mode if you wish to specify which partition or disk to install to.
  • Advanced: select this mode if you wish to specify the installation partition or disk, use GPT partitioning, change the boot manager, or specify the filesystem layout.
  • FreeBSD Expert: select this mode if you prefer to drop down to a shell to manually enter the commands to setup your disk.
DANGER! Regardless of the mode that you select, once the disk wizard completes and you click "Next" at the disk "Summary" screen, a pop-up window will ask if you would like to start the installation. Be sure to review the disk summary before clicking "Yes" and starting the installation.  The disk "Summary" screen is your very last chance to make sure that you are ready.  Once you click "Yes", the selected hard drive or partition will be formatted and any data it contains will be lost.
Figure 3.3b: Disk Setup Wizard

Once you have finished configuring your disks, you can save the finished configuration to re-use it at a later time. Insert a FAT-formatted USB stick and click "Save Config to USB".

[edit] Basic Mode

If you select "Basic" mode, the wizard will display the screen shown in Figure 3.3c.

Figure 3.3c: Select a Disk or Partition

By default, the first hard disk will be selected. If you wish to install on a different disk, use the "Selected Disk" drop-down menu to select the disk to install into.

By default, the entire selected disk will be formatted. If the disk has been divided into partitions and you wish to install into a specific partition, use the "Selected Partition" drop-down menu to select the desired primary partition.

If you are installing to an SSD instead of a hard drive, check the box "Installing to SSD".

NOTE: PC-BSD® will only install into a primary partition. That is, you can not install PC-BSD® into a secondary or an extended partition. If you wish to create a new primary partition to install into, see Partitioning the Hard Drive for instructions on how to do this.

Once you have selected the disk and partition, click "Next" to return to the disk "Summary" screen so that you can review your selections. If you wish to change anything, use the "Back" button to return to a previous screen. Otherwise, click "Finish" to leave the wizard. Click Next then Yes to start the installation.

[edit] Advanced Mode

If you select advanced mode, the wizard will display the screen shown in Figure 3.3d.

Figure 3.3d: Advanced Mode Options

This screen provides the following options:

  • Partition disk with GPT: GPT[1] is a partition table layout that supports larger partition sizes than the traditional MBR layout. If your installation disk/partition is larger than 2 TB, this box must be checked, otherwise checking this box is optional. Some older motherboards do not support this option. If the installation fails with this option checked, try again with the box unchecked. When in doubt, leave this box unchecked.
  • Force ZFS 4k block size: this option should only be checked if you know for sure that the disk supports 4k, even though it lies and reports its size as 512b. Use with caution as it may cause the installation to fail.
  • Installing to SSD: check this box if you are installing to an SSD instead of a hard drive.
  • Boot-Loader: changing the default of GRUB will disable Boot Manager. Choices are GRUB (required to use multiple boot environments), GRUB-slice (installs GRUB on the partition instead of the MBR so that it can be chain loaded from a different boot loader), BSD (installs the FreeBSD boot manager), or NONE (does not install a boot manager).
  • ZFS pool name: if you wish to use a pool name other than the default of tank, check this box and input the name of the pool. Note that root is a reserved term and can not be used as a pool name.

After making your selections click “Next” to access the ZFS configuration screen. The rest of this section provides a ZFS overview and demonstrates how to customize the ZFS layout.

[edit] ZFS Overview

ZFS is an enterprise grade file-system, which provides many features including: support for high storage capacities, high reliability, the ability to quickly take snapshots, boot environments, continuous integrity checking and automatic repair, RAIDZ which was designed to overcome the limitations of hardware RAID, and native NFSv4 ACLs.

If you are new to ZFS, the Wikipedia entry on ZFS[2] provides an excellent starting point to learn about its features. These resources are also useful to bookmark and refer to as needed:

The following is a glossary of terms used by ZFS:

Pool: a collection of devices that provides physical storage and data replication managed by ZFS. This pooled storage model eliminates the concept of volumes and the associated problems of partitions, provisioning, wasted bandwidth and stranded storage. Thousands of filesystems can draw from a common storage pool, each one consuming only as much space as it actually needs. The combined I/O bandwidth of all devices in the pool is available to all filesystems at all times. The Storage Pools Recommendations[9] of the ZFS Best Practices Guide provides detailed recommendations for creating the storage pool.

Mirror: a form of RAID where all data is mirrored onto two or more disks, creating a redundant copy should a disk fail.

RAIDZ: ZFS software solution that is equivalent to RAID5 in that it allows one disk to fail without losing data. Requires a minimum of 3 disks though 5 disks is recommended.

RAIDZ2: double-parity ZFS software solution that is similar to RAID6 in that it allows two disks to fail without losing data. Requires a minimum of 4 disks.

RAIDZ3: triple-parity ZFS software solution. RAIDZ3 offers three parity drives and can operate in degraded mode if up to three drives fail with no restrictions on which drives can fail.

Dataset: once a pool is created, it can be divided into datasets. A dataset is similar to a folder in that it supports permissions. A dataset is also similar to a filesystem in that you can set properties such as quotas and compression.

Snapshot: a read-only point-in-time copy of a filesystem. Snapshots can be created quickly and, if little data changes, new snapshots take up very little space. For example, a snapshot where no files have changed takes 0MB of storage, but if you change a 10GB file it will keep a copy of both the old and the new 10GB version. Snapshots provide a clever way of keeping a history of files, should you need to recover an older copy or even a deleted file. For this reason, many administrators take snapshots often (e.g. every 15 minutes), store them for a period of time (e.g. for a month), and store them on another system. Such a strategy allows the administrator to roll the system back to a specific time or, if there is a catastrophic loss, an off-site snapshot can restore the system up to the last snapshot interval (e.g. within 15 minutes of the data loss). Snapshots can be cloned or rolled back, but the files on the snapshot cannot be accessed independently.

Clone: a writable copy of a snapshot which can only be created on the same ZFS volume. Clones provide an extremely space-efficient way to store many copies of mostly-shared data such as workspaces, software installations, and diskless clients. Clones do not inherit the properties of the parent dataset, but rather inherit the properties based on where the clone is created in the ZFS pool. Because a clone initially shares all its disk space with the original snapshot, its used property is initially zero. As changes are made to the clone, it uses more space.

[edit] ZFS Layout

In Advanced Mode, the disk setup wizard allows you to configure your ZFS layout. The initial ZFS configuration screen is seen in Figure 3.3e.

Figure 3.3e: ZFS Configuration

If your system contains multiple drives and you would like to use them to create a ZFS mirror or RAIDZ, check the box "Enable ZFS mirror/raidz mode" which will enable the rest of the options in this screen. In the example shown in Figure 3.3e, the system has 7 disks, all of which are the same size. The first disk, ada0, was pre-selected in Figure 3.3d and the remaining 6 disks (ada1 to ada6) are available to be added to the ZFS pool.

NOTE: The PC-BSD® installer requires you to use entire disks (not partitions) when creating a ZFS mirror or RAIDZ.

If you have never configured a RAIDZ before, take the time to read the RAIDZ Configuration Requirements and Recommendations[10] first. It indicates the optimum number of disks for each type of configuration. While ZFS will let you use disks of different sizes, this is discouraged as it will decrease storage capacity and performance of the ZFS system.

The PC-BSD® installer supports the following ZFS configurations:

  • mirror: requires a minimum of 2 disks.
  • RAIDZ1: requires a minimum of 3 disks. For best performance, 3, 5, or 9 disks are recommended.
  • RAIDZ2: requires a minimum of 4 disks. For best performance, 4, 6, or 10 disks are recommended.
  • RAIDZ3: requires a minimum of 5 disks. For best performance, 5, 7, or 11 disks are recommended.

The installer will not let you save a configuration if your system does not meet the minimum number of disks required by that configuration. As you select a configuration, a message will indicate how many more disks you need to select.

To use multiple disks, select the type of configuration from the "ZFS Virtual Device Mode" drop-down menu, then check the box for each disk that you would like to add to that configuration. When finished, click the Next button to see the default layout screen shown in Figure 3.3f.

Figure 3.3f: Default ZFS Layout

Regardless of how many disks you selected for your ZFS configuration, the default layout will be the same. ZFS does not require separate partitions for /usr, /tmp, or /var. Instead, you create one ZFS partition (pool) and specify a mount for each dataset. A /boot partition is not mandatory with ZFS as the PC-BSD® installer puts a 64k partition at the beginning of the drive.


WARNING do not remove any of the default mount points as they are used by PC-BSD®.

You can use the "Add" button to add additional mount points. You will only be prompted for the name of the mount point as size is not limited at creation time. Instead, the data on any mount point can continue to grow as long as space remains within the ZFS pool.

If you wish to set the swap size, click the "Swap Size" button. This will prompt you to enter a size in MB. If you have created a RAIDZ or mirror, a swap partition of the specified size will be created on each disk and mirrored between the drives. For example, if you specify a 2048MB swap size, a 2GB swap partition will be created on all of the specified disks, yet the total swap size will be 2GB, due to redundancy.

If you right-click any mount point, you can toggle between enabling or disabling any of the following ZFS properties.

  • atime: when set to "on", controls whether the access time for files is updated when they are read. When set to "off", this property avoids producing write traffic when reading files and can result in significant performance gains, though it might confuse mailers and some other utilities.
  • canmount: if set to "off", the filesystem cannot be mounted.
  • checksum: automatically verifies the integrity of the data stored on disks. Setting this property to "off" is highly discouraged.
  • compression: if set to "on", automatically compresses stored data to conserve disk space.
  • exec: if set to "off", processes can not be executed from within this filesystem.

Once you click "Next", the wizard will show a summary of your selections. If you wish to change anything, use the "Back" button to return to a previous screen. Otherwise, click "Finish" to leave the wizard and return to the "Disk Selection" screen.

[edit] FreeBSD Expert Mode

If you select FreeBSD expert mode, you will be prompted to launch a terminal where you can use command line utilities such as bsdinstall or sysinstall to manually configure the partitions. When you are finished, type exit to leave the terminal, then click "Next" to review the disk summary. If you wish to change anything, use the "Back" button to return to a previous screen. Otherwise, click "Finish" to leave the wizard and return to the "Disk Selection" screen.


References


  1. http://en.wikipedia.org/wiki/GUID_Partition_Table
  2. http://en.wikipedia.org/wiki/ZFS
  3. http://www.solarisinternals.com/wiki/index.php/ZFS_Evil_Tuning_Guide
  4. http://wiki.freebsd.org/ZFSTuningGuide
  5. http://www.solarisinternals.com/wiki/index.php/ZFS_Best_Practices_Guide
  6. http://download.oracle.com/docs/cd/E19253-01/819-5461/index.html
  7. http://blogs.oracle.com/video/entry/becoming_a_zfs_ninja
  8. https://blogs.oracle.com/bonwick/entry/rampant_layering_violation
  9. http://www.solarisinternals.com/wiki/index.php/ZFS_Best_Practices_Guide#ZFS_Storage_Pools_Recommendations
  10. http://www.solarisinternals.com/wiki/index.php/ZFS_Best_Practices_Guide#RAIDZ_Configuration_Requirements_and_Recommendations
Other languages:German 3% • ‎English 100%