Author Topic: fstab issue  (Read 1975 times)

0 Members and 1 Guest are viewing this topic.

Offline as_1981

  • Jr. Member
  • **
  • Posts: 2
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
fstab issue
« on: August 20, 2019, 04:09:52 pm »
All,

Version 16.04. It's just a test VM for learning purposes.

I am relatively new to Linux and I'm currently following the instructions here https://www.sqlservercentral.com/steps/adding-disks-level-3-of-the-stairway-to-sql-server-on-linux

My fstab looks as follows:

#/dev/vg_tempdb/lvo10 /var/opt/mssql/data/tempdb xfs defaults,nobarrier 1 2
#/dev/vg_data01/lvo10 /var/opt/mssql/data/data01 xfs defaults,nobarrier 1 2
#/dev/vg_log01/lvo10 /var/opt/mssql/data/log01 xfs defaults,nobarrier 1 2

If I try and boot without the comment symbol then it runs a start-up job for any uncommented lines. The start up job counts up to 1 minute 30 and then the system boots into emergency mode. Journal -xb shows:

ubuntu system [1]: local-fs target: job local-fs.target/start failed with result 'dependancy'
.
.
ubuntu system [1]: local-fs target: dependency failed for File System Check on /dev/vg_tempdb/lvo10

I would appreciate some advice on how to identify which dependency is missing.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18269
  • Karma: 477
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: fstab issue
« Reply #1 on: August 20, 2019, 08:20:05 pm »
Do you get the same message if you boot with the lines commented .. then uncomment them and run:
Code: [Select]
sudo mount -a
?
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline as_1981

  • Jr. Member
  • **
  • Posts: 2
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: fstab issue
« Reply #2 on: August 21, 2019, 10:00:24 am »
Thanks for your help. The output of

Code: [Select]
sudo mount -a
is

mount: special device /dev/vg_tempdb/lvo10 does not exist

I checked the file system and /dev/vg_tempdb exists. However vg_tempdb does not contain lvo10. It contains ../dm-1

Does that mean I made a mistake when I created the logical drive with mkfs.xfs? Do I need to remove the logical drive (lvremote?) and do that again?

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18269
  • Karma: 477
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: fstab issue
« Reply #3 on: August 22, 2019, 01:42:55 pm »
Dunno (I would have thought it more likely that lvcreate went wrong somewhere), what's the output from
Code: [Select]
lsblk
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal