Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dpm_addfs(3) [debian man page]

DPM_ADDFS(3)						       DPM Library Functions						      DPM_ADDFS(3)

NAME
dpm_addfs - add a filesystem to a disk pool SYNOPSIS
#include <sys/types.h> #include "dpm_api.h" int dpm_addfs (char *poolname, char *server, char *fs, int status, int weight) DESCRIPTION
dpm_addfs adds a filesystem to a disk pool. poolname specifies the disk pool name previously defined using dpm_addpool. server specifies the host name of the disk server where this filesystem is mounted. fs specifies the mount point of the dedicated filesystem. status Initial status of this filesystem. It can be set to 0 or FS_DISABLED or FS_RDONLY. weight specifies the weight of the filesystem. This is used during the filesystem selection. The value must be positive. A negative value will tell the server to allocate the default weight value (1). It is recommended to use a value lower than 10. This function requires ADMIN privilege. RETURN VALUE
This routine returns 0 if the operation was successful or -1 if the operation failed. In the latter case, serrno is set appropriately. ERRORS
ENOENT Filesystem does not exist. EACCES The caller does not have ADMIN privilege. EFAULT poolname, server or fs is a NULL pointer. EEXIST this filesystem is already part of a pool. ENOMEM Memory could not be allocated for storing the filesystem definition. EINVAL The pool is unknown or the length of poolname exceeds CA_MAXPOOLNAMELEN or the length of server exceeds CA_MAXHOSTNAMELEN or the length of fs exceeds 79. SENOSHOST Host unknown. SEINTERNAL Database error. SECOMERR Communication error. LCG
$Date$ DPM_ADDFS(3)

Check Out this Related Man Page

DPM_MODIFYFS(3) 					       DPM Library Functions						   DPM_MODIFYFS(3)

NAME
dpm_modifyfs - modify the parameters of a disk pool filesystem SYNOPSIS
#include <sys/types.h> #include "dpm_api.h" int dpm_modifyfs (char *server, char *fs, int status, int weight) DESCRIPTION
dpm_modifyfs modifies the parameters of a disk pool filesystem. server specifies the host name of the disk server where this filesystem is mounted. fs specifies the mount point of the dedicated filesystem. status Initial status of this filesystem. It can be set to 0 or FS_DISABLED or FS_RDONLY. (-1 will tell the server to not change the cur- rent value). weight specifies the weight of the filesystem. This is used during the filesystem selection. The value must be positive (-1 will tell the server to not change the current value). It is recommended to use a value lower than 10. This function requires ADMIN privilege. RETURN VALUE
This routine returns 0 if the operation was successful or -1 if the operation failed. In the latter case, serrno is set appropriately. ERRORS
ENOENT Filesystem does not exist. EACCES The caller does not have ADMIN privilege. EFAULT server or fs is a NULL pointer. EINVAL The length of server exceeds CA_MAXHOSTNAMELEN or the length of fs exceeds 79. SENOSHOST Host unknown. SEINTERNAL Database error. SECOMERR Communication error. LCG
$Date$ DPM_MODIFYFS(3)
Man Page

15 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

re-partiton / re-installation on Redhat 7.3

Hello, me and a friend currently operate a dedicated server our /dev/hda2 is starting to get full and we have a lot of information in there we would like to keep, so we are thinking about adding an additional 120GB HD then reinstall the OS to re-partition the partitions, our current setup looks... (3 Replies)
Discussion started by: shaft
3 Replies

2. UNIX for Dummies Questions & Answers

GREPing for Nulls

I just had a filesystem / file corruption issue on my HSP's server due to disk capacity limits and fileswapping. I discovered that certain files got corrupted when fileswapping was not successful and they ended up with a string of control characters, or what I believe to be nulls, in them. Does... (4 Replies)
Discussion started by: Dr. DOT
4 Replies

3. UNIX for Dummies Questions & Answers

unix command

how can list files within specified date range? how can i checks if local filesystem exceeds a certain limit? THANKS! regards vivek.s (3 Replies)
Discussion started by: vivekshankar
3 Replies

4. Filesystems, Disks and Memory

disk space

Hi experts i am new in unix and informix and would like to ask 2 questions 1) my server shows when using df -k fs 1024-block used available /usr 10079072 3668670 6381144 does this mean i have 10GB, and used up 3.7GB and available 6.3GB ??? is... (3 Replies)
Discussion started by: kingsto88
3 Replies

5. UNIX for Dummies Questions & Answers

How to know about filesystem

HI Gurus, I would like to know how can i know the dates when the filesystem was added to the server. Thanks Shaan (3 Replies)
Discussion started by: shaan_dmp
3 Replies

6. AIX

filesystem is full in AIX5.3

Hi, I am new to AIX 5.3.I want to work with it and when I check the space of AIX machine..its /usr is 99% full.So I am not able to add anything in that. filesystem is as below-- So can anyone tell me how can I resize it and increase the size of it. 2nd thing,when I am trying to... (6 Replies)
Discussion started by: smartgupta
6 Replies

7. AIX

What is the cause of USR filesystem full

we are using aix 5.3 and we notice that the filesystem /usr is almost full. we have an oracle database running on the server.what are the cause why this filesystem is almost full.what should we do to free some space on this filesystem beside increase the size?thanks (4 Replies)
Discussion started by: paulexis
4 Replies

8. Solaris

Separate filesystems for CIFS?

Hi all, I just wonder: Do I need to have one filesystem like pool/backups, pool/archives, pool/home and so on, for each share I would like to use? Or can I do that a in a different way? I am currently reading along to find out about LDAP authentication and so on, but if I need separate... (5 Replies)
Discussion started by: PatrickBaer
5 Replies

9. AIX

Filesystem with Virtual Disk

HI All i have been assigned a task to create new filesystem with virtual disk but i look into server there is no virtual disk avialable, how do i check the virtual disk in a server or how do i configure virtual disk. please help me out on this issue. (2 Replies)
Discussion started by: gulamibrahim
2 Replies

10. Red Hat

Core Dumping?

How to now if the server is core dumping into the same filesystem? (4 Replies)
Discussion started by: 300zxmuro
4 Replies

11. AIX

choosing correct VG for Filesystem extend

Hi Gurus, I have Aix 5.3 server and would like to extend the following filesystem. Filesystem GB blocks Free %Used Iused %Iused Mounted on /dev/lv_mecdr 120.00 12.04 90% 560973 14% /home/mecdrBut there's only 16G for the VG, may be i can expand it... (11 Replies)
Discussion started by: thepurple
11 Replies

12. Solaris

Do I need a pool before I can mirror my disks?

Hi! I would also like to know if I need first to create a pool before I can mirror my disks inside that pool. My first disk is c7t0d0s0 and my second disk is c7t2d0s0 as seen in the figure below. I would create a pool named rpool1 for this 2 disks. # zpool create rpool1 c7t0d0p0 c7t2d0p0 ... (18 Replies)
Discussion started by: CarlosP
18 Replies

13. Solaris

Using liveupgrade on single ZFS pool

Hi Guys, I have a single ZFS pool with 2 disk which is mirrored if i create a new BE with lucreate should i specify which disk where the new BE should be created? (7 Replies)
Discussion started by: batas
7 Replies

14. AIX

Filesystem Unmounted

Please help me to find or how the filesystem got unmounted without our(Admin) knowledge? :confused::confused: It was an Application filesystem and server was not rebooted. Customer is asking the RCA that how their filesystem got umounted? bash-3.2# uptime 02:49PM up 193 days, 18:59, 7... (3 Replies)
Discussion started by: Thala
3 Replies

15. Solaris

How to clear a removed single-disk pool from being listed by zpool import?

On an OmniOS server, I removed a single-disk pool I was using for testing. Now, when I run zpool import it will show it as FAULTED, since that single disk not available anymore. # zpool import pool: fido id: 7452075738474086658 state: FAULTED status: The pool was last... (11 Replies)
Discussion started by: priyadarshan
11 Replies