Ok so i thought i was smart but i can tell I need some help. I am playing around with understanding lvm and adding disks to a linux box. I added a disk and then ran what i thought were commands to add this disk to the box but I think I messed up and would like some help. My question is did i just add this disk to the current LV and now i just need to resize the it? I tried to get this to mount but it comes back with the following error. Thanks in advance and yes you can make fun of me for not knowing this stuff but hye I gotta learn somehow right?
mount error..
mount -t xfs /dev/mapper/ol-lv_oradata /mnt/drives/oradata
mount: wrong fs type, bad option, bad superblock on /dev/mapper/ol-lv_oradata,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
here are my outputs.
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/ol-root 27G 22G 5.1G 81% /
devtmpfs 1.4G 0 1.4G 0% /dev
tmpfs 1.4G 32M 1.4G 3% /dev/shm
tmpfs 1.4G 9.6M 1.4G 1% /run
tmpfs 1.4G 0 1.4G 0% /sys/fs/cgroup
/dev/sda1 497M 282M 216M 57% /boot
tmpfs 276M 60K 276M 1% /run/user/54321
ls -ls /dev/sd*
0 brw-rw----. 1 root disk 8, 0 Jan 2 16:34 /dev/sda
0 brw-rw----. 1 root disk 8, 1 Jan 2 16:34 /dev/sda1
0 brw-rw----. 1 root disk 8, 2 Jan 3 13:53 /dev/sda2
0 brw-rw----. 1 root disk 8, 16 Jan 3 13:50 /dev/sdb <-- this is the disk I added
0 brw-rw----. 1 root disk 8, 17 Jan 3 13:53 /dev/sdb1 <-- this is the disk I added
fdisk -l
Disk /dev/sda: 32.2 GB, 32212254720 bytes, 62914560 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x0003e72b
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 1026047 512000 83 Linux
/dev/sda2 1026048 62914559 30944256 8e Linux LVM
Disk /dev/sdb: 53.7 GB, 53687091200 bytes, 104857600 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x9a45daa3
Device Boot Start End Blocks Id System
/dev/sdb1 2048 104857599 52427776 83 Linux
Disk /dev/mapper/ol-root: 28.4 GB, 28420603904 bytes, 55508992 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/ol-swap: 3221 MB, 3221225472 bytes, 6291456 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/ol-lv_oradata: 53.7 GB, 53687091200 bytes, 104857600 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
lvmdiskscan
/dev/ram0 [ 16.00 MiB]
/dev/ol/root [ <26.47 GiB]
/dev/ram1 [ 16.00 MiB]
/dev/sda1 [ 500.00 MiB]
/dev/ol/swap [ 3.00 GiB]
/dev/ram2 [ 16.00 MiB]
/dev/sda2 [ 29.51 GiB] LVM physical volume
/dev/ol/lv_oradata [ 50.00 GiB]
/dev/ram3 [ 16.00 MiB]
/dev/ram4 [ 16.00 MiB]
/dev/ram5 [ 16.00 MiB]
/dev/ram6 [ 16.00 MiB]
/dev/ram7 [ 16.00 MiB]
/dev/ram8 [ 16.00 MiB]
/dev/ram9 [ 16.00 MiB]
/dev/ram10 [ 16.00 MiB]
/dev/ram11 [ 16.00 MiB]
/dev/ram12 [ 16.00 MiB]
/dev/ram13 [ 16.00 MiB]
/dev/ram14 [ 16.00 MiB]
/dev/ram15 [ 16.00 MiB]
/dev/sdb1 [ <50.00 GiB] LVM physical volume