Hi, I''m plan to build home server that will host my svn repository, fileserver, mailserver and webserver. This is my plan.. I have an old dell precision 420 dual 933Mhz pIII cpus. Inside this i have one scsi 9.1G hdd and 2 80G ide hdds. I am going to install solaris 10 on the scsi drive and have it as the boot disk. I will then create a zfs mirror on the two ide drives. Since i dont want to mix internet facing services (mailserver, webservers) with my internal services (svn server, fileserver) i am going to use zones to isolate them. Not sure how many zones just yet. In this configureation i hope too of gained the protection of having the serives mirrors ( will perform backups also ). What i dont know is what happens if the boot disk dies? can i replace is, install solaris again and get it to see the zfs mirror? Also what happens if one of the ide drives fails? can i plug another one in and run some zfs commands to make it part of the mirror? Ben This message posted from opensolaris.org
On 8/18/06, Ben Short <ben at benshort.co.uk> wrote:> I''m plan to build home server that will host my svn repository, fileserver, mailserver and webserver. > This is my plan.. > > I have an old dell precision 420 dual 933Mhz pIII cpus. Inside this i have one scsi 9.1G hdd and 2 80G ide hdds. I am going to install solaris 10 on the scsi drive and have it as the boot disk. I will then create a zfs mirror on the two ide drives. Since i dont want to mix internet facing services (mailserver, webservers) with my internal services (svn server, fileserver) i am going to use zones to isolate them. Not sure how many zones just yet. > > In this configureation i hope too of gained the protection of having the serives mirrors ( will perform backups also ). > > What i dont know is what happens if the boot disk dies? can i replace is, install solaris again and get it to see the zfs mirror?As I understand it, this be possible, but I haven''t tried it and I''m not an expert Solaris admin. Some ZFS info is stored in a persistent file on your system disk, and you may have to do a little dance to get around that. It''s worth researching and practicing in advance :-).> Also what happens if one of the ide drives fails? can i plug another one in and run some zfs commands to make it part of the mirror?Yes. This one I''ve tried -- in simulation rather than on real hardware, but that''s close enough to make me believe I actually know the answer :-). There''s a command to replace a disk in a pool; it is "zpool replace <poolname> <drivename>". To answer this and many other questions you will no doubt have, you want to download the Solaris 10 ZFS Administrators guide from Sun, Part No: 819?5461?10. Also continue to hang around this list, people who really know ZFS are here and will help. I try to pick off the really easy questions I''m sure I can get right :-). -- David Dyer-Bennet, <mailto:dd-b at dd-b.net>, <http://www.dd-b.net/dd-b/> RKBA: <http://www.dd-b.net/carry/> Pics: <http://www.dd-b.net/dd-b/SnapshotAlbum/> Dragaera/Steven Brust: <http://dragaera.info/>
I can''t be specific with my reply to the second question, as I''ve never done it, but do a search for "re-silvering". It is a functionality that is supposed to be there. As to the first question, absolutely! I have upgraded my internal server twice, and both times, I was able to see the old ZFS mirror. The first time I upgraded, I forgot to do the ZFS export, so I essentially simulated a server going belly-up. In this case, you need to force the ZFS import (if you''ve exported first, as in the case of a server life-cycle upgrade, you don''t need to force the import). If I remember correctly (I''m at work right now--bear with), the commands would be: # zpool import <pool> or # zpool import -f <pool> <pool> is the name of the ZFS pool as it was on the server before the upgrade/failure. Both times, the zpool import created the appropriate mountpoint automagically. IHTH Rainer PS I Love ZFS! :-) This message posted from opensolaris.org
Ben Short wrote:> Hi, > > I''m plan to build home server that will host my svn repository, fileserver, mailserver and webserver. > This is my plan.. > > I have an old dell precision 420 dual 933Mhz pIII cpus. Inside this i have one scsi 9.1G hdd and 2 80G ide hdds. I am going to install solaris 10 on the scsi drive and have it as the boot disk. I will then create a zfs mirror on the two ide drives. Since i dont want to mix internet facing services (mailserver, webservers) with my internal services (svn server, fileserver) i am going to use zones to isolate them. Not sure how many zones just yet.Sounds reasonable to me.> In this configureation i hope too of gained the protection of having the serives mirrors ( will perform backups also ). > > What i dont know is what happens if the boot disk dies? can i replace is, install solaris again and get it to see the zfs mirror?Yes. You can "zfs import" the drives into the new Solaris environment. I do this regularly, as I tend to upgrade regularly. -- richard
Hi,>> What i dont know is what happens if the boot disk dies? can i replace >> is, install solaris again and get it to see the zfs mirror? > > As I understand it, this be possible, but I haven''t tried it and I''m > not an expert Solaris admin. Some ZFS info is stored in a persistent > file on your system disk, and you may have to do a little dance to get > around that. It''s worth researching and practicing in advance :-).IIRC, then ZFS has all relevant information stored inside the pool. So you should be able to install a new OS into the replacement disk, then say "zpool import" (possibly with -d and the devices where the mirror lives) to re-import the pool. But I haven''t really tried it myself :). All in all, ZFS is an excellent choice for a home server. I use ZFS as a video storage for a digital set top box (quotas are really handy here), as a storage for my music collection, as a backup storage for important data (including photos), etc. I''m currently juggling around 4 differently sized disks into a new config with the goal of getting as much storage as possible out of them at a minimum level of redundance. Interesting, Teris-like calculation exercise that I''d be happy to blog about when I''m done. Feel free to visit my blog for how to set up your home server as a ZFS iTunes streaming server :). Best regards, Constantin -- Constantin Gonzalez Sun Microsystems GmbH, Germany Platform Technology Group, Client Solutions http://www.sun.de/ Tel.: +49 89/4 60 08-25 91 http://blogs.sun.com/constantin/
Hello David, Friday, August 18, 2006, 5:39:31 PM, you wrote: DDB> On 8/18/06, Ben Short <ben at benshort.co.uk> wrote:>> I''m plan to build home server that will host my svn repository, fileserver, mailserver and webserver. >> This is my plan.. >> >> I have an old dell precision 420 dual 933Mhz pIII cpus. Inside this i have one scsi 9.1G hdd and 2 80G ide hdds. I am going to install solaris 10 on the scsi drive and have it as the boot disk. I will then create a zfs mirror on the two ide drives. Since i dont want to mix internet facing services (mailserver, webservers) with my internal services (svn server, fileserver) i am going to use zones to isolate them. Not sure how many zones just yet. >> >> In this configureation i hope too of gained the protection of having the serives mirrors ( will perform backups also ). >> >> What i dont know is what happens if the boot disk dies? can i replace is, install solaris again and get it to see the zfs mirror?DDB> As I understand it, this be possible, but I haven''t tried it and I''m DDB> not an expert Solaris admin. Some ZFS info is stored in a persistent DDB> file on your system disk, and you may have to do a little dance to get DDB> around that. It''s worth researching and practicing in advance :-). Unless you use legacy mountpoints all ZFS info is stored inside a pool. So you can just import those disks into other Solaris system without any "dancing" at all. -- Best regards, Robert mailto:rmilkowski at task.gda.pl http://milek.blogspot.com
Hello Ben, Friday, August 18, 2006, 4:36:45 PM, you wrote: BS> What i dont know is what happens if the boot disk dies? can i BS> replace is, install solaris again and get it to see the zfs mirror? BS> Also what happens if one of the ide drives fails? can i plug BS> another one in and run some zfs commands to make it part of the mirror? 1. boot disk dies Importing ZFS pool will be just one command after Solaris re-install and that''s it. So when it comes to data on ZFS it will just work. However Zones can be an issue - first it won''t just work and even after some manual tweaking there can be possible problems (after some patches were applied before disk crashed, etc.). Worst case would be to "re-install" zones. I would consider creating separate ZFS file system on those two mirrored disks just for Zones and theirs data. But still it won''t just work. -- Best regards, Robert mailto:rmilkowski at task.gda.pl http://milek.blogspot.com