Hi got a brand new server with 14 x 2TB disk, and 2X160GB SSD disk , my plan was to install opensolaris on one of the SSD disk and then zfs mirror the root disk onto the second SSD disk , but since the server will handle some sync NFS write i also want to add a zil log on the same SSD disks, also mirrored. I don''t have in depth knowledge on solaris or opensolaris , and don''t know much about how partitions works on solaris. I have tried the last 2 days solving this , and reading howtos on the net , but have not been able to find any step by step howto explaining how I should do it. :-( I have tried creating on big solaris2 partition , and then used 140G to the system , and then make a new slice the my zil , witch looked to work , at least i could add the 20G slice as log device to my pool , but then the problem came when i tried to to clone the partition map from the system SSD to the second SSD disk with this command prtvtoc /dev/rdsk/c7t0d0s2 | fmthard -s - /dev/rdsk/c7t1d0s2 it said something about overlapping partitions/slices ( unfortunately i did not save the output of the error ) but what is the right way to do this , should i create one big solaris2 partitions and then slice it up or should I create 2 separate partitions , and what is the right way to mirror both the system disk and zil log to the second SSD disk. And is i possible to do the partitioning from the installer ? ( I am installing opensolaris from the Live CD) please , hoping someone could provide me with a nice step by step howto on this , or maybe guide be through. br Per Jorgensen -- This message posted from opensolaris.org
>From my notes from mirroring a new install (I install first then mirror).You won''t need pfexec if your super-user. Inside format, fdisk twice first time delete anything there, second time it will ask you if you want to install a default Solaris2 setup. Obviously change the disk id to match your system. pfexec format fdisk (delete if required) and install standard Solaris2 pfexec prtvtoc /dev/rdsk/c1d0s2 | pfexec fmthard -s - /dev/rdsk/c2d0s2 pfexec zpool attach -f rpool c1d0s0 c2d0s0 I''ve never put a ZIL on the same disk, so can''t help there sorry. HTH, Deano -----Original Message----- From: zfs-discuss-bounces at opensolaris.org [mailto:zfs-discuss-bounces at opensolaris.org] On Behalf Of Per Jorgensen Sent: 12 January 2011 20:51 To: zfs-discuss at opensolaris.org Subject: [zfs-discuss] zil and root on the same SSD disk Hi got a brand new server with 14 x 2TB disk, and 2X160GB SSD disk , my plan was to install opensolaris on one of the SSD disk and then zfs mirror the root disk onto the second SSD disk , but since the server will handle some sync NFS write i also want to add a zil log on the same SSD disks, also mirrored. I don''t have in depth knowledge on solaris or opensolaris , and don''t know much about how partitions works on solaris. I have tried the last 2 days solving this , and reading howtos on the net , but have not been able to find any step by step howto explaining how I should do it. :-( I have tried creating on big solaris2 partition , and then used 140G to the system , and then make a new slice the my zil , witch looked to work , at least i could add the 20G slice as log device to my pool , but then the problem came when i tried to to clone the partition map from the system SSD to the second SSD disk with this command prtvtoc /dev/rdsk/c7t0d0s2 | fmthard -s - /dev/rdsk/c7t1d0s2 it said something about overlapping partitions/slices ( unfortunately i did not save the output of the error ) but what is the right way to do this , should i create one big solaris2 partitions and then slice it up or should I create 2 separate partitions , and what is the right way to mirror both the system disk and zil log to the second SSD disk. And is i possible to do the partitioning from the installer ? ( I am installing opensolaris from the Live CD) please , hoping someone could provide me with a nice step by step howto on this , or maybe guide be through. br Per Jorgensen -- This message posted from opensolaris.org _______________________________________________ zfs-discuss mailing list zfs-discuss at opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Whenever I do a root pool, ie, configure a pool using the c?t?d?s0 notation, it
will always complain about overlapping slices, since *s2 is the entire disk.
This warning seems excessive, but "-f" will ignore it.
As for ZIL, the first time I created a slice for it. This worked well, the
second time I did:
# zfs create -V 2G rpool/slog
# zfs set refreservation=2G rpool/slog
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
c9d0s0 ONLINE 0 0 0
pool: zpool
state: ONLINE
config:
NAME STATE READ WRITE CKSUM
zpool ONLINE 0 0 0
raidz1-0 ONLINE 0 0 0
c8t0d0 ONLINE 0 0 0
c8t1d0 ONLINE 0 0 0
c8t2d0 ONLINE 0 0 0
c8t3d0 ONLINE 0 0 0
c8t4d0 ONLINE 0 0 0
logs
/dev/zvol/dsk/rpool/slog ONLINE 0 0 0
Which I prefer now, as I can potentially change it size and reboot, compared to
slices that are much more static. Don''t know how it compares
performance wise, but right now the NAS is fast enough (the nic is the slowest
part).
--
This message posted from opensolaris.org