|
![](/App_Themes/Normal/images/Window/Backgrounds/news.gif) | kan ikke se MD partitions Fra : Leif Neland |
Dato : 10-01-08 16:06 |
|
/etc/debian_version: 4.0
uname: Linux maskine 2.6.18-5-686 #1 SMP Mon Dec 24 16:41:07 UTC 2007 i686
GNU/Linux
Jeg har /dev/md0 kørende.
Men jeg kan ikke partionere den, eller rettere linux kan ikke se dem
Når jeg slutter fdisk, skrives
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.
Men der kommer ikke nogen partitioner i /dev/md, forventede en /dev/md/0p1
eller /dev/md0/p1 eller lignende.
Jeg havde godt nok alligevel tænkt mig at nøjes med een partition, så jeg
kan godt mke2fs og mounte /dev/md0, men er det i orden eller noget rod?
Jeg fik samme error 22, da jeg under installationen prøvede at lave raid, så
jeg endte med at lave en lille partition at grundindstallere, og derefter
lave raid'en manuelt af resten af disken,
Leif
| |
Adam Sjøgren (10-01-2008)
![](/App_Themes/Normal/images/Window/Backgrounds/news.gif) | Kommentar Fra : Adam Sjøgren |
Dato : 10-01-08 18:41 |
|
On Thu, 10 Jan 2008 16:05:45 +0100, Leif wrote:
> Jeg havde godt nok alligevel tænkt mig at nøjes med een partition, så jeg
> kan godt mke2fs og mounte /dev/md0, men er det i orden eller noget rod?
Det er sådan man plejer at gøre.
Hvis man vil have flere plejer man at lave /dev/md0, /dev/md1, /dev/md2
osv.
(Eller man går i gang med LVM, hvis man orker).
Mvh.
--
"Gravity is arbitrary!" Adam Sjøgren
asjo@koldfront.dk
| |
Jacob Gaarde (14-01-2008)
![](/App_Themes/Normal/images/Window/Backgrounds/news.gif) | Kommentar Fra : Jacob Gaarde |
Dato : 14-01-08 20:27 |
|
On Thu, 10 Jan 2008 18:40:36 +0100
asjo@koldfront.dk (Adam Sjøgren) wrote:
> On Thu, 10 Jan 2008 16:05:45 +0100, Leif wrote:
>
> > Jeg havde godt nok alligevel tænkt mig at nøjes med een partition, så jeg
> > kan godt mke2fs og mounte /dev/md0, men er det i orden eller noget rod?
>
> Det er sådan man plejer at gøre.
>
> Hvis man vil have flere plejer man at lave /dev/md0, /dev/md1, /dev/md2
> osv.
>
> (Eller man går i gang med LVM, hvis man orker).
nogen læser man-siden til mdadm og laver et partitionerbart md
"
-a, --auto{=no,yes,md,mdp,part,p}{NN}
Instruct mdadm to create the device file if needed, possibly allocating an unused minor number. "md" causes a non-partitionable array to be used. "mdp", "part" or "p" causes a partitionable array
(2.6 and later) to be used. "yes" requires the named md device to have a ’standard’ format, and the type and minor number will be determined from this. See DEVICE NAMES below.
The argument can also come immediately after "-a". e.g. "-ap".
If --auto is not given on the command line or in the config file, then the default will be --auto=yes.
If --scan is also given, then any auto= entries in the config file will override the --auto instruction given on the command line.
For partitionable arrays, mdadm will create the device file for the whole array and for the first 4 partitions. A different number of partitions can be specified at the end of this option (e.g.
--auto=p7). If the device name ends with a digit, the partition names add a ’p’, and a number, e.g. "/dev/home1p3". If there is no trailing digit, then the partition names just have a number added,
e.g. "/dev/scratch3".
If the md device name is in a ’standard’ format as described in DEVICE NAMES, then it will be created, if necessary, with the appropriate number based on that name. If the device name is not in one of
these formats, then a unused minor number will be allocated.. The minor number will be considered unused if there is no active array for that number, and there is no entry in /dev for that number and
with a non-standard name.
"
--
//Jacob Gaarde
//Dont reply to my (aparent) e-mail address. Instead Use
//e-mail : gaarde <at> mailme <dot> dk
| |
Adam Sjøgren (14-01-2008)
![](/App_Themes/Normal/images/Window/Backgrounds/news.gif) | Kommentar Fra : Adam Sjøgren |
Dato : 14-01-08 21:30 |
|
On Mon, 14 Jan 2008 20:26:45 +0100, Jacob wrote:
> nogen læser man-siden til mdadm og laver et partitionerbart md
mdadm, sådan noget moderne stads!
![Glad](images/smileys/glad.gif) , (tak, det kendte jeg ikke),
Adam
--
"American cars are ugly because American car Adam Sjøgren
companies are run by people with bad taste." asjo@koldfront.dk
| |
|
|