* [linux-lvm] how to remove the inactive physical volume ??
@ 2005-06-30 18:18 Sambit Nanda
2005-06-30 18:48 ` Alan Jurgensen
2005-06-30 20:02 ` Matt P
0 siblings, 2 replies; 3+ messages in thread
From: Sambit Nanda @ 2005-06-30 18:18 UTC (permalink / raw)
To: linux-lvm
Is there any command exactly oppose to pvcreate ?
when i ran thoi command
pvcreate /dev/cciss/c0d1p[5-13]
i got this error : pvcreate -- can't open physical
volume "/dev/cciss/c0d1p3" to get its size
though i have not mentioed the device c0d1p3
then i noticed from pvscan
pvscan -- inactive PV "/dev/cciss/c0d1p1" is in no VG
[1 KB]
pvscan -- inactive PV "/dev/cciss/c0d1p5" is in no VG
[9.32 GB]
pvscan -- inactive PV "/dev/cciss/c0d1p6" is in no VG
[9.32 GB]
pvscan -- inactive PV "/dev/cciss/c0d1p7" is in no VG
[4.66 GB]
.....
....
..
the c0d1p1 is acctually my Extended partion
but my pvscan also show the same device
pvscan -- inactive PV "/dev/cciss/c0d1p1" is in no VG
[1 KB]
i do not what is wrong here, so i like to remove this
enrty from my pvscan
i tried with pvmove and got error
ERROR: can't move physical extents: volume
please guide me how i will able to move the enrty ?
or what is the exact command to remove or delete all
physical volume.
If i want to remove all physical volume i created
with this error i also notice one warning message on
my primary disk. I had never seen this before ..
Warning: invalid flag 0x0000 of partition table 5 will
be corrected by w(rite)
Thanks,
Sambit Nanda
203-553-3424 (O)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] how to remove the inactive physical volume ??
2005-06-30 18:18 [linux-lvm] how to remove the inactive physical volume ?? Sambit Nanda
@ 2005-06-30 18:48 ` Alan Jurgensen
2005-06-30 20:02 ` Matt P
1 sibling, 0 replies; 3+ messages in thread
From: Alan Jurgensen @ 2005-06-30 18:48 UTC (permalink / raw)
To: LVM general discussion and development, sambitnanda
You need to setup a filter in /etc/lvm/lvm.conf.
See: man lvm.conf
Sambit Nanda wrote:
>Is there any command exactly oppose to pvcreate ?
>
>when i ran thoi command
>pvcreate /dev/cciss/c0d1p[5-13]
>
>i got this error : pvcreate -- can't open physical
>volume "/dev/cciss/c0d1p3" to get its size
>
>though i have not mentioed the device c0d1p3
>
>then i noticed from pvscan
>
>pvscan -- inactive PV "/dev/cciss/c0d1p1" is in no VG
> [1 KB]
>pvscan -- inactive PV "/dev/cciss/c0d1p5" is in no VG
> [9.32 GB]
>pvscan -- inactive PV "/dev/cciss/c0d1p6" is in no VG
> [9.32 GB]
>pvscan -- inactive PV "/dev/cciss/c0d1p7" is in no VG
> [4.66 GB]
>.....
>....
>..
>
>
>the c0d1p1 is acctually my Extended partion
>
>but my pvscan also show the same device
>pvscan -- inactive PV "/dev/cciss/c0d1p1" is in no VG
> [1 KB]
>
>i do not what is wrong here, so i like to remove this
>enrty from my pvscan
>
>i tried with pvmove and got error
>ERROR: can't move physical extents: volume
>
>please guide me how i will able to move the enrty ?
>
>or what is the exact command to remove or delete all
>physical volume.
>If i want to remove all physical volume i created
>
>
>
>with this error i also notice one warning message on
>my primary disk. I had never seen this before ..
>
>Warning: invalid flag 0x0000 of partition table 5 will
>be corrected by w(rite)
>
>
>Thanks,
>
>Sambit Nanda
>203-553-3424 (O)
>
>_______________________________________________
>linux-lvm mailing list
>linux-lvm@redhat.com
>https://www.redhat.com/mailman/listinfo/linux-lvm
>read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
>
--
----------------------------------------------------------------------
Alan W. Jurgensen - Berbee Information Networks - jurgensen@berbee.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] how to remove the inactive physical volume ??
2005-06-30 18:18 [linux-lvm] how to remove the inactive physical volume ?? Sambit Nanda
2005-06-30 18:48 ` Alan Jurgensen
@ 2005-06-30 20:02 ` Matt P
1 sibling, 0 replies; 3+ messages in thread
From: Matt P @ 2005-06-30 20:02 UTC (permalink / raw)
To: linux-lvm
On 6/30/05, Sambit Nanda <sambitnanda@yahoo.com> wrote:
> Is there any command exactly oppose to pvcreate ?
>
> when i ran thoi command
> pvcreate /dev/cciss/c0d1p[5-13]
>
> i got this error : pvcreate -- can't open physical
> volume "/dev/cciss/c0d1p3" to get its size
>
> though i have not mentioed the device c0d1p3
>
Your regular expression is broken, or atleast not functioning the way
you seem to be expecting it to. [5-13] is seen as 5 through 1 and 3.
Since "5-1" isn't a vaild range it's ignored and only the "3" is
matched, and thus you get the c0d1p3
You'll probably have to use pvcreate like this:
pvcreate /dev/cciss/c0d1p[5-9] /dev/cciss/c0d1p1[0-3]
That will pvcreate the following devices:
/dev/cciss/c0d1p5
/dev/cciss/c0d1p6
/dev/cciss/c0d1p7
/dev/cciss/c0d1p8
/dev/cciss/c0d1p9
/dev/cciss/c0d1p10
/dev/cciss/c0d1p11
/dev/cciss/c0d1p12
/dev/cciss/c0d1p13
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-06-30 20:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-30 18:18 [linux-lvm] how to remove the inactive physical volume ?? Sambit Nanda
2005-06-30 18:48 ` Alan Jurgensen
2005-06-30 20:02 ` Matt P
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).