[indiana-discuss] SPAM *** How to create mirror from the spare partition?
James Cornell
sparcdr at gmail.com
Sat Feb 14 05:16:37 PST 2009
Jan Hlodan wrote:
> Hello,
>
> I have one disk with 3 partitions:
> 1. Windows - ntfs
> 2. OpenSolaris - zfs
> 3. Linux - ext3
>
> sh-3.2# format -e
> Searching for disks...done
>
> AVAILABLE DISK SELECTIONS:
> 0. c9d0 <DEFAULT cyl 7830 alt 2 hd 255 sec 63>
> /pci at 0,0/pci-ide at 1f,2/ide at 0/cmdk at 0,0
> Specify disk (enter its number): 0
> selecting c9d0
> NO Alt slice
> No defect list found
> Total disk size is 19457 cylinders
> Cylinder size is 16065 (512 byte) blocks
>
> Cylinders
> Partition Status Type Start End Length %
> ========= ====== ============ ===== === ====== ===
> 1 IFS: NTFS 0 5098 5099 26
> 2 Active Solaris2 5099 12931 7833 40
> 3 Linux native 12932 19456 6525 34
>
>
> I wonder to know if it's possible to use Linux partition as a mirror. I
> don't know how to create zpool on this partition.
>
> Thanks for the answer.
>
> Regards,
>
> Jan Hlodan
> _______________________________________________
> indiana-discuss mailing list
> indiana-discuss at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/indiana-discuss
>
zpool create -f mypool mirror c0d0t0s0 c0d0t0d0s1 or something of the
like... it'll completely write over whatever two you got as long as
there are two, but it won't mirror out of the box on a root pool until
it's setup and you boot it into maintenence mode, and this is an area
with other issues, it's actually fairly easy to just mirror certain
partitions/mountpoints rather than the whole thing if for some reason
you don't break it up, so either break it up or find the section where
it tells you how to fix grub on a mirror (where it's on two disks, not
just partitions). Mirroring on the same disk is quite pointless. Check
zfs documentation on opensolaris.org.
James
More information about the indiana-discuss
mailing list