Bug 302158

Summary: Partitioner fstab options propose hotplug option that no longer exists
Product: [openSUSE] openSUSE 10.3 Reporter: Antonio Martins <digiplan.pt>
Component: YaST2Assignee: Thomas Fehr <fehr>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: hare
Version: Beta 1   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: YaST2 Partitioner showing external iscsi device
Partitioner with hotplug as default option
Partitioner error when trying mount
boot error where trying to mount iscsi non-root device
YaST2 logs after partitioner error

Description Antonio Martins 2007-08-21 14:45:22 UTC
Created attachment 158740 [details]
YaST2 Partitioner showing external iscsi device

When having external devices (such as iscsi disks), calling YaST2 Partitioner to format and mount the device fails after formatting.

This seems to be due to the fstab option 'hotplug' that no longer exists under /bin/mount command. It seems to have been replaced by 'nofail'.
The option 'hotplug' is proposed by the Partitioner. After formatting, mount complains about 'hotplug' option as seen in the attached snapshot.

Changing this to 'nofail' makes the Partitioner run OK all the way. Entry is made under /etc/fstab.

NOTE:
However, after rebooting, it says it does not find the device, and pulls the runlevel 1 fsck console.
Under this example with iscsi device, network and open-iscsi should be running before iscsi tries to mount this device, or this mount should be delayed until after those daemons are running.
Comment 1 Antonio Martins 2007-08-21 14:46:30 UTC
Created attachment 158741 [details]
Partitioner with hotplug as default option
Comment 2 Antonio Martins 2007-08-21 14:46:59 UTC
Created attachment 158742 [details]
Partitioner error when trying mount
Comment 3 Antonio Martins 2007-08-21 14:47:35 UTC
Created attachment 158743 [details]
boot error where trying to mount iscsi non-root device
Comment 4 Matej Horvath 2007-08-27 10:14:26 UTC
Could you please attach your yast logs (http://en.opensuse.org/Bugs/YaST)?
Comment 5 Antonio Martins 2007-08-27 13:15:17 UTC
Created attachment 159975 [details]
YaST2 logs after partitioner error
Comment 6 Antonio Martins 2007-08-27 13:16:53 UTC
I have attached the YaST2 logs as requested, after repeating the error, so they should be last events.
Comment 7 Thomas Fehr 2007-08-28 09:16:58 UTC
Christoph, how should this be handled in 10.3
Comment 8 Christoph Thiel 2007-08-28 11:12:20 UTC
Hannes just confirmed to me that hotplug has been renamed nofail. CCing Hannes and Matthias JFYI.

Thomas, let's just rename the option!
Comment 9 Thomas Fehr 2007-08-28 11:24:06 UTC
Done.

Note that this change will break updates of SLES10 SP1 or newer (where we
first introduced "hotplug") to SLES11. 

Certainly no good news that stability of fstab options is now less than a year.
In the long term such (functionally meaningless) changes will make system update 
much more problematic.