Hello everyone,
I'm quite the newbie when it comes to FreeBSD and understand alot more about windows when it comes to computers. Despite that I chose to use FreeBSD 8.1 (most recent release version at the time) to build a home NAS, since it just seemed to offer me a lot better options. I managed to get everything up and running and keep learning more and more each time I run into some trouble. But now I am faced with a problem unsure how to solve, even after googling around and I hope to get some help on this forum. I will explain the setup of the NAS first (and I hope I use all the correct terminology):
The NAS has 4 drives installed at this moment and only offers 4 SATA ports. So basically it is full hardware wise. There are 3 x 1TB HDD's and these are all used with ZFS RAID-Z and are in 1 big pool and only used for storage. Then there is 1 x 8GB SSD which I use to boot the system from and has the standard filesystem setup (UFS2?).
The problem is that this SSD has been getting inconsistencies regularly lately and it just seems that replacing it would be a good idea. So I went ahead and got a shiney new ocz 30GB SSD to replace the other SSD. I'm looking for some advice what the best strategy is to approach this replacement.
There's are a number of options I can think of that might work:
- Take out the old SSD. Insert the new SSD and reinstall latest release version 8.2 and simply reinstall the programs I use and only copy configuration files from the old SSD.
- Try to use dump over the network to my windows pc in order to backup the SSD. Switch out SSD's and boot from freebsd live/recovery CD/USB and try to restore the dump to the new drive. This seems annoying that windows comes into play. Not really sure how to do this.
- Dump the contents of the SSD to the ZFS filesystem. Switch drives. Boot using recovery CD/USB and mount the ZFS filesystem and restore the dump from that to the new drive. Is this possible?
I would really appreciate any thoughts on this subject and pointers. I'm not really sure of my FreeBSD skills up to this point and this is a challenge for me. Thank you!
Some extra info that might help you to help me:
I'm quite the newbie when it comes to FreeBSD and understand alot more about windows when it comes to computers. Despite that I chose to use FreeBSD 8.1 (most recent release version at the time) to build a home NAS, since it just seemed to offer me a lot better options. I managed to get everything up and running and keep learning more and more each time I run into some trouble. But now I am faced with a problem unsure how to solve, even after googling around and I hope to get some help on this forum. I will explain the setup of the NAS first (and I hope I use all the correct terminology):
The NAS has 4 drives installed at this moment and only offers 4 SATA ports. So basically it is full hardware wise. There are 3 x 1TB HDD's and these are all used with ZFS RAID-Z and are in 1 big pool and only used for storage. Then there is 1 x 8GB SSD which I use to boot the system from and has the standard filesystem setup (UFS2?).
The problem is that this SSD has been getting inconsistencies regularly lately and it just seems that replacing it would be a good idea. So I went ahead and got a shiney new ocz 30GB SSD to replace the other SSD. I'm looking for some advice what the best strategy is to approach this replacement.
There's are a number of options I can think of that might work:
- Take out the old SSD. Insert the new SSD and reinstall latest release version 8.2 and simply reinstall the programs I use and only copy configuration files from the old SSD.
- Try to use dump over the network to my windows pc in order to backup the SSD. Switch out SSD's and boot from freebsd live/recovery CD/USB and try to restore the dump to the new drive. This seems annoying that windows comes into play. Not really sure how to do this.
- Dump the contents of the SSD to the ZFS filesystem. Switch drives. Boot using recovery CD/USB and mount the ZFS filesystem and restore the dump from that to the new drive. Is this possible?
I would really appreciate any thoughts on this subject and pointers. I'm not really sure of my FreeBSD skills up to this point and this is a challenge for me. Thank you!
Some extra info that might help you to help me:
Code:
[root@Thuis /tank/home/Jorn]# df
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/ad10s1a 367790 285608 52760 84% /
devfs 1 1 0 100% /dev
/dev/ad10s1e 297326 50 273490 0% /tmp
/dev/ad10s1f 4677960 3707496 596228 86% /usr
/dev/ad10s1d 526510 204620 279770 42% /var
tank 1614404838 27 1614404811 0% /tank
tank/home 1614404851 40 1614404811 0% /tank/home
tank/home/Jorn 1870009503 255604692 1614404811 14% /tank/home/Jorn
tank/home/Jorn/foto 1622449343 8044532 1614404811 0% /tank/home/Jorn/foto
tank/home/Jorn/video 1650223709 35818898 1614404811 2% /tank/home/Jorn/video
[root@Thuis /tank/home/Jorn]# zpool list
NAME SIZE USED AVAIL CAP HEALTH ALTROOT
tank 2.72T 429G 2.30T 15% ONLINE -
[root@Thuis /tank/home/Jorn]# bsdlabel ad10s1
# /dev/ad10s1:
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
a: 759808 0 4.2BSD 0 0 0
b: 3523514 759808 swap
c: 15649137 0 unused 0 0 # "raw" part, don't edit
d: 1087488 4283322 4.2BSD 0 0 0
e: 614400 5370810 4.2BSD 0 0 0
f: 9663927 5985210 4.2BSD 0 0 0