clearforeignconfig not clearing foreign config

Benjamin_Gordy at Dell.com Benjamin_Gordy at Dell.com
Tue Feb 9 12:39:27 CST 2010


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 at 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-request at dell.com

You can reach the person managing the list at
	linux-poweredge-owner at 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_Boyd at 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 +0000
From: Mark Watts <m.watts at eris.qinetiq.com>
Subject: Re: clearforeignconfig not clearing foreign config
To: linux-poweredge <linux-poweredge at dell.com>
Message-ID: <1265732895.2410.3.camel at 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: <Patrick_Boyd at Dell.com>
Subject: RE: clearforeignconfig not clearing foreign config
To: <pmdyer at ctgcentral2.com>, <linux-poweredge at lists.us.dell.com>
Message-ID:
	<3858CA5B52D32044B672D8997ED536F1076E72B899 at 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: pmdyer at 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" <m.watts at eris.qinetiq.com>
To: linux-poweredge at 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 at 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 at dell.com
https://lists.us.dell.com/mailman/listinfo/linux-poweredge
Please read the FAQ at http://lists.us.dell.com/faq



------------------------------

Message: 3
Date: Tue, 9 Feb 2010 08:42:15 -0800
From: John Oliver <joliver at john-oliver.net>
Subject: Re: OMSA 6.2 install issues...
To: linux-poweredge at lists.us.dell.com
Message-ID: <20100209164215.GE17414 at ns.sdsitehosting.net>
Content-Type: text/plain; charset=us-ascii

On Tue, Feb 09, 2010 at 12:24:54AM -0600, Eric Rostetter wrote:
> As some of you already know, there are some RPM dependency issues in
> OMSA 6.2 which can cause problems (notably the "no controllers found" error
> from the storage commands).  I've found a new (to me at least) wrinkle...
> 
> After installing it on 2 identical machines, one worked completely and
> the other worked except for the storage.  Seeking help via google, I found
> the above mentioned threads about dependencies but I had all the packages
> installed on both machines...
> 
> This bit me because I don't like to install all the packages, only the
> ones I want (no web server and such).  So I didn't do the srvadmin-all
> package, but rather did individual packages so I could install the least
> amount needed for my setup.
> 
> To cut to the chase, I found out that no only is it important that you
> install all the needed RPMS, but that the order in which you install them
> is also critical.  Doing an "rpm -qa --last | grep srvadmin" on the working
> machine, I got the order in which they were installed.  On the non-working
> machine, I removed all the packages and re-installed them in the same order
> as on the working machine.  Et voila, I have two working machines now...
> 
> Only took me a week to figure that one out...

So what's the correct order? :-)

-- 
***********************************************************************
* John Oliver                             http://www.john-oliver.net/ *
*                                                                     *
***********************************************************************



------------------------------

Message: 4
Date: Tue, 09 Feb 2010 17:18:45 +0000
From: Mark Watts <m.watts at eris.qinetiq.com>
Subject: RE: clearforeignconfig not clearing foreign config
To: linux-poweredge at lists.us.dell.com
Message-ID: <1265735925.2410.10.camel at mwatts.eris.qinetiq.com>
Content-Type: text/plain; charset="utf-8"

On Tue, 2010-02-09 at 10:27 -0600, Patrick_Boyd at 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
-------------- 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/38dead06/attachment-0001.sig 

------------------------------

Message: 5
Date: Tue, 09 Feb 2010 10:47:55 -0700
From: Stephen Dowdy <sdowdy at ucar.edu>
Subject: Re: clearforeignconfig not clearing foreign config
To: Mark Watts <m.watts at eris.qinetiq.com>
Cc: linux-poweredge at lists.us.dell.com
Message-ID: <4B719FCB.1060600 at ucar.edu>
Content-Type: text/plain; charset=UTF-8

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 at dell.com
https://lists.us.dell.com/mailman/listinfo/linux-poweredge
Please read the FAQ at http://lists.us.dell.com/faq

End of Linux-PowerEdge Digest, Vol 68, Issue 29
***********************************************



More information about the Linux-PowerEdge mailing list