Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have two hard drives one with os(ubuntu) and other just etc4 formatted. I want to store my database on this second hard drive. I tried searching online but there are very few resources online. It will be really helpful if someone can tell me how to do it.

share|improve this question

closed as off-topic by Dennis Kaarsemaker, kasperd, Jenny D, Jacob, DKNUCKLES Jun 5 '14 at 13:31

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions must demonstrate a minimal understanding of the problem being solved. Try including attempted solutions, why they didn't work, and the expected results. See How can I ask better questions on Server Fault? for further guidance." – Dennis Kaarsemaker, kasperd, Jenny D, Jacob, DKNUCKLES
If this question can be reworded to fit the rules in the help center, please edit the question.

I'm guessing that you failed to find any help online because you really don't know what you're doing so here's some clues

  • Mount the second hard drive into your filesystem at a convenient location
    • The FSH is a good reference for where to locate your files.
    • The mount command will be needed
    • You'll need to update fstab too.

I don't know much (anything) about db2 but I found this document that'll probably be useful to youm, note how the author supplies a location for their database when creating it

db2 CREATE DATABASE mydb AUTOMATIC STORAGE YES ON '/home/db2inst1' DBPATH ON '/home/db2inst1' USING CODESET ISO-8859-2 TERRITORY SI COLLATE USING SYSTEM PAGESIZE 4096

I hope this puts you on the right path.

share|improve this answer
    
Really appreciate your help, Now I have some direction. – Super Engineer Jun 5 '14 at 11:20

Not the answer you're looking for? Browse other questions tagged or ask your own question.