Google Answers Logo
View Question
 
Q: Sizing algorithm in ksh ( No Answer,   0 Comments )
Question  
Subject: Sizing algorithm in ksh
Category: Computers > Algorithms
Asked by: jimbow333-ga
List Price: $50.00
Posted: 04 Jan 2005 15:33 PST
Expires: 03 Feb 2005 15:33 PST
Question ID: 451942
Yes, in Korn shell code.  

I have a number of disks of differing sizes and a number of disk
groups which contain multiple volumes of different sizes.  Disks can
not be shared by diskgroups, but volumes can span disks.

I need a script that will take a list of disks, and the volumes in the
disk groups, and come up with the best fit of disks per disk group
with as little waste as possible and everything fitting.  There will
always be enough disk space, so long as the correct disks are put in
the correct disk group.  The trick is not to waste space!

Assume that the required information is already in comma delimited
files or tables; ie.
For disks: Disk1,123456 (disk name and it's size in K)
For Volumes: Vol1,Group1,1234 (Volume name, disk group that the volume
is in, Volume size)

Results need to be in a table or file in the form:
DiskGroup1,Disk1,Disk2,Disk3

Variations for improvement are gladly accepted.  The target OS is AIX,
but PDL would be preferred for OS specific commands... please
highlight any PDL tho.

Thanks in advance.
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy