I have a question. I have a disk that solaris 10 & zfs is installed. I wanted to add the other disks and replace this with the other. (totally three others). If I do this, I add some other disks, would the data be written immediately? Or only the new data is mirrored? Or I should use snapshots to replace that? Thanks! -- This message posted from opensolaris.org
On 04/17/10 09:34 AM, MstAsg wrote:> I have a question. I have a disk that solaris 10& zfs is installed. I wanted to add the other disks and replace this with the other. (totally three others). If I do this, I add some other disks, would the data be written immediately? Or only the new data is mirrored? Or I should use snapshots to replace that? > >If you add a disk as a mirror, it will be resilvered as an exact copy (mirror!) of the original. -- Ian.
On Apr 16, 2010, at 2:49 PM, Ian Collins wrote:> On 04/17/10 09:34 AM, MstAsg wrote: >> I have a question. I have a disk that solaris 10& zfs is installed. I wanted to add the other disks and replace this with the other. (totally three others). If I do this, I add some other disks, would the data be written immediately? Or only the new data is mirrored? Or I should use snapshots to replace that? >> >> > If you add a disk as a mirror, it will be resilvered as an exact copy (mirror!) of the original.I''m sure Ian meant "attach a disk as a mirror" rather than "add" :-). In ZFS terminology "attach" is used for mirrors (RAID-1) and "add" is used for stripes (RAID-0) -- richard ZFS storage and performance consulting at http://www.RichardElling.com ZFS training on deduplication, NexentaStor, and NAS performance Las Vegas, April 29-30, 2010 http://nexenta-vegas.eventbrite.com
MstAsg, Is this the root pool disk? I''m not sure I''m following what you want to do but I think you want to attach a disk to create a mirrored configuration, then detach the original disk. If this is a ZFS root pool that contains the Solaris OS, then following these steps: 1. Attach disk-2. # zpool attach rpool disk-1 disk-2 2. Use the zpool status command to make sure the disk has resilvered completely. 3. Apply the bootblocks to disk-2: # installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/disk-2 4. Test that you can boot from disk-2. 5. Detach disk-1. # zpool detach rpool disk-1 If this isn''t the root pool, then you can skip steps 2-4. Thanks, Cindy On 04/16/10 15:34, MstAsg wrote:> I have a question. I have a disk that solaris 10 & zfs is installed. I wanted to add the other disks and replace this with the other. (totally three others). If I do this, I add some other disks, would the data be written immediately? Or only the new data is mirrored? Or I should use snapshots to replace that? > > > Thanks!
If this isn''t a root pool disk, then skip steps 3-4. Letting the replacement disk resilver before removing the original disk is good advice for any configuration. cs On 04/16/10 16:15, Cindy Swearingen wrote:> MstAsg, > > Is this the root pool disk? > > I''m not sure I''m following what you want to do but I think you want > to attach a disk to create a mirrored configuration, then detach > the original disk. > > If this is a ZFS root pool that contains the Solaris OS, then > following these steps: > > 1. Attach disk-2. > > # zpool attach rpool disk-1 disk-2 > > 2. Use the zpool status command to make sure the disk has resilvered > completely. > > 3. Apply the bootblocks to disk-2: > > # installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/disk-2 > > 4. Test that you can boot from disk-2. > > 5. Detach disk-1. > > # zpool detach rpool disk-1 > > If this isn''t the root pool, then you can skip steps 2-4. > > Thanks, > > Cindy > > On 04/16/10 15:34, MstAsg wrote: >> I have a question. I have a disk that solaris 10 & zfs is installed. I >> wanted to add the other disks and replace this with the other. >> (totally three others). If I do this, I add some other disks, would >> the data be written immediately? Or only the new data is mirrored? Or >> I should use snapshots to replace that? >> >> >> Thanks! > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
On 04/17/10 10:09 AM, Richard Elling wrote:> On Apr 16, 2010, at 2:49 PM, Ian Collins wrote: > > >> On 04/17/10 09:34 AM, MstAsg wrote: >> >>> I have a question. I have a disk that solaris 10& zfs is installed. I wanted to add the other disks and replace this with the other. (totally three others). If I do this, I add some other disks, would the data be written immediately? Or only the new data is mirrored? Or I should use snapshots to replace that? >>> >>> >>> >> If you add a disk as a mirror, it will be resilvered as an exact copy (mirror!) of the original. >> > I''m sure Ian meant "attach a disk as a mirror" rather than "add" :-). In ZFS > terminology "attach" is used for mirrors (RAID-1) and "add" is used for > stripes (RAID-0) >Good catch Richard! -- Ian.