LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-17-2016, 07:24 PM   #1
RedDog2
LQ Newbie
 
Registered: Feb 2016
Location: SoCal
Distribution: SLES 11/SP3 Server
Posts: 5

Rep: Reputation: Disabled
Mounting Virtual Disks in a SLES11/SP3 KVM Hosted VM (shows busy after reboot)


Ok, so I'm working on a SLES11/SP3 Server that is setup with KVM to Host VMs. I've allocated two spare Drives as RAID-0 Volumes to that VM. When I first stand up the VM, I'm able to run sfdisk/mkfs, update the /etc/fstab, and mount the filesys/s (after creating the mount points and such).

Then I reboot the VM (for something like setting the IP Addresses), and when it comes up those filesys/s won't mount (and gives me a busy message):

note_osdump:/etc # mount /data
mount: /dev/vdb1 already mounted or /data busy
note_osdump:/etc # fuser -c /data
note_osdump:/etc # mount
/dev/sda2 on / type ext3 (rw,acl,user_xattr,errors=panic)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
debugfs on /sys/kernel/debug type debugfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,mode=1777)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/sda5 on /var type ext3 (rw,acl,user_xattr,errors=panic)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
none on /var/lib/ntp/proc type proc (ro,nosuid,nodev)
note_osdump:/etc # cat /etc/fstab
LABEL=ROOT-BE1 / ext3 acl,user_xattr,errors=panic 1 1
LABEL=VAR-BE1 /var ext3 acl,user_xattr,errors=panic 1 2
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
/dev/vda1 /repo ext3 defaults,nofail 0 0
/dev/vdb1 /data ext3 defaults,nofail 0 0
note_osdump:/etc # fdisk -l /dev/vda

Disk /dev/vda: 899.0 GB, 898999779328 bytes
16 heads, 63 sectors/track, 1741923 cylinders, total 1755858944 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x1442b0d0

Device Boot Start End Blocks Id System
/dev/vda1 1 1755858383 877929191+ 83 Linux
note_osdump:/etc # fdisk -l /dev/vdb

Disk /dev/vdb: 899.0 GB, 898999779328 bytes
16 heads, 63 sectors/track, 1741923 cylinders, total 1755858944 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xf895f817

Device Boot Start End Blocks Id System
/dev/vdb1 1 1755858383 877929191+ 83 Linux
note_osdump:/etc # ls -l /dev/vd*
brw-rw---- 1 root disk 253, 0 Feb 17 17:50 /dev/vda
brw-rw---- 1 root disk 253, 1 Feb 17 17:50 /dev/vda1
brw-rw---- 1 root disk 253, 16 Feb 17 17:50 /dev/vdb
brw-rw---- 1 root disk 253, 17 Feb 17 17:50 /dev/vdb1
note_osdump:/etc #

I can see the Partitions so we can access the devices.

What I'm trying to figure out is what has taken over ownership of those devices.

Any suggestions?
 
Old 02-23-2016, 01:34 PM   #2
RedDog2
LQ Newbie
 
Registered: Feb 2016
Location: SoCal
Distribution: SLES 11/SP3 Server
Posts: 5

Original Poster
Rep: Reputation: Disabled
We actually figured this one out.

Due to the mount options used in /etc/fstab, we didn't get /etc/mtab updated properly.

We found if we looked at /proc/mounts those filesys/s were actually mounted, we just couldn't see them in the df output (because they were not in /etc/mtab).

We fixed that by changing the mount options to:

/dev/vda1 /repo ext3 acl,user_xattr 1 2
/dev/vdb1 /data ext3 acl,user_xattr 1 2

Problem solved.

I'm not sure if this information provides value to others or not. I find these posts often provide a piece of data that I need to solve problems that I'm working on, so wanted to contribute.

I'll try a few more to see if anybody gets anything out of this (if not; I won't waste anybody's time).
 
Old 02-26-2016, 01:31 AM   #3
Tim Abracadabra
Member
 
Registered: May 2014
Location: USA, Wherever I may Roam
Distribution: Debian w/Xfce, LFS 7.9, ++
Posts: 117

Rep: Reputation: Disabled
Thanks RedDog2 for providing your resolution.

Much appreciated!

All the best,
Tim
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Restricting access to hidden files for a user. SLES11 sp3 mtsoule Linux - Server 2 09-20-2014 10:28 AM
Hyptop issue on SLES11 SP3 (Linux on System z) ghowells Linux - Enterprise 0 11-07-2013 02:45 AM
Switching between KVM and Xen on SLES11 SP1 Mark_667 SUSE / openSUSE 2 01-17-2012 07:26 AM
[SOLVED] VMvare Virtual server, disks dissapeared after reboot zeljko60 Linux - Newbie 2 01-04-2012 03:33 AM
kvm only shows virtual cpu!? cosmonate Linux - Virtualization and Cloud 10 02-02-2011 10:38 AM


All times are GMT -5. The time now is 08:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration