[OpenIndiana-discuss] Formating tricks
Reginald Beardsley
pulaskite at yahoo.com
Sat Jul 19 16:43:35 UTC 2014
I'm assuming you want to use Microsoft disk partitions for non-Solaris uses.
Use fdisk to create the partitions you want interavtively
use format to create slices in the Solaris partition interactively
then use zpool to create the mirror
Both fdisk and format have reasonably good help information when run interactively. Obviously don't expect to preserve data on the disk doing this.
FWIW on my backup server I selected 100% solaris in fdisk and then created 2 slices, s0 and s1, with format. The s0 slice is 100 GB for a mirrored rpool and the rest of the disk (~1.9 TB) in s1 is used for a RAIDZ pool.
Reg
--------------------------------------------
On Sat, 7/19/14, Brogyányi József <brogyi at gmail.com> wrote:
Subject: [OpenIndiana-discuss] Formating tricks
To: "Discussion list for OpenIndiana" <openindiana-discuss at openindiana.org>
Date: Saturday, July 19, 2014, 11:26 AM
I've seen on the Internet the next
trick but it was not so clear for me.
The rpool mirror not occupy the whole disk.
The short question is how to do that?
When I uses the whole disk the next codes are working:
pfexec fdisk -B c6t0d0p0 ### I think "-B" is not good in
this case.
pfexec prtvtoc /dev/rdsk/c5t0d0s2 | pfexec fmthard -s -
/dev/rdsk/c6t0d0s2
pfexec zpool attach -f rpool c5t0d0s0 c6t0d0s0
pfexec installgrub -fm /boot/grub/stage1 /boot/grub/stage2
/dev/rdsk/c6t0d0s0
So how to modify above code if I'd like to use 3
partitions?
s0 is for rpool mirror
p2 for whatever you want
p3 for whatever you want
Please correct my thoughts. Thanks.
Brogyi
_______________________________________________
openindiana-discuss mailing list
openindiana-discuss at openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss
More information about the openindiana-discuss
mailing list