public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] LVM problem
@ 2006-12-24 11:54 Jorge Almeida
  2006-12-24 12:23 ` [gentoo-user] " Regis Decamps
  0 siblings, 1 reply; 5+ messages in thread
From: Jorge Almeida @ 2006-12-24 11:54 UTC (permalink / raw
  To: gentoo-user

I'm about to start using LVM. I setup a secondary partition with fdisk,
created a physical volume with pvcreate, made a group volume with
vgcreate (out of only that physical volume), created several logical
volumes with lvcreate, and installed filesystems on the logical volumes.
One volume is swap, and /proc/meminfo says it is active. Other volumes I
can mount and write onto.
So, what's the problem? The problem is that vgdisplay, vgscan, vgchange,
pvdisplay, lvdisplay all say there are no volumes to be found!
What did I miss?

One other thing i don't understand is what to do regarding init scripts.

(The kernel gentoo-sources 2.6.18-r2 has build-in support for "Multiple devices driver support
(RAID and LVM)" and "Device mapper support". )

TIA.
-- 
Jorge Almeida
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [gentoo-user]  Re: LVM problem
  2006-12-24 11:54 [gentoo-user] LVM problem Jorge Almeida
@ 2006-12-24 12:23 ` Regis Decamps
  2006-12-24 12:39   ` Jorge Almeida
  0 siblings, 1 reply; 5+ messages in thread
From: Regis Decamps @ 2006-12-24 12:23 UTC (permalink / raw
  To: gentoo-user

Jorge Almeida wrote:
> I'm about to start using LVM.

LVM-user or LVM2?

> So, what's the problem? The problem is that vgdisplay, vgscan, vgchange,
> pvdisplay, lvdisplay all say there are no volumes to be found!
> What did I miss?

Have you modified lvm.conf?

Can you provide /etc/lvm/.cache?

> One other thing i don't understand is what to do regarding init scripts.

The gentoo init script already manages lvm.

Cheers,

-- 
Régis

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] Re: LVM problem
  2006-12-24 12:23 ` [gentoo-user] " Regis Decamps
@ 2006-12-24 12:39   ` Jorge Almeida
  2006-12-24 17:00     ` Richard Fish
  0 siblings, 1 reply; 5+ messages in thread
From: Jorge Almeida @ 2006-12-24 12:39 UTC (permalink / raw
  To: gentoo-user

On Sun, 24 Dec 2006, Regis Decamps wrote:

> Jorge Almeida wrote:
>>  I'm about to start using LVM.
>
> LVM-user or LVM2?
LVM2. (Don't know about the former...)
>
>>  So, what's the problem? The problem is that vgdisplay, vgscan, vgchange,
>>  pvdisplay, lvdisplay all say there are no volumes to be found!
>>  What did I miss?
>
> Have you modified lvm.conf?
Yes, I changed the filter line:
 	filter = [ "a|/dev/hdb]|", "r/.*/" ]
And, of course, this is the problem! I copied the line in
http://www.gentoo.org/doc/en/lvm2.xml, but since I have a physical
volume only at /dev/hdb5, I deleted the '[a' and forgot about the
closing ']'! Things are working now.
>
> Can you provide /etc/lvm/.cache?
Here it goes, although I suppose it's not needed any more:
persistent_filter_cache {
         valid_devices=[
                 "/dev/disk/by-id/ata-SAMSUNG_SP0802N_S00JJ30X191824-part2",
                 "/dev/disk/by-path/pci-0000:00:1f.1-ide-0:1-part1",
                 "/dev/disk/by-id/ata-SAMSUNG_SP0802N_S00JJ30X191824-part3",
                 "/dev/disk/by-path/pci-0000:00:1f.1-ide-0:1-part3",
                 "/dev/disk/by-id/ata-SAMSUNG_SP0802N_S00JJ30X191824-part1",
                 "/dev/hdb6",
                 "/dev/disk/by-uuid/203d7cab-0dd9-4a52-a376-02ee721de134",
                 "/dev/disk/by-path/pci-0000:00:1f.1-ide-0:1-part2",
                 "/dev/disk/by-uuid/d6d0a50f-16dc-4425-9047-66758c5b13d9",
                 "/dev/hdb5",
                 "/dev/disk/by-uuid/3a5288ad-f1a4-4370-a5ed-6058467de4e8",
                 "/dev/disk/by-uuid/38415f62-cea0-4c2a-aee2-567932993d2d",
                 "/dev/disk/by-id/ata-SAMSUNG_SP0802N_S00JJ30X191824-part6",
                 "/dev/hdb1",
                 "/dev/disk/by-id/ata-SAMSUNG_SP0802N_S00JJ30X191824-part5",
                 "/dev/disk/by-path/pci-0000:00:1f.1-ide-0:1-part5",
                 "/dev/hdb2",
                 "/dev/disk/by-path/pci-0000:00:1f.1-ide-0:1-part6",
                 "/dev/hdb3"
         ]
}

>
>>  One other thing i don't understand is what to do regarding init scripts.
>
> The gentoo init script already manages lvm.
>
Could you elaborate on this? What init script? Something in /etc/init.d?
Something to be managed by rc-update?
>
Thanks. (Great list, where you can get help on XMAS eve!)
-- 
Jorge
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] Re: LVM problem
  2006-12-24 12:39   ` Jorge Almeida
@ 2006-12-24 17:00     ` Richard Fish
  2006-12-24 18:12       ` Jorge Almeida
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Fish @ 2006-12-24 17:00 UTC (permalink / raw
  To: gentoo-user

On 12/24/06, Jorge Almeida <jalmeida@math.ist.utl.pt> wrote:
> Could you elaborate on this? What init script? Something in /etc/init.d?
> Something to be managed by rc-update?

/sbin/rc starts up lvm volumes, provided you have "lvm" in
RC_VOLUME_ORDER in /etc/conf.d/rc.  The actual startup of lvm occurs
in /lib/rcscripts/addons/lvm-start.sh.

-Richard
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] Re: LVM problem
  2006-12-24 17:00     ` Richard Fish
@ 2006-12-24 18:12       ` Jorge Almeida
  0 siblings, 0 replies; 5+ messages in thread
From: Jorge Almeida @ 2006-12-24 18:12 UTC (permalink / raw
  To: gentoo-user

On Sun, 24 Dec 2006, Richard Fish wrote:

> On 12/24/06, Jorge Almeida <jalmeida@math.ist.utl.pt> wrote:
>>  Could you elaborate on this? What init script? Something in /etc/init.d?
>>  Something to be managed by rc-update?
>
> /sbin/rc starts up lvm volumes, provided you have "lvm" in
> RC_VOLUME_ORDER in /etc/conf.d/rc.  The actual startup of lvm occurs
> in /lib/rcscripts/addons/lvm-start.sh.
>
OK, thank you. /etc/conf.d/rc has the default values and so it
JustWorks. I suppose that's why I couldn't find anything about this
issue in the docs (gentoo+tldp).

Cheers.
-- 
Jorge
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-12-24 18:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-24 11:54 [gentoo-user] LVM problem Jorge Almeida
2006-12-24 12:23 ` [gentoo-user] " Regis Decamps
2006-12-24 12:39   ` Jorge Almeida
2006-12-24 17:00     ` Richard Fish
2006-12-24 18:12       ` Jorge Almeida

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox