LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-26-2016, 05:41 PM   #1
usao
Member
 
Registered: Dec 2011
Location: Chandler, AZ
Posts: 286

Rep: Reputation: Disabled
LVM filtering question


I have a disk:

Disk /dev/sda: 8001.5 GB, 8001529667584 bytes

which im trying to create a PV on.
I tried both of the following filters, but it's still saying that it's excluded by filter.

filter = [ "a/.*/" ]
filter = [ "a|^/dev/sda$|", "r/.*/" ]

# pvcreate /dev/sda
Device /dev/sda not found (or ignored by filtering).
 
Old 10-26-2016, 06:58 PM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
If pvcreate sees that the device currently has partitions defined, it will refuse to use it. You can either use a partitioning tool and delete the existing partitions (pvcreate will warn that it sees the DOS MBR signature, but will offer to wipe that and continue), or you can zero the entire MBR ("dd if=/dev/zero of=/dev/sda count=1").

Either way destroys the existing partitioning. I hope that's what you intended.
 
1 members found this post helpful.
Old 10-26-2016, 11:45 PM   #3
usao
Member
 
Registered: Dec 2011
Location: Chandler, AZ
Posts: 286

Original Poster
Rep: Reputation: Disabled
Thanks, that was the problem.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] [LVM] pvcreate - ignored by filtering SierraBravo Linux - Newbie 2 11-20-2015 08:09 AM
Question for mac adress filtering. mkp Linux - Newbie 4 12-07-2009 04:20 PM
Filtering devices using LVM zeograz Linux - General 2 09-04-2007 03:26 PM
PPP filtering question wootletootle Slackware 2 06-14-2005 04:53 PM
mail filtering question andrewb758 Linux - Networking 0 08-20-2003 06:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration