Re: Mounting an LVM volumn

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 07 Oct 2007 07:38:01 -0700, dreeser2-store wrote:

>  I think you are almost there. I believe (at least it
> works on my system) that in the mount command you don't need the "hda3"
>  It should look like;
> mount /dev/VolGroup00/LogVol00
> /mnt/VolGroup00/LogVol00

Yes!   :)


arrakis ~ # 
arrakis ~ # 
arrakis ~ # 
arrakis ~ # fdisk /dev/hdb

The number of cylinders for this disk is set to 59582.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/hdb: 30.7 GB, 30750031872 bytes
16 heads, 63 sectors/track, 59582 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1               1         203      102280+  83  Linux
/dev/hdb2             204        2109      960624   82  Linux swap / 
Solaris
/dev/hdb3            2110       59579    28964880   83  Linux

Command (m for help): q

arrakis ~ # 
arrakis ~ # fdisk /dev/hda

The number of cylinders for this disk is set to 9729.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1        1912    15358108+  83  Linux
/dev/hda2            1913        1925      104422+  83  Linux
/dev/hda3            1926        9729    62685630   8e  Linux LVM

Command (m for help): q

arrakis ~ # 
arrakis ~ # cat lvm.txt 

#load device module
modprobe dm-mod
#change the volumes that exist to active
vgchange -ay
#mount the logical partition
mkdir -p /mnt/VolGroup00/LogVol00
mount /dev/VolGroup00/LogVol00 /mnt/VolGroup00/LogVol00
arrakis ~ # 
arrakis ~ # ./lvm.txt 
  2 logical volume(s) in volume group "VolGroup00" now active
mount: /dev/VolGroup00/LogVol00 already mounted or /mnt/VolGroup00/
LogVol00 busy
mount: according to mtab, /dev/mapper/VolGroup00-LogVol00 is already 
mounted on /mnt/VolGroup00/LogVol00
arrakis ~ # 
arrakis ~ # umount /mnt/VolGroup00/LogVol00/
umount: /mnt/VolGroup00/LogVol00: device is busy
umount: /mnt/VolGroup00/LogVol00: device is busy
arrakis ~ # 
arrakis ~ # umount /mnt/VolGroup00/         
umount: /mnt/VolGroup00/: not mounted
arrakis ~ # ll /mnt/
total 12
drwxr-xr-x 3 root root 4096 Oct  7 00:17 VolGroup00
drwx------ 2 root root 4096 Jul 26 02:54 cdrom
drwx------ 2 root root 4096 Jul 26 02:54 floppy
arrakis ~ # 
arrakis ~ # ll /mnt/VolGroup00/LogVol00/
total 200
drwxr-xr-x   2 root root  4096 Sep  5 00:30 bin
drwxr-xr-x   2 root root  4096 Jun 24 18:54 boot
drwxr-xr-x   4 root root  4096 Jun 24 18:54 dev
drwxr-xr-x 100  500  500 12288 Oct  6 02:09 etc
drwxr-xr-x   3 root root  4096 Jun 24 12:02 home
drwxr-xr-x  14 root root  4096 Sep  5 00:27 lib
drwx------   2 root root 16384 May 25 12:30 lost+found
drwxr-xr-x   2 root root  4096 Oct  5 22:57 media
dr-xr-xr-x   2 root root  4096 Jul  3 12:28 misc
drwxr-xr-x   7 root root  4096 Jul 18 02:17 mnt
dr-xr-xr-x   2 root root  4096 Jul  3 12:28 net
drwxr-xr-x   3 root root  4096 Jun 26 20:26 opt
-rw-r--r--   1 root root     0 Oct  6 02:09 poweroff
drwxr-xr-x   2 root root  4096 May 25 12:30 proc
drwxr-x---  25 root root  4096 Oct  6 02:09 root
drwxr-xr-x   2 root root 12288 Sep  5 00:30 sbin
drwxr-xr-x   2 root root  4096 May 25 12:30 selinux
drwxr-xr-x   4 root root  4096 Jul  4 15:47 srv
drwxr-xr-x   2 root root  4096 May 25 12:30 sys
drwxrwxrwt  14 root root  4096 Oct  6 02:09 tmp
drwxr-xr-x  13  500  500  4096 Feb  7  2007 usr
drwxr-xr-x  21 root root  4096 Jun 27 02:30 var
arrakis ~ # 
arrakis ~ # date
Sun Oct  7 13:27:39 PDT 2007
arrakis ~ # 
arrakis ~ # 



however, I'm not sure how to unmount, and I need to, maybe, futz around 
with fstab.

However, I can now read data, so can back data up easily, which is what I 
wanted to do :)



thanks,

Thufir


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux