Sorry,
Forget to reply also to list...
---------- Forwarded message ----------
From: Marcio Scheibler <mdsrsbr@...>
Date: 16/05/2005 09:49
Subject: Re: [uml-user] six UBD devices barrier at startup ??
To: Blaisorblade <blaisorblade@...>
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 <blaisorblade@...>:
> 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 (includ=
ing
> 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=3D/var/run/uml mem=3D128m devfs=3Dnomount
con0=3Dnull,fd:1 con=3Dpts root=3D/dev/ubda
initrd=3D/var/local/initrd/uml-jfs-2.6.10.initrd ramdisk_size=3D16384
ubd0s=3D/dev/vg01/uml01_fs_root ubd1s=3D/dev/vg01/uml01_fs_var
ubd2s=3D/dev/vg01/uml01_fs_usr ubd3s=3D/dev/vg01/uml01_fs_home
ubd4s=3D/dev/vg01/uml01_sw_00 ubd5s=3D/dev/vg01/uml01_fs_varlocal
udb6s=3D/dev/vg01/uml01_fs_tmp eth0=3Dtuntap,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:
...
uml01@...:~$ 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=3DSarge.rootfs ubd7=3DSarge.swapfs
> ubd1=3Ddebian30r2.rootfs ubd2=3Dwoody.roo
> tfs ubd3=3Dslack10.rootfs ubd4=3Dslack90.rootfs ubd5=3Dtoms.rootfs
> ubd6=3Dslack90.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 accessib=
le).
> --
> Paolo Giarrusso, aka Blaisorblade
> Skype user "PaoloGiarrusso"
> Linux registered user n. 292729
> http://www.user-mode-linux.org/~blaisorblade
>
>
--
-------------------------------------------------
Marcio Scheibler
--=20
-------------------------------------------------
Marcio Scheibler
|