[rhn-users] opposite command of pvcreate ???
Ray Stell
stellr at cns.vt.edu
Thu Jun 30 21:10:01 UTC 2005
does pvremove not work?
[root at peanut ~]# uname -r
2.6.9-5.0.5.EL
# lvm help
Available lvm commands:
Use 'lvm help <command>' for more information
dumpconfig Dump active configuration
formats List available metadata formats
help Display help for commands
lvchange Change the attributes of logical volume(s)
lvcreate Create a logical volume
lvdisplay Display information about a logical volume
lvextend Add space to a logical volume
lvmchange With the device mapper, this is obsolete and does nothing.
lvmdiskscan List devices that may be used as physical volumes
lvmsadc Collect activity data
lvmsar Create activity report
lvreduce Reduce the size of a logical volume
lvremove Remove logical volume(s) from the system
lvrename Rename a logical volume
lvresize Resize a logical volume
lvs Display information about logical volumes
lvscan List all logical volumes in all volume groups
pvchange Change attributes of physical volume(s)
pvcreate Initialize physical volume(s) for use by LVM
pvdata Display the on-disk metadata for physical volume(s)
pvdisplay Display various attributes of physical volume(s)
pvmove Move extents from one physical volume to another
pvremove Remove LVM label(s) from physical volume(s)
pvresize Resize a physical volume in use by a volume group
pvs Display information about physical volumes
pvscan List all physical volumes
segtypes List available segment types
vgcfgbackup Backup volume group configuration(s)
vgcfgrestore Restore volume group configuration
vgchange Change volume group attributes
vgck Check the consistency of volume group(s)
vgconvert Change volume group metadata format
vgcreate Create a volume group
vgdisplay Display volume group information
vgexport Unregister volume group(s) from the system
vgextend Add physical volumes to a volume group
vgimport Register exported volume group with system
vgmerge Merge volume groups
vgmknodes Create the special files for volume group devices in /dev
vgreduce Remove physical volume(s) from a volume group
vgremove Remove volume group(s)
vgrename Rename a volume group
vgs Display information about volume groups
vgscan Search for all volume groups
vgsplit Move physical volumes into a new volume group
version Display software and driver version information
On Thu, Jun 30, 2005 at 11:00:36AM -0700, 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
>
> Thansk
>
>
>
> Thanks,
>
> Sambit Nanda
> 203-553-3424 (O)
>
> _______________________________________________
> rhn-users mailing list
> rhn-users at redhat.com
> https://www.redhat.com/mailman/listinfo/rhn-users
--
============================================================
Ray Stell stellr at vt.edu (540) 231-4109 Tempus fugit 28^D
More information about the rhn-users
mailing list