If you have difficulty creating a database, check the following:
Ensure you have started the management agents on all the hosts and defined an HADB domain. For details, see Starting the Management Agent
File and directory permissions must be set to allow read, write, and execute access to the install, history, device, and config paths for the following users:
Sun Java System Application Server administrative user (set during installation)
HADB system user
For details about setting user permissions, see Preparing for HADB Setup
Enterprise Server and HADB port assignments must not conflict with other port assignments on the same machine. Default recommended port assignments are:
Sun GlassFishMessage Queue: 7676
IIOP: 3700
HTTP server: 80
Administration server: 4848
HADB nodes: Each node uses six consecutive ports. For example, for default port 15200, node 0 uses 15200 through 15205 , node 1 uses 15220 through 15225, and so on.
Disk space must be adequate; see Sun GlassFish Enterprise Server v2.1.1 Release Notes.