Hello,
i've setuped this day an machine with the new Proxmoxinstaller. I build the system with ZFS Raid1. So i would like to to simulate a harddisk failure. Ok, changed one disk:
So the first thing was, to put a new disk in server, done... but... nothing is going. The system can't see disk. So google around and found this:
Scan every port. But i think there is a special command for ZFS. I Hope So. Then i can see the disk with fdisk.
Ok, so i would like to replace the disk. First trial:
Second trail:
First status:
After some minutes:
Is this really ok? What is with EFI and boot listed with parted?
So i think the system boots only with the first disk.
Thanks and best regards.
i've setuped this day an machine with the new Proxmoxinstaller. I build the system with ZFS Raid1. So i would like to to simulate a harddisk failure. Ok, changed one disk:
Code:
pool: rpool state: DEGRADED
status: One or more devices could not be used because the label is missing or
invalid. Sufficient replicas exist for the pool to continue
functioning in a degraded state.
action: Replace the device using 'zpool replace'.
see: http://zfsonlinux.org/msg/ZFS-8000-4J
scan: none requested
config:
NAME STATE READ WRITE CKSUM
rpool DEGRADED 0 0 0
mirror-0 DEGRADED 0 0 0
sda3 ONLINE 0 0 0
sdb3 UNAVAIL 0 116 0 corrupted data
Code:
echo "0 0 0" >/sys/class/scsi_host/host3/scan
Scan every port. But i think there is a special command for ZFS. I Hope So. Then i can see the disk with fdisk.
Code:
Disk /dev/sdb: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xbe36be36
Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 718847 358400 7 HPFS/NTFS/exFAT
/dev/sdb2 718848 488394751 243837952 7 HPFS/NTFS/exFAT
Code:
zpool replace -f rpool /dev/sdb3 /dev/sdb3
cannot open '/dev/sdb3': No such device or address
cannot replace /dev/sdb3 with /dev/sdb3: one or more devices is currently unavailable
Code:
zpool replace -f rpool /dev/sdb3 /dev/sdb
Make sure to wait until resilver is done before rebooting.
First status:
Code:
pool: rpool
state: DEGRADED
status: One or more devices is currently being resilvered. The pool will
continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
scan: resilver in progress since Mon Feb 2 20:04:37 2015
371M scanned out of 639M at 11.2M/s, 0h0m to go
370M resilvered, 58.05% done
config:
NAME STATE READ WRITE CKSUM
rpool DEGRADED 0 0 0
mirror-0 DEGRADED 0 0 0
sda3 ONLINE 0 0 0
replacing-1 UNAVAIL 0 0 0
sdb3 UNAVAIL 0 116 0 corrupted data
sdb ONLINE 0 0 0 (resilvering)
After some minutes:
Code:
pool: rpool
state: ONLINE
scan: resilvered 639M in 0h0m with 0 errors on Mon Feb 2 20:05:31 2015
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
sda3 ONLINE 0 0 0
sdb ONLINE 0 0 0
errors: No known data errors
Code:
Model: ATA ST380817AS (scsi)
Disk /dev/sda: 80.0GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 1049kB 2097kB 1049kB Grub-Boot-Partition bios_grub
2 2097kB 136MB 134MB fat32 EFI-System-Partition boot
3 136MB 80.0GB 79.9GB zfs PVE-ZFS-Partition
Model: ATA ST3250820NS (scsi)
Disk /dev/sdb: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 1049kB 250GB 250GB zfs zfs
9 250GB 250GB 8389kB
Model: Unknown (unknown)
Disk /dev/zd0: 4295MB
Sector size (logical/physical): 512B/4096B
Partition Table: loop
Number Start End Size File system Flags
1 0.00B 4295MB 4295MB linux-swap(v1)
Thanks and best regards.