Erinevus lehekülje "Vinum gvinum ja geom" redaktsioonide vahel
Allikas: Kuutõrvaja
(ei näidata sama kasutaja 6 vahepealset redaktsiooni) | |||
1. rida: | 1. rida: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
===vinum=== | ===vinum=== | ||
− | |||
− | |||
− | |||
Starting up Vinum Early Enough for the Root Filesystem '''/boot/loader.conf''' | Starting up Vinum Early Enough for the Root Filesystem '''/boot/loader.conf''' | ||
55. rida: | 9. rida: | ||
geom_vinum_load="YES" | geom_vinum_load="YES" | ||
vinum.autostart="YES" | vinum.autostart="YES" | ||
− | |||
fdisk -i teha | fdisk -i teha | ||
61. rida: | 14. rida: | ||
disklabel -e devname | disklabel -e devname | ||
− | |||
− | |||
stripe | stripe | ||
71. rida: | 22. rida: | ||
sd length 128m drive c | sd length 128m drive c | ||
sd length 128m drive d | sd length 128m drive d | ||
− | |||
− | |||
mirroring | mirroring | ||
83. rida: | 32. rida: | ||
plex org concat | plex org concat | ||
sd length 76000M drive d2 | sd length 76000M drive d2 | ||
− | |||
gvinum create -f /etc/vinum.conf | gvinum create -f /etc/vinum.conf | ||
hiljem newfs -v | hiljem newfs -v | ||
− | |||
===gstripe=== | ===gstripe=== | ||
119. rida: | 66. rida: | ||
fsck_ffs /dev/stripe/data | fsck_ffs /dev/stripe/data | ||
− | |||
− | |||
===gmirror=== | ===gmirror=== | ||
− | |||
katse# gmirror label -vnb round-robin gm0 /dev/da1 | katse# gmirror label -vnb round-robin gm0 /dev/da1 | ||
130. rida: | 74. rida: | ||
katse# gmirror load | katse# gmirror load | ||
katse# gmirror insert gm0 /dev/da2 | katse# gmirror insert gm0 /dev/da2 | ||
− | |||
newfs /dev/mirror/gm0 | newfs /dev/mirror/gm0 | ||
mount /dev/mirror/gm0s1d /mnt | mount /dev/mirror/gm0s1d /mnt | ||
− | + | raid 10 | |
− | |||
kettaid neil ad1 ad2 ad3 ad4 | kettaid neil ad1 ad2 ad3 ad4 |
Viimane redaktsioon: 24. november 2009, kell 19:58
vinum
Starting up Vinum Early Enough for the Root Filesystem /boot/loader.conf
vinum_load="YES"
/boot/loader.conf grub start
geom_vinum_load="YES" vinum.autostart="YES"
fdisk -i teha disklabel -w disklabel -e devname
stripe
drive c device /dev/da5h drive d device /dev/da6h volume stripe plex org striped 512k sd length 128m drive c sd length 128m drive d
mirroring
drive d1 device /dev/ad2s1a drive d2 device /dev/ad3s1a volume mirror setupstate
plex org concat sd length 76000M drive d1 plex org concat sd length 76000M drive d2
gvinum create -f /etc/vinum.conf
hiljem newfs -v
gstripe
kldload geom_mirror
/boot/loader.conf geom_stripe_load="YES"
gstripe label -v -s 4096 data /dev/ad2 /dev/ad4 newfs /dev/stripe/data mount /dev/stripe/data /mnt/tank2 df -h /dev/stripe/data 289G 4.0K 266G 0% /mnt/tank2
cat /var/run/dmesg.boot | grep "ad" gstripe list umount /dev/stripe/data tunefs -m 2 -o space /dev/stripe/data tunefs: minimum percentage of free space changes from 8% to 2% tunefs: should optimize for space with minfree < 8% tunefs: optimization preference changes from time to space
mount /dev/stripe/data /mnt/tank2 /dev/stripe/data 289G 4.0K 283G 0% /mnt/tank2
-m 2 ütleb, et minfree peaks 2% olema ja -o space optimiseerib space'le, mitte access time'le aga kiiremat kaablit vaja, udma33 sucks ASS
fsck_ffs /dev/stripe/data
gmirror
katse# gmirror label -vnb round-robin gm0 /dev/da1 Metadata value stored on /dev/da1. Done. katse# gmirror load katse# gmirror insert gm0 /dev/da2
newfs /dev/mirror/gm0 mount /dev/mirror/gm0s1d /mnt
raid 10
kettaid neil ad1 ad2 ad3 ad4
gmirror label -vnb round-robin gm0 /dev/da1 gmirror load gmirror insert gm0 /dev/da2 gmirror label -vnb round-robin gm1 /dev/da3 gmirror insert gm1 /dev/da4 gstripe label -v -s 4096 data /dev/mirror/gm0 /dev/mirror/gm1 newfs /dev/stripe/data mount /dev/stripe/data /mnt