[ASK] clarify some concerns regarding filesystems


 
Thread Tools Search this Thread
Operating Systems AIX [ASK] clarify some concerns regarding filesystems
# 1  
Old 03-07-2019
[ASK] clarify some concerns regarding filesystems

Hello,

I look at my /etc/filesystems and see these stanzas
Code:
/SUM:
        dev             = /dev/lv_sum
        vfs             = jfs2
        log             = /dev/loglv00
        mount           = true
        options         = rw
        account         = false

/var:
        dev             = /dev/hd9var
        vfs             = jfs2
        log             = /dev/hd8
        mount           = automatic
        check           = false
        type            = bootfs
        vol             = /var
        free            = false
        quota           = no

As I know, mount = true means the mountpoint will be mounted at boot time, and false mean opposite to true. But what is the meaning of automatic here? The same with true?


Assuming I have created a new volume and mount it manually to somewhere. If I want to add it to /etc/filesystem, which log I will specify like below
Code:
/dev/loglv00

is it mandatory for all the volumes? In case the NFS do we need this?

As observed in my environment, the NFS is added to /etc/filesystems without log volume.

Last edited by joeyg; 03-07-2019 at 11:48 AM..
# 2  
Old 03-07-2019
Quote:
Originally Posted by Phat
As I know, mount = true means the mountpoint will be mounted at boot time
yes, correct

Quote:
Originally Posted by Phat
and false mean opposite to true. But what is the meaning of automatic here? The same with true?
Please - it is not forbidden to read the manuals. To quote from IBM Knowlege Center - filesystems file
Quote:
Attribute Description
mount Used by the mount command to determine whether this file system should be mounted by default. The possible values of the mount attribute are:

automatic
Automatically mounts a file system when the system is started. Unlike the true value, filesystems which are mounted with the automatic value are not mounted with the mount all command or unmounted with the unmount all command. By default, the '/', '/usr', '/var', and '/tmp' filesystems use the automatic value.
[...]
true
This file system is mounted by the mount all command. It is unmounted by the unmount all command. The mount all command is issued during system initialization to mount automatically all such file systems.
Quote:
Originally Posted by Phat
Assuming I have created a new volume and mount it manually to somewhere. If I want to add it to /etc/filesystem, which log I will specify like below
Code:
/dev/loglv00

is it mandatory for all the volumes? In case the NFS do we need this?
You will not need it for NFS filesystems and if you need it for logical filesystems you did already do something wrong - but let us start at the beginning:

JFS and JFS2 are - as the name suggests, journaling filesystems. They work (remotely) similar to a database, where every operation is stored in a "redo log" so that it can be rolled backwards (or, using the log, rolled forward). This means that JFS and JFS2 filesystems need a place where to put this log (or "journal").

JFS (or JFSv1) was used in AIX up to v5 (? IIRC) as the default. It used a separate log LV and in every volume group, along with the first LV created, such a log LV was created automatically. There is (per default) always one log LV per VG and it is always 1 PP in size.

Newer versions of AIX use JFS2, the successor of JFS, per default (it is still possible to use JFSv1, but since there is no gain in that it is highly recommended not to do so if possible) and JFS2 works - in this regard - exactly the same as JFS. Again, a log LV is created automatically. But JFS2 offers the possibility to use "inline logs" instead of the default external log and since this is much faster and also more secure (if the log LV is missing for some reason you might have troubles using an FS that utilizes it) it is recommended to use inline logs whereever possible.

If you only create FSes with inline logs the log LV will not be created at all in a VG. Therefore, if you have already a log LV in your VG this tells me that you have created FSes using the default external log instead of the inline log. If you have the possibility, recreate the FSes and with inline logs.

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
# 3  
Old 03-07-2019
Hello,

Yes. Will refer to the IBM docs first.
Code:
automatic
Automatically mounts a file system when the system is started. Unlike the true value, filesystems which are mounted with the automatic value are not mounted with the mount all command or unmounted with the unmount all command. By default, the '/', '/usr', '/var', and '/tmp' filesystems use the automatic value.

Still not clear with automatic. So how come it mounted and unmounted? I think automatic only uses for system and we should not touch. And other file systems is manipulated by us with true/false.

For log LV, the explanation is clear for me now Smilie
# 4  
Old 03-07-2019
Read again, it's excluded from 'mount all'.
This User Gave Thanks to Corona688 For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

R* Service and Security Concerns

Hi there, I would like to ask about /etc/hosts.equiv and .rhosts) and the trust relations. And the impact of poorly-configured trusted relationship. (2 Replies)
Discussion started by: alvinoo
2 Replies

2. Linux

RPC Services Security Concerns

Hi there, I am trying to understand the how is it possible to enumerate RPC services and the common RPC services and the most-commonly found RPC vulnerability. (1 Reply)
Discussion started by: alvinoo
1 Replies

3. Shell Programming and Scripting

Clarify doubt ... plz Urgent

Hi friends, I am new to UNIX. I going to transfer files using SFTP. I am writing a script and using mget . If i am using mget * means, if all the files and their sub directories are transferred or not? If suppose , the local system dose not have the sub directory then what will... (1 Reply)
Discussion started by: punitha
1 Replies

4. Solaris

Difference between Zones and Virtual Box-Please clarify

I am learning Solaris Zones and I have the following doubts: 1.Sun has developed both Zones concept as well as Virtual Box concept. To work in Solaris if zones method is there, what is the need for virtual box? From my little knowledge, I feel virtual box and the whole root zone are same... (4 Replies)
Discussion started by: saagar
4 Replies

5. Filesystems, Disks and Memory

Creating /boot partition & MBR concerns

I have 40GB HD with mepis8, swap, MBR and under flags word boot. I also have a 160 GB external with a few Linux OS, no swaps, no extended etc. I am total Linux no MS I would feel more secure by resizing that sda1 partition and creating a /boot partition with the MBR housed there. Is that a... (1 Reply)
Discussion started by: worthamtx
1 Replies

6. Programming

Clarify me.

Dear all, I know the use of fprintf and typecasting. But, in the following function call what is the use? why that is type casted to void? (void) fprintf(stderr, "Enter key: "); (1 Reply)
Discussion started by: nagalenoj
1 Replies

7. Linux

Linux Concerns....need your help

Hi, user has an existing Server (DL380G4) with STK L80 Tapelibrary running on RHAS3 and uses NetBackup 5.1 for EBS. The user decided to add new tape library EML103e.... What are the proceedure to be followed when adding new tapelibrary? What are the things that needs to be considered?... (0 Replies)
Discussion started by: renobal
0 Replies
Login or Register to Ask a Question