1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417
|
.\" Copyright IBM Corp. 2015, 2017
.\" s390-tools is free software; you can redistribute it and/or modify
.\" it under the terms of the MIT license. See LICENSE for details.
.\"
.TH HMCDRVFS 1 "Mar 2015" "s390-tools"
.\" disable hyphenation for words below
.hw hmcdrv hmcdrvfs fuse DIAGNOSTICS
.SH NAME
hmcdrvfs \- mount a
.SM FUSE
file system for remote access to a
.SM DVD
in a
.SM HMC DVD
drive
.SH SYNOPSIS
mounting:
.nf
.RS
\fBhmcdrvfs\fP MOUNTPOINT [OPTIONS]
.RE
.fi
.PP
unmounting:
.nf
.RS
\fBfusermount\fP -u MOUNTPOINT
.RE
.fi
.SH DESCRIPTION
Use the \fBhmcdrvfs\fP command for read-only access to files
on a
.SM DVD
in the
.SM DVD
drive of an
.SM HMC\c
\&.
On the
.SM HMC\c
, the
.SM DVD
must be assigned to the
.SM LPAR
within which your Linux instance runs. For
.SM z/VM
guests, the
.SM DVD
must be
assigned to the
.SM LPAR
where the
.SM z/VM
hypervisor runs.
With the
.SM DVD
assigned to your Linux instance, this command creates a
.SM FUSE.HMCDRVFS
file system with the content of the
.SM DVD
at the specified mountpoint.
.SH OPTIONS
.SS "General mount options"
.TP
\fB-o\fP opt[,opt...]
.SM FUSE
or mount command options;
for the
.SM FUSE
options see below, for mount options
see \fBmount(8)\fP
.TP
\fB-h\fP, \fB--help\fP
print usage information, then exit (see also DIAGNOSTICS)
.TP
\fB-v\fP, \fB--version\fP
print version information, then exit
.SS "Specific FUSE.HMCDRVFS options"
.TP
.BI "-o hmclang=" LANG
specify the language setting on the
.SM HMC\c
; for valid values, see \fBlocale(1)\fP;
for more information, see DIAGNOSTICS and EXAMPLES
.TP
.BI "-o hmctz=" TZ
specify the time zone setting on the
.SM HMC\c
; for valid values, see \fBtzset(3)\fP;
for more information, see DIAGNOSTICS and EXAMPLES
.SS "Applicable FUSE options (version 2.6)"
.TP
\fB-d\fP, \fB-o debug\fP
enable debug output (implies \fB-f\fP)
.TP
.B -f
foreground operation
.TP
.B -s
disable multi-threaded operation
.TP
.B -o allow_other
allow access by other users
.TP
.B -o allow_root
allow access by root
.TP
.B -o nonempty
allow mounts over non-empty file/dir
.TP
.B -o default_permissions
enable permission checking by kernel
.TP
.BI "-o fsname=" NAME
set file system name
.TP
.BI "-o subtype=" TYPE
set file system type
.TP
.BI "-o max_read=" N
set maximum size of read requests
.TP
.B -o direct_io
use direct I/O
.TP
.B -o kernel_cache
cache files in kernel
.TP
\fB-o \fP[\fBno\fP]\fBauto_cache\fP
enable caching based on modification times
.TP
.BI "-o umask=" M
set file permissions (octal)
.TP
.BI "-o uid=" N
set file owner
.TP
.BI "-o gid=" N
set file group
.TP
.BI "-o entry_timeout=" T
cache timeout for names (default: 1.0 second)
.TP
.BI "-o attr_timeout=" T
cache timeout for attributes (default: 1.0 second)
.TP
.BI "-o ac_attr_timeout=" T
auto cache timeout for attributes (default: \fBattr_timeout\fP)
.TP
.BI "-o max_readahead=" N
set maximum readahead
.TP
.B -o async_read
perform reads asynchronously (default)
.TP
.B -o sync_read
perform reads synchronously
.TP
.B -o no_remote_lock
disable remote file locking
.TP
.B -o intr
allow requests to be interrupted
.TP
.BI "-o intr_signal=" NUM
signal to send on interrupt
.SH EXAMPLES
To mount the
.SM HMC
drive
.SM DVD
at \fI/mnt/hmc\fP without any special options use:
.PP
.nf
.RS
.B $ hmcdrvfs /mnt/hmc
.RE
.fi
.PP
In case the kernel module \fIhmcdrv\fP was not loaded in advance use:
.PP
.nf
.RS
.B # modprobe hmcdrv
.B # hmcdrvfs /mnt/hmc
.RE
.fi
.PP
To translate the UID and GID of files on the
.SM HMC
drive
.SM DVD
to your system users and groups along with overriding the permissions use for
example:
.PP
.nf
.RS
.B $ hmcdrvfs /mnt/hmc -o uid=500 -o gid=1000 -o umask=0337
.RE
.fi
.PP
To speed up transfer rates to frequently accessed directories use
the cache timeout option:
.PP
.nf
.RS
.B $ hmcdrvfs /mnt/hmc -o entry_timeout=60
.RE
.PP
.fi
If the
.SM HMC
is in a different timezone and is configured for a
different language use, for example:
.PP
.nf
.RS
.B $ hmcdrvfs /mnt/hmc -o hmclang=de_DE -o hmctz=Europe/Berlin
.RE
.fi
.PP
or disregarding any daylight saving time, specifying hours west of
Prime Meridian (UTC):
.PP
.nf
.RS
.B $ hmcdrvfs /mnt/hmc -o hmclang=de_DE -o hmctz="GMT-1"
.RE
.fi
.PP
To unmount the
.SM HMC
drive
.SM DVD
mounted on \fI/mnt/hmc\fP use:
.PP
.nf
.RS
.B $ fusermount -u /mnt/hmc
.RE
.fi
.PP
It is also possible to mount by using \fBfstab(5)\fP. Specify
the mount point and associated mount options in \fI/etc/fstab\fP,
for example:
.PP
.nf
.RS
hmcdrvfs /mnt/hmc fuse ro,noatime,allow_other,uid=500,gid=1000
.RE
.fi
.PP
You can then mount the file system with this command:
.PP
.nf
.RS
.B # mount /mnt/hmc
.RE
.fi
.SH FILES
Some general options about mount policy can be set in the
\fI/etc/\:fuse.conf\fP file. These options are:
.TP
.BI "mount_max=" NNN
Set the maximum number of
.SM FUSE
mounts allowed to non-root users.
The default is 1000.
.TP
.B user_allow_other
Allow non-root users to specify the \fBallow_other\fP or \fBallow_root\fP
mount options.
.SH DIAGNOSTICS
.IP 1. 3
The
.SM FUSE.HMCDRVFS
file system needs access to device node \fI/dev/\:hmcdrv\fP. This node is
created automatically when the \fIhmcdrv\fP kernel module is loaded (see Linux
kernel configuration option
.SM CONFIG_HMC_DRV\c
). The user process that runs the \fBhmcdrvfs\fP command must have
sufficient privileges to read from and write to node \fI/dev/\:hmcdrv\fP.
Use the commands \fBchown(1)\fP, \fBchgrp(1)\fP and/or \fBchmod(1)\fP on
node \fI/dev/\:hmcdrv\fP to ensure this condition.
.IP 2. 3
In addition to the required permissions, there are some environmental
requirements:
.RS
.IP - 2
In a
.SM z/VM
environment, the
.SM z/VM
guest virtual machine must have at least privilege class B.
.IP - 2
For Linux in
.SM LPAR
mode, the
.SM LPAR
activation profile must allow issuing
.SM SCLP
requests.
.IP - 2
On the
.SM HMC\c
, the
.SM DVD
must be assigned to the associated system image (use menu \fIAccess Removable
Media\fP).
.RE
.IP 3. 3
The
.SM FUSE.HMCDRVFS
file system maintains a file attributes cache, with an aging timeout. This
timeout is related to the \fBentry_timeout\fP and \fBattr_timeout\fP
.SM FUSE
options. Its value exceeds the greater of the two, \fBentry_timeout\fP and
\fBattr_timeout\fP, by 30 - 60 seconds. This timeout affects the performance
of the
.SM FUSE.HMCDRVFS
file system.
.RE
.IP 4. 3
Different language and time zone settings on the
.SM HMC
and your Linux instance can result in incorrect file modification information.
.RS
.IP - 2
Use the \fBhmclang\fP specific
.SM FUSE.HMCDRVFS
option if the language settings
of the
.SM HMC
and your Linux instance do not match. Correctly setting this option prevents
incorrect file modification dates in the file details. Omitting the
\fBhmclang\fP option can result in incorrect dates of the form 01-01-YYYY,
with misleading values for the day and month.
.IP - 2
Use the \fBhmctz\fP specific
.SM FUSE.HMCDRVFS
option if the time zone settings
of the
.SM HMC
and your Linux instance do not match. Correctly setting this option prevents
incorrect file modification times in the file details. Omitting \fBhmctz\fP,
an incorrect specification, or a missing time zone description file can result
in modification times that differ up to 25 hours from the correct times.
Specifications that cannot be interpreted result in GMT/UTC being set. If the
.SM HMC
is set to GMT/UTC, specify \fBhmctz=""\fP.
.RE
.IP 5. 3
The following generic mount options from \fBmount(8)\fP are ignored:
.RS 3
.TP
\fB-w\fP, \fB--rw\fP, \fB-o rw\fP
mount the file system read/write
.TP
.B -o atime
update inode access times on this file system
.RE
.IP 6. 3
The following
.SM FUSE
mount options from \fBmount.fuse(8)\fP are
ignored:
.RS 3
.TP
.B -o hard_remove
immediate removal
.TP
.B -o negative_timeout
cache timeout for deleted names
.TP
.BI "-o max_write=" N
set maximum size of write requests
.TP
.B -o atomic_o_trunc
enable atomic open+truncate support
.TP
.B -o big_writes
enable larger than 4kB writes
.TP
.BI "-o subdir=" DIR
prepend this directory to all paths
.TP
.B -o use_ino
let file system set inode numbers
.TP
.B -o readdir_ino
try to fill in d_ino in readdir
.RE
.SH SEE ALSO
.BR tzset(3),
.BR locale(1),
.BR fusermount(1),
.BR fstab(5),
.BR mount(8),
.B mount.fuse(8)
.BR lshmc(8),
and Linux on System z: Device Drivers, Features and Commands
|