OK, got it working.
Code:
fremont root # pvcreate /dev/ubd/3
pvcreate -- physical volume "/dev/ubd/3" successfully created
fremont root # pvcreate /dev/ubd/4
pvcreate -- physical volume "/dev/ubd/4" successfully created
fremont root # vgcreate test_vg /dev/hd/disc3/disc
vgcreate -- INFO: using default physical extent size 32 MB
vgcreate -- INFO: maximum logical volume size is 2 Terabyte
vgcreate -- doing automatic backup of volume group "test_vg"
vgcreate -- volume group "test_vg" successfully created and activated
fremont root # vgextend test_vg /dev/hd/disc4/disc
vgextend -- INFO: maximum logical volume size is 2 Terabyte
vgextend -- doing automatic backup of volume group "test_vg"
vgextend -- volume group "test_vg" successfully extended
fremont root # lvcreate -L512M --name lv_test_01 test_vg
lvcreate -- doing automatic backup of "test_vg"
lvcreate -- logical volume "/dev/test_vg/lv_test_01" successfully created
fremont root # lvcreate -L512M --name lv_test_02 test_vg
lvcreate -- doing automatic backup of "test_vg"
lvcreate -- logical volume "/dev/test_vg/lv_test_02" successfully created
fremont root # pvdisplay /dev/ubd/*
pvdisplay -- no physical volume identifier on "/dev/ubd/0"
pvdisplay -- no physical volume identifier on "/dev/ubd/1"
pvdisplay -- no physical volume identifier on "/dev/ubd/2"
--- Physical volume ---
PV Name /dev/hd/disc3/disc
VG Name test_vg
PV Size 769 MB [1574912 secs] / NOT usable 32.19 MB [LVM: 128 KB]
PV# 1
PV Status available
Allocatable yes (but full)
Cur LV 2
PE Size (KByte) 32768
Total PE 23
Free PE 0
Allocated PE 23
PV UUID 5VB60Q-4GPP-02NX-fLRG-CAvN-LxL6-8rKpPF
--- Physical volume ---
PV Name /dev/hd/disc4/disc
VG Name test_vg
PV Size 769 MB [1574912 secs] / NOT usable 32.19 MB [LVM: 128 KB]
PV# 2
PV Status available
Allocatable yes
Cur LV 1
PE Size (KByte) 32768
Total PE 23
Free PE 14
Allocated PE 9
PV UUID WxgLOx-g0CK-XMtm-E84C-eqp9-8y8i-5RhLkS
fremont root # vgdisplay
--- Volume group ---
VG Name test_vg
VG Access read/write
VG Status available/resizable
VG # 0
MAX LV 256
Cur LV 2
Open LV 0
MAX LV Size 2 TB
Max PV 256
Cur PV 2
Act PV 2
VG Size 1.44 GB
PE Size 32 MB
Total PE 46
Alloc PE / Size 32 / 1 GB
Free PE / Size 14 / 448 MB
VG UUID 8PjlOV-6UI2-772f-kQdH-sOvh-67u2-0CkjPf
fremont root # lvscan
lvscan -- ACTIVE "/dev/test_vg/lv_test_01" [512 MB]
lvscan -- ACTIVE "/dev/test_vg/lv_test_02" [512 MB]
lvscan -- 2 logical volumes with 1 GB total in 1 volume group
lvscan -- 2 active logical volumes
fremont root # mkreiserfs /dev/test_vg/lv_test_01
mkreiserfs 3.6.17 (2003 www.namesys.com)
8>< 8>< 8>< 8>< 8>< 8>< 8>< 8>< 8>< 8>< 8><
boring stuff deleted
8>< 8>< 8>< 8>< 8>< 8>< 8>< 8>< 8>< 8>< 8><
ReiserFS is successfully created on /dev/test_vg/lv_test_01.
fremont root # mkreiserfs /dev/test_vg/lv_test_02
mkreiserfs 3.6.17 (2003 www.namesys.com)
8>< 8>< 8>< 8>< 8>< 8>< 8>< 8>< 8>< 8>< 8><
boring stuff deleted
8>< 8>< 8>< 8>< 8>< 8>< 8>< 8>< 8>< 8>< 8><
ReiserFS is successfully created on /dev/test_vg/lv_test_02.
fremont root # mkdir /mnt/test_01
fremont root # mkdir /mnt/test_02
fremont root # mount /dev/test_vg/lv_test_01 /mnt/test_01
fremont root # mount /dev/test_vg/lv_test_02 /mnt/test_02
fremont root # mount
/dev/ubd/0 on / type ext3 (rw)
none on /proc type proc (rw)
none on /dev type devfs (rw)
none on /dev/shm type tmpfs (rw)
/dev/test_vg/lv_test_01 on /mnt/test_01 type reiserfs (rw)
/dev/test_vg/lv_test_02 on /mnt/test_02 type reiserfs (rw)
There is a major weirdness that I still don't understand:
Code:
fremont root # vgcreate test_vg /dev/ubd/3
vgcreate -- no valid physical volumes in command line
Using /dev/ubd/3 doesn't work with vgcreate, but dev/hd/disc3/disc does. Weirder still, /dev/ubd/3 does work with pvcreate. I think this is a Gentooism. Certainly confused me for a while!
By the way, there is a bad looking message during boot:
Code:
* Setting up the Logical Volume Manager...FATAL: Could not load /lib/modules/2.4.26-linode31-1um/modules.dep: No such file or directory [ ok ]
but I think it doesn't matter. Just don't understand why module loading is being attempted when all the good stuff is built into the kernel anyway.