[TUTORIAL] hilfe bei " Add cache and log to an existing pool"

vikozo

Active Member
May 4, 2014
629
15
38
suisse
www.wombat.ch
Hallo

unter
https://pve.proxmox.com/wiki/ZFS_on_Linux
Add cache and log to an existing pool
das habe ich nicht verstanden, vorallem nicht wegen dem partion erstellen.
ich habe eine SSD Disk
/dev/sda 128GB wobei nur 119.24GiB angezeigt wird im PVE Gui

rpool ist der Pool zum hinzufügen
also wäre dann der Befehl in etwa so...
zpool add -f rpool log <device-part1> cache <device-part2>


gruss
vinc
 
Last edited:

vikozo

Active Member
May 4, 2014
629
15
38
suisse
www.wombat.ch
eine Art Tutorial - hoffe es war nicht falsch

Annahmen:
Die zu partionierende Disk ist: /dev/sda/
Der Pool ist: rpool
Bei jedem Print sollen die neuen Infos erscheinen:

apt install -y parted
Code:
parted /dev/sda
mklabel gpt
print
Code:
mkpart primary 0% 50%
print
Code:
mkpart primary 51% 100%
print
Code:
name 1 log
name 2 cache
print

zpool add -f rpool log /dev/sda1 cache /dev/sda2

Code:
# zpool status
  pool: rpool
state: ONLINE
  scan: scrub repaired 0B in 0 days 00:02:09 with 0 errors on Fri Oct 16 18:20:57 2020
config:

        NAME                                     STATE     READ WRITE CKSUM
        rpool                                    ONLINE       0     0     0
          mirror-0                               ONLINE       0     0     0
            ata-TOSHIBA_HDWA130_Y6AH28XAS-part3  ONLINE       0     0     0
            ata-TOSHIBA_HDWA130_Y6AE7YGAS-part3  ONLINE       0     0     0
        logs
          sda1                                   ONLINE       0     0     0
        cache
          sda2                                   ONLINE       0     0     0

errors: No known data errors
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE and Proxmox Mail Gateway. We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!