quick slice question..

B. Cook bcook at poughkeepsieschools.org
Wed Sep 24 14:33:17 UTC 2008


On Sep 23, 2008, at 3:33 PM, B. Cook wrote:

> I have slices a, d, e, f, g, and h.. I wouldn't be able to get one  
> more would I?
>
> using gmirror and RELENG_7_0..
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org 
> "

So after reading many messages regarding sysinstall and gmirror not  
liking to work with each other..

what fdisk, dd, disklabel commands am I looking for to create a second  
slice in my gmirror raid?

fdisk
******* Working on device /dev/mirror/gm0 *******
parameters extracted from in-core disklabel are:
cylinders=30394 heads=255 sectors/track=63 (16065 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=30394 heads=255 sectors/track=63 (16065 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 63, size 488279547 (238417 Meg), flag 80 (active)
	beg: cyl 0/ head 1/ sector 1;
	end: cyl 1023/ head 254/ sector 63
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>


fdisk -p
# /dev/mirror/gm0
g c30394 h255 s63
p 1 0xa5 63 488279547
a 1

at the moment I have a /dev/mirror/gm0s1d that is /usr/local/www I  
need to make that into a slice so that I can mount /usr/local/www and / 
usr/local/dev.

So my current fstab looks like this for this entry:
/dev/mirror/gm0s1d	/usr/local/www		ufs	rw		2	2


what I think I am looking to end up with is this:
/dev/mirror/gm0s2a	/usr/local/www		ufs	rw		2	2
/dev/mirror/gm0s2b	/usr/local/dev		ufs	rw		2	2

Would it be easier to break the raid, add the slice then recreate the  
raid again?

Thanks again in advance.


More information about the freebsd-questions mailing list