- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: old LVM config detected during rebuilt
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2005 05:24 AM
тАО09-30-2005 05:24 AM
old LVM config detected during rebuilt
Distro: Debian 3.1r0a
Kernel: 2.6.8-2
Chipset: Nvidia NForce chipset/SATA controllers
I installed the disks like so:
PATA primary master: 200 G Seagate
PATA primary slave ( temporary ): DVD rom drive
PATA secondary master: 200G Seagate
SATA 1: 250 G Seagate
SATA 2: 250 G Seagate
SATA 3: 250 G Seagate
SATA 4: Removable hard drive caddy ( empty for now )
When I run through the Debian 3.1 r0a install, I get to the disk partitioning and see that the PATA disks used to part of a raid array, and so were the SATA disks. I remake the partitions like so ( yes I am aware that a mixed array with PATA and SATA will not perform well ):
PATA PM:
-partition 1: 128M RAID ( raid 1 with PATA SM partition 1 for /boot )
-partition 2: 180 G RAID ( raid 5 large array )
PATA SM:
-partition 1: 128M RAID ( raid 1 with PATA PM partition 1 for /boot )
-partition 2: 180 G RAID ( raid 5 large array )
SATA 1:
-partition 1: 180 G RAID ( raid 5 large array )
-partition 2: 70 G RAID ( raid 5 smaller array )
SATA 2:
-partition 1: 180 G RAID ( raid 5 large array )
-partition 2: 70 G RAID ( raid 5 smaller array )
SATA 3:
-partition 1: 180 G RAID ( raid 5 large array )
-partition 2: 70 G RAID ( raid 5 smaller array )
I write the partition tables and start the raid tools, making the following arrays:
MD0:
128 M RAID 1 mirror for /boot formated ext3
MD1:
720 G RAID 5 stripe for storage. Marked as LVM with pvcreate /dev/md/1
MD2:
140 G RAID 5 stripe for storage. Marked as LVM volume with pvcreate /dev/md/2
Next I run:
vgcreate -s 32M -n vg0 /dev/md/1 /dev/md/2
Which succeeds. So I make my logical volume like so:
lvcreate -L 500G -n backup vg0
This fails with the error incorrect metadata in volume group vg0. So I ran a pv/vg/lvscan and I see the left overs from other LVM setups. there is another volume group with logical volumes that is being picked up.
So my question is what do I need to do to wipe all traces of LVM off these disks. I want to make the disks as if they had been brand new from the store. I recall a method something like this:
dd if=/dev/zero of=
I can't remember if that will just wipe the disk or if it will irreparably damage it. Is the above command going to over write all the information with zero's including the LVM information? Is the LVM information contained in the MBR? Will that command remove the MBR?
Thanks,
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2005 05:59 AM
тАО09-30-2005 05:59 AM
Re: old LVM config detected during rebuilt
man pvcreate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2005 06:12 AM
тАО09-30-2005 06:12 AM
Re: old LVM config detected during rebuilt
I pvcreate /dev/md/1 and /dev/md/0
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2005 08:31 AM
тАО09-30-2005 08:31 AM
Re: old LVM config detected during rebuilt
for i in `ls /dev/*/host*/*/*/*/disc`
do
echo "wiping disk $i"
dd if=/dev/zero of=$i bs=1024K
sync
echo "$i wiped"
done
disks are wiping as we speak. What I lack in elegance I make up for in with brute force and ignorance :)
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2005 06:47 PM
тАО10-02-2005 06:47 PM
Re: old LVM config detected during rebuilt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2005 04:00 AM
тАО10-03-2005 04:00 AM
Re: old LVM config detected during rebuilt
pvremove failed without the -ff switch because they were part of volume groups. But even after the pvremove, upon reboot the previous lvm configs were picked up. Overwriting everything with zero's did the trick.
--Dave