Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Jul 2005 08:48:49 +0200
From:      John Oxley <john@yoafrica.com>
To:        questions@freebsd.org
Subject:   Software RAID-1 - Swap partition
Message-ID:  <20050701064849.GA1159@yoafrica.com>

index | next in thread | raw e-mail

[-- Attachment #1 --]
Hi,

I followed http://people.freebsd.org/~rse/mirror/ to create a software
RAID mirror.  I have two 75G drives in the machine.  I allocated 74G to
the filesystem on each drive and 1 G to swap.  When I blanked ad1 and
created ad1s1, I didn't notice that it had taken up the whole of the
drive.  Can I shrink the mirror partition and have two swap partitions,
or if that is not possible, how would I go about creating a "mirrored"
swap partition?

# bsdlabel /dev/mirror/gm0s1
# /dev/mirror/gm0s1:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:   524288        0    4.2BSD     2048 16384 32776 
  c: 156296322        0    unused        0     0      
  d:  1048576   524288    4.2BSD     2048 16384     8 
  e: 20971520  1572864    4.2BSD     2048 16384 28552 
  f: 132643453 22544384    4.2BSD     2048 16384 28552 


# gmirror list
Geom name: gm0
State: COMPLETE
Components: 2
Balance: round-robin
Slice: 4096
Flags: NONE
GenID: 0
SyncID: 1
ID: 2442074130
Providers:
1. Name: mirror/gm0
   Mediasize: 80026361344 (75G)
   Sectorsize: 512
   Mode: r4w4e2
Consumers:
1. Name: ad0
   Mediasize: 80026361856 (75G)
   Sectorsize: 512
   Mode: r1w1e1
   State: ACTIVE
   Priority: 0
   Flags: NONE
   GenID: 0
   SyncID: 1
   ID: 707256281
2. Name: ad1
   Mediasize: 80026361856 (75G)
   Sectorsize: 512
   Mode: r1w1e1
   State: ACTIVE
   Priority: 0
   Flags: NONE
   GenID: 0
   SyncID: 1
   ID: 655505428


-- 
John Oxley
Systems Administrator
Yo!Africa
E-Mail:  john at yoafrica.com
Tel:     +263 4 858404

[-- Attachment #2 --]
0	*H
010	+0	*H
008ѭ0
	*H
0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA0
050531065132Z
060531065132Z0C10UThawte Freemail Member1 0	*H
	john@yoafrica.com0"0
	*H
0
fB괙pC/bl	AD"FTXS0wHO~(+$I;z!R5){럴δ箢+[T:Y[e\)b$|?قe(P];VRqF2*n^Rx*'qAT:{Ҩ+T؁<x-9T%BSKo^+opdPa.UbTWƏgYO&e€}4wŨS
HOɿ9.0,0U0john@yoafrica.com0U00
	*H
WĎ.O*]lՕ@3ir14?
-?'?gED|I\|B6g GfE?	Gny
k. (mZ+,0?0
0
	*H
010	UZA10UWestern Cape10U	Cape Town10U
Thawte Consulting1(0&UCertification Services Division1$0"UThawte Personal Freemail CA1+0)	*H
	personal-freemail@thawte.com0
030717000000Z
130716235959Z0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA00
	*H
0Ħ<UsUNʙZhup[v:aQP
0cZ,p+Z?qV˯<6$*+w=+>@dקe*TH<a@dr`00U00CU<0:08642http://crl.thawte.com/ThawtePersonalFreemailCA.crl0U0)U"0 010UPrivateLabel2-1380
	*H
HP.
fgCL!6-6/P p<ab:~t%Pb'qW%ݩ9 Oe_N4[5MwV!x!5$F]_eO1D0@0i0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CAѭ0	+0	*H
	1	*H
0	*H
	1
050701064849Z0#	*H
	1|Ȫ6V&J0R	*H
	1E0C0
*H
0*H
0
*H
@0+0
*H
(0
	*H
^qfo:!>\Uh
Te4(~ORMlxS|@:Q0#V-˓X4!Z
b^m3SL8ܸW[&fCxVl݅Pf],qxL9snnB&݆M~)ES|a:>]*/
r=\`M%$gްQ@UG7i
ci2iV-iyҭ|0,dt/̅w;Uy
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050701064849.GA1159>