2013年4月14日 星期日

[Dell PE] How to create VD Bad Blocks


Creating VD Bad Blocks:
-----------------------------------
1. Create a VD and copy some good amount of Data (More than 10GB).
2. Connect to DEBUG cable and get into PERC megamont prompt  by typing 123m
3. Get the PD IDs by - run command - ld <ld number>
4. From ld details get PD id - use these PD ids for crating bad blocks
4. Type bbm and enter option ->Create a medium errors
5. Enter LBA for lower and upper. like - enter 1000 or above
6. Bad blocks are injected and quit from q.
7. Reboot the host.


ex-

LDs configured: 1
LD(targetId) map: 0(00)

Type d0?to see the properties associated with the logical device.

MegaMon> ld 0

Response from the controller is shown below:

RAID info:
  Level 0
  Read Policy (0/1/2) (No/Yes/Adaptive) 2
  Write Policy (0/1) (Write Through / Write Back) 1
  Direct IO (0/1) (Disabled / Enabled) 1
  Stripe Size 64K (80 512 Byte Blocks)
  Status 3 (OPTIMAL)
  rowSize=1, rowDataSize=1
  span_depth=1
  Span=0, Arm=0, pd=01, Start=0x0, Size=0x11040000
LdInfo data: ld=0, ldi=c0f660c0
  name="", size=11040000, seqNum=5, lastSeqNo=5, targetId=0, ownerId=ff
  state=3(OPTIMAL), defaultCachePolicy=d, currentCachePolicy=d, accessPolicy=0, diskCachePolicy=0
  inqVpd83=00 83 00 14 01 03 00 10 67 82 bc b0 28 d8 3d 00 15 df 0a cd 16 22 ab eb
  modFactor=1
  num_rows: 220800
  progress: cc=00000000, bgi=00000000, fgi=00000000, recon=00000000
  init: state=00, blocksToInit=0, blocksDone=0, startTime=0, activeDiskCount=0, isPartial=0
  cc: status=01, currLBA=0, PreviousMyTimerCount=0, correctionCount=0
  recon: state=00, startTime=0
noBGI: 0 isSSCD=0 isCachable=1 encryption type=0
badBlocksExist=0
cache_pinned: 0
hostCmdSortingReads: 1 hostCmdSortingWrites: 0 disableGrouping=0


SNAPSHOT:
context 0, snapLDUseCount 0
snapshotenabled=0 isview=0
numpits=0 numviews=0
source ld=0 viewIsEnabled=0
autoSnapshotEnabled=0 AutoDeleteOldestPIT=1
metaDataTargetId 0, metaDataOffset 0, metaDataAreaInLBAs 0
DS-3 details:
-------------
defaultPSPolicy=0 currentPSPolicy=fe
canSpinUpin60=1 t10Capable=1
spinUpStart 0, checkInProgress 0, powerSaveActive 0
state 0, startIOPoll 0
block threshold 26bd
Pending operation details:
propChangeCommitted:0 ccStatusCommitted:0
InitStatusCommitted:0 secOpCommitted:0
pdStateChangeCommitted:0

So the target if of the physical drive is 01 (highlighted).

Type bm? Response from the controller is shown below:

******* >>> BBM Debug Menu <<< ********

Physical Drive Commands:
    c) Create Media Error.
    r) Repair Media Error
    t) Test LBA for Media Error.
    e) Enable/Disable ATA Write Long
    x) Exit Menu
Enter Selection:

Follow the menu driven option to choose the options as described below:


******** >>> BBM Debug Menu <<< ********

Physical Drive Commands:
    c) Create Media Error.
    r) Repair Media Error
    t) Test LBA for Media Error.
    e) Enable/Disable ATA Write Long
    x) Exit Menu
Enter Selection: e

EnableAtaWriteLong set to 1

******** >>> BBM Debug Menu <<< ********

Physical Drive Commands:
    c) Create Media Error.
    r) Repair Media Error
    t) Test LBA for Media Error.
    e) Enable/Disable ATA Write Long
    x) Exit Menu
Enter Selection: c

Create Media Error
Enter ID: 01
Enter Sector Lower half Lba: 00
Enter Sector Upper half Lba: 50
Writing data to pd:01 lba:5000000000
In I2C Slave Mode: Nack sent for received byte
Completion opcode:3f pd:01 status=0

******** >>> BBM Debug Menu <<< ********

Physical Drive Commands:
    c) Create Media Error.
    r) Repair Media Error
    t) Test LBA for Media Error.
    e) Enable/Disable ATA Write Long
    x) Exit Menu
Enter Selection: x

MegaMon> q


沒有留言:

張貼留言