Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] unable to mount separate /usr (new genkernel, udev)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
JohnBlbec
Apprentice
Apprentice


Joined: 08 Feb 2003
Posts: 183

PostPosted: Tue Jan 22, 2013 4:39 pm    Post subject: [SOLVED] unable to mount separate /usr (new genkernel, udev) Reply with quote

hi guys.

i have troubles to mount separate /usr partition. i am able to use my box but following error is annoying
and it would be a problem, of course (in my case only alsactl is failed so my sound does not restore its
last state). the error during boot is:

Code:

.
.
>> Scanning for and activating Volume Groups
  No volume groups found
  No volume groups found
>> Determining root device...
>> Detected real_root=/dev/sdd1
>> Mounting /dev/sdd1 as root...
>> Using mount -t ext4 -o ro
>> Mounting /dev/raid5/usr as /usr: mount  ext4 -o noatime,ro /dev/raid5/usr /newroot/usr

mount: mounting /dev/raid5/usr on /newroot/usr failed: No such file or directory
Code:
>> Booting (initramfs)..
INIT: version 2.88 booting

  OpenRV 0.11.8 is starting up Gentoo Linux (x86_64)

* /proc is already mounted
* Mounting /run ...
* /run/openrc: creating directory
* /run/lock: creating directory
* /run/lock: correcting owner
* Using /dev mounted from kernel ...
* Mounting /dev/shm
* Mounting config filesystem ...
* Mounting cgroup filesystem ...
* Starting udev ...
* Populating /dev with existing devices through uevents ...
.
.


my system info after boot

Code:

sys-fs/udev-197-r3
sys-kernel/genkernel-3.4.45
sys-fs/lvm2-2.02.97-r1
sys-kernel/gentoo-sources-3.6.11


my kernel config
$ grep CONFIG_DEVTMPFS /etc/kernels/kernel-config-x86_64-3.6.11-gentoo
Code:

CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y


$ cat /etc/fstab
Code:

# /dev/sdc1                               /boot       ext2  noauto,noatime  1 2
UUID=df5f93ce-3991-4ac7-a515-4d2aedd96a18 /boot       ext2  noauto,noatime  1 2
# /dev/sdd is GPT
# /dev/sdd1                               /           ext4  noatime   0 1
UUID=7751d3ab-3e57-4a73-9fcc-20e6b7762290 /           ext4  noatime   0 1
# lvm2 on /dev/sdd2
/dev/raid5/swap                           none        swap  sw        0 0
/dev/raid5/home                           /home       ext4  noatime   0 2
/dev/raid5/opt                            /opt        ext4  noatime   0 2
/dev/raid5/usr                            /usr        ext4  noatime   0 2
/dev/raid5/portage                        /usr/portage              ext2  noatime   0 2
/dev/raid5/distfiles                      /usr/portage/distfiles    ext2  noatime   0 2
/dev/raid5/tmp                            /tmp        ext2  noatime   0 2
/dev/raid5/var                            /var        ext4  noatime   0 2
/dev/raid5/vartmp                         /var/tmp    ext2  noatime   0 2
/dev/raid5/ccache                         /var/tmp/ccache           ext2  noatime   0 2
/dev/raid5/usrsrc                         /usr/src    ext2  noatime   0 2
/dev/raid5/media        /home/rpolasek/Desktop/media  ext4  noatime,users   0 2
tmpfs                                     /var/tmpfs  tmpfs   size=2G 0 0   
shm                                       /dev/shm      tmpfs nodev,nosuid,noexec 0 0


$ mount
Code:

rootfs on / type rootfs (rw)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=10240k,nr_inodes=1021837,mode=755)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
/dev/sdd1 on / type ext4 (rw,noatime,data=ordered)
tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
cgroup_root on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755)
openrc on /sys/fs/cgroup/openrc type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib64/rc/sh/cgroup-release-agent.sh,name=openrc)
cpuset on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cpu on /sys/fs/cgroup/cpu type cgroup (rw,nosuid,nodev,noexec,relatime,cpu)
cpuacct on /sys/fs/cgroup/cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct)
blkio on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
/dev/mapper/raid5-home on /home type ext4 (rw,noatime)
/dev/mapper/raid5-opt on /opt type ext4 (rw,noatime)
/dev/mapper/raid5-usr on /usr type ext4 (rw,noatime)
/dev/mapper/raid5-portage on /usr/portage type ext2 (rw,noatime)
/dev/mapper/raid5-distfiles on /usr/portage/distfiles type ext2 (rw,noatime)
/dev/mapper/raid5-tmp on /tmp type ext2 (rw,noatime)
/dev/mapper/raid5-var on /var type ext4 (rw,noatime)
/dev/mapper/raid5-vartmp on /var/tmp type ext2 (rw,noatime)
/dev/mapper/raid5-ccache on /var/tmp/ccache type ext2 (rw,noatime)
/dev/mapper/raid5-usrsrc on /usr/src type ext2 (rw,noatime)
/dev/mapper/raid5-media on /home/rpolasek/Desktop/media type ext4 (rw,noexec,nosuid,nodev,noatime)
tmpfs on /var/tmpfs type tmpfs (rw,size=2G)
/dev/sdc1 on /boot type ext2 (rw,noatime)


$ cat /boot/grub/grub.conf
Code:

default 0
fallback 1
timeout 10
title=Gentoo Linux (3.6.11-gentoo, intel_iommu=off, logitech g25, nvidia 260)
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-3.6.11-gentoo root=/dev/ram0 real_root=UUID=7751d3ab-3e57-4a73-9fcc-20e6b7762290 init=/linuxrc ramdisk=8192 video=uvesafb:mtrr:3,ywrap,1920x1200-24 quiet console=tty1 udev dolvm intel_iommu=off rootfstype=ext4
initrd /boot/initramfs-genkernel-x86_64-3.6.11-gentoo


# rc-update show
Code:

sacpid |sdefault guis
salsasound | boots
sbootmisc | boots
sconsolefont | boots
sconsolekit |sdefault guis
scupsd |sdefault guis
sdbus |sdefault guis
sdevfs |ssysinit
sdevice-mapper | boots
sdmesg |ssysinit
sfsck | boots
sgpm |sdefault guis
shostname | boots
shwclock | boots
siptables |sdefault guis
skeymaps | boots
skillprocs |sshutdowns
slocal |sdefault gui nonetworks
slocalmount | boots
slvm | boots
smodules | boots
smount-ro |sshutdowns
smtab | boots
snet.eth0 |sdefault guis
snet.lo | boots
snetmount |sdefault guis
sntp-client |sdefault guis
snumlock |sdefault guis
sprocfs | boots
sroot | boots
srpcbind |sdefault guis
ssavecache |sshutdowns
ssshd |sdefault guis
sswap | boots
sswapfiles | boots
ssysctl | boots
ssysfs |ssysinit
ssyslog-ng |sdefault guis
stermencoding | boots
stmpfiles.setup | boots
sudev |ssysinit
sudev-mount |ssysinit
surandom | boots
svixie-cron |sdefault guis
sxdm |sguis


# pvs
Code:

  PV                                                    VG    Fmt  Attr PSize PFree 
  /dev/disk/by-id/scsi-1AMCC_9QJ200S52D994C00D1EE-part2 raid5 lvm2 a--  2.60t 473.12g


# lvs
Code:

  LV        VG    Attr     LSize   Pool Origin Data%  Move Log Copy%  Convert
  ccache    raid5 -wi-ao--   4.00g                                           
  distfiles raid5 -wi-ao--   6.00g                                           
  home      raid5 -wi-ao-- 100.00g                                           
  media     raid5 -wi-ao--   1.98t                                           
  opt       raid5 -wi-ao--   6.00g                                           
  portage   raid5 -wi-ao--   1.00g                                           
  swap      raid5 -wi-ao--   8.00g                                           
  tmp       raid5 -wi-ao--   4.00g                                           
  usr       raid5 -wi-ao--  10.00g                                           
  usrsrc    raid5 -wi-ao--   8.00g                                           
  var       raid5 -wi-ao--   6.00g                                           
  vartmp    raid5 -wi-ao--  12.00g


# lsmod
Code:

