Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Proxmox Cookbook

You're reading from   Proxmox Cookbook Over 60 hands-on recipes to perform server virtualization and manage virtualized server solutions with Proxmox

Arrow left icon
Product type Paperback
Published in Aug 2015
Publisher
ISBN-13 9781783980901
Length 318 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Wasim Ahmed Wasim Ahmed
Author Profile Icon Wasim Ahmed
Wasim Ahmed
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Installing Proxmox FREE CHAPTER 2. Getting to Know the Proxmox GUI 3. Cluster and VM Management 4. Network Configurations 5. Firewall Configurations 6. Storage Configurations 7. Backup and Restore 8. Updating and Upgrading Proxmox 9. Monitoring Proxmox 10. Advanced Configurations for VMs 11. The CLI Command Reference Index

ZFS commands

In this section, we will look at the commands for performing various tasks for ZFS on Proxmox.

How to do it…

  1. Use the following command to create the raidz ZFS pool:
    # zpool create <pool_name> raidz -m <mountpoint> </dev/sdX> </dev/sdX> <…>
    

    The command to create a zpool named testzfs in the /mnt/zfs1 mount point with three drives looks like this:

    #zpool create testzfs raidz –m /mnt/zfs1/ /dev/vdf /dev/vdg /dev/vdh
    

    The following screenshot shows the output of the zpool list to verify that our pool is created:

    How to do it…
  2. Use the following command to delete the ZFS pool:
    # zpool destroy <pool_name>
    

    This action is irreversible. Once the pool is deleted, it is permanently removed.

  3. Use the following command to list all the ZFS pools and storage space:
    # zpool list
    
  4. Use the following command to see the status of all the drives for the ZFS pool:
    #zpool status
    

    The preceding command is useful for checking if any drives are offline or approaching failure...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime