I've been asked to attach a new 100 GB partition to our database server and then mount the newly created ext4 partition to /var/lib/pgsql/ directory and set it to auto-mount in /etc/fstab/
I've created a primary single partition /dev/xvdf:
Code:
[root@db1 ~]# fdisk -l
Disk /dev/xvda1: 12.9 GB, 12884901888 bytes
255 heads, 63 sectors/track, 1566 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/xvda3: 939 MB, 939524096 bytes
255 heads, 63 sectors/track, 114 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/xvdf: 107.4 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Here is my /etc/fstab:
Code:
#
LABEL=/ / ext4 defaults,noatime 1 1
/dev/xvdf /var/lib/pgsql ext4 defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
Now my confusion / questions are as follows:
1. Why is it not /dev/xvdf1 in my fdisk -l read out?
2. How do I label this partition? Do I use e2label command and if so, what should the label be?