* [linux-lvm] funny PV action
@ 2003-12-11 7:03 Christoph Resch
2003-12-17 5:36 ` [linux-lvm] Dual Boot with LVM Christoph Resch
0 siblings, 1 reply; 7+ messages in thread
From: Christoph Resch @ 2003-12-11 7:03 UTC (permalink / raw)
To: linux-lvm
Hi all,
may someone kindly assist me in thei quite funny behavior of LVM
i work on a runnging LVM system .. everything works as it should BUT:
when running pvscan i get
root@prime:~# pvscan
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- inactive PV "/dev/md1" of VG "system" [19.97 GB / 0 free]
pvscan -- ACTIVE PV "/dev/md2" of VG "dataraid" [13.88 GB / 0 free]
pvscan -- ACTIVE PV "/dev/md3" of VG "dataraid" [68.36 GB / 0 free]
pvscan -- total: 3 [102.24 GB] / in use: 3 [102.24 GB] / in no VG: 0 [0]
# well /dev/md1 is my system ( / , /usr, /var ,... ) it works quite fine :-o
root@prime:~# vgscan
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- found active volume group "system"
vgscan -- found active volume group "dataraid"
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program does not do a VGDA backup of your volume
groups
# well thats great ;-)
root@tttprime:~# lvscan
lvscan -- ACTIVE "/dev/dataraid/ttchip" [9 GB]
lvscan -- ACTIVE "/dev/dataraid/private" [20 GB]
lvscan -- ACTIVE "/dev/dataraid/tttech" [20 GB]
lvscan -- ACTIVE "/dev/dataraid/projects" [17 GB]
lvscan -- ACTIVE "/dev/dataraid/sandbox" [9 GB]
lvscan -- ACTIVE "/dev/dataraid/marketing+pr" [7.23 GB]
Segmentation fault
# oops i miss al my systemLVs .. still running on it ;-(
root@tttprime:~# cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root.old /initrd ext2 rw 0 0
/dev/root / ext3 rw 0 0
proc /proc proc rw 0 0
devpts /dev/pts devpts rw 0 0
/dev/md0 /boot ext2 rw 0 0
/dev/system/tmp /tmp ext3 rw 0 0
/dev/system/var /var ext3 rw 0 0
/dev/system/usr /usr ext3 rw 0 0
/dev/system/usr_local /usr/local xfs rw 0 0
/dev/dataraid/private /ttt/private xfs rw 0 0
/dev/dataraid/ttchip /ttt/ttchip xfs rw 0 0
/dev/dataraid/tttech /ttt/tttech xfs rw 0 0
/dev/dataraid/marketing+pr /ttt/tttech/company/marketing+pr xfs rw 0 0
/dev/dataraid/projects /ttt/tttech/projects xfs rw 0 0
/dev/dataraid/sandbox /ttt/tttech/projects/sandbox xfs rw 0 0
still everything runs .. but i want it to be clean .. any advice would help
thanks and best regards
-c-
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] Dual Boot with LVM
2003-12-11 7:03 [linux-lvm] funny PV action Christoph Resch
@ 2003-12-17 5:36 ` Christoph Resch
2003-12-17 5:48 ` Christoph Resch
2003-12-17 8:22 ` Jord Tanner
0 siblings, 2 replies; 7+ messages in thread
From: Christoph Resch @ 2003-12-17 5:36 UTC (permalink / raw)
To: linux-lvm
Hi Jord,
i can see the same behavior on my LVM-Installation, though i dont dual-boot. i
get this strange situation after preparing for disaster-recovery with
mondo-rescue .. since then my first PV is always inactive, but i can boot
from it and work normally ...
did you found something ? .. maybe a lvm-version problem -- on debian i use
lvm-common 1.5.9.3
lvm10 1.0.7-8
thanks for reply
-c-
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] Dual Boot with LVM
2003-12-17 5:36 ` [linux-lvm] Dual Boot with LVM Christoph Resch
@ 2003-12-17 5:48 ` Christoph Resch
2003-12-17 8:22 ` Jord Tanner
1 sibling, 0 replies; 7+ messages in thread
From: Christoph Resch @ 2003-12-17 5:48 UTC (permalink / raw)
To: linux-lvm
ok .. according to the 'devfs'-issue i found out to not have a identical /dev
on the initrd and on the system
after sync it all works perfectly again :-)
thanks anyway
-c-
Am Mittwoch 17 Dezember 2003 12:34 schrieb Christoph Resch:
> Hi Jord,
>
> i can see the same behavior on my LVM-Installation, though i dont
> dual-boot. i get this strange situation after preparing for
> disaster-recovery with mondo-rescue .. since then my first PV is always
> inactive, but i can boot from it and work normally ...
>
> did you found something ? .. maybe a lvm-version problem -- on debian i use
> lvm-common 1.5.9.3
> lvm10 1.0.7-8
>
> thanks for reply
>
> -c-
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] Dual Boot with LVM
2003-12-17 5:36 ` [linux-lvm] Dual Boot with LVM Christoph Resch
2003-12-17 5:48 ` Christoph Resch
@ 2003-12-17 8:22 ` Jord Tanner
1 sibling, 0 replies; 7+ messages in thread
From: Jord Tanner @ 2003-12-17 8:22 UTC (permalink / raw)
To: linux-lvm
To get around the devfs/no devfs problem I went with EVMS and
device-mapper in Gentoo (with devfs), and its been running sweet ever
since. EVMS runs in LVM compatibility mode, so I can work with the LVs
in both RedHat and Gentoo.
On Wed, 2003-12-17 at 03:34, Christoph Resch wrote:
> Hi Jord,
>
> i can see the same behavior on my LVM-Installation, though i dont dual-boot. i
> get this strange situation after preparing for disaster-recovery with
> mondo-rescue .. since then my first PV is always inactive, but i can boot
> from it and work normally ...
>
> did you found something ? .. maybe a lvm-version problem -- on debian i use
> lvm-common 1.5.9.3
> lvm10 1.0.7-8
>
> thanks for reply
>
> -c-
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
--
Jord Tanner <jord@indygecko.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [linux-lvm] Dual Boot with LVM
@ 2003-12-01 15:41 Jord Tanner
2003-12-01 16:52 ` Luca Berra
0 siblings, 1 reply; 7+ messages in thread
From: Jord Tanner @ 2003-12-01 15:41 UTC (permalink / raw)
To: linux-lvm
I posted a message on this, but no-one has an answer. I try again.
I dual boot my machine between RedHat 9 and Gentoo 1.4. Both use the
same PV, and share several LVs. In RedHat all operates as expected. In
Gentoo, the LVs are usable, but lvscan, lvcreate, etc give the following
error:
root@gecko root # lvscan
lvscan -- ERROR "pv_status_all_pv_of_vg(): no PV" getting status of
volume group "Volume00"
Running pvscan in Gentoo shows the PV to be inactive:
root@gecko root # pvscan
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- inactive PV "/dev/ide/host0/bus0/target0/lun0/part2" of VG
"Volume00" [53.71 GB / 33.32 GB free]
pvscan -- total: 1 [53.71 GB] / in use: 1 [53.71 GB] / in no VG: 0 [0]
Yet, the LVs can be mounted without trouble.
What can I do to correct this?
--
Jord Tanner <jord@indygecko.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] Dual Boot with LVM
2003-12-01 15:41 Jord Tanner
@ 2003-12-01 16:52 ` Luca Berra
0 siblings, 0 replies; 7+ messages in thread
From: Luca Berra @ 2003-12-01 16:52 UTC (permalink / raw)
To: linux-lvm
On Mon, Dec 01, 2003 at 01:39:48PM -0800, Jord Tanner wrote:
>root@gecko root # pvscan
>pvscan -- reading all physical volumes (this may take a while...)
>pvscan -- inactive PV "/dev/ide/host0/bus0/target0/lun0/part2" of VG
>"Volume00" [53.71 GB / 33.32 GB free]
>pvscan -- total: 1 [53.71 GB] / in use: 1 [53.71 GB] / in no VG: 0 [0]
>
uhm
redhat 9 does not use devfs,
gentoo does,
good luck :))
try removing devfs from gentoo kernel
no "devfs=nomount" won't do.
L.
--
Luca Berra -- bluca@comedia.it
Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \
^ permalink raw reply [flat|nested] 7+ messages in thread
* [linux-lvm] Dual Boot with LVM
@ 2003-11-27 13:44 Jord Tanner
0 siblings, 0 replies; 7+ messages in thread
From: Jord Tanner @ 2003-11-27 13:44 UTC (permalink / raw)
To: linux-lvm
I installed RedHat 9 with LVM, and that works beautifully. I recently
created a new logical volume and installed Gentoo Linux. I can dual boot
into Gentoo and Redhat with out trouble. The swap, /home, and /usr/local
partitions are shared between Gentoo and Redhat.
LVM works without trouble in Redhat, however, I have some problems in
Gentoo. pvscan shows the PV to be inactive, and lvscan gives an error.
The actual logical volumes can be mounted and used without trouble. The
other lv* command appear to work, but lvscan does not. Is this something
to worry about? What can I do to fix this?
Output of pvscan etc is below:
This is in Gentoo:
root@gecko root # pvscan -h
Logical Volume Manager 1.0.7
Heinz Mauelshagen, Sistina Software 28/03/2003 (IOP 10)
root@gecko root # uname -a
Linux gecko 2.4.23_pre8-gss #1 SMP Wed Nov 26 13:08:00 PST 2003 i686
Intel(R) Pentium(R) 4 CPU 2.40GHz GenuineIntel GNU/Linux
root@gecko root # vgscan
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- found active volume group "Volume00"
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program does not do a VGDA backup of your volume
group
root@gecko root # pvscan
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- inactive PV "/dev/ide/host0/bus0/target0/lun0/part2" of VG
"Volume00" [53.71 GB / 33.32 GB free]
pvscan -- total: 1 [53.71 GB] / in use: 1 [53.71 GB] / in no VG: 0 [0]
root@gecko root # lvscan
lvscan -- ERROR "pv_status_all_pv_of_vg(): no PV" getting status of
volume group "Volume00"
root@gecko root # df -h
Filesystem Size Used Avail Use% Mounted on
/dev/Volume00/LogVol04
5.0G 3.5G 1.5G 70% /
/dev/Volume00/LogVol02
4.9G 1.9G 2.8G 41% /usr/local
/dev/Volume00/LogVol03
4.9G 1.5G 3.2G 32% /home
none 252M 0 252M 0% /dev/shm
This is is Redhat 9:
root@gecko root]# uname -a
Linux gecko 2.4.20-20.9smp #1 SMP Mon Aug 18 11:32:15 EDT 2003 i686 i686
i386 GN
U/Linux
[root@gecko root]# pvscan -h
Logical Volume Manager 1.0.3
Heinz Mauelshagen, Sistina Software 19/02/2002 (IOP 10)
pvscan -- scan for physical volumes
pvscan [-d|--debug] {-e|--exported | -n/--novolumegroup} [-h|--help]
[-s|--short] [-u|--uuid] [-v[v]|--verbose [--verbose]]
[--version]
[root@gecko root]# vgscan
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- found active volume group "Volume00"
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program does not do a VGDA backup of your volume
group
[root@gecko root]# pvscan
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- ACTIVE PV "/dev/hda2" of VG "Volume00" [53.71 GB / 33.32 GB
free]
pvscan -- total: 1 [53.71 GB] / in use: 1 [53.71 GB] / in no VG: 0 [0]
[root@gecko root]# lvscan
lvscan -- ACTIVE "/dev/Volume00/LogVol01" [4.88 GB]
lvscan -- ACTIVE "/dev/Volume00/LogVol03" [4.88 GB]
lvscan -- ACTIVE "/dev/Volume00/LogVol02" [4.88 GB]
lvscan -- ACTIVE "/dev/Volume00/LogVol00" [752 MB]
lvscan -- ACTIVE "/dev/Volume00/LogVol04" [5 GB]
lvscan -- 5 logical volumes with 20.38 GB total in 1 volume group
lvscan -- 5 active logical volumes
[root@gecko root]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/Volume00/LogVol01
4.9G 3.3G 1.3G 72% /
/dev/hda1 99M 20M 75M 21% /boot
/dev/Volume00/LogVol03
4.9G 1.5G 3.2G 32% /home
none 251M 0 251M 0% /dev/shm
/dev/Volume00/LogVol02
4.9G 1.9G 2.8G 41% /usr/local
--
Jord Tanner <jord@indygecko.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2003-12-17 8:22 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-11 7:03 [linux-lvm] funny PV action Christoph Resch
2003-12-17 5:36 ` [linux-lvm] Dual Boot with LVM Christoph Resch
2003-12-17 5:48 ` Christoph Resch
2003-12-17 8:22 ` Jord Tanner
-- strict thread matches above, loose matches on Subject: below --
2003-12-01 15:41 Jord Tanner
2003-12-01 16:52 ` Luca Berra
2003-11-27 13:44 Jord Tanner
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.