* [linux-lvm] Partitions on same Drive
@ 2002-01-21 14:42 Rene Schumann
2002-01-21 14:49 ` Luca Berra
2002-01-21 18:25 ` James Hawtin
0 siblings, 2 replies; 5+ messages in thread
From: Rene Schumann @ 2002-01-21 14:42 UTC (permalink / raw)
To: linux-lvm@sistina.com
[-- Attachment #1.1: Type: text/plain, Size: 784 bytes --]
Hello!
I have a Problem and hope someone here can help me.
I have 2 Partitions on a drive.
[root@desktop root]# fdisk -l /dev/sdb
Festplatte /dev/sdb: 255 Köpfe, 63 Sektoren, 9730 Zylinder
Einheiten: Zylinder mit 16065 * 512 Bytes
Gerät Booten Anfang Ende Blöcke ID Dateisystemtyp
/dev/sdb1 1 4462 35840983+ c Win95 FAT32 (LBA)
/dev/sdb2 4463 9730 42315210 8e Linux LVM
I want to delete sdb1 vfat partition and use it as LVM space.
If i do a "pvcreate vg01 /dev/sdb1" it is ugly for performance because
there are 2 LVM Partions at one drive.
right?
If i do lvm partition on sdb1 and do a pvmove,
Can i resize sdb1 to fit the whole drive and after that lvm use this
full space?
thx you
mfg
Rene
[-- Attachment #1.2: Type: text/html, Size: 1453 bytes --]
[-- Attachment #2: Dies ist ein digital signierter Nachrichtenteil --]
[-- Type: application/pgp-signature, Size: 240 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [linux-lvm] Partitions on same Drive
2002-01-21 14:42 [linux-lvm] Partitions on same Drive Rene Schumann
@ 2002-01-21 14:49 ` Luca Berra
2002-01-21 15:21 ` mitch
2002-01-21 18:25 ` James Hawtin
1 sibling, 1 reply; 5+ messages in thread
From: Luca Berra @ 2002-01-21 14:49 UTC (permalink / raw)
To: linux-lvm@sistina.com
On Mon, Jan 21, 2002 at 09:42:37PM +0100, Rene Schumann wrote:
> /dev/sdb1 1 4462 35840983+ c Win95 FAT32 (LBA)
> /dev/sdb2 4463 9730 42315210 8e Linux LVM
> I want to delete sdb1 vfat partition and use it as LVM space.
> If i do a "pvcreate vg01 /dev/sdb1" it is ugly for performance because
> there are 2 LVM Partions at one drive.
> right?
> If i do lvm partition on sdb1 and do a pvmove,
> Can i resize sdb1 to fit the whole drive and after that lvm use this
> full space?
you cannot resize a PV.
if you don't create striped LVs on the two partitions i see no
significant performance problem.
L.
--
Luca Berra -- bluca@comedia.it
Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [linux-lvm] Partitions on same Drive
2002-01-21 14:49 ` Luca Berra
@ 2002-01-21 15:21 ` mitch
2002-01-22 3:01 ` Patrick Caulfield
0 siblings, 1 reply; 5+ messages in thread
From: mitch @ 2002-01-21 15:21 UTC (permalink / raw)
To: linux-lvm@sistina.com
> if you don't create striped LVs on the two partitions i see no
> significant performance problem.
Brings up a question ... can you get improved performance by striping to
multiple devices on the same SCSI channel, or do they really need to be on
separate SCSI channels for good performance? Ex: I have a fibre channel
card, and multiple drives I'm gonna hook up ... someday. Can I strip
across all the drives and expect to push fibre channel's capabilities?
-- Mitch
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [linux-lvm] Partitions on same Drive
2002-01-21 14:42 [linux-lvm] Partitions on same Drive Rene Schumann
2002-01-21 14:49 ` Luca Berra
@ 2002-01-21 18:25 ` James Hawtin
1 sibling, 0 replies; 5+ messages in thread
From: James Hawtin @ 2002-01-21 18:25 UTC (permalink / raw)
To: linux-lvm@sistina.com
On 21 Jan 2002, Rene Schumann wrote:
> I have a Problem and hope someone here can help me.
> I have 2 Partitions on a drive.
>
> [root@desktop root]# fdisk -l /dev/sdb
>
> Festplatte /dev/sdb: 255 Köpfe, 63 Sektoren, 9730 Zylinder
> Einheiten: Zylinder mit 16065 * 512 Bytes
>
> Gerät Booten Anfang Ende Blöcke ID Dateisystemtyp
> /dev/sdb1 1 4462 35840983+ c Win95 FAT32 (LBA)
> /dev/sdb2 4463 9730 42315210 8e Linux LVM
>
> I want to delete sdb1 vfat partition and use it as LVM space.
> If i do a "pvcreate vg01 /dev/sdb1" it is ugly for performance because
> there are 2 LVM Partions at one drive.
> right?
> If i do lvm partition on sdb1 and do a pvmove,
> Can i resize sdb1 to fit the whole drive and after that lvm use this
> full space?
>
I don't think you can resize a PV, however that does not really matter,
just slap another PV in place of it. When you do a lvcreate you can
specify which PV the logical volume is going to take its space from.
lvcreate -n fred_lv -L 1G jim_vg /dev/sdb1
If you wanted to do a strip you can still do it by doing
lvcreate -i 2 -n jim_lv -L 1G shela_vg /dev/sdb1 /dev/sdc1
The only time you would have any difficulties is if you wanted one of the
strips to take from sdb1 and sdb2, if your using concatinated filesystems
it really does not matter that the data is logically in two PVs if you
care about seek orders just specify /dev/sdb1 /dev/sdb2 when allocating.
James
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [linux-lvm] Partitions on same Drive
2002-01-21 15:21 ` mitch
@ 2002-01-22 3:01 ` Patrick Caulfield
0 siblings, 0 replies; 5+ messages in thread
From: Patrick Caulfield @ 2002-01-22 3:01 UTC (permalink / raw)
To: linux-lvm
On Mon, Jan 21, 2002 at 03:28:35PM -0600, mitch@mdmiller.com wrote:
> > if you don't create striped LVs on the two partitions i see no
> > significant performance problem.
>
> Brings up a question ... can you get improved performance by striping to
> multiple devices on the same SCSI channel, or do they really need to be on
> separate SCSI channels for good performance? Ex: I have a fibre channel
> card, and multiple drives I'm gonna hook up ... someday. Can I strip
> across all the drives and expect to push fibre channel's capabilities?
This does work OK provided that you don't hit the transfer limit on the SCSI
channel. If you have a fast SCSI and slow disks then striping can be beneficial.
Even an Ultra160 SCSI disk is unlikely to be sending 160MB/s continuously (it
has to seek at some time!) so, in theory, you should get some benefit.
My much maligned (and rightly so) striping graph shows that striping on my
interface works well for up to 3 disks on one fibre-channel.
Try it...!
patrick
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-01-22 3:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-21 14:42 [linux-lvm] Partitions on same Drive Rene Schumann
2002-01-21 14:49 ` Luca Berra
2002-01-21 15:21 ` mitch
2002-01-22 3:01 ` Patrick Caulfield
2002-01-21 18:25 ` James Hawtin
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.