I am new to LVM and VM yet, and I need to be able to access sdb like /mybackup/ 1 - should I have sdb1 created then mount? 2 - should I mount sdb as whole disk without LVM? 3 - create lvm and than mount?
what is the best way?
so far here what I have:
[root@localhost /]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sr0 11:0 1 1024M 0 rom sda 8:0 0 60G 0 disk ├─sda1 8:1 0 500M 0 part /boot └─sda2 8:2 0 59.5G 0 part ├─VolGroup-lv_root (dm-0) 253:0 0 48.8G 0 lvm / ├─VolGroup-lv_swap (dm-1) 253:1 0 6G 0 lvm [SWAP] └─VolGroup-lv_home (dm-2) 253:2 0 4.8G 0 lvm /home sdb 8:16 0 320G 0 disk [root@localhost /]# [root@localhost /]# pvscan PV /dev/sda2 VG VolGroup lvm2 [59.51 GiB / 0 free] Total: 1 [59.51 GiB] / in use: 1 [59.51 GiB] / in no VG: 0 [0 ] [root@localhost /]# pvscan PV /dev/sda2 VG VolGroup lvm2 [59.51 GiB / 0 free] Total: 1 [59.51 GiB] / in use: 1 [59.51 GiB] / in no VG: 0 [0 ] [root@localhost /]# lvscan ACTIVE '/dev/VolGroup/lv_root' [48.75 GiB] inherit ACTIVE '/dev/VolGroup/lv_home' [4.76 GiB] inherit ACTIVE '/dev/VolGroup/lv_swap' [6.00 GiB] inherit [root@localhost /]# fdisk -l Disk /dev/sda: 64.4 GB, 64424509440 bytes 255 heads, 63 sectors/track, 7832 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: 0x0000e17a Device Boot Start End Blocks Id System /dev/sda1 * 1 64 512000 83 Linux Partition 1 does not end on cylinder boundary. /dev/sda2 64 7833 62401536 8e Linux LVM Disk /dev/sdb: 343.6 GB, 343597383680 bytes 255 heads, 63 sectors/track, 41773 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: 0x00025293 Device Boot Start End Blocks Id System Disk /dev/mapper/VolGroup-lv_root: 52.3 GB, 52344913920 bytes 255 heads, 63 sectors/track, 6363 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/mapper/VolGroup-lv_swap: 6442 MB, 6442450944 bytes 255 heads, 63 sectors/track, 783 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/mapper/VolGroup-lv_home: 5108 MB, 5108662272 bytes 255 heads, 63 sectors/track, 621 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 [root@localhost /]# cat /proc/partitions major minor #blocks name 8 0 62914560 sda 8 1 512000 sda1 8 2 62401536 sda2 8 16 335544320 sdb 253 0 51118080 dm-0 253 1 6291456 dm-1 253 2 4988928 dm-2 [root@localhost /]#