Module                  Size  Used by
xt_DSCP                 2124  14
iptable_mangle          1497  1
iptable_nat             3873  0
nf_nat                 14191  1 iptable_nat
xt_limit                1890  1
ipt_REJECT              2162  1
xt_tcpudp               2352  24
nf_conntrack_ipv4      12067  4 nf_nat,iptable_nat
nf_defrag_ipv4          1220  1 nf_conntrack_ipv4
ipv6                  263946  32
xt_conntrack            2986  1
nf_conntrack           59102  4 nf_nat,xt_conntrack,iptable_nat,nf_conntrack_ipv4
iptable_filter          1369  1
ip_tables              16232  3 iptable_filter,iptable_mangle,iptable_nat
x_tables               15857  9 xt_DSCP,ip_tables,xt_tcpudp,xt_limit,xt_conntrack,iptable_filter,ipt_REJECT,iptable_mangle,iptable_nat
coretemp                5823  0
kvm_intel             119413  0
nvidia              11215311  30
pl2303                  8766  0
snd_hda_codec_idt      51751  1
kvm                   246423  1 kvm_intel
usbserial              29424  1 pl2303
snd_hda_intel          23099  3
snd_hda_codec          73589  2 snd_hda_codec_idt,snd_hda_intel
i2c_i801                9196  0
snd_hwdep               5982  1 snd_hda_codec
snd_pcm                65898  2 snd_hda_codec,snd_hda_intel
snd_page_alloc          6778  2 snd_pcm,snd_hda_intel
snd_timer              18209  1 snd_pcm
snd                    56864  12 snd_hwdep,snd_timer,snd_hda_codec_idt,snd_pcm,snd_hda_codec,snd_hda_intel
i2c_core               18623  2 i2c_i801,nvidia
e1000e                174679  0
psmouse                49092  0
firewire_ohci          30785  0
processor              19501  0
button                  4415  0
thermal_sys            14020  1 processor
pcspkr                  1780  0
firewire_core          49980  1 firewire_ohci
microcode               7514  0
dm_zero                 1192  0
libcrc32c                947  0
dm_round_robin          2248  0
dm_multipath           14932  1 dm_round_robin
xts                     2984  0
gf128mul                5579  1 xts
aes_x86_64              7436  0
aes_generic            26019  1 aes_x86_64
cbc                     2643  0
sha256_generic         10174  0
libiscsi               35652  0
scsi_transport_iscsi    38300  1 libiscsi
fuse                   65462  0
nfs                   113545  0
dns_resolver            4465  1 nfs
lockd                  60925  1 nfs
sunrpc                164930  2 nfs,lockd
dm_snapshot            26610  0
dm_crypt               15027  0
dm_mirror              12864  0
dm_region_hash          6808  1 dm_mirror
dm_log                  8155  2 dm_region_hash,dm_mirror
dm_mod                 67405  51 dm_multipath,dm_zero,dm_log,dm_mirror,dm_crypt,dm_snapshot
hid_pl                  1314  0
hid_monterey            1586  0
hid_microsoft           3044  0
hid_logitech           15150  0
ff_memless              4588  1 hid_logitech
hid_ezkey               1387  0
hid_cypress             2003  0
hid_chicony             2218  0
hid_cherry              1522  0
hid_belkin              1719  0
hid_apple               5331  0
hid_a4tech              2029  0
sl811_hcd              10408  0
usbhid                 26189  1 hid_logitech
ohci_hcd               23114  0
uhci_hcd               22317  0
usb_storage            45948  0
ehci_hcd               42900  0
usbcore               143176  8 uhci_hcd,usb_storage,usbserial,ohci_hcd,ehci_hcd,pl2303,usbhid,sl811_hcd
usb_common               867  1 usbcore
3w_9xxx                33926  3
mptsas                 38767  0
scsi_transport_sas     25431  1 mptsas
mptfc                  11486  0
scsi_transport_fc      46178  1 mptfc
scsi_tgt                9145  1 scsi_transport_fc
mptspi                 12591  0
scsi_transport_spi     19549  1 mptspi
mptscsih               19434  3 mptfc,mptsas,mptspi
mptbase                62677  4 mptfc,mptsas,mptspi,mptscsih
sg                     24805  0
sata_mv                25926  0
ata_piix               22255  0
ahci                   21049  0
libahci                18656  1 ahci
pata_marvell            2916  0
pata_mpiix              2999  0
libata                162221  6 ahci,pata_marvell,sata_mv,libahci,pata_mpiix,ata_piix


i always build my kernel using command:

# CCACHE_DIR="/var/tmp/ccache" genkernel --menuconfig --save-config --mountboot --install --bootloader=grub --lvm --no-splash --disklabel --kernel-cc=/usr/lib64/ccache/bin/gcc --makeopts="-j4 -l1.75" --kernel-config="/etc/kernels/kernel-config-x86_64-3.6.11-gentoo" all

# emerge --info
Code:

Portage 2.1.11.31 (default/linux/amd64/10.0, gcc-4.6.3, glibc-2.15-r3, 3.6.11-gentoo x86_64)
=================================================================
System uname: Linux-3.6.11-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9450_@_2.66GHz-with-gentoo-2.1
Timestamp of tree: Tue, 22 Jan 2013 13:30:01 +0000
ld GNU ld (GNU Binutils) 2.22
ccache version 3.1.8 [enabled]
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/ccache:          3.1.8
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo rpolasek
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=2.0"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.mirror.dkm.cz/pub/gentoo/ http://ftp.fi.muni.cz/pub/linux/gentoo/ "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4 -l1.75"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync-excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmpfs"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa amd64 avahi bash-completion berkdb bzip2 cli cracklib crypt cxx dbus dri gdbm gif gpm iconv jpeg mmx modules mp3 mudflap multilib ncurses nls nptl nvidia opengl openmp pam pcre png pulseaudio qt3support readline session slang sse sse2 ssl symlink tcpd threads tiff truetype unicode zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en cs" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON


