[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: software raid 1: how to remove a UUID from a device?

On Friday 05 December 2008, lee <lee@yun.yagibdah.de> wrote about 'Re: 
software raid 1: how to remove a UUID from a device?':
>On Fri, Dec 05, 2008 at 12:40:21PM +1100, Alex Samad wrote:
>> On Thu, Dec 04, 2008 at 07:10:44PM -0600, lee wrote:
>> > > On Thursday 2008 December 04 15:15, lee wrote:
>> > > > How do I remove the UUIDs from /dev/sda and /dev/sdb to prevent
>> > > > the automatic detection from being confused again?
>> > >
>> > > Check out the --zero-superblock mode for mdadm.  It is documented
>> > > in 'man 8 mdadm'.
>> >
>> > cat:/home/lee# mdadm --zero-superblock /dev/sdb
>> > mdadm: Couldn't open /dev/sdb for write - not zeroing
>> >
>> >
>> > It's the same for sda. Do I need to stop all md devices involving
>> > these disks to remove the UUID? If so, how do you do it when it's not
>> > possible to stop them while the system is running (other than booting
>> > from CD or the like)?
>> whilst booting add init=/bin/bash to the kernel options, or boot up
>> knoppix or something like it
>Oh. Does bash run with only the root partition mounted?

No, but there's few processes running so you can unmount most of the ones 
that are mounted.  Using fuser or similar tools, you can identify the 
processes that are keeping the others from being unmounted, shutdown those 
processes, and unmount the disks.

I've always been able to go down to / being the only mount point with a 
real filesystem attached when starting with init=/bin/bash.  If you have 
to do something to the filesystem mounted on / though, you'll probably 
want to boot from CD -- the initrd is somewhat limited.
Boyd Stephen Smith Jr.                     ,= ,-_-. =. 
bss03@volumehost.net                      ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy           `-'(. .)`-' 
http://iguanasuicide.org/                      \_/     

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply to: