AIX - create folder in hdisk1 instead


 
Thread Tools Search this Thread
Operating Systems AIX AIX - create folder in hdisk1 instead
# 1  
Old 01-15-2007
AIX - create folder in hdisk1 instead

Dear All,

I have two h.disks.

Please advice for how to create a new folder/directory in hdisk1 instead of the hdisk0? I need to use the folder to store for xmlfiles for my application accessing to read it.

Thank a lots.

Best Regards,
Tom
# 2  
Old 01-15-2007
mklv -t jfs2 -y testlv rootvg 10M hdisk1

creates an lv with the name testlv in rootvg with size 16mb on hdisk1

then use

crfs -v jfs2 -d /dev/testlv -m /path/to/mount to create a filesystem

mount /path/to/mount

or use smitty lv and smitty jfs2 for interactive creation

on older systems (aix4.3 or later) use jfs and not jfs2
# 3  
Old 01-15-2007
Thx for your replied.

More info:
Actually, hdisk0 is a rootvg, hdisk1 is for datavg. So, i would like to create a folder on hdisk1. so that, i can use the space of hdisk1 but not the hdisk0. Smilie

Even I created a lv01 on datavg, but the physical directory is created in hdisk0 and mounted, by then it used up the hdisk0 "/" directory space. how come? it is not enough space for me to store the xmldata files if so.

May purpose is to use the hdisk1 instead as it is more spaces for data storage.

Please advice and thx.

Last edited by lwy2020; 01-15-2007 at 09:45 PM..
# 4  
Old 01-16-2007
Quote:
Originally Posted by lwy2020
Thx for your replied.

More info:
Actually, hdisk0 is a rootvg, hdisk1 is for datavg. So, i would like to create a folder on hdisk1. so that, i can use the space of hdisk1 but not the hdisk0. Smilie

Even I created a lv01 on datavg, but the physical directory is created in hdisk0 and mounted, by then it used up the hdisk0 "/" directory space. how come? it is not enough space for me to store the xmldata files if so.

May purpose is to use the hdisk1 instead as it is more spaces for data storage.

Please advice and thx.
You have a filesystem which is just that on rootvg in the / directory. Do a df and check the filesystem is not in the mounted list. If it is make a note of the LV on the left most column. Unmount the filesystem and delete the copy of the LV. The LV then needs to be created on the other VG and the filesystem created on it and mounted. This all assumes of course there is nothing in the directory!!! If there is then all data will need to be backed up.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Help with replacing hdisk1

Hello, I have a P-series running AIX 5.3 and hdisk1 is failing. hdisk0 and hdisk1 are mirrored rootvg. My question is, I have an expansion cabinet that has two disks in it that I believe have never been used. I want to replace hdisk1 with one of the unused disks. (hdisk36 or hdisk37) ... (1 Reply)
Discussion started by: DanCampbell
1 Replies

2. Shell Programming and Scripting

Create a shared folder using acl

Hello. I need some help to create a shared folder. A group 'publicuser' has been created. A user 'publicuser' has been created ( no login, no home) and belongs to group 'publicuser'. A public folder '/doc' has been created and owner is publicuser:publicuser. All users belonging to group... (12 Replies)
Discussion started by: jcdole
12 Replies

3. UNIX for Advanced & Expert Users

How to create folder by using if and elif condition?

Hi All, I have already code to create folder for one country let say US , now we want to create folder/directory for JP country also using shell script , application server. $COUNTRY='US' if ] then if mkdir -m 777 -p /opt/TEST/$COUNTRY/$INVOICE >/dev/null 2>&1 | tee -a ... (5 Replies)
Discussion started by: Boost
5 Replies

4. AIX

Change lv REGION in HDISK1

Dears my rootvg is missed up i can not extend the /opt as soon as i try to extend the Filesystem its give me that there is not enough space . as there any way to change the REGION of the LVs in HDISK1 ? lspv -p hdisk0 hdisk0: PP RANGE STATE REGION LV NAME TYPE ... (8 Replies)
Discussion started by: thecobra151
8 Replies

5. Shell Programming and Scripting

Create subfolder within folder in one command

suppose if i am checking folder g as shown below path a/b/c/d/e/f/g ,and some directory c,d,e,f,g not present then is there anyway to create directory in one command or i need to use mkdir for everyfolder (3 Replies)
Discussion started by: lalitpct
3 Replies

6. Shell Programming and Scripting

Script to create a folder with contents

I am working on HP Unix. Require a script for the below requirement. Requirement are: 1. Need to create a folder with files. 2. The folder should have a naming convention like - LRIC_ARCHIVE_ddmmyyhhmmss_version_nnn, the version number needs to be selected from an oracle table. 3. When the... (4 Replies)
Discussion started by: Roadies99
4 Replies

7. Solaris

Unable to create folder as a user

Hi All, I am trying to create a folder in /export/home/user1 directory as a user1 but I am getting the error message as -bash-3.00$ mkdir abc mkdir: Failed to make directory "abc"; Permission denied Also I tried creating the folder but it fails too -bash-3.00$ touch abc touch: cannot... (2 Replies)
Discussion started by: Manjunath K V
2 Replies

8. Shell Programming and Scripting

how to create folder and sub-folder in UNIX ?

Hi all, I have the following code to check the whether the folder is exist in my system. if ; then echo 'folder exist'; else echo 'folder not exist'; mkdir /home/batch/testing ; fi When I remove the "testing" folder from "/home/batch" directory, the code is working fine. But when I... (2 Replies)
Discussion started by: suigion
2 Replies

9. UNIX for Dummies Questions & Answers

Create Folder and setup Apache

Hi, I'm a new person in here and also newbie. When I create a home folder for User and let them install any things they want in their own folder but there is one problem and i don't know how to resolved it. I post with a captured picture about this problem ... (1 Reply)
Discussion started by: cthinh
1 Replies

10. Shell Programming and Scripting

Create Folder in Multiple Directories

Hi, I am trying to figure out how to have a folder created in multiple directories. For example /home is where we have over 1500 staff members directories, the staff members name is the name of directory under /home. I need to have a folder called "Desktop" created in every staff members directory.... (15 Replies)
Discussion started by: Stud33
15 Replies
Login or Register to Ask a Question