Score:0

storcli: A proper way to replace a drive in RAID0 or How to migrate virtual drive WITH data loss?

in flag

I have a RAID0 where I need to replace a drive and can lose the data. In order to replace it, I do:

storcli64 /c0/e1/sX set offline

storcli64 /c0/e1/sX set missing

storcli64 /c0/e1/sX spindown

then replace drive physically, delete foreign topology and insert the drive:

storcli64 /c0/v1 delete preservedCache

storcli64 /c0 /fall delete

storcli64 /c0/e1/sX insert dg=x array=y row=z

The next step is supposed to be adding the replaced disk to the virtual drive and migrating it:

storcli64 /c0/v1 start migrate type=raid0 option=add drives=0:9

However, the migration might take several days, and I just want to rebuilt or reinitialise array with full data loss.

The question is: should I delete the Virtual Drive completely in order to achieve it? Which command should I use to force fast/instant array recreation with data loss? How to reload LVM and remount disks afterwards without reboot?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.