# parted /dev/mapper/rman
GNU Parted 2.1
Using /dev/mapper/rman
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel gpt
(parted) print
Model: Linux device-mapper (multipath) (dm)
Disk /dev/mapper/rman: 3299GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
(parted) mkpart primary 0 3298GB
Warning: The resulting partition is not properly aligned for best performance.
Ignore/Cancel? Ignore
(parted)
(parted) print
Model: Linux device-mapper (multipath) (dm)
Disk /dev/mapper/rman: 3299GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 17.4kB 3298GB 3298GB primary
(parted) quit
Information: You may need to update /etc/fstab.
# fdisk -l
Disk /dev/mapper/rman: 3298.5 GB, 3298534883328 bytes
255 heads, 63 sectors/track, 401024 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 32768 bytes / 67108864 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/mapper/rmanp1 1 267350 2147483647+ ee GPT
Disk /dev/mapper/rmanp1: 3298.0 GB, 3297999983104 bytes
255 heads, 63 sectors/track, 400958 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 32768 bytes / 67108864 bytes
Alignment offset: 15360 bytes
Disk identifier: 0x00000000
# mkfs.ext4 /dev/mapper/rmanp1
mke2fs 1.41.12 (17-May-2010)
/dev/mapper/rmanp1 alignment is offset by 15360 bytes.
This may result in very poor performance, (re)-partitioning suggested.
warning: 481 blocks unused.
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=8 blocks, Stripe width=16384 blocks
201686976 inodes, 805175296 blocks
40258788 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
24572 block groups
32768 blocks per group, 32768 fragments per group
8208 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848, 512000000, 550731776, 644972544
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information:
done
This filesystem will be automatically checked every 31 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
# vi /etc/fstab
/dev/mapper/rmanp1 /rmanbak ext4 defaults 1 2
# mkdir /rmanbak
# mount /rmanbak/
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sdy6 124G 18G 100G 16% /
tmpfs 126G 346M 126G 1% /dev/shm
/dev/sdy2 485M 39M 421M 9% /boot
/dev/sdy1 200M 260K 200M 1% /boot/efi
/dev/mapper/vg_u01-LogVol00_u01 197G 6.8G 181G 4% /u01
/dev/mapper/vg_u02-LogVol00_u02 197G 5.3G 182G 3% /u02
/dev/mapper/rmanp1 3.0T 200M 2.9T 1% /rmanbak
[root@jnkm1db1 mapper]# chown oracle:oinstall /rmanbak/
[root@jnkm1db1 mapper]# chmod 755 /rmanbak/