tangram Tux's lil' helper
Joined: 21 Aug 2007 Posts: 104 Location: 3City, Poland
|
Posted: Thu Jan 31, 2013 9:01 pm Post subject: udev-197 and /usr on separate partition under lvm |
|
|
Hello.
I have /usr on separate partition, after udev update to udev-197 I see in rc.log following messages:
1. During boot:
Quote: |
* Mounting local filesystems ...
mount: /dev/mapper/vgsys-usr already mounted or /usr busy
mount: according to mtab, /dev/vgsys/usr is already mounted on /usr
* Some local filesystem failed to mount
[ !! ]
|
reason:
localmount tries to mount /usr but it is already mounted in early boot phase
solution:
can live with this message
2. During shutdown:
Quote: |
* Shutting down the Logical Volume Manager
* Shutting Down LVs & VGs ...
device-mapper: remove ioctl on failed: Device or resource busy
...
device-mapper: remove ioctl on failed: Device or resource busy
Unable to deactivate vgsys-usr (254:0)
* Failed
[ !! ]
|
reason:
lvm tries to shutdown still mounted volume /usr.
Earlier localmount did not unmount /usr becasue /usr was appended to no_umounts_r variable.
solution:
In localmount script, in function start(), I commented out these lines:
Code: |
# if mountinfo -q /usr; then
# touch $RC_SVCDIR/usr_premounted
# fi
|
Is this right solution ?
/etc/fstab
Code: |
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
#/dev/sda1 /boot ext2 noauto,noatime 1 2
/dev/sda1 /boot ext2 defaults,noatime 1 2
/dev/sda3 /ext4 noatime 0 1
/dev/sda2 none swap sw 0 0
/dev/cdrom /mnt/cdrom auto noauto,user,ro 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
# LVM Logical volumes
/dev/vgsys/usr /usr jfs noatime 0 2
/dev/vgsys/home /home jfs noatime 0 2
/dev/vgsys/opt /opt jfs noatime 0 2
/dev/vgsys/var /var jfs noatime 0 2
/dev/vgsys/tmp /tmp jfs noatime 0 2
|
|
|