|
From: Dominic R. <dl...@ed...> - 2010-08-04 10:10:15
|
It looks okay to me. I think your vgcreate /dev/cdrom error messages are down to a non-critical bug in LVM, at any rate others have seen them and under different Linux distros. But I can't comment about the lvcreate mlock messages. Going back to your original posting I believe it is advisable to create your swap LV with "lvcreate -C y" so that it has a contiguous allocation policy. (Other LVs however shouldn't normally have this.) Dominic On 04/08/2010 07:05, mailing dl2 wrote: > Hello, > > First of all, I did the same on two computer. > One with Sata HD and 1GB of RAM > Second with IDE HD and 256MB of RAM. > > I have exactly the same error when doing vgcreate and lvcreate. > > I did not test the Ram on both. If you think it is mandatory I can. > > Here are the pvs and lvs output: > > -------------------------- > root@Devil:~ # pvs > PV VG Fmt Attr PSize PFree > /dev/sda1 devil-linux lvm2 a- 37.25g 36.25g > root@Devil:~ # lvs > LV VG Attr LSize Origin Snap% Move Log Copy% Convert > swap devil-linux -wi-a- 1.00g > -------------------------- > > Here is the mkswap output: > -------------------------- > root@Devil:~ # mkswap /dev/devil-linux/swap > mkswap: /dev/devil-linux/swap: warning: don't erase bootbits sectors > on whole disk. Use -f to force. > Setting up swapspace version 1, size = 1048572 KiB > no label, UUID=e059b3cb-66c6-4ed7-8fe8-776237e494c6 > -------------------------- > > > Here is the dmesg > ...-------------------------- > > 2010/8/2 Serge Leschinsky<fi...@in...> > >> On 08/02/2010 06:47 AM, mailing dl2 wrote: >> >>> Hello, >>> >>> I am trying to upgrade some of my DL box (1.2.13) to the 1.4RC version. >>> >>> The computer is a Celeron and the disk is an IDE disk of 10GB. >>> >>> Here are the output when I am doing the LVM: >>> >>> dl:~# pvcreate /dev/hda1 >>> Physical volume "/dev/hda1" successfully created >>> >>> dl:~# vgcreate -s 8M devil-linux /dev/hda1 >>> /dev/cdrom: open failed: Read-only file system >>> /dev/cdrom: open failed: Read-only file system >>> /dev/cdrom: open failed: Read-only file system >>> /dev/cdrom: open failed: Read-only file system >>> Volume group "devil-linux" successfully created >>> >> The errors above can be ignored. >> >> >> >>> dl:~# lvcreate -L 1G -n swap devil-linux >>> 7608f000-7614b000 r-xp 00000000 16:00 58505 /sbin/lvm: mlock >>> failed: Invalid argument >>> aa2be000-aa3dc000 r-xp 00000000 16:00 37193 /lib/libc-2.5.1.so >>> <http://libc-2.5.1.so>: mlock failed: Invalid argument >>> aa458000-aa479000 r-xp 00000000 16:00 37352 >>> >> mlock(2) >> mlock() locks pages in the address range starting at addr and continuing for len >> bytes. All pages that contain a part of the specified address range are >> guaranteed to be resident in RAM when the call returns successfully; the pages >> are guaranteed to stay in RAM until later unlocked. >> >> Can you post 'dmesg'? It might be a side effect of PAE Kernel also, but I'd >> suggest using memtest for starter. How many RAM do you have? Have you tested it >> before? >> >> >> >>> I tried it on two different Celeron systems. >>> >>> Can I ignore these messages/errors? >>> >>> Will my system work correctly? >>> >> It's too difficult question, but I can tell that I had about a couple of dozen >> 1.4 based boxes and they worked correctly. If it's a HW problem you see it in >> 'dmesg' (at startup, when the kernel detects HW). >> >> Serge >> >> ------------------------------------------------------------------------------ >> The Palm PDK Hot Apps Program offers developers who use the >> Plug-In Development Kit to bring their C/C++ apps to Palm for a share >> of $1 Million in cash or HP Products. Visit us here for more details: >> http://p.sf.net/sfu/dev2dev-palm >> _______________________________________________ >> Devil-linux-discuss mailing list >> Dev...@li... >> https://lists.sourceforge.net/lists/listinfo/devil-linux-discuss >> > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > _______________________________________________ > Devil-linux-discuss mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/devil-linux-discuss > > |