any help, advice, ... please? :-(


Last edited by JohnBlbec on Tue Jan 29, 2013 6:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
JohnBlbec
Apprentice
Apprentice


Joined: 08 Feb 2003
Posts: 183

PostPosted: Fri Jan 25, 2013 11:29 pm    Post subject: Reply with quote

i am already quite desperate :-(

my box at work is working great (the same partition, the same lvm, no raid)
my box at home still cannot mount /usr during boot (hw raid)

i have noticed some diffs in /dev
why /dev/<lvm_vol_name>/* links to ../dm-x on my home box and to /dev/mapper/<lvm_vol_name>-<name> on my work box?
would it be the cause of my troubles? how to change it?

work
Code:

# ll /dev/lvm2/
total 0
drwxr-xr-x  2 root root  260 Jan 22 07:59 .
drwxr-xr-x 17 root root 4040 Jan 22 06:00 ..
lrwxrwxrwx  1 root root   23 Jan 22 07:59 ccache -> /dev/mapper/lvm2-ccache
lrwxrwxrwx  1 root root   26 Jan 22 07:59 distfiles -> /dev/mapper/lvm2-distfiles
lrwxrwxrwx  1 root root   21 Jan 22 07:59 home -> /dev/mapper/lvm2-home
lrwxrwxrwx  1 root root   20 Jan 22 07:59 opt -> /dev/mapper/lvm2-opt
lrwxrwxrwx  1 root root   24 Jan 22 07:59 portage -> /dev/mapper/lvm2-portage
lrwxrwxrwx  1 root root   21 Jan 22 07:59 swap -> /dev/mapper/lvm2-swap
lrwxrwxrwx  1 root root   20 Jan 22 07:59 tmp -> /dev/mapper/lvm2-tmp
lrwxrwxrwx  1 root root   20 Jan 22 07:59 usr -> /dev/mapper/lvm2-usr
lrwxrwxrwx  1 root root   20 Jan 22 07:59 var -> /dev/mapper/lvm2-var
lrwxrwxrwx  1 root root   23 Jan 22 07:59 vartmp -> /dev/mapper/lvm2-vartmp
lrwxrwxrwx  1 root root   19 Jan 22 07:59 vm -> /dev/mapper/lvm2-vm


home
Code:

# ll /dev/raid5/
total 0
drwxr-xr-x  2 root root  280 Jan 25 19:15 .
drwxr-xr-x 17 root root 4540 Jan 25 19:07 ..
lrwxrwxrwx  1 root root    7 Jan 25 19:15 ccache -> ../dm-5
lrwxrwxrwx  1 root root    7 Jan 25 19:15 distfiles -> ../dm-6
lrwxrwxrwx  1 root root    7 Jan 25 19:15 home -> ../dm-9
lrwxrwxrwx  1 root root    8 Jan 25 19:15 media -> ../dm-10
lrwxrwxrwx  1 root root    7 Jan 25 19:15 opt -> ../dm-1
lrwxrwxrwx  1 root root    7 Jan 25 19:15 portage -> ../dm-7
lrwxrwxrwx  1 root root    7 Jan 25 19:15 swap -> ../dm-0
lrwxrwxrwx  1 root root    7 Jan 25 19:15 tmp -> ../dm-2
lrwxrwxrwx  1 root root    7 Jan 25 19:15 usr -> ../dm-8
lrwxrwxrwx  1 root root    8 Jan 25 19:15 usrsrc -> ../dm-11
lrwxrwxrwx  1 root root    7 Jan 25 19:15 var -> ../dm-3
lrwxrwxrwx  1 root root    7 Jan 25 19:15 vartmp -> ../dm-4


work
Code:

# ll /dev/mapper/
total 0
drwxr-xr-x  2 root root      280 Jan 22 07:59 .
drwxr-xr-x 17 root root     4040 Jan 22 06:00 ..
crw-------  1 root root  10, 236 Jan 22 07:59 control
brw-------  1 root root 254,   4 Jan 22 07:59 lvm2-ccache
brw-------  1 root root 254,   7 Jan 22 07:59 lvm2-distfiles
brw-------  1 root root 254,   9 Jan 22 06:59 lvm2-home
brw-------  1 root root 254,   1 Jan 22 06:59 lvm2-opt
brw-------  1 root root 254,   6 Jan 22 07:59 lvm2-portage
brw-------  1 root root 254,   0 Jan 22 07:59 lvm2-swap
brw-------  1 root root 254,   3 Jan 22 07:59 lvm2-tmp
brw-------  1 root root 254,   8 Jan 22 07:59 lvm2-usr
brw-------  1 root root 254,   2 Jan 22 06:59 lvm2-var
brw-------  1 root root 254,   5 Jan 22 07:59 lvm2-vartmp
brw-------  1 root root 254,  10 Jan 22 06:59 lvm2-vm


home
Code:

# ll /dev/mapper/
total 0
drwxr-xr-x  2 root root     300 Jan 25 19:15 .
drwxr-xr-x 17 root root    4540 Jan 25 19:07 ..
crw-------  1 root root 10, 236 Jan 25 20:15 control
lrwxrwxrwx  1 root root       7 Jan 25 19:15 raid5-ccache -> ../dm-5
lrwxrwxrwx  1 root root       7 Jan 25 19:15 raid5-distfiles -> ../dm-6
lrwxrwxrwx  1 root root       7 Jan 25 19:15 raid5-home -> ../dm-9
lrwxrwxrwx  1 root root       8 Jan 25 19:15 raid5-media -> ../dm-10
lrwxrwxrwx  1 root root       7 Jan 25 19:15 raid5-opt -> ../dm-1
lrwxrwxrwx  1 root root       7 Jan 25 19:15 raid5-portage -> ../dm-7
lrwxrwxrwx  1 root root       7 Jan 25 19:15 raid5-swap -> ../dm-0
lrwxrwxrwx  1 root root       7 Jan 25 19:15 raid5-tmp -> ../dm-2
lrwxrwxrwx  1 root root       7 Jan 25 19:15 raid5-usr -> ../dm-8
lrwxrwxrwx  1 root root       8 Jan 25 19:15 raid5-usrsrc -> ../dm-11
lrwxrwxrwx  1 root root       7 Jan 25 19:15 raid5-var -> ../dm-3
lrwxrwxrwx  1 root root       7 Jan 25 19:15 raid5-vartmp -> ../dm-4


work
Code:

# ll /dev/dm*
brw-rw---- 1 root disk 254,  0 Jan 22 07:59 /dev/dm-0
brw-rw---- 1 root disk 254,  1 Jan 22 07:59 /dev/dm-1
brw-rw---- 1 root disk 254, 10 Jan 22 07:59 /dev/dm-10
brw-rw---- 1 root disk 254,  2 Jan 22 07:59 /dev/dm-2
brw-rw---- 1 root disk 254,  3 Jan 22 07:59 /dev/dm-3
brw-rw---- 1 root disk 254,  4 Jan 22 07:59 /dev/dm-4
brw-rw---- 1 root disk 254,  5 Jan 22 07:59 /dev/dm-5
brw-rw---- 1 root disk 254,  6 Jan 22 07:59 /dev/dm-6
brw-rw---- 1 root disk 254,  7 Jan 22 07:59 /dev/dm-7
brw-rw---- 1 root disk 254,  8 Jan 22 07:59 /dev/dm-8
brw-rw---- 1 root disk 254,  9 Jan 22 07:59 /dev/dm-9


home
Code:

# ll /dev/dm*
brw-rw---- 1 root disk 254,  0 Jan 25 19:15 /dev/dm-0
brw-rw---- 1 root disk 254,  1 Jan 25 19:15 /dev/dm-1
brw-rw---- 1 root disk 254, 10 Jan 25 19:15 /dev/dm-10
brw-rw---- 1 root disk 254, 11 Jan 25 19:15 /dev/dm-11
brw-rw---- 1 root disk 254,  2 Jan 25 19:15 /dev/dm-2
brw-rw---- 1 root disk 254,  3 Jan 25 19:15 /dev/dm-3
brw-rw---- 1 root disk 254,  4 Jan 25 19:15 /dev/dm-4
brw-rw---- 1 root disk 254,  5 Jan 25 19:15 /dev/dm-5
brw-rw---- 1 root disk 254,  6 Jan 25 19:15 /dev/dm-6
brw-rw---- 1 root disk 254,  7 Jan 25 19:15 /dev/dm-7
brw-rw---- 1 root disk 254,  8 Jan 25 19:15 /dev/dm-8
brw-rw---- 1 root disk 254,  9 Jan 25 19:15 /dev/dm-9
Back to top
View user's profile Send private message
JohnBlbec
Apprentice
Apprentice


Joined: 08 Feb 2003
Posts: 183

PostPosted: Sun Jan 27, 2013 12:29 am    Post subject: Reply with quote

dm-8 is my separate /usr partition. why is mounted too late on my home box? :-(

work dmeg
Code:

.
.
[drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0
EXT4-fs (sda3): re-mounted. Opts: (null)
EXT4-fs (dm-8): re-mounted. Opts: (null)
Adding 4194300k swap on /dev/mapper/lvm2-swap.  Priority:-1 extents:1 across:4194300k
EXT4-fs (dm-9): mounted filesystem with ordered data mode. Opts: (null)
EXT4-fs (dm-1): mounted filesystem with ordered data mode. Opts: (null)
EXT4-fs (dm-2): mounted filesystem with ordered data mode. Opts: (null)
EXT4-fs (dm-10): mounted filesystem with ordered data mode. Opts: (null)
.
.


home dmeg
Code:

.
.
NVRM: loading NVIDIA UNIX x86_64 Kernel Module  304.64  Tue Oct 30 10:58:20 PDT 2012
EXT4-fs (sdd1): re-mounted. Opts: (null)
Adding 8388604k swap on /dev/mapper/raid5-swap.  Priority:-1 extents:1 across:8388604k
EXT4-fs (dm-9): mounted filesystem with ordered data mode. Opts: (null)
EXT4-fs (dm-1): mounted filesystem with ordered data mode. Opts: (null)
EXT4-fs (dm-8): mounted filesystem with ordered data mode. Opts: (null)
EXT4-fs (dm-3): mounted filesystem with ordered data mode. Opts: (null)
EXT4-fs (dm-10): mounted filesystem with ordered data mode. Opts: (null)
.
.
Back to top
View user's profile Send private message
Goverp
Guru
Guru


Joined: 07 Mar 2007
Posts: 345

PostPosted: Sun Jan 27, 2013 10:45 am    Post subject: Reply with quote

Quote:
my box at work is working great (the same partition, the same lvm, no raid)
my box at home still cannot mount /usr during boot (hw raid)

Do you really have RAID hardware at home, (and not at work)? Normally people have software RAID at home because it's cheaper! And do you mean hardware RAID or fakeraid?

Whatever, I see nothing in your boot logs or configuration to handle RAID. I've no experience with hardware RAID, so I'm guessing, but I'd expect to see dmraid to be invoked somewhere. I know Genkernel has an option to handle software RAID, and then you add "domdadm" to the kernel boot parameters, so perhaps there's something similar for hardware RAID.
_________________
Greybeard
Back to top
View user's profile Send private message
JohnBlbec
Apprentice
Apprentice


Joined: 08 Feb 2003
Posts: 183

PostPosted: Sun Jan 27, 2013 7:02 pm    Post subject: Reply with quote

Goverp wrote:
Quote:
my box at work is working great (the same partition, the same lvm, no raid)
my box at home still cannot mount /usr during boot (hw raid)

Do you really have RAID hardware at home, (and not at work)? Normally people have software RAID at home because it's cheaper! And do you mean hardware RAID or fakeraid?

Whatever, I see nothing in your boot logs or configuration to handle RAID. I've no experience with hardware RAID, so I'm guessing, but I'd expect to see dmraid to be invoked somewhere. I know Genkernel has an option to handle software RAID, and then you add "domdadm" to the kernel boot parameters, so perhaps there's something similar for hardware RAID.


thanks for your answer.

i have really hw raid at home (and no raid at work)

# lspci | grep -i raid
Code:

02:00.0 RAID bus controller: 3ware Inc 9650SE SATA-II RAID PCIe (rev 01)


i think you have missed info about my 3ware pci-e card. and btw. module for 3ware (3w_9xxx) is included in some genkernel config/script.
i have tried to compile 3ware as a module (current config) and directly into the kernel but it did not solve my issue.

here is my dmesg output
Back to top
View user's profile Send private message
JohnBlbec
Apprentice
Apprentice


Joined: 08 Feb 2003
Posts: 183

PostPosted: Tue Jan 29, 2013 6:13 pm    Post subject: Reply with quote

solved (thanks to my fried mv)

the problem was a filter in /etc/lvm/lvm.conf
Code:

filter = [ "a|/dev/disk/by-id/scsi-1AMCC_9QJ200S52D994C00D1EE-part2|", "r/.*/" ]


it was ok couple of years but there must be a change in udev and that is why this device is not created at time when vgscan is trying to scan volume groups.
it would be really great to have a possibility to write filter using uuid.

the next magic (for me) is follow:

i have 2 separate hard discs
Code:

/dev/sda
/dev/sdb


and next 4 hard discs in my hw raid5 (gpt)
Code:

/dev/sdc1 (/boot)
/dev/sdd1 (/)
/dev/sdd2 (lvm2)


after boot my lvm2 group is /dev/sdd2 but i cannot write the filter for lvm as /dev/sdd2 because during boot it is not /dev/sdd2 :-(
it is quite confusing - it was the reason i have used /dev/disk/by-id/scsi-1AMCC_9QJ200S52D994C00D1EE-part2...
Back to top
View user's profile Send private message
JohnBlbec
Apprentice
Apprentice


Joined: 08 Feb 2003
Posts: 183

PostPosted: Sun Feb 03, 2013 10:17 am    Post subject: Reply with quote

now fsck fails because /usr is mounted. never ending story :-)
Back to top
View user's profile Send private message
mikitex
n00b
n00b


Joined: 28 Oct 2005
Posts: 8
Location: Pordenone, Italy

PostPosted: Sun Feb 03, 2013 3:22 pm    Post subject: Reply with quote

JohnBlbec wrote:
now fsck fails because /usr is mounted. never ending story :-)


Check the file
Code:
/etc/initramfs.mounts
and comment the line that specifies /usr.
To be more clear, this is my /etc/initramfs.mounts contents:
Code:

# This specifies which mounts from your fstab should be mounted before
# switching to the real root. If this file is missing, genkernel's code will
# default to just "/usr", which will suffice on most systems with a seperate
# /usr mount.
#
# If you have a complex configuration with a bindmount or symlink at /usr, or
# need some other mountpoints at boot, you should update this file such that
# /usr and anything else needed will be available after the switch into the
# real root.
#
# The lines without comments in this file are used as exact matches against the
# second column of your /etc/fstab and the device, fstype and mount options are
# taken from that line in fstab. If no line matches, the line from this file
# will be ignored.
#

# Commented out because mounted before to be checked
#/usr

# If you had some need of these:
#/usr/local
#/opt
#/var
#/home
[/code]
Back to top
View user's profile Send private message
JohnBlbec
Apprentice
Apprentice


Joined: 08 Feb 2003
Posts: 183

PostPosted: Tue Feb 05, 2013 1:47 pm    Post subject: Reply with quote

mikitex wrote:
JohnBlbec wrote:
now fsck fails because /usr is mounted. never ending story :-)

