headconnect
Explorer
- Joined
- May 28, 2011
- Messages
- 59
Following up a bit on the 'planning for hardware failure' thread, I thought I'd see what happened if i forced a bit of HW failure on my VirtualBox test environment.
So - What I've set up in vbox is:
- 1.5gb ram
- FreeNAS 8.0 installed on 2GB virtual IDE drive
- Added 4x6GB SATA disks
- Set up RAID-Z accross 4x disks
Been working quite nicely, so I thought it was high time I introduced some destruction.
What I was curious about is how FreeNAS would react to a disk failure - I'm still in the 'playing around' phase, so haven't dug too deeply, but I haven't found any area where I could set up notification on failures or problems.
What I did was:
1. Shut down FreeNAS
2. Remove the fourth disk
3. Add a new - blank - 6gb disk in its place
4. Boot FreeNAS
The good news? FreeNAS boots fine, and I can get into the web interface. The bad news? I can't access my CIFS share any longer (at the time I had only configured CIFS).
What I see in the console menu is this (may remove it if it gets too long):
So it sees all drives, but no hint at rebuilding or anything to that extent. From the machine window, I don't see the regular 1-9 options.
Anyway - I'll probably add more (and remove something) from this post once I play around a bit more, but basically - I would have expected that RAID-Z would be rebuilding itself once it realised it lost a disk and that a new disk was present.
While I can see the files in the dataset when logging into the machine via ssh, I would have hoped I could see them as well through CIFS.
Update 1:
So I rebooted FreeNAS again, and in the VirtualBox machine view, i get the 1-9 option list, and lo and behold, I manage to access it through CIFS. However, I'm quite sure FreeNAS isn't actually rebuilding anything as the .vdi (virdual disk image) which would be needing to get up-to-date is still at 28kb compared to 200MB on the other .vdi's. Let's see what time does :)
So - What I've set up in vbox is:
- 1.5gb ram
- FreeNAS 8.0 installed on 2GB virtual IDE drive
- Added 4x6GB SATA disks
- Set up RAID-Z accross 4x disks
Been working quite nicely, so I thought it was high time I introduced some destruction.
What I was curious about is how FreeNAS would react to a disk failure - I'm still in the 'playing around' phase, so haven't dug too deeply, but I haven't found any area where I could set up notification on failures or problems.
What I did was:
1. Shut down FreeNAS
2. Remove the fourth disk
3. Add a new - blank - 6gb disk in its place
4. Boot FreeNAS
The good news? FreeNAS boots fine, and I can get into the web interface. The bad news? I can't access my CIFS share any longer (at the time I had only configured CIFS).
What I see in the console menu is this (may remove it if it gets too long):
Code:
Jun 2 09:49:29 FreeNAS kernel: ada0 at ata0 bus 0 scbus0 target 0 lun 0 Jun 2 09:49:29 FreeNAS kernel: ada0: <VBOX HARDDISK 1.0> ATA-6 device Jun 2 09:49:29 FreeNAS kernel: ada0: 33.300MB/s transfers (UDMA2, PIO 65536bytes) Jun 2 09:49:29 FreeNAS kernel: ada0: 2048MB (4194304 512 byte sectors: 16H 63S/T 4161C) Jun 2 09:49:29 FreeNAS kernel: ada1 at ahcich0 bus 0 scbus2 target 0 lun 0 Jun 2 09:49:29 FreeNAS kernel: ada1: <VBOX HARDDISK 1.0> ATA-6 SATA 2.x device Jun 2 09:49:29 FreeNAS kernel: ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) Jun 2 09:49:29 FreeNAS kernel: ada1: Command Queueing enabled Jun 2 09:49:29 FreeNAS kernel: ada1: 6144MB (12582912 512 byte sectors: 16H 63S/T 12483C) Jun 2 09:49:29 FreeNAS kernel: ada2 at ahcich1 bus 0 scbus3 target 0 lun 0 Jun 2 09:49:29 FreeNAS kernel: ada2: <VBOX HARDDISK 1.0> ATA-6 SATA 2.x device Jun 2 09:49:29 FreeNAS kernel: ada2: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) Jun 2 09:49:29 FreeNAS kernel: ada2: Command Queueing enabled Jun 2 09:49:29 FreeNAS kernel: ada2: 6144MB (12582912 512 byte sectors: 16H 63S/T 12483C) Jun 2 09:49:29 FreeNAS kernel: ada3 at ahcich2 bus 0 scbus4 target 0 lun 0 Jun 2 09:49:29 FreeNAS kernel: ada3: <VBOX HARDDISK 1.0> ATA-6 SATA 2.x device Jun 2 09:49:29 FreeNAS kernel: ada3: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) Jun 2 09:49:29 FreeNAS kernel: ada3: Command Queueing enabled Jun 2 09:49:29 FreeNAS kernel: ada3: 6144MB (12582912 512 byte sectors: 16H 63S/T 12483C) Jun 2 09:49:29 FreeNAS kernel: ada4 at ahcich3 bus 0 scbus5 target 0 lun 0 Jun 2 09:49:29 FreeNAS kernel: ada4: <VBOX HARDDISK 1.0> ATA-6 SATA 2.x device Jun 2 09:49:29 FreeNAS kernel: ada4: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) Jun 2 09:49:29 FreeNAS kernel: ada4: Command Queueing enabled Jun 2 09:49:29 FreeNAS kernel: ada4: 6144MB (12582912 512 byte sectors: 16H 63S/T 12483C) Jun 2 09:49:29 FreeNAS kernel: Trying to mount root from ufs:/dev/ufs/FreeNASs1a Jun 2 09:49:29 FreeNAS kernel: ZFS NOTICE: Prefetch is disabled by default if less than 4GB of RAM is present; Jun 2 09:49:29 FreeNAS kernel: to enable, add "vfs.zfs.prefetch_disable=0" to /boot/loader.conf. Jun 2 09:49:29 FreeNAS kernel: ZFS filesystem version 4 Jun 2 09:49:29 FreeNAS kernel: ZFS storage pool version 15 Jun 2 09:49:30 FreeNAS root: /etc/rc.d/mountd: WARNING: /etc/exports is not readable. Jun 2 09:49:30 FreeNAS mountd[1136]: can't open /etc/exports Jun 2 09:49:31 FreeNAS root: /etc/rc: WARNING: failed precmd routine for vmware_guestd Jun 2 09:49:31 FreeNAS smartd[1202]: Unable to register ATA device /dev/ada1 at line 4 of file /usr/local/etc/smartd.conf Jun 2 09:49:31 FreeNAS smartd[1202]: Unable to register device /dev/ada1 (no Directive -d removable). Exiting. Jun 2 09:49:31 FreeNAS root: /etc/rc: WARNING: failed to start smartd Jun 2 09:49:33 FreeNAS kernel: fuse4bsd: version 0.3.9-pre1, FUSE ABI 7.8 Jun 2 09:49:33 FreeNAS ntpd[1379]: ntpd 4.2.4p5-a (1) Jun 2 09:49:34 FreeNAS root: /etc/rc: WARNING: failed to start proftpd Jun 2 09:49:34 FreeNAS cnid_metad[1495]: Set syslog logging to level: LOG_NOTE Jun 2 09:49:34 FreeNAS mountd[1137]: can't open /etc/exports Jun 2 09:49:34 FreeNAS mountd[1137]: can't open /etc/exports Jun 2 09:49:39 FreeNAS avahi-daemon[1614]: WARNING: No NSS support for mDNS detected, consider installing nss-mdns! Jun 2 07:49:42 FreeNAS ntpd[1380]: time reset -7199.328675 s Jun 2 07:53:49 FreeNAS mountd[1137]: mount request denied from 10.0.1.72 for /dev Jun 2 07:53:49 FreeNAS mountd[1137]: mount request denied from 10.0.1.72 for /dev
So it sees all drives, but no hint at rebuilding or anything to that extent. From the machine window, I don't see the regular 1-9 options.
Anyway - I'll probably add more (and remove something) from this post once I play around a bit more, but basically - I would have expected that RAID-Z would be rebuilding itself once it realised it lost a disk and that a new disk was present.
While I can see the files in the dataset when logging into the machine via ssh, I would have hoped I could see them as well through CIFS.
Update 1:
So I rebooted FreeNAS again, and in the VirtualBox machine view, i get the 1-9 option list, and lo and behold, I manage to access it through CIFS. However, I'm quite sure FreeNAS isn't actually rebuilding anything as the .vdi (virdual disk image) which would be needing to get up-to-date is still at 28kb compared to 200MB on the other .vdi's. Let's see what time does :)