Dear John,
Thanks for update !!!
Is it not possible If my storage is mounted on /u01 and I will create the directory within "u01/" /postgres9.4/data. And now I want to initialize my data within this directory ("/u01/postgres9.4/data").
There is any specific reason to use only this by default directory "/var/lib/pgsql/9.4/data".
And if I want to keep (("/u01/postgres9.4/data) this directory then what should be the command of initdb because command giving the error.
(-bash-4.2$ /usr/pgsql-9.4/bin/postgresql94-setup initdb -D /u01/postgres9.4/data/
#cd
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/centos-root 116G 664M 109G 1% /
devtmpfs 1.8G 0 1.8G 0% /dev
tmpfs 1.8G 0 1.8G 0% /dev/shm
tmpfs 1.8G 8.8M 1.8G 1% /run
tmpfs 1.8G 0 1.8G 0% /sys/fs/cgroup
/dev/mapper/centos-usr 20G 3.2G 16G 17% /usr
/dev/sda1 477M 273M 175M 62% /boot
/dev/mapper/centos-var 20G 907M 18G 5% /var
/dev/mapper/centos-u01 296G 2.4G 279G 1% /u01
cd /u01
mkdir -p /postgres9.4/data
Regards
SS