Check the file
Code:
/etc/initramfs.mounts
and comment the line that specifies /usr.


i am not sure your advice is ok. yes, my separate /usr partition will be checked using fsck w/o problems but the same partition will not be mounted at the right time and the second note was the problem i was tried to solve in this thread. Or my understanding of /etc/initramfs.mounts is wrong?
Back to top
View user's profile Send private message
mikitex
n00b
n00b


Joined: 28 Oct 2005
Posts: 8
Location: Pordenone, Italy

PostPosted: Sat Feb 09, 2013 5:45 pm    Post subject: Reply with quote

JohnBlbec wrote:
i am not sure your advice is ok. yes, my separate /usr partition will be checked using fsck w/o problems but the same partition will not be mounted at the right time and the second note was the problem i was tried to solve in this thread. Or my understanding of /etc/initramfs.mounts is wrong?


My system is configured with a separate /usr and I don't have problems. I use lvm on software RAID5 with these volumes:
Code:
  distfiles    raid5vol   -wi-ao--  20,00g    # /usr/portage/distfiles                                           
  home         raid5vol   -wi-ao-- 100,00g    # /home                                           
  opt          raid5vol   -wi-ao--   4,00g    # /opt                                           
  portage      raid5vol   -wi-ao--   8,00g    # /usr/portage                                           
  slash        raid5vol   -wi-ao--   2,00g    # /                                           
  swap         raid5vol   -wi-a---   8,00g                                           
  usr          raid5vol   -wi-ao--  24,00g    # /usr                                           
  var          raid5vol   -wi-ao--   4,00g    # /var                                           
  vartmp       raid5vol   -wi-ao--   8,00g    # /var/tmp                                           


I use genkernel for initrd creation to simplify upgrades. I used to build kernel and initial ramdisk by hand but now I don't have time to do it.
From what I understand mounting filesystems early is necessary only if something is requested during boot. Using genkernel I'm sure that all necessary binaries are put in the initial ramdisk, so it is not necessary to mount /usr in the early boot.
Back to top
View user's profile Send private message
JohnBlbec
Apprentice
Apprentice


Joined: 08 Feb 2003
Posts: 183

PostPosted: Sun Feb 10, 2013 5:01 pm    Post subject: Reply with quote

mikitex wrote:
JohnBlbec wrote:
i am not sure your advice is ok. yes, my separate /usr partition will be checked using fsck w/o problems but the same partition will not be mounted at the right time and the second note was the problem i was tried to solve in this thread. Or my understanding of /etc/initramfs.mounts is wrong?


My system is configured with a separate /usr and I don't have problems. I use lvm on software RAID5 with these volumes:
Code:
  distfiles    raid5vol   -wi-ao--  20,00g    # /usr/portage/distfiles                                           
  home         raid5vol   -wi-ao-- 100,00g    # /home                                           
  opt          raid5vol   -wi-ao--   4,00g    # /opt                                           
  portage      raid5vol   -wi-ao--   8,00g    # /usr/portage                                           
  slash        raid5vol   -wi-ao--   2,00g    # /                                           
  swap         raid5vol   -wi-a---   8,00g                                           
  usr          raid5vol   -wi-ao--  24,00g    # /usr                                           
  var          raid5vol   -wi-ao--   4,00g    # /var                                           
  vartmp       raid5vol   -wi-ao--   8,00g    # /var/tmp                                           


I use genkernel for initrd creation to simplify upgrades. I used to build kernel and initial ramdisk by hand but now I don't have time to do it.
From what I understand mounting filesystems early is necessary only if something is requested during boot. Using genkernel I'm sure that all necessary binaries are put in the initial ramdisk, so it is not necessary to mount /usr in the early boot.


...and /usr/bin/alsactl restore your configuration during boot correctly?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum