From: Herta Van den Eynde <herta.vandeneynde@cc.kuleuven.be>
To: linux-raid@vger.kernel.org
Subject: adding multipath device without reboot?
Date: Tue, 30 May 2006 15:59:33 +0200 [thread overview]
Message-ID: <447C4FC5.3030502@cc.kuleuven.be> (raw)
I'm trying to add a new SAN LUN to a system, create a multipath mdadm
device on it, partition it, and create a new filesystem on it, all
without taking the system down.
All goes well, up to partitioning the md device:
# fdisk /dev/md12
Device contains neither a valid DOS partition table, nor Sun, SGI
or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the
previous content won't be recoverable.
The number of cylinders for this disk is set to 8569312.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be
corrected by w(rite)
Command (m for help): p
Disk /dev/md12: 35.0 GB, 35099901952 bytes
2 heads, 4 sectors/track, 8569312 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Device Boot Start End Blocks Id System
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-8569312, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-8569312, default
8569312):
Using default value 8569312
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 22:
Invalid argument.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
I know a reboot will read the new table, but is there any way to clear
the in-memory table and replace it with the newly written one?
The entire point of this exercise is to be able to add diskspace without
having to reboot.
Kind regards,
Herta
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
next reply other threads:[~2006-05-30 13:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-30 13:59 Herta Van den Eynde [this message]
2006-05-30 15:42 ` adding multipath device without reboot? Francois Barre
2006-05-30 17:36 ` Luca Berra
2006-05-30 17:59 ` Francois Barre
2006-05-30 17:33 ` Luca Berra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=447C4FC5.3030502@cc.kuleuven.be \
--to=herta.vandeneynde@cc.kuleuven.be \
--cc=linux-raid@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).