Hi,
I am rather new to FreeBSD; just installed it the last weekend. Now I'm facing the problem of running out of space (especially on /usr). So I bought a new disk, putted it in my computer and started to read about all the possibilities one has to set up a disk the advanced way.
I ended with the following idea:
1) to partition the whole disk with GUID partition table
2) have a rather small root partiton as first partition to be able to boot
3) make out of the rest one big partition, encrypt it with geli
and put it in one vinum
1) was no problem of all; on 2) I was struggling a bit originally I thought on putting the root also inside the encrypted part, but I wasn't sure if it is possible to put /boot on a seperate partition (So that's actually my first question – is it possible?).
And with 3) I'm not advancing at all; setting up geli was no problem at all. But it seems like gvinum doesn't like my idea. :/
Anyway, here some output:
As I understood it, there should now also appear the *.pl? files in /dev/gvinum. Anyway I tried:
Am I missing something or is it simply this combination that doesn't work?
I just saw that dmesg gives:
Regards,
blox
I am rather new to FreeBSD; just installed it the last weekend. Now I'm facing the problem of running out of space (especially on /usr). So I bought a new disk, putted it in my computer and started to read about all the possibilities one has to set up a disk the advanced way.

I ended with the following idea:
1) to partition the whole disk with GUID partition table
2) have a rather small root partiton as first partition to be able to boot
3) make out of the rest one big partition, encrypt it with geli
and put it in one vinum
1) was no problem of all; on 2) I was struggling a bit originally I thought on putting the root also inside the encrypted part, but I wasn't sure if it is possible to put /boot on a seperate partition (So that's actually my first question – is it possible?).
And with 3) I'm not advancing at all; setting up geli was no problem at all. But it seems like gvinum doesn't like my idea. :/
Anyway, here some output:
Code:
taris# uname -r
8.2-PRERELEASE
taris# gpart show ad6
=> 34 488397101 ad6 GPT (233G)
34 128 1 freebsd-boot (64K)
162 4194304 2 freebsd-ufs (2.0G)
4194466 484202669 3 freebsd-vinum (231G)
taris# geli attach /dev/ad6p3
Enter passphrase:
taris# geli list
Geom name: ad6p3.eli
State: ACTIVE
EncryptionAlgorithm: AES-XTS
KeyLength: 128
Crypto: software
UsedKey: 0
Flags: NONE
Providers:
1. Name: ad6p3.eli
Mediasize: 247911763968 (231G)
Sectorsize: 4096
Mode: r0w0e0
Consumers:
1. Name: ad6p3
Mediasize: 247911766528 (231G)
Sectorsize: 512
Mode: r1w1e1
taris# cat ad6p3.eli
drive samsung_250gb device /dev/ad6p3.eli
volume home
plex org concat
sd length 50G drive samsung_250gb
taris# gvinum list
0 drives:
0 volumes:
0 plexes:
0 subdisks:
taris# gvinum create ad6p3.eli
taris# gvinum list
1 drive:
D samsung_250gb State: up /dev/ad6p3.eli A: 185226/236426 MB (78%)
1 volume:
V home State: up Plexes: 1 Size: 50 GB
1 plex:
P home.p0 C State: up Subdisks: 1 Size: 50 GB
1 subdisk:
S home.p0.s0 State: up D: samsung_250gb Size: 50 GB
taris# ls -la /dev/gvinum/*
crw-r----- 1 root operator 0, 148 Feb 2 20:32 /dev/gvinum/home
As I understood it, there should now also appear the *.pl? files in /dev/gvinum. Anyway I tried:
Code:
taris# newfs /dev/gvinum/home
newfs: wtfs: 512 bytes at sector 104857599: Invalid argument
taris# mount /dev/gvinum/home /mnt/
mount: /dev/gvinum/home : Invalid argument
Am I missing something or is it simply this combination that doesn't work?
I just saw that dmesg gives:
Code:
GEOM_VINUM: writing vhdr failed on drive samsung_250gb, errno 22
g_vfs_done():gvinum/home[READ(offset=65536, length=8192)]error = 22
Regards,
blox