Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
udev-197 and /usr on separate partition under lvm
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
tangram
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2007
Posts: 104
Location: 3City, Poland

PostPosted: Thu Jan 31, 2013 9:01 pm    Post subject: udev-197 and /usr on separate partition under lvm Reply with quote

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
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