From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rene Schumann Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-/jZsU5he6lew3V9Up3pN" Message-Id: <1011645757.7846.12.camel@desktop.athome.dyndns.org> MIME-Version: 1.0 Subject: [linux-lvm] Partitions on same Drive Sender: linux-lvm-admin@sistina.com Errors-To: linux-lvm-admin@sistina.com Reply-To: linux-lvm@sistina.com List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: Date: Mon Jan 21 14:42:02 2002 List-Id: To: "linux-lvm@sistina.com" --=-/jZsU5he6lew3V9Up3pN Content-Type: multipart/alternative; boundary="=-6+p6oRH0RNZTTEMW/3Zd" --=-6+p6oRH0RNZTTEMW/3Zd Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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=F6pfe, 63 Sektoren, 9730 Zylinder Einheiten: Zylinder mit 16065 * 512 Bytes Ger=E4t Booten Anfang Ende Bl=F6cke 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?=20 thx you mfg Rene --=-6+p6oRH0RNZTTEMW/3Zd Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

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    &n= bsp; Ende   Blöcke   ID  Dateisystemtyp
/dev/sdb1           =   1      4462  35840983+   c&n= bsp; Win95 FAT32 (LBA)
/dev/sdb2          4463 &= nbsp;    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 be= cause 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 s= pace?=20

thx you
mfg
Rene --=-6+p6oRH0RNZTTEMW/3Zd-- --=-/jZsU5he6lew3V9Up3pN Content-Type: application/pgp-signature; name=signature.asc Content-Description: Dies ist ein digital signierter Nachrichtenteil -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Weitere Infos: siehe http://www.gnupg.org iD8DBQA8TH098DAU7YSZUNERAvsyAJ9WFlVnkfPjsGFzN+RUzp0aEV7LawCfbS66 M1J6/lCdlo4x7NfspUKZRDQ= =wmWX -----END PGP SIGNATURE----- --=-/jZsU5he6lew3V9Up3pN-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luca Berra Subject: Re: [linux-lvm] Partitions on same Drive Message-Id: <20020121214908.F22618@colombina.comedia.it> References: <1011645757.7846.12.camel@desktop.athome.dyndns.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1011645757.7846.12.camel@desktop.athome.dyndns.org>; from Rene@athome.dyndns.org on Mon, Jan 21, 2002 at 09:42:37PM +0100 Sender: linux-lvm-admin@sistina.com Errors-To: linux-lvm-admin@sistina.com Reply-To: linux-lvm@sistina.com List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: Date: Mon Jan 21 14:49:02 2002 List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 / \ From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: Re: [linux-lvm] Partitions on same Drive In-Reply-To: <20020121214908.F22618@colombina.comedia.it> Message-Id: MIME-Version: 1.0 Sender: linux-lvm-admin@sistina.com Errors-To: linux-lvm-admin@sistina.com Reply-To: linux-lvm@sistina.com List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: Date: Mon Jan 21 15:21:02 2002 List-Id: Content-Type: TEXT/PLAIN; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Hawtin Subject: Re: [linux-lvm] Partitions on same Drive In-Reply-To: <1011645757.7846.12.camel@desktop.athome.dyndns.org> Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Sender: linux-lvm-admin@sistina.com Errors-To: linux-lvm-admin@sistina.com Reply-To: linux-lvm@sistina.com List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: Date: Mon Jan 21 18:25:01 2002 List-Id: Content-Type: TEXT/PLAIN; charset="iso-8859-1" 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. >=20 > [root@desktop root]# fdisk -l /dev/sdb >=20 > Festplatte /dev/sdb: 255 K=F6pfe, 63 Sektoren, 9730 Zylinder > Einheiten: Zylinder mit 16065 * 512 Bytes >=20 > Ger=E4t Booten Anfang Ende Bl=F6cke ID Dateisystemtyp > /dev/sdb1 1 4462 35840983+ c Win95 FAT32 (LBA) > /dev/sdb2 4463 9730 42315210 8e Linux LVM >=20 > 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?=20 >=20 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick Caulfield Subject: Re: [linux-lvm] Partitions on same Drive Message-Id: <20020122090008.GD1244@tykepenguin.com> References: <20020121214908.F22618@colombina.comedia.it> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Sender: linux-lvm-admin@sistina.com Errors-To: linux-lvm-admin@sistina.com Reply-To: linux-lvm@sistina.com List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: Date: Tue Jan 22 03:01:02 2002 List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-lvm@sistina.com 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