Sorry,

Forget to reply also to list...

---------- Forwarded message ----------
From: Marcio Scheibler <[EMAIL PROTECTED]>
Date: 16/05/2005 09:49
Subject: Re: [uml-user] six UBD devices barrier at startup ??
To: Blaisorblade <[EMAIL PROTECTED]>


Hi,

I use host logical volumes (LVM) as UBD devices in UML.
UML's user at host owns volumes nodes at host's /dev.
I'd like to stress that once running and after I add ubd6 with
uml_mconsole, it becomes available to UML.
Information follows below...

2005/5/13, Blaisorblade <[EMAIL PROTECTED]>:
> On Thursday 12 May 2005 19:09, Marcio Scheibler wrote:
> > Hi,
> >
> > I've been using UML for some months with good results.
> >
> > Now, I'm in trouble trying to start UML with seven UBD
> > devices... It recognizes just first six (ubda through ubdf)
> > regardless their order in command-line (even with
> > udb6s before ubd5s for instance).
> Well, ubd6 is the 7th block device, since you start from 0.
> What do you mean by "in trouble"? Can you supply the command line (including
> any typo, please) and the output you get, and what shows that you are in
> trouble? And a "ls -l" on the files you need to access?

Kernel command line: uml_dir=/var/run/uml mem=128m devfs=nomount
con0=null,fd:1 con=pts root=/dev/ubda
initrd=/var/local/initrd/uml-jfs-2.6.10.initrd ramdisk_size=16384
ubd0s=/dev/vg01/uml01_fs_root ubd1s=/dev/vg01/uml01_fs_var
ubd2s=/dev/vg01/uml01_fs_usr ubd3s=/dev/vg01/uml01_fs_home
ubd4s=/dev/vg01/uml01_sw_00 ubd5s=/dev/vg01/uml01_fs_varlocal
udb6s=/dev/vg01/uml01_fs_tmp eth0=tuntap,tap2,,192.168.33.122

More pieces from dmesg:

Initializing software serial port version 1
elevator: using anticipatory as default io scheduler
 /dev/ubd/disc0: unknown partition table
 /dev/ubd/disc1: unknown partition table
 /dev/ubd/disc2: unknown partition table
 /dev/ubd/disc3: unknown partition table
 /dev/ubd/disc4: unknown partition table
 /dev/ubd/disc5: unknown partition table
Initializing stdio console driver
RAMDISK: cramfs filesystem found at block 0
RAMDISK: Loading 1624KiB [1 disk] into ram disk... done.
VFS: Mounted root (cramfs filesystem) readonly.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Adding 262136k swap on /dev/ubde.  Priority:-1 extents:1
EXT3 FS on ubda, internal journal
NET: Registered protocol family 10
Disabled Privacy Extensions on device a01ecac0(lo)
IPv6 over IPv4 tunneling driver
eth0: no IPv6 routers present

Listing permissions:

...
[EMAIL PROTECTED]:~$ ls -l /dev/vg01/uml01*
lrwxrwxrwx    1 root     root           31 May 11 11:43
/dev/vg01/uml01_fs_home -> /dev/mapper/vg01-uml01_fs_home
lrwxrwxrwx    1 root     root           31 May 11 11:43
/dev/vg01/uml01_fs_root -> /dev/mapper/vg01-uml01_fs_root
lrwxrwxrwx    1 root     root           30 May 11 11:43
/dev/vg01/uml01_fs_tmp -> /dev/mapper/vg01-uml01_fs_tmp
lrwxrwxrwx    1 root     root           30 May 11 11:43
/dev/vg01/uml01_fs_usr -> /dev/mapper/vg01-uml01_fs_usr
lrwxrwxrwx    1 root     root           30 May 11 11:43
/dev/vg01/uml01_fs_var -> /dev/mapper/vg01-uml01_fs_var
lrwxrwxrwx    1 root     root           35 May 11 11:43
/dev/vg01/uml01_fs_varlocal -> /dev/mapper/vg01-uml01_fs_varlocal
lrwxrwxrwx    1 root     root           29 May 11 11:43
/dev/vg01/uml01_sw_00 -> /dev/mapper/vg01-uml01_sw_00

brw-------    1 uml01   root     254,  10 May 11 10:12
/dev/mapper/vg01-uml01_fs_home
brw-------    1 uml01   root     254,   6 May 11 10:12
/dev/mapper/vg01-uml01_fs_root
brw-------    1 uml01   root     254,   8 May 11 10:12
/dev/mapper/vg01-uml01_fs_tmp
brw-------    1 uml01   root     254,   7 May 11 10:12
/dev/mapper/vg01-uml01_fs_usr
brw-------    1 uml01   root     254,   9 May 11 10:12
/dev/mapper/vg01-uml01_fs_var
brw-------    1 uml01   root     254,  11 May 11 10:12
/dev/mapper/vg01-uml01_fs_varlocal
brw-------    1 uml01   root     254,  12 May 11 10:12
/dev/mapper/vg01-uml01_sw_00
...


> > Docs and "linux --help" say it accepts up to
> > eight UBD devices.
> > Is it a undocummented restriction ?
> No, it always worked.
> > Host kernel: 2.6.10-skas3v7
> > UML kernel: 2.6.10
>
> > Thanks in advance.
> And it works here:
>
> ./vmlinux-2.6.11.8-bs5 ubd0=Sarge.rootfs ubd7=Sarge.swapfs
> ubd1=debian30r2.rootfs ubd2=woody.roo
> tfs ubd3=slack10.rootfs ubd4=slack90.rootfs ubd5=toms.rootfs
> ubd6=slack90.swapfs
>
> From the output:
>  ubda: unknown partition table
>  ubdb: unknown partition table
>  ubdc: unknown partition table
>  ubdd: unknown partition table
>  ubde: unknown partition table
>  ubdf: unknown partition table
>  ubdg: unknown partition table
>  ubdh: unknown partition table
>
> And I've tested that it actually works (i.e. the UBD devices are accessible).
> --
> Paolo Giarrusso, aka Blaisorblade
> Skype user "PaoloGiarrusso"
> Linux registered user n. 292729
> http://www.user-mode-linux.org/~blaisorblade
>
>

--
-------------------------------------------------
Marcio Scheibler


-- 
-------------------------------------------------
Marcio Scheibler


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_ids93&alloc_id281&op=click
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to