devsk
2010-Apr-24 20:45 UTC
[zfs-discuss] Disk/Partition replacement - do partition begin/end/offsets matter?
One of my pools (backup pool) has a disk which I suspect may be going south. I have a replacement disk of the same size. The original pool was using one of the partitions towards the end of the disk. I want to move the partition to the beginning of the disk on the new disk. Does ZFS store/use partition start/end/offsets of partitions etc? Or is it just about: 1. Export the pool. 2. dd if=<old_partition> of=<new_partition> 3. Take the old disk out 4. Import the pool. I think the question in nutshell is: Do the partition begin/end matter if the partition is same size? -- This message posted from opensolaris.org
Chris Gerhard
2010-Apr-25 16:57 UTC
[zfs-discuss] Disk/Partition replacement - do partition begin/end/offsets matter?
> One of my pools (backup pool) has a disk which I > suspect may be going south. I have a replacement disk > of the same size. The original pool was using one of > the partitions towards the end of the disk. I want to > move the partition to the beginning of the disk on > the new disk. > > Does ZFS store/use partition start/end/offsets of > partitions etc? Or is it just about: > > 1. Export the pool. > 2. dd if=<old_partition> of=<new_partition> > 3. Take the old disk out > 4. Import the pool.Better to mirror onto the new disk and then remove the old disk. Then you only copy the blocks that are used.> > I think the question in nutshell is: Do the partition > begin/end matter if the partition is same size?No. --chrris -- This message posted from opensolaris.org