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
smime.p7s
Description: S/MIME cryptographic signature