Untitled Document
|
Setting Up Vinum
|
FreeBSD 4.6-RELEASE
The Digitalpimp Collection
Ben Pfountz
November 4, 2002
|
Note: plexes must be on slices, not on raw partitions!
To set up a new vinum volume
- Make partitions for big volume using fdisk interface within the /stand/sysinstall
utility.
- Label space in partitions with no mount point using the label editor within
the /stand/sysinstall
utility.
- Format each label with: newfs
/dev/ad5s1e (use your partition of course)
- Re-Label each label using disklabel
-e, changing fstype to 'vinum'
- create the vinum config file (this is for my 3 drive stripe): /usr/local/etc/vinum.conf
drive prima device
/dev/ad4s1e
drive prisl device /dev/ad5s1e
drive secma device /dev/ad6s1e
volume pincushon
plex org striped 64k name diskarray1
sd length 0 drive prima
sd length 0 drive prisl
sd length 0 drive secma
- Create the volume using: vinum
crate -f /usr/local/etc/vinum.conf
- Initizlize the volume using: vinum
init -w diskarray1
- Format the new volume: newfs
-v /dev/vinum/pincushon
- Add line to /etc/rc.conf: start_vinum="YES"
- Add line to fstab
/dev/vinum/pincushon
/mnt/data ufs rw 0 0
To enable a volume that has already been created
| /dev/vinum/pincushon |
/mnt/data |
ufs |
rw |
0 |
0 |
To add another drive to a concat plex
Note: This ONLY works on a concat plex. This will not work on the config example
earlier in this file.
- Partition, Label, and format the new space
- Attatch the subdisk to the plex:
vinum create
drive secsl device
/dev/ad7s1e
sd name diskarray1.s2
drive secsl len 0
^d
vinum attatch diskarray1.s2
diskarray1
vinum init -w diskarray1.s2
dont forget to UNMOUT THE PARTITION!!!
umount /dev/vinum/pincushon
growfs /dev/vinum/pincushon
Last Resort Restore
Sometimes something may corrupt your array index. If you have not changed the
layout of your array, and therefore your config file matches your array layout,
this may bring back your data:
- create the exact vinum.conf file to match your drive layout
- obliterate the current drive config: vinum
resetconfig
- initialize the vinum volume again and mount
|