Date: Mon, 25 Sep 2000 15:33:46 EST From: "Alistair M" <tlli@hotmail.com> To: freebsd-questions@freebsd.org Subject: raid1 on vinum Message-ID: <LAW2-F56vnCexGFzdV300002fe4@hotmail.com>
next in thread | raw e-mail | index | archive | help
Hi there, I am trying to mirror the whole OS onto a second disk I have on my machine. The two disks are exactly the same. I am currently running with FreeBSD 4.1. This is my config file: drive d1 device /dev/ad2a drive d2 device /dev/ad2e drive d3 device /dev/ad2f drive d4 device /dev/ad2g drive d5 device /dev/ad3e drive d6 device /dev/ad3f drive d7 device /dev/ad3g drive d8 device /dev/ad3h # Set up volumes and mirrored plexes volume root plex org concat sd length 0 drive d1 plex org concat sd length 0 drive d5 volume root_home plex org concat sd length 0 drive d2 plex org concat sd length 0 drive d6 volume var plex org concat sd length 0 drive d3 plex org concat sd length 0 drive d7 volume usr plex org concat sd length 0 drive d4 plex org concat sd length 0 drive d8 *This is my disklabel configuration for the two disks: /dev/ad2 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 12582912 0 vinum 1024 8192 16 # (Cyl. 0 - 783*) b: 2283960 37748736 swap # (Cyl. 2349*- 2491*) c: 40032696 0 unused 0 0 # (Cyl. 0 - 2491*) e: 6291456 12582912 vinum 1024 8192 16 # (Cyl. 783*- 1174*) f: 6291456 18874368 vinum 1024 8192 16 # (Cyl. 1174*- 1566*) g: 12582912 25165824 vinum 1024 8192 16 # (Cyl. 1566*- 2349*) /dev/ad3 8 partitions: # size offset fstype [fsize bsize bps/cpg] c: 40032696 0 unused 0 0 # (Cyl. 0 - 2491*) e: 12582912 0 vinum 1024 8192 16 # (Cyl. 0 - 783*) f: 6291456 12582912 vinum 1024 8192 16 # (Cyl. 783*- 1174*) g: 6291456 18874368 vinum 1024 8192 16 # (Cyl. 1174*- 1566*) h: 12582912 25165824 vinum 1024 8192 16 # (Cyl. 1566*- 2349*) * Please note for /dev/ad3, I did not create any partitions, I simply did a disklabel and added the partitions shown, so that they match (in size) /dev/ad2. I am expecting that when mirroring a filesystem or partition (eg. /usr) you don't need to actually copy the data across. vinum(8) stated that I would need to start a volumes subdisks: "When you create a volume with multiple plexes, vinum does not automatically initialize the plexes...In order to synchronize them with the first plex, you must start their subdisks, which causes vinum to copy the data from a plex which is in the up state." This is the output from doing the vinum "create -f /etc/vinum.cfg" command: 8 drives: D d1 State: up Device /dev/ad2a Avail: 0/6144 MB (0%) D d2 State: up Device /dev/ad2e Avail: 0/3072 MB (0%) D d3 State: up Device /dev/ad2f Avail: 0/3072 MB (0%) D d4 State: up Device /dev/ad2g Avail: 0/6144 MB (0%) D d5 State: up Device /dev/ad3e Avail: 0/6144 MB (0%) D d6 State: up Device /dev/ad3f Avail: 0/3072 MB (0%) D d7 State: up Device /dev/ad3g Avail: 0/3072 MB (0%) D d8 State: up Device /dev/ad3h Avail: 0/6144 MB (0%) 4 volumes: V root State: up Plexes: 2 Size: 6143 MB V root_home State: up Plexes: 2 Size: 3071 MB V var State: up Plexes: 2 Size: 3071 MB V usr State: up Plexes: 2 Size: 6143 MB 8 plexes: P root.p0 C State: up Subdisks: 1 Size: 6143 MB P root.p1 C State: faulty Subdisks: 1 Size: 6143 MB P root_home.p0 C State: up Subdisks: 1 Size: 3071 MB P root_home.p1 C State: faulty Subdisks: 1 Size: 3071 MB P var.p0 C State: up Subdisks: 1 Size: 3071 MB P var.p1 C State: faulty Subdisks: 1 Size: 3071 MB P usr.p0 C State: up Subdisks: 1 Size: 6143 MB P usr.p1 C State: faulty Subdisks: 1 Size: 6143 MB 8 subdisks: S root.p0.s0 State: up PO: 0 B Size: 6143 MB S root.p1.s0 State: empty PO: 0 B Size: 6143 MB S root_home.p0.s0 State: up PO: 0 B Size: 3071 MB S root_home.p1.s0 State: empty PO: 0 B Size: 3071 MB S var.p0.s0 State: up PO: 0 B Size: 3071 MB S var.p1.s0 State: empty PO: 0 B Size: 3071 MB S usr.p0.s0 State: up PO: 0 B Size: 6143 MB S usr.p1.s0 State: empty PO: 0 B Size: 6143 MB * Why does my volumename.p1's say faulty? * If I can ignore the 'faulty' states, do I now do a: vinum init -w root_home.p1 and then edit rc.conf and add the disks to "vinum_drives", and start_vinum="YES"? I am not sure where to go from here. Much appreciated. Alistair. _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?LAW2-F56vnCexGFzdV300002fe4>