* [linux-lvm] problem with vgcreate
@ 2002-11-22 14:08 Robert L. Harris
2002-11-22 14:12 ` Steven Lembark
2002-11-24 5:03 ` Sébastien GALLET
0 siblings, 2 replies; 5+ messages in thread
From: Robert L. Harris @ 2002-11-22 14:08 UTC (permalink / raw)
To: Linux-LVM; +Cc: robert
I'm trying to create a LVM for a system. I partitioned my drives,
rebooted and do my pvcreates but then it blows up on vgcreate. The
drives are both 18Gig, I've duplicated the partitions so they're
identicle size even though they're going to be concats, not stripes.
Here's a screen dump just made a bit readable.
root@performance:/root# pvcreate /dev/sda2
pvcreate -- physical volume "/dev/sda2" successfully created
root@performance:/root# pvcreate /dev/sdb2
pvcreate -- physical volume "/dev/sda2" successfully created
root@performance:/root# pvscan -v
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- walking through all physical volumes found
pvscan -- no valid physical volumes found
performanc:/root# vgcreate -v lvm-vg1 /dev/scsi/host0/bus0/target0/lun0/part2 /dev/scsi/host0/bus0/target1/lun0/part2
vgcreate -- checking volume group name
vgcreate -- checking volume group directory existence
vgcreate -- locking logical volume manager
vgcreate -- checking volume group "lvm-vg1" existence
vgcreate -- counting all existing volume groups
vgcreate -- reading all physical volume data from disks
vgcreate -- checking if all given physical volumes in command line are new
vgcreate -- no valid physical volumes in command line
root@performance:/root# vgcreate -v lvm-vg1 /dev/scsi/host0/bus0/target0/lun0/part2
vgcreate -- checking volume group name
vgcreate -- checking volume group directory existence
vgcreate -- locking logical volume manager
vgcreate -- checking volume group "lvm-vg1" existence
vgcreate -- counting all existing volume groups
vgcreate -- reading all physical volume data from disks
vgcreate -- checking if all given physical volumes in command line are new
vgcreate -- no valid physical volumes in command line
---
Just to verify my devices, etc
root@performance:/# mkfs -t ext2 /dev/scsi/host0/bus0/target0/lun0/part2
mke2fs 1.18, 11-Nov-1999 for EXT2 FS 0.5b, 95/08/09
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
2228224 inodes, 4454021 blocks
222701 blocks (5.00%) reserved for the super user
First data block=0
136 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000
Writing inode tables: done
Writing superblocks and filesystem accounting information:
root@performance:/root# mount /usr
root@performance:/# df -k
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/scsi/host0/bus0/target0/lun0/part1
101140 37536 58384 39% /
/dev/sda2 17536336 20 16645512 0% /usr
Thoughts???
:wq!
---------------------------------------------------------------------------
Robert L. Harris | PGP Key ID: FC96D405
DISCLAIMER:
These are MY OPINIONS ALONE. I speak for no-one else.
FYI:
perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [linux-lvm] problem with vgcreate
2002-11-22 14:08 [linux-lvm] problem with vgcreate Robert L. Harris
@ 2002-11-22 14:12 ` Steven Lembark
2002-11-22 14:19 ` Robert L. Harris
2002-11-24 5:03 ` Sébastien GALLET
1 sibling, 1 reply; 5+ messages in thread
From: Steven Lembark @ 2002-11-22 14:12 UTC (permalink / raw)
To: linux-lvm; +Cc: robert
-- "Robert L. Harris" <Robert.L.Harris@rdlg.net>
>
>
> I'm trying to create a LVM for a system. I partitioned my drives,
> rebooted and do my pvcreates but then it blows up on vgcreate. The
> drives are both 18Gig, I've duplicated the partitions so they're
> identicle size even though they're going to be concats, not stripes.
>
> Here's a screen dump just made a bit readable.
>
> root@performance:/root# pvcreate /dev/sda2
> pvcreate -- physical volume "/dev/sda2" successfully created
>
> root@performance:/root# pvcreate /dev/sdb2
> pvcreate -- physical volume "/dev/sda2" successfully created
>
> root@performance:/root# pvscan -v
> pvscan -- reading all physical volumes (this may take a while...)
> pvscan -- walking through all physical volumes found
> pvscan -- no valid physical volumes found
>
> performanc:/root# vgcreate -v lvm-vg1
> /dev/scsi/host0/bus0/target0/lun0/part2
> /dev/scsi/host0/bus0/target1/lun0/part2 vgcreate -- checking volume group
Any reason you use the devfs paths for the vgcreate and
devfsd for the pvcreate's?
--
Steven Lembark 2930 W. Palmer
Workhorse Computing Chicago, IL 60647
+1 800 762 1582
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [linux-lvm] problem with vgcreate
2002-11-22 14:12 ` Steven Lembark
@ 2002-11-22 14:19 ` Robert L. Harris
0 siblings, 0 replies; 5+ messages in thread
From: Robert L. Harris @ 2002-11-22 14:19 UTC (permalink / raw)
To: Steven Lembark; +Cc: linux-lvm, robert
Tried them both in both combinations and neither one worked. I got a
new error message after the last reboot about the partition type. It
was "linux" not 8e (Unknown according to fdisk). vgcreate is working
per below now.
Probably this bizaar hardware I'm stuck with.
Thus spake Steven Lembark (lembark@wrkhors.com):
> Date: Fri, 22 Nov 2002 14:17:01 -0600
> From: Steven Lembark <lembark@wrkhors.com>
> To: linux-lvm@sistina.com
> cc: robert@rdlg.net
> Subject: Re: [linux-lvm] problem with vgcreate
> X-Mailer: Mulberry/3.0.0a5 (Linux/x86)
>
>
>
> -- "Robert L. Harris" <Robert.L.Harris@rdlg.net>
>
> >
> >
> >I'm trying to create a LVM for a system. I partitioned my drives,
> >rebooted and do my pvcreates but then it blows up on vgcreate. The
> >drives are both 18Gig, I've duplicated the partitions so they're
> >identicle size even though they're going to be concats, not stripes.
> >
> >Here's a screen dump just made a bit readable.
> >
> >root@performance:/root# pvcreate /dev/sda2
> >pvcreate -- physical volume "/dev/sda2" successfully created
> >
> >root@performance:/root# pvcreate /dev/sdb2
> >pvcreate -- physical volume "/dev/sda2" successfully created
> >
> >root@performance:/root# pvscan -v
> >pvscan -- reading all physical volumes (this may take a while...)
> >pvscan -- walking through all physical volumes found
> >pvscan -- no valid physical volumes found
> >
> >performanc:/root# vgcreate -v lvm-vg1
> >/dev/scsi/host0/bus0/target0/lun0/part2
> >/dev/scsi/host0/bus0/target1/lun0/part2 vgcreate -- checking volume group
>
> Any reason you use the devfs paths for the vgcreate and
> devfsd for the pvcreate's?
>
>
> --
> Steven Lembark 2930 W. Palmer
> Workhorse Computing Chicago, IL 60647
> +1 800 762 1582
:wq!
---------------------------------------------------------------------------
Robert L. Harris | PGP Key ID: FC96D405
DISCLAIMER:
These are MY OPINIONS ALONE. I speak for no-one else.
FYI:
perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [linux-lvm] problem with vgcreate
2002-11-22 14:08 [linux-lvm] problem with vgcreate Robert L. Harris
2002-11-22 14:12 ` Steven Lembark
@ 2002-11-24 5:03 ` Sébastien GALLET
2002-11-24 12:40 ` Steven Lembark
1 sibling, 1 reply; 5+ messages in thread
From: Sébastien GALLET @ 2002-11-24 5:03 UTC (permalink / raw)
To: linux-lvm
----- Original Message -----
From: "Robert L. Harris" <Robert.L.Harris@rdlg.net>
To: <Linux-LVM@Sistina.com>
Cc: <robert@rdlg.net>
Sent: Friday, November 22, 2002 9:07 PM
Subject: [linux-lvm] problem with vgcreate
>
>
> I'm trying to create a LVM for a system. I partitioned my drives,
> rebooted and do my pvcreates but then it blows up on vgcreate. The
> drives are both 18Gig, I've duplicated the partitions so they're
> identicle size even though they're going to be concats, not stripes.
>
> Here's a screen dump just made a bit readable.
>
> root@performance:/root# pvcreate /dev/sda2
> pvcreate -- physical volume "/dev/sda2" successfully created
>
> root@performance:/root# pvcreate /dev/sdb2
> pvcreate -- physical volume "/dev/sda2" successfully created
Sure of that ??? ^^^^
...
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [linux-lvm] problem with vgcreate
2002-11-24 5:03 ` Sébastien GALLET
@ 2002-11-24 12:40 ` Steven Lembark
0 siblings, 0 replies; 5+ messages in thread
From: Steven Lembark @ 2002-11-24 12:40 UTC (permalink / raw)
To: linux-lvm
>> I'm trying to create a LVM for a system. I partitioned my drives,
>> rebooted and do my pvcreates but then it blows up on vgcreate. The
>> drives are both 18Gig, I've duplicated the partitions so they're
>> identicle size even though they're going to be concats, not stripes.
>>
>> Here's a screen dump just made a bit readable.
>>
>> root@performance:/root# pvcreate /dev/sda2
>> pvcreate -- physical volume "/dev/sda2" successfully created
>>
>> root@performance:/root# pvcreate /dev/sdb2
>> pvcreate -- physical volume "/dev/sda2" successfully created
> Sure of that ??? ^^^^
Just for the fun of it, if the physical volumes are still
unusable (this will wipe them out if you are using them:
for file in /dev/sd[ab]2
do
dd if=/dev/null of=$file bs=1b count=1;
pvcreate --force --verbose $file;
pvdisplay $file;
done
If you prefer to use devfs -- I do -- then replace
/dev/sd[ab]2 with /dev/scsi/hostX/target[01]/lun0/part2.
--
Steven Lembark 2930 W. Palmer
Workhorse Computing Chicago, IL 60647
+1 800 762 1582
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-11-24 12:40 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-22 14:08 [linux-lvm] problem with vgcreate Robert L. Harris
2002-11-22 14:12 ` Steven Lembark
2002-11-22 14:19 ` Robert L. Harris
2002-11-24 5:03 ` Sébastien GALLET
2002-11-24 12:40 ` Steven Lembark
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.