[PVE-User] create zfs pool issue
Pongrácz István
pongracz.istvan at gmail.com
Tue Jul 28 08:02:45 CEST 2015
Hi,
When you create a new pool, /dev/sdb is not really a valid device.
Try to create a pool using their id, like this:
zpool create -f -o ashift=12 tank mirror ata-Hitachi_HTS545050A7E380_TEJ52139CA9VNS ata-Hitachi_HTS545050A7E380_TEJ52139CAVXNS mirror ata-Hitachi_HTS545050A7E380_TEJ52139CBYP0S ata-WDC_WD5000BEVT-00A0RT0_WD-WXN1AB0X5490
You can use ids from here: ls /dev/disk/by-id/
If you want to use their name, just use this:
zpool create -f -o ashift=12 tank mirror sdb sdc mirror sdd sde
The second variant is not recommended, because if your system boots up and you put a new disk, it is easy to mess the pool. Just avoid to use sdX as device, use their ids instead.
Bye,
István
----------------eredeti üzenet-----------------
Feladó: "lyt_yudi" lyt_yudi at icloud.com ata-Hitachi_HTS545050A7E380_TEJ52139CAVXNS
Címzett: "proxmoxve"
Dátum: Tue, 28 Jul 2015 11:09:12 +0800
-------------------------------------------------
> hi,all
>
> when create a new zfs pool, got this error, how can i fix that?
>
> # zpool create -f -o ashift=12 tank mirror /dev/sdb /dev/sdc mirror /dev/sdd
> /dev/sde
> cannot create 'tank': invalid argument for this pool operation
>
> # cat /var/log/syslog
> ….
> Jul 28 11:04:35 test01 kernel: sdb: sdb1 sdb9
> Jul 28 11:04:35 test01 kernel: sdc: sdc1 sdc9
> Jul 28 11:04:35 test01 kernel: sdd: sdd1 sdd9
> Jul 28 11:04:36 test01 kernel: sde: sde1 sde9
> ….
>
> thanks.
>
> # pveversion -v
> proxmox-ve-2.6.32: 3.4-159 (running kernel: 2.6.32-40-pve)
> pve-manager: 3.4-8 (running version: 3.4-8/5f8f4e78)
> pve-kernel-2.6.32-40-pve: 2.6.32-159
> lvm2: 2.02.98-pve4
> clvm: 2.02.98-pve4
> corosync-pve: 1.4.7-1
> openais-pve: 1.1.4-3
> libqb0: 0.11.1-2
> redhat-cluster-pve: 3.2.0-2
> resource-agents-pve: 3.9.2-4
> fence-agents-pve: 4.0.10-3
> pve-cluster: 3.0-18
> qemu-server: 3.4-6
> pve-firmware: 1.1-4
> libpve-common-perl: 3.0-24
> libpve-access-control: 3.0-16
> libpve-storage-perl: 3.0-33
> pve-libspice-server1: 0.12.4-3
> vncterm: 1.1-8
> vzctl: 4.0-1pve6
> vzprocps: 2.0.11-2
> vzquota: 3.1-2
> pve-qemu-kvm: 2.2-10
> ksm-control-daemon: 1.1-1
> glusterfs-client: 3.5.2-1
> _______________________________________________
> pve-user mailing list
> pve-user at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
>
More information about the pve-user
mailing list