The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
create folder in windows from unix while FTP Metalero de Oz UNIX for Dummies Questions & Answers 0 05-14-2008 10:22 AM
Create Folder and setup Apache cthinh UNIX for Dummies Questions & Answers 1 03-25-2008 04:32 AM
Use awk to create new folder in current directory ccox85 Shell Programming and Scripting 6 01-28-2008 12:59 AM
how to create folder wen the condition satisfied maximas Shell Programming and Scripting 5 10-09-2007 10:26 AM
Create Folder in Multiple Directories Stud33 Shell Programming and Scripting 15 07-20-2006 12:44 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 01-15-2007
Registered User
 

Join Date: May 2005
Posts: 3
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
Reply With Quote
Forum Sponsor
  #2  
Old 01-15-2007
Registered User
 

Join Date: Nov 2006
Location: Austria/Vienna
Posts: 235
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
Reply With Quote
  #3  
Old 01-15-2007
Registered User
 

Join Date: May 2005
Posts: 3
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.

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 06:45 PM.
Reply With Quote
  #4  
Old 01-16-2007
Registered User
 

Join Date: May 2006
Location: England
Posts: 265
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.

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.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 06:52 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0