SUSE / openSUSEThis Forum is for the discussion of Suse Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
We have a standard install with version 13.2 and BTRFS in two partitions all except /home in partition one and /home in partition two
/srv is going to be grown substantially so want it to be mounted on partition two and need to be still from root ie /srv
end result should be partition one all directories as before less /srv and partition two /home and /srv.
Can this requirement be met and if so how to move /srv to partition two?
If it cannot be met I suppose it would have to be achieved buy linking which I suppose is a soft link.
Advice would be appreciated
Chris
/dev/sda3 on /.snapshots type btrfs (rw,relatime,ssd,space_cache)
/dev/sda4 on /home type btrfs (rw,relatime,ssd,space_cache)
/dev/sda3 on /srv type btrfs (rw,relatime,ssd,space_cache)
/dev/sda3 on /var/tmp type btrfs (rw,relatime,ssd,space_cache)
/dev/sda3 on /var/spool type btrfs (rw,relatime,ssd,space_cache)
/dev/sda3 on /var/opt type btrfs (rw,relatime,ssd,space_cache)
/dev/sda3 on /var/log type btrfs (rw,relatime,ssd,space_cache)
/dev/sda3 on /var/lib/named type btrfs (rw,relatime,ssd,space_cache)
/dev/sda3 on /var/lib/mailman type btrfs (rw,relatime,ssd,space_cache)
/dev/sda3 on /usr/local type btrfs (rw,relatime,ssd,space_cache)
/dev/sda3 on /var/crash type btrfs (rw,relatime,ssd,space_cache)
/dev/sda3 on /opt type btrfs (rw,relatime,ssd,space_cache)
/dev/sda3 on /var/lib/pgsql type btrfs (rw,relatime,ssd,space_cache)
/dev/sda3 on /tmp type btrfs (rw,relatime,ssd,space_cache)
/dev/sda3 on /boot/grub2/i386-pc type btrfs (rw,relatime,ssd,space_cache)
/dev/sda3 on /boot/grub2/x86_64-efi type btrfs (rw,relatime,ssd,space_cache)
you will see the /srv is mounted on sda3 and /home is mounted on sda4, both directly at the root level.
It is obvious that sda3 can hold all the root directories and subsdirs. The system has mounted the /home directory on sda4. What is not apparant here is that some of directories are actually sub-volumes as well and all is fine except they cannot be moved in the same way across partitions because they are subvols. and partition manager handles some of the operation for the BTRFS.
The crux question is can sda4 have both /home and /srv subvolumes and is it logical. If there was a sda5 the /home on sda4 and /srv on sda5 would be fine. I hope this clarifies my problem I am trying to solve of getting both /home and /srv on sda4.
Last edited by Chris Gidden; 04-25-2015 at 12:26 AM.
The general practice for doing something like this is as follows:
Create the location you want to use as the "new" area. Restart the system from a Live CD or something so that the entire active filesystem is available without locks. Mount the "old" location and the "new" location onto the running system. Copy all of the data from the "old" location to the "new" location. Modify the /etc/fstab of the active system to mount the "new" location instead of the "old" one. Restart.
Why can't you use this method for what you're trying to accomplish here?
Create the subvolume on the second partition/disk, mount it to the active filesystem, copy all of the data over, edit /etc/fstab to mount the new subvolume, reboot.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.