zpool remove rpool /dev/disk/by-id/
I just posted my real server disks, could you please let me know then what is your recomendation, is that process will alow me to make the disks mirror or not?Your real pool is NOT a mirror with "attach" as it's a "stripe" with double size reached with "add", so there's no redundancy for booting.
In your testvm drws is what going on with your zpool ?? Maybe begin complete from beginning there ...
how did you know it's a "strip"? so that I can share the same thing about on my server. however I know my rpool is not mirror and that is I opened this thread to know to make it mirror?Your real pool is NOT a mirror with "attach" as it's a "stripe" with double size reached with "add", so there's no redundancy for booting.
In your testvm drws is what going on with your zpool ?? Maybe begin complete from beginning there ...
the real one is on dw-srv-p4 , but drws is the test VM I am doing test on it however they should exeactly the same if I am not mistake!So maybe I understand wrong ... your real disks are passthrough to your vm drws or the rpool of dw-srv-p4 ??
Try what you have: /dev/sdj3
PS: I really cannot imagine why user take a zfs / zfs mirror for pve OS as filesystem as even zfs kills the ssd's/nvme's with it's pve db, With hw-raid1 there's no needed any cmd after exchanging disk, just take a look cmd that it's fine again - zfs is real for masochists.
...
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
ata-INTENSO_AA000000000000001553-part3 ONLINE 0 0 0
ata-INTENSO_AA000000000000006699-part3 ONLINE 0 0 0
...
what do you mean? which files do you want me to truncate?Maybe the test is easier in vm with just truncate files as disks instead of passthrough real drives ...
But even you see you have no "mirror-0" line in your zpool status output ?
I just be sure about the "cp" I copied the full disk /dev/sda to /dev/sdb, is this correct or I should only cp /dev/sda3 to /dev/sdb3?Within your testvm you have first to cp the partion table before zpool attach rpool /dev/sda3 /dev/sdb3 !!
What is the output fromonce I got this comment from @leesteken
View attachment 76150Thoes are the steps I am doing but not luck
- zpool remove disk
zpool status rpool
?That was not in my two steps. Also, again, please use /dev/disk/by-id/... instead of /dev/sd....
- cp sda to --> sdb
What exact command do you run and what exact error do you get?
- zpool attach
What is the output fromzpool status rpool
?
I only see 1 disk by it's ID:That was not in my two steps. Also, again, please use /dev/disk/by-id/... instead of /dev/sd....
this command the error message is different since I have wiped the disk within thi command "wipefs -af /dev/sdb3"What exact command do you run and what exact error do you get?
That works fine, then what?cd /space/anywhere
truncate -s 10g vdisk1
truncate -s 10g vdisk2
zpool create tank mirror /space/anywhere/vdisk1 /space/anywhere/vdisk2
zpool status
pool: tank
state: ONLINE
config:
NAME STATE READ WRITE CKSUM
tank ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
/space/anywhere/vdisk1 ONLINE 0 0 0
/space/anywhere/vdisk2 ONLINE 0 0 0
Looks like you are doing this is a VM? Is this for practice of did things go really work somewhere is this long thread? I'm assuming the former.
I guess you have to wait or maybe reboot until the vdev you removed in step 1 is really unused. I don't think it's a good idea to run wipefs while ZFS is still moving date from it to the rpool (sda3).this command the error message is different since I have wiped the disk within thi command "wipefs -af /dev/sdb3"
View attachment 76153
previuosly it said "attach" can't be done you need to correct it manaualy something like that.