Re: clearforeignconfig not clearing foreign config
Irritatingly, a reboot of the server has made the foreign state "go away". What's annoying is even removing/reinserting the drive didn't clear this, only a reboot did. Mark. -- Mark Watts BSc RHCE MBCS Senior Systems Engineer, Managed Services Manpower www.QinetiQ.com QinetiQ - Delivering customer-focused solutions GPG Key: http://www.linux-corner.info/mwatts.gpg signature.asc Description: This is a digitally signed message part ___ Linux-PowerEdge mailing list Linux-PowerEdge@dell.com https://lists.us.dell.com/mailman/listinfo/linux-poweredge Please read the FAQ at http://lists.us.dell.com/faq
Re: clearforeignconfig not clearing foreign config
On Tue, 2010-02-09 at 10:47 -0700, Stephen Dowdy wrote: > Mark Watts wrote: > > OK, here's what I have: > > > > - Running system with a single-disk RAID-0 (disk 0:0:0) > > - Spare disk of same model/capacity, from another PERC5 (disk 0:0:1) > > > > I want to be able to get into a state where I can raid-level-migrate and > > convert the current virtual disk (0:0:0) into a RAID-1 mirror. > > > > Currently, the fact that disk 0:0:1 contains a foreign config is > > preventing this. > > > > I do, however, have a spare 1950/PERC5 chassis I can put the disk in, > > although I can't see any way in the PERC bios to clear any configuration > > present on the disk - clearing the foreign config on a different PERC > > doesn't seem to do that in quite the way you expect. > > > > Mark > Mark, > > Does the LSI MegaCLI utility work for you? > > MegaCli -CfgForeign -Clear [x] -aN|-a0,1,2|-aALL > x - index of foreign configurations. Optional. All by default. > > and if you want to completely clear the entire drive: > > MegaCli -PDClear -Start|-Stop|-ShowProg |-ProgDsply > -PhysDrv [E0:S0,E1:S1,...] -aN|-a0,1,2|-aALL > > Something like: > MegaCli -pdclear -start -physdrv '[32:1]' -a0 > > (often the internal drive enclosure is "32", and i presume your drive > will be > in enclosure slot "1") > > --stephen It's giving me slightly conflicting results: # /opt/MegaRAID/MegaCli/MegaCli -CfgForeign -Scan -a0 There is no foreign configuration on controller 0. # /opt/MegaRAID/MegaCli/MegaCli -pdInfo -PhysDrv[8:1] -a0 Enclosure Device ID: 8 Slot Number: 1 Device Id: 1 Sequence Number: 11 Media Error Count: 0 Other Error Count: 0 Predictive Failure Count: 0 Last Predictive Failure Event Seq Number: 0 Raw Size: 70007MB [0x88bb93a Sectors] Non Coerced Size: 69495MB [0x87bb93a Sectors] Coerced Size: 69376MB [0x878 Sectors] Firmware state: Unconfigured(good) SAS Address(0): 0x5000c50004901ba1 SAS Address(1): 0x0 Connected Port Number: 1 Inquiry Data: SEAGATE ST373455SS S5133LQ0XWSY This Drive Is Foreign. I have just done a full clear of the drive history: # /opt/MegaRAID/MegaCli/MegaCli -pdClear -start -PhysDrv[8:1] -a0 And it does appear to have cleared the drive - OMSA and MegaCli gave me a progress bar, but its still showing as Foreign in OMSA and through MegaCli. Can anyone explain the mismatch between the controller state and the disk state? It would certainly appear to be the disk I need to reset, not the controller. Mark. -- Mark Watts BSc RHCE MBCS Senior Systems Engineer, Managed Services Manpower www.QinetiQ.com QinetiQ - Delivering customer-focused solutions GPG Key: http://www.linux-corner.info/mwatts.gpg signature.asc Description: This is a digitally signed message part ___ Linux-PowerEdge mailing list Linux-PowerEdge@dell.com https://lists.us.dell.com/mailman/listinfo/linux-poweredge Please read the FAQ at http://lists.us.dell.com/faq
re: clearforeignconfig not clearing foreign config
Clearing a foreign config action is done to the controller, not the pdisk. http://support.dell.com/support/edocs/software/svradmin/6.2/en/CLI/HTML/storage.htm#wp1078885 omconfig storage controller action=clearforeignconfig controller=1 Ben Gordy -Original Message- From: linux-poweredge-bounces-Lists On Behalf Of linux-poweredge-request-Lists Sent: Tuesday, February 09, 2010 12:00 PM To: linux-poweredge-Lists Subject: Linux-PowerEdge Digest, Vol 68, Issue 29 Send Linux-PowerEdge mailing list submissions to linux-poweredge@dell.com To subscribe or unsubscribe via the World Wide Web, visit https://lists.us.dell.com/mailman/listinfo/linux-poweredge or, via email, send a message with subject or body 'help' to linux-poweredge-requ...@dell.com You can reach the person managing the list at linux-poweredge-ow...@dell.com When replying, please edit your Subject line so it is more specific than "Re: Contents of Linux-PowerEdge digest..." Today's Topics: 1. Re: clearforeignconfig not clearing foreign config (Mark Watts) 2. RE: clearforeignconfig not clearing foreign config (patrick_b...@dell.com) 3. Re: OMSA 6.2 install issues... (John Oliver) 4. RE: clearforeignconfig not clearing foreign config (Mark Watts) 5. Re: clearforeignconfig not clearing foreign config (Stephen Dowdy) -- Message: 1 Date: Tue, 09 Feb 2010 16:28:15 + From: Mark Watts Subject: Re: clearforeignconfig not clearing foreign config To: linux-poweredge Message-ID: <1265732895.2410.3.ca...@mwatts.eris.qinetiq.com> Content-Type: text/plain; charset="utf-8" On Tue, 2010-02-09 at 10:21 -0600, Paul M. Dyer wrote: > Hi, > > I use dd and write zeros on top of the signature. That data is stored at > the end of the drive, so it takes a hours get it done. > > dd if=/dev/zero of=/dev/sd{whatever} bs=64k > > Paul > How does one do that when the controller won't let me do anything with the drive? Mark. -- Mark Watts BSc RHCE MBCS Senior Systems Engineer, Managed Services Manpower www.QinetiQ.com QinetiQ - Delivering customer-focused solutions GPG Key: http://www.linux-corner.info/mwatts.gpg -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part Url : http://lists.us.dell.com/pipermail/linux-poweredge/attachments/20100209/2e7b316b/attachment-0001.sig ---------- Message: 2 Date: Tue, 9 Feb 2010 10:30:28 -0600 From: Subject: RE: clearforeignconfig not clearing foreign config To: , Message-ID: <3858ca5b52d32044b672d8997ed536f1076e72b...@ausx7mcps301.amer.dell.com> Content-Type: text/plain; charset="us-ascii" I probably should also warn you that the operations I have described are data destructive (i.e. could result in loss of data/loss of OS functionality). So use at your own risk. -Original Message- From: linux-poweredge-bounces-Lists On Behalf Of Boyd, Patrick Sent: Tuesday, February 09, 2010 10:28 AM To: pmd...@ctgcentral2.com; linux-poweredge-Lists Subject: RE: clearforeignconfig not clearing foreign config Clearforeign only removes drives in foreign state. These drives are online. To get rid of this configuration you either need to delete the virtual disk or to delete all the virtual disks you can use the reset config command. -Original Message- From: linux-poweredge-bounces-Lists On Behalf Of Paul M. Dyer Sent: Tuesday, February 09, 2010 10:22 AM To: linux-poweredge-Lists Subject: Re: clearforeignconfig not clearing foreign config Hi, I use dd and write zeros on top of the signature. That data is stored at the end of the drive, so it takes a hours get it done. dd if=/dev/zero of=/dev/sd{whatever} bs=64k Paul - Original Message - From: "Mark Watts" To: linux-poweredge@dell.com Sent: Tuesday, February 9, 2010 10:03:52 AM (GMT-0600) America/Chicago Subject: clearforeignconfig not clearing foreign config How are you supposed to clear the configuration on a disk previously used on a PERC 5/i? # omconfig storage controller action=clearforeignconfig controller=0 Command successful! # omconfig storage pdisk action=clear controller=0 pdisk=0:0:1 Operation disabled. Read, action=clear # omreport storage pdisk controller=0 List of Physical Disks on Controller PERC 5/i Integrated (Embedded) Controller PERC 5/i Integrated (Embedded) ID: 0:0:0 Status: Ok Name : Physical Disk 0:0:0 State : Online Failure Predicted : No Progress : Not Applicable Bus Protocol : SAS Media : HDD Capacity : 67.75 GB (72746008576 bytes) Used RAID Dis
Re: clearforeignconfig not clearing foreign config
Mark Watts wrote: > On Tue, 2010-02-09 at 10:21 -0600, Paul M. Dyer wrote: >> Hi, >> >> I use dd and write zeros on top of the signature. That data is stored at >> the end of the drive, so it takes a hours get it done. >> >> dd if=/dev/zero of=/dev/sd{whatever} bs=64k >> >> Paul >> > > How does one do that when the controller won't let me do anything with > the drive? > Pull the drive and do it with another system. Also rather than zeroing the entire drive you can seek to the end and write over the last part of the drive see the man page for dd, seek and oseek are the values that will do this for you. Ryan ___ Linux-PowerEdge mailing list Linux-PowerEdge@dell.com https://lists.us.dell.com/mailman/listinfo/linux-poweredge Please read the FAQ at http://lists.us.dell.com/faq
Re: clearforeignconfig not clearing foreign config
Mark Watts wrote: > OK, here's what I have: > > - Running system with a single-disk RAID-0 (disk 0:0:0) > - Spare disk of same model/capacity, from another PERC5 (disk 0:0:1) > > I want to be able to get into a state where I can raid-level-migrate and > convert the current virtual disk (0:0:0) into a RAID-1 mirror. > > Currently, the fact that disk 0:0:1 contains a foreign config is > preventing this. > > I do, however, have a spare 1950/PERC5 chassis I can put the disk in, > although I can't see any way in the PERC bios to clear any configuration > present on the disk - clearing the foreign config on a different PERC > doesn't seem to do that in quite the way you expect. > > Mark Mark, Does the LSI MegaCLI utility work for you? MegaCli -CfgForeign -Clear [x] -aN|-a0,1,2|-aALL x - index of foreign configurations. Optional. All by default. and if you want to completely clear the entire drive: MegaCli -PDClear -Start|-Stop|-ShowProg |-ProgDsply -PhysDrv [E0:S0,E1:S1,...] -aN|-a0,1,2|-aALL Something like: MegaCli -pdclear -start -physdrv '[32:1]' -a0 (often the internal drive enclosure is "32", and i presume your drive will be in enclosure slot "1") --stephen ___ Linux-PowerEdge mailing list Linux-PowerEdge@dell.com https://lists.us.dell.com/mailman/listinfo/linux-poweredge Please read the FAQ at http://lists.us.dell.com/faq
RE: clearforeignconfig not clearing foreign config
On Tue, 2010-02-09 at 10:27 -0600, patrick_b...@dell.com wrote: > Clearforeign only removes drives in foreign state. These drives are online. > To get rid of this configuration you either need to delete the virtual disk > or to delete all the virtual disks you can use the reset config command. OK, here's what I have: - Running system with a single-disk RAID-0 (disk 0:0:0) - Spare disk of same model/capacity, from another PERC5 (disk 0:0:1) I want to be able to get into a state where I can raid-level-migrate and convert the current virtual disk (0:0:0) into a RAID-1 mirror. Currently, the fact that disk 0:0:1 contains a foreign config is preventing this. I *don't* want to trash the data on disk 0:0:0 which, while backed-up, will be irritating to rebuild. I do, however, have a spare 1950/PERC5 chassis I can put the disk in, although I can't see any way in the PERC bios to clear any configuration present on the disk - clearing the foreign config on a different PERC doesn't seem to do that in quite the way you expect. Mark. -- Mark Watts BSc RHCE MBCS Senior Systems Engineer, Managed Services Manpower www.QinetiQ.com QinetiQ - Delivering customer-focused solutions GPG Key: http://www.linux-corner.info/mwatts.gpg signature.asc Description: This is a digitally signed message part ___ Linux-PowerEdge mailing list Linux-PowerEdge@dell.com https://lists.us.dell.com/mailman/listinfo/linux-poweredge Please read the FAQ at http://lists.us.dell.com/faq
RE: clearforeignconfig not clearing foreign config
I probably should also warn you that the operations I have described are data destructive (i.e. could result in loss of data/loss of OS functionality). So use at your own risk. -Original Message- From: linux-poweredge-bounces-Lists On Behalf Of Boyd, Patrick Sent: Tuesday, February 09, 2010 10:28 AM To: pmd...@ctgcentral2.com; linux-poweredge-Lists Subject: RE: clearforeignconfig not clearing foreign config Clearforeign only removes drives in foreign state. These drives are online. To get rid of this configuration you either need to delete the virtual disk or to delete all the virtual disks you can use the reset config command. -Original Message- From: linux-poweredge-bounces-Lists On Behalf Of Paul M. Dyer Sent: Tuesday, February 09, 2010 10:22 AM To: linux-poweredge-Lists Subject: Re: clearforeignconfig not clearing foreign config Hi, I use dd and write zeros on top of the signature. That data is stored at the end of the drive, so it takes a hours get it done. dd if=/dev/zero of=/dev/sd{whatever} bs=64k Paul - Original Message - From: "Mark Watts" To: linux-poweredge@dell.com Sent: Tuesday, February 9, 2010 10:03:52 AM (GMT-0600) America/Chicago Subject: clearforeignconfig not clearing foreign config How are you supposed to clear the configuration on a disk previously used on a PERC 5/i? # omconfig storage controller action=clearforeignconfig controller=0 Command successful! # omconfig storage pdisk action=clear controller=0 pdisk=0:0:1 Operation disabled. Read, action=clear # omreport storage pdisk controller=0 List of Physical Disks on Controller PERC 5/i Integrated (Embedded) Controller PERC 5/i Integrated (Embedded) ID: 0:0:0 Status: Ok Name : Physical Disk 0:0:0 State : Online Failure Predicted : No Progress : Not Applicable Bus Protocol : SAS Media : HDD Capacity : 67.75 GB (72746008576 bytes) Used RAID Disk Space : 67.75 GB (72746008576 bytes) Available RAID Disk Space : 0.00 GB (0 bytes) Hot Spare : No Vendor ID : DELL Product ID: ST373455SS Revision : S513 Serial No.: 3LQ0YQ5T Negotiated Speed : Not Available Capable Speed : Not Available Manufacture Day : 07 Manufacture Week : 18 Manufacture Year : 2005 SAS Address : 5000C50004901BC5 ID: 0:0:1 Status: Non-Critical Name : Physical Disk 0:0:1 State : Foreign Failure Predicted : No Progress : Not Applicable Bus Protocol : SAS Media : HDD Capacity : 67.75 GB (72746008576 bytes) Used RAID Disk Space : 0.00 GB (0 bytes) Available RAID Disk Space : 67.75 GB (72746008576 bytes) Hot Spare : No Vendor ID : DELL Product ID: ST373455SS Revision : S513 Serial No.: 3LQ0XWSY Negotiated Speed : Not Available Capable Speed : Not Available Manufacture Day : 07 Manufacture Week : 18 Manufacture Year : 2005 SAS Address : 5000C50004901BA1 Mark. -- Mark Watts BSc RHCE MBCS Senior Systems Engineer, Managed Services Manpower www.QinetiQ.com QinetiQ - Delivering customer-focused solutions GPG Key: http://www.linux-corner.info/mwatts.gpg ___ Linux-PowerEdge mailing list Linux-PowerEdge@dell.com https://lists.us.dell.com/mailman/listinfo/linux-poweredge Please read the FAQ at http://lists.us.dell.com/faq ___ Linux-PowerEdge mailing list Linux-PowerEdge@dell.com https://lists.us.dell.com/mailman/listinfo/linux-poweredge Please read the FAQ at http://lists.us.dell.com/faq ___ Linux-PowerEdge mailing list Linux-PowerEdge@dell.com https://lists.us.dell.com/mailman/listinfo/linux-poweredge Please read the FAQ at http://lists.us.dell.com/faq
Re: clearforeignconfig not clearing foreign config
On Tue, 2010-02-09 at 10:21 -0600, Paul M. Dyer wrote: > Hi, > > I use dd and write zeros on top of the signature. That data is stored at > the end of the drive, so it takes a hours get it done. > > dd if=/dev/zero of=/dev/sd{whatever} bs=64k > > Paul > How does one do that when the controller won't let me do anything with the drive? Mark. -- Mark Watts BSc RHCE MBCS Senior Systems Engineer, Managed Services Manpower www.QinetiQ.com QinetiQ - Delivering customer-focused solutions GPG Key: http://www.linux-corner.info/mwatts.gpg signature.asc Description: This is a digitally signed message part ___ Linux-PowerEdge mailing list Linux-PowerEdge@dell.com https://lists.us.dell.com/mailman/listinfo/linux-poweredge Please read the FAQ at http://lists.us.dell.com/faq
RE: clearforeignconfig not clearing foreign config
Clearforeign only removes drives in foreign state. These drives are online. To get rid of this configuration you either need to delete the virtual disk or to delete all the virtual disks you can use the reset config command. -Original Message- From: linux-poweredge-bounces-Lists On Behalf Of Paul M. Dyer Sent: Tuesday, February 09, 2010 10:22 AM To: linux-poweredge-Lists Subject: Re: clearforeignconfig not clearing foreign config Hi, I use dd and write zeros on top of the signature. That data is stored at the end of the drive, so it takes a hours get it done. dd if=/dev/zero of=/dev/sd{whatever} bs=64k Paul - Original Message - From: "Mark Watts" To: linux-poweredge@dell.com Sent: Tuesday, February 9, 2010 10:03:52 AM (GMT-0600) America/Chicago Subject: clearforeignconfig not clearing foreign config How are you supposed to clear the configuration on a disk previously used on a PERC 5/i? # omconfig storage controller action=clearforeignconfig controller=0 Command successful! # omconfig storage pdisk action=clear controller=0 pdisk=0:0:1 Operation disabled. Read, action=clear # omreport storage pdisk controller=0 List of Physical Disks on Controller PERC 5/i Integrated (Embedded) Controller PERC 5/i Integrated (Embedded) ID: 0:0:0 Status: Ok Name : Physical Disk 0:0:0 State : Online Failure Predicted : No Progress : Not Applicable Bus Protocol : SAS Media : HDD Capacity : 67.75 GB (72746008576 bytes) Used RAID Disk Space : 67.75 GB (72746008576 bytes) Available RAID Disk Space : 0.00 GB (0 bytes) Hot Spare : No Vendor ID : DELL Product ID: ST373455SS Revision : S513 Serial No.: 3LQ0YQ5T Negotiated Speed : Not Available Capable Speed : Not Available Manufacture Day : 07 Manufacture Week : 18 Manufacture Year : 2005 SAS Address : 5000C50004901BC5 ID: 0:0:1 Status: Non-Critical Name : Physical Disk 0:0:1 State : Foreign Failure Predicted : No Progress : Not Applicable Bus Protocol : SAS Media : HDD Capacity : 67.75 GB (72746008576 bytes) Used RAID Disk Space : 0.00 GB (0 bytes) Available RAID Disk Space : 67.75 GB (72746008576 bytes) Hot Spare : No Vendor ID : DELL Product ID: ST373455SS Revision : S513 Serial No.: 3LQ0XWSY Negotiated Speed : Not Available Capable Speed : Not Available Manufacture Day : 07 Manufacture Week : 18 Manufacture Year : 2005 SAS Address : 5000C50004901BA1 Mark. -- Mark Watts BSc RHCE MBCS Senior Systems Engineer, Managed Services Manpower www.QinetiQ.com QinetiQ - Delivering customer-focused solutions GPG Key: http://www.linux-corner.info/mwatts.gpg ___ Linux-PowerEdge mailing list Linux-PowerEdge@dell.com https://lists.us.dell.com/mailman/listinfo/linux-poweredge Please read the FAQ at http://lists.us.dell.com/faq ___ Linux-PowerEdge mailing list Linux-PowerEdge@dell.com https://lists.us.dell.com/mailman/listinfo/linux-poweredge Please read the FAQ at http://lists.us.dell.com/faq
Re: clearforeignconfig not clearing foreign config
Hi, I use dd and write zeros on top of the signature. That data is stored at the end of the drive, so it takes a hours get it done. dd if=/dev/zero of=/dev/sd{whatever} bs=64k Paul - Original Message - From: "Mark Watts" To: linux-poweredge@dell.com Sent: Tuesday, February 9, 2010 10:03:52 AM (GMT-0600) America/Chicago Subject: clearforeignconfig not clearing foreign config How are you supposed to clear the configuration on a disk previously used on a PERC 5/i? # omconfig storage controller action=clearforeignconfig controller=0 Command successful! # omconfig storage pdisk action=clear controller=0 pdisk=0:0:1 Operation disabled. Read, action=clear # omreport storage pdisk controller=0 List of Physical Disks on Controller PERC 5/i Integrated (Embedded) Controller PERC 5/i Integrated (Embedded) ID: 0:0:0 Status: Ok Name : Physical Disk 0:0:0 State : Online Failure Predicted : No Progress : Not Applicable Bus Protocol : SAS Media : HDD Capacity : 67.75 GB (72746008576 bytes) Used RAID Disk Space : 67.75 GB (72746008576 bytes) Available RAID Disk Space : 0.00 GB (0 bytes) Hot Spare : No Vendor ID : DELL Product ID: ST373455SS Revision : S513 Serial No.: 3LQ0YQ5T Negotiated Speed : Not Available Capable Speed : Not Available Manufacture Day : 07 Manufacture Week : 18 Manufacture Year : 2005 SAS Address : 5000C50004901BC5 ID: 0:0:1 Status: Non-Critical Name : Physical Disk 0:0:1 State : Foreign Failure Predicted : No Progress : Not Applicable Bus Protocol : SAS Media : HDD Capacity : 67.75 GB (72746008576 bytes) Used RAID Disk Space : 0.00 GB (0 bytes) Available RAID Disk Space : 67.75 GB (72746008576 bytes) Hot Spare : No Vendor ID : DELL Product ID: ST373455SS Revision : S513 Serial No.: 3LQ0XWSY Negotiated Speed : Not Available Capable Speed : Not Available Manufacture Day : 07 Manufacture Week : 18 Manufacture Year : 2005 SAS Address : 5000C50004901BA1 Mark. -- Mark Watts BSc RHCE MBCS Senior Systems Engineer, Managed Services Manpower www.QinetiQ.com QinetiQ - Delivering customer-focused solutions GPG Key: http://www.linux-corner.info/mwatts.gpg ___ Linux-PowerEdge mailing list Linux-PowerEdge@dell.com https://lists.us.dell.com/mailman/listinfo/linux-poweredge Please read the FAQ at http://lists.us.dell.com/faq