fsoptions in storage partition csv file ?

52 views
Skip to first unread message

Enrique Flores

unread,
Feb 9, 2017, 6:01:40 PM2/9/17
to stacki
Hello,
I'm trying to add --fsoptions to a storage partition csv file ... in the following way: 

Name,Device,Mountpoint,Size,Type,Options
hybrid-48,sda,/,0,xfs,--label="/"
,sda,swap,8192,swap,--label="swap"
,sda,biosboot,1,biosboot,--label="biosboot"
,sdb,/local01,0,xfs,--label="/local01" --fsoptions="defaults,noatime,nodiratime,nobarrier,inode64,nofail"
,sdc,/local02,0,xfs,--label="/local02" --fsoptions="defaults,noatime,nodiratime,nobarrier,inode64,nofail"
,sdd,/local03,0,xfs,--label="/local03" --fsoptions="defaults,noatime,nodiratime,nobarrier,inode64,nofail"
,sde,/local04,0,xfs,--label="/local04" --fsoptions="defaults,noatime,nodiratime,nobarrier,inode64,nofail"
,sdf,/local05,0,xfs,--label="/local05" --fsoptions="defaults,noatime,nodiratime,nobarrier,inode64,nofail"
,sdg,/local06,0,xfs,--label="/local06" --fsoptions="defaults,noatime,nodiratime,nobarrier,inode64,nofail"
,sdh,/local07,0,xfs,--label="/local07" --fsoptions="defaults,noatime,nodiratime,nobarrier,inode64,nofail"
,sdi,/local08,0,xfs,--label="/local08" --fsoptions="defaults,noatime,nodiratime,nobarrier,inode64,nofail"
,sdj,/local09,0,xfs,--label="/local09" --fsoptions="defaults,noatime,nodiratime,nobarrier,inode64,nofail"
,sdk,/local10,0,xfs,--label="/local10" --fsoptions="defaults,noatime,nodiratime,nobarrier,inode64,nofail"
,sdl,/local11,0,xfs,--label="/local11" --fsoptions="defaults,noatime,nodiratime,nobarrier,inode64,nofail"
,sdm,/local12,0,xfs,--label="/local12" --fsoptions="defaults,noatime,nodiratime,nobarrier,inode64,nofail"


I get the following error when I load the file: 

# stack load storage partition file=storage.hybrid-48.csv
  File "/opt/stack/bin/stack", line 402, in run_command
    rc = command.runWrapper(name, args[i:])
  File "/opt/stack/lib/python2.6/site-packages/stack/commands/command.py", line 2695, in runWrapper
    rc = self.run(self._params, self._args)
  File "/opt/stack/lib/python2.6/site-packages/stack/commands/load/storage/partition/__init__.py", line 86, in run
    self.runImplementation('load_%s' % processor, (filename, ))
  File "/opt/stack/lib/python2.6/site-packages/stack/commands/command.py", line 2256, in runImplementation
    return o.run(args)
  File "/opt/stack/lib/python2.6/site-packages/stack/commands/load/storage/partition/imp_load_default.py", line 136, in run
    if header[i] == 'name':
stack.commands.load.storage.partition: IndexError -- list index out of range


i'm running the following version of stacki: 
# rpm -qa | grep -i stack
stack-config-server-3.2-7.x.x86_64
stack-images-3.2-7.x.x86_64
stack-tracker-3.2-7.x.x86_64
stack-admin-3.2-7.x.x86_64
stack-kickstart-3.2-7.x.x86_64
stack-sql-3.2-7.x.noarch
stack-pxeboot-3.2-7.x.x86_64
stack-wizard-3.2-7.x.noarch
stack-config-3.2-7.x.x86_64
stack-pylib-3.2-7.x.noarch
stack-build-3.2-7.x.noarch
stack-command-3.2-7.x.noarch


Is this something I can do from a storage partition csv file ? 


Thanks for your help.
-EHF


Joe Kaiser

unread,
Feb 9, 2017, 6:10:43 PM2/9/17
to sta...@googlegroups.com
Hi Enrique,

I've had this exact problem when messing with docker and an overlay fileystem that needed mkfsoptions.

The answer is maybe. 

If --fsoptions can be a space delimited list, then I can send you a diff for the partition.xml that strips the quotes our of the options. (It will be fixed in the next version.)

Trying to get the load storage partition command to accommodate this is harder. 

So if this: --fsoptions="defaults,noatime,nodiratime,nobarrier,inode64,nofail" can be this:  --fsoptions="defaults noatime nodiratime nobarrier inode64 nofail"

then I can send a diff. I check RHEL docs, not indication either way if the fsoptions will do the right thing in /etc/fstab.

Thanks,

Joe


--
You received this message because you are subscribed to the Google Groups "stacki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stacki+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Enrique Flores

unread,
Feb 10, 2017, 12:22:21 PM2/10/17
to stacki
Hello Joe,
Please send the diff ... i'll give it a try. 

Thanks for your quick reply.
Best Regards,
-EHF

To unsubscribe from this group and stop receiving emails from it, send an email to stacki+un...@googlegroups.com.

Joe Kaiser

unread,
Feb 10, 2017, 12:34:04 PM2/10/17
to sta...@googlegroups.com
This is the diff:

@@ -129,7 +129,7 @@
  st = "part %s %s --fstype=%s --ondisk=%s %s" % \
  (o['mountpoint'], size, o['fstype'], \
  o['device'], \
- o['options'].replace("'","").replace('"', ''))
+ o['options'])
  part_lines.append(st)

  # Write all the partition lines

It will be easiest to do this if you add a cart or a already have a cart.

If you have a cart drop the attached replace-partition.xml into the carts "nodes" directory.

if you don't have a cart, do something like this:

# stack add cart site-customization

# cp replace-partition.xml  /export/stack/carts/site-customization/nodes

# stack enable cart

Then install nodes. You still can't use commas in the fsoptions. Use spaces and see if that works. Not sure if it will for fstab 

Thanks,

Joe


To unsubscribe from this group and stop receiving emails from it, send an email to stacki+unsubscribe@googlegroups.com.
replace-partition.xml
Reply all
Reply to author
Forward
0 new messages