Hello,
Can someone please tell me which command to use to determine the available disk space on a given disk device?
I have to write a shell script that compresses files and stores them in a specific location but I am not sure how "conservative" I should be?
Thanks in advance!
Al. (4 Replies)
Hi everybody,
I got a problem on my SUN server in Solaris 9. I'll try to explain, if somebody could help me.
I have mounted some volumes in RAID 0+1, that is stripped slices and then mirror. To be clear the result of metastat d80 is as follow :
d80: Mirror
Submirror 0: d81
State:... (2 Replies)
Hi,
am a newbie at solaris. Need advice and help on this.
1) How do I break the mirror between 2 hard disks. (wish to keep 1 good hard disk as backup)
2) After remove 1 hard disk and put in new hard disk, how do I initialise or fomat the new hard disk?
3) How do I put back the backup... (3 Replies)
Might anyone know how to make a nbsp (160|0xA0) character? I am using a Dell Latitude D620 running Windows XP and then starting Exceed 9.0 defaulting to native window emulation for my X (us.kbf keymapping) (Latin-1 symbol set I believe) and calling an xterm (fontdefault, whatever that might be)... (1 Reply)
Hi, I have the next doubt about of lost of characteristic of LV
in my original configuration
# lsvg -l ifxvg
ifxvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
aw64m_01 jfs 1 1 1 open/syncd N/A
aw64m_02 jfs 1... (1 Reply)
Hello,
I am currently trying to edit an ldif file. The ldif specification states that a newline followed by a space indicates the subsequent line is a continuation of the line. So, in order to search and replace properly and edit the file, I open the file in textwrangler, search for "\r " and... (14 Replies)
trying to recover a lost partition table, where the signature (0x55AA) has been lost, though attempting to restore using a number of tools (fdisk, testdisk et al) the write fails.
also the os is unable to read the disk geometry correctly, after attempting to correct the geometry, the updated... (2 Replies)
This code shal search for the non-breaking space 0xA0 though it returns the error "fatal: attempt to use scalar 'nbs' as array" Can somebody help?
awk --non-decimal-data -v nbs="0xA0" '{if($0 in nbs) {print FILENAME, NR}}' *.txt (1 Reply)
Hi guys, I appreciate any help in this regard, we have lost sensitive data in the company.
One box with 2 disk mirrored and a 3ware controller handling 13 disks in a raidz2 pool. Suddenly the box restart and keeps "Reading ZFS config" for hours.
Unplugging disk by disk we isolate the disk... (3 Replies)
Hi ,
In a server /tmp has almost reached 75% and i can see the File system utilization is 48Mb only , so i believe some process is using the /tmp space. I would like to know which process is using /tmp space.
# df -h /tmp
Filesystem size used avail capacity Mounted on
swap ... (9 Replies)
Discussion started by: chidori
9 Replies
LEARN ABOUT MOJAVE
fsync_volume_np
SYNC_VOLUME_NP(3) BSD Library Functions Manual SYNC_VOLUME_NP(3)NAME
sync_volume_np -- Sync a mounted filesystem
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <unistd.h>
int
sync_volume_np(const char *path, int flags);
int
fsync_volume_np(int fd, int flags);
DESCRIPTION
The sync_volume_np() function causes data and metadata on the filesystem containing path to be synced to disk; this may be any file or direc-
tory on that filesystem. The fsync_volume_np() does the same thing, but using an open file descriptor for that filesystem. Both functions
take a flags parameter, with the currently-defined options:
SYNC_VOLUME_FULLSYNC Request that the data and metadata be written to the disk hardware; if not set, then the hardware may keep it in
cache.
SYNC_VOLUME_WAIT Wait for the data and metadata to be written; if not set, then it will return when the requests have been made.
RETURN VALUES
Both functions return 0 on success, and a non-zero error code on error.
ERRORS
The fsync_volume_np() function may return EBADF if the fd parameter is not a valid, open file descriptor. The sync_volume_np() function may
return errors if:
[EACCES] Search permission is denied for a component of the path prefix.
[EIO] An I/O error occurs while reading from or writing to the file system.
[ELOOP] Too many symbolic links are encountered in translating the pathname. This is taken to be indicative of a looping symbolic
link.
[ENAMETOOLONG]
A component of a pathname exceeds {NAME_MAX} characters, or an entire path name exceeds {PATH_MAX} characters.
[ENOENT] The named file does not exist.
[ENOTDIR] A component of the path prefix is not a directory.
BSD June 1, 2019 BSD