Shell Script - Need Help to Understand
I am new to Linux and I need to understand what the following script does in details please. I totally do not understand steps 5 to 8. Thanks a million!!
2.) Login to server and switch to root
3.) Create a new lv
smitty lv -> Add a Logical Volume -> choose rootvg ; lv name: versatalib_lv ; lv type: jfs2 ; Number of
logical partitions: 1
4.) Create a new fs
smitty fs -> Add File Systems -> Enhanced Journaled File systems -> Add an Enhanced Journaled File System on a Previously Defined Logical Volume -> lv name choose: versatalib_lv ; mount point: /usr/Versata/VLSComponents/Classes/RDWWPRT.ear/RDWWPRT.war/WEB-INF/lib ; Mount automatically at system restart: yes ; Permissions: read/write
5.) mount the newly created filesystem to another directory (ex.: /tmp/versata_lib)
6.) Copy the content of the lib directory to the new filesystem
cp -R /usr/Versata/VLSComponents/Classes/RDWWPRT.ear/RDWWPRT.war/WEB-INF/lib /tmp/versata_lib
7.)smitty fs -> change file systems -> Enhanced Journaled File systems -> Change Characteristics of an Enhaced Journaled File systems : choose the newly created fs -> switch Permissions to read-only
8.) mount up /usr/Versata/VLSComponents/Classes/RDWWPRT.ear/RDWWPRT.war/WEB-INF/lib
kinda looks like homework...
number five, you don't understand mount command?
I am with the previous poster, how is what you have presented a script?
You may need to be a lot clearer about your intention here?
Also, have you already done a man on each command to see what is being done?
It is not homework :)
It is just a question from someone who is not familiar with Linux and needs to understand what these commands will do to a server I own.
Sorry If I said it is a "script" when it isn't.
The "mount" concept is not applicable to Windows where all my experience is. That is why I do not understand what the different "mount" commands are ultimately trying to achieve.
What is the purpose of these steps? what are they trying to accomplish? and what is the purpose of steps 5 to 8?
Thanks for any help!
have you tried: man mount
or google on how to use and what is mount used for? (it is quite similar to windows' map drive function).
If you want to learn Linux, I don't understand trying to slog thru an exercise that starts with "AIX team". More generally, the stuff you list---if it is not something like a class assignment---does not seem like a good starting point.
I suggest backing up a few steps---tell us what kinds of things you already know---eg are you comfortable with moving around in the directory system, creating directories, copying and moving files, etc.?
5. Creating a new partition, mount it to a temporary location
6. Copy the contents of the existing lib folder to the new partition, you'd probably want to add the (p)reserve flag to retain the existing file time stamps.
7. Change the filesystem type to read-only on the new partition. This prevents anyone from modifying the files.
8. mount the new partition over the existing lib directory for this web application. The old lib directory will still continue to consume disk space if the contents are not removed prior to mounting. (but that may be ok).
|All times are GMT -5. The time now is 07:30 AM.|