LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-17-2013, 06:01 PM   #1
Led Zappa
LQ Newbie
 
Registered: Jan 2008
Distribution: Centos 5
Posts: 20

Rep: Reputation: 0
Map/Mount Volume Group Folder to Volume Group Folder???


I am trying to backup FreePBX, but it will only back up to it's specified path on the local disk. I have another partition/volume group with Gigabytes in free space. I want to point/mount that space to the default location for PBX which is on the root partition/VG. Is that possible?

This is also on mirrored drives.

So, essentially I want to have /var/lib/asterisk/backups on the root partition/VG pointing to /backups on the /home partition/VG


Code:
[root@localhost asterisk]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
                       50G   29G   19G  62% /
tmpfs                 2.0G     0  2.0G   0% /dev/shm
/dev/mapper/ddf1_4c53492020202020808627c3000000004711471100001450p1
                      485M   31M  429M   7% /boot
/dev/mapper/VolGroup-lv_home
                      404G  444M  383G   1% /home
Code:
[root@localhost asterisk]# fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x0003c95f

   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       60667   486791168   8e  Linux LVM

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x0003c95f

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1          64      512000   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sdb2              64       60667   486791168   8e  Linux LVM

Last edited by Led Zappa; 09-17-2013 at 08:13 PM. Reason: Add to Title
 
Old 09-17-2013, 06:35 PM   #2
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Would a symlink work?

--C
 
Old 09-17-2013, 08:07 PM   #3
Led Zappa
LQ Newbie
 
Registered: Jan 2008
Distribution: Centos 5
Posts: 20

Original Poster
Rep: Reputation: 0
As a newbie, I don't know, but it doesn't seem like it. I got the idea from a support page for PBX which said you could mount a USB Drive and mount the usb to the root path where FreePBX would try and point files, but I can't figure out how to do the same thing with a partition/VG. I don't even know if those above are true partitions or Volume Groups. I'm reading up as much as I can.

If I can as root on the local system copy a file pointed to /var/lib/asterisk/backups and the data would actually end up in /home/backups I believe it will work. I don't care how I get there.

Last edited by Led Zappa; 09-17-2013 at 08:10 PM.
 
Old 09-20-2013, 04:42 PM   #4
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Okay; then try this

Code:
 ln -s /home/backups /var/lib/asterisk/backups
Note that /var/lib/asterisk/backups must not exist and /home/backups must exist



Verify with...

Code:
touch /var/lib/asterisk/backups/TEST.txt
ls -l /home/backups
--C

Last edited by custangro; 09-20-2013 at 04:43 PM.
 
Old 09-21-2013, 04:12 PM   #5
Led Zappa
LQ Newbie
 
Registered: Jan 2008
Distribution: Centos 5
Posts: 20

Original Poster
Rep: Reputation: 0
Thanks for your reply custangro, but unfortunately I won't be able to test the solution as the company I was working for shut their doors last week

On to bigger and better things I guess.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LVM Mount Physical Volume/Logical Volume without a working Volume Group mpivintis Linux - Newbie 10 01-11-2014 07:02 AM
[SOLVED] LVM, Expanded the size of my physical volume, how do I expand the volume group? pyr Linux - General 2 09-15-2013 05:28 AM
Extended LVM Volume group and Logical Volume. But space not usable linuxlover.chaitanya Linux - Server 1 11-19-2012 09:37 AM
[SOLVED] Redhat volume group,logical volume group dhairysheel Red Hat 3 08-02-2011 05:07 AM
Fedora LVM volume group & Physical Volume resize problem gabeyg Fedora 1 05-14-2008 11:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration