Skip to contentSkip to conversation

Problem with creation of dev entries on SL (RHEL) 4

linux-lvm Stephen Childs 2 participants 3 messages May 17, 2006 – May 18, 2006

lore
Share & tools
lore
#0 lore raw

When I create a new LVM volume on Scientific Linux 4 (RHEL4-compatible), a new entry isn't created in /dev, meaning that I can't access the volume although it exists.

Creation succeeds:

[root@tg23 mapper]# /usr/sbin//lvcreate -s '-L1024M' -n '/dev/xenvg/gridmon_gridmon023__1147860249' /dev/xenvg/gridmon
Logical volume "gridmon_gridmon023__1147860249" created

Mount fails:

[root@tg23 mapper]# mount '/dev/xenvg/gridmon_gridmon023__1147860249' '/mnt/gridmon_gridmon023__1147860249'
mount: special device /dev/xenvg/gridmon_gridmon023__1147860249 does not exist

dev entry doesn't exist:

[root@tg23 mapper]# ls /dev/xenvg/gridmon_gridmon023__1147860249
ls: /dev/xenvg/gridmon_gridmon023__1147860249: No such file or directory

These were created before an upgrade from RH9:

[root@tg23 mapper]# ls /dev/xenvg/
gridgate_gridgate_wit_ie__1127224256 gridmon_gridmon__swap
sl304_1 wnclonetest
gridmon_gridmon_ait_ie__swap gridmon_gridmon_ucc_ie__swap
sl304_lfc__swap wnclonewn50
gridmon_gridmon_grid_ul_ie__1127238733 gridstore_gridstore_grid_ul_ie__swap sl304_lfc.testgrid__swap
gridmon_gridmon_it-tallaght_ie__swap gridui_gridui_dit_ie__swap
ttyl2base
gridmon_gridmon_scg_nuigalway_ie__swap rh9server
wnclonecagnode89

I have the following error in /var/log/messages:

May 17 12:47:10 tg23 /sbin/hotplug: no runnable /etc/hotplug/block.agent is installed

I have the default hotplug package installed and can't find any source for
a hotplug block.agent.

Any ideas?

Stephen

#1 lore raw
Quoted 8 lines · Stephen Childs

When I create a new LVM volume on Scientific Linux 4 (RHEL4-compatible), a new entry isn't created in /dev, meaning that I can't access the volume although it exists.

Creation succeeds:

[root@tg23 mapper]# /usr/sbin//lvcreate -s '-L1024M' -n '/dev/xenvg/gridmon_gridmon023__1147860249' /dev/xenvg/gridmon
Logical volume "gridmon_gridmon023__1147860249" created

Mount fails:

....

Quoted 2 lines

Any ideas?

Weird, but your command line is also weird could you try without prefixing the vg name to -the -n parameter?

lvcreate -s -L1024M -n gridmon_gridmon023__1147860249 /dev/xenvg/gridmon

else look into the log section of /etc/lvm.conf and provide some logs.

L.

Signature · 6 lines
Luca Berra -- [email protected]
       Communication Media & Services S.r.l.
/"\
\ /     ASCII RIBBON CAMPAIGN
 X        AGAINST HTML MAIL
/ \
#2 lore raw

Here's some snippets from the log:

activate/fs.c:176 Linking /dev/xenvg/gridmon_gridmon023__1147860249 -> /dev/mapper/xenvg-gridmon_gridmon023__1147860249
toollib.c:1087 Zeroing start of logical volume "gridmon_gridmon023__1147860249"
device/dev-cache.c:228 /dev/xenvg/gridmon_gridmon023__1147860249: Added to device cache

device/dev-io.c:425   Opened /dev/xenvg/gridmon_gridmon023__1147860249 RW O_DIRECT
device/dev-io.c:584   Wiping /dev/xenvg/gridmon_gridmon023__1147860249 at sector 0 length 8 sectors
device/dev-io.c:134   /dev/xenvg/gridmon_gridmon023__1147860249: block size is 4096 bytes
device/dev-io.c:456   Closed /dev/xenvg/gridmon_gridmon023__1147860249

metadata/metadata.c:1164 Found volume group "xenvg"
activate/dev_manager.c:1048 Getting device info for xenvg-gridmon_gridmon023__1147860249
ioctl/libdm-iface.c:1326 dm info IgMc4AcnOILtiudkjAXpuErUegVxunX66lb1awfZBR5rYYzIF64ogYnf98AcKHS0 O
mm/memlock.c:119 Unlocking memory
mm/memlock.c:138 memlock_count dec to 0
activate/fs.c:211 Removing link /dev/xenvg/gridmon_gridmon023__1147860249

The volume appears briefly in the /dev/mapper directory and then disappears again! How is this meant to work?

Stephen