Sponsored Content
Operating Systems Solaris Delay mounting of home directory? Post 303011298 by kebabbert on Tuesday 16th of January 2018 09:42:14 AM
Old 01-16-2018
Delay mounting of home directory?

I wonder if it is possible to delay mounting of a home directory?

Here is the background to the problem I am trying to solve:
I have two zfs disks, one rpool disk, and one zfs data disk. On the zfs data disk, I have data directories. In Solaris 11.3 there are default home directories on rpool, called Documents, Public, Downloads, etc. So I have deleted these home directories from rpool, and replaced them with symlinks. These symlinks points to the zfs data disk. So on the zfs data disk there are directories called Documents, Public, Downloads, etc. In my home directory, there are symlinks to these zfs data directories.

I also have a Linux Ubuntu partition. I have done the same thing on the Ubuntu partition. My home directory on the Ubuntu partition contains symlinks, pointing to the zfs data disk.

This means Ubuntu and Solaris shares the same data directories on the zfs data disk. I do not want to share the same home directory between Solaris and Linux, so I have not put the home directory on the zfs data disk. Because the configuration files differs from Solaris and Linux. Linux might use KDE, and Solaris might use Gnome. That will be a problem when I login if I share the same home directory between OSes. So Solaris and Linux home directories are not shared, but the data is shared via symlinks in Solaris and in Linux home directory. This way, I can work with the same data no matter which OS I boot from. I also have a VirtualBox VM data directory which I access from both Solaris and from Linux, so I can work with the same VM from both OSes, without the need to synching data.

Here is the problem. When I bootup Linux, I need to import the zfs data disk. Then I bootup Solaris instead, which makes Solaris complain because Solaris are trying to mount the home directory data folders, which points to the zfs data disk - which is mounted in Linux instead!

When I boot different OSes, I need to import the zfs disk. But then the other OS will complain because it can not mount the home directory. Is there a way to delay mounting of home directories? Then I can bootup an OS and import the zfs data disk, and after that I can manually mount the home directory.

EDIT: Adding "_netdev" in vfstab is the wrong track?
delayed file system mount? (zfs, zvol, ext4) - Ars Technica OpenForum

Last edited by kebabbert; 01-16-2018 at 10:58 AM..
 

9 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

mounting a directory to a windows 2000 shared folder

until recently I've been using the following command successfully: mount -t smbfs -o username=my_user_name,password=password /home/temp/ //oldserver/openexchange To connect to a Win2000 shared folder called openexchange on a machine called //oldserver. But as from today, I've been getting... (2 Replies)
Discussion started by: cw1972
2 Replies

2. SCO

/data directory not mounting

Dear sir, In my SCO unix system while running an isql because of the size of the files created the ./data directory become full and now I cannot boot the system in normal mode. I am botting the machine in single user mode but i cannot delete the files from /data directory cos it is not... (2 Replies)
Discussion started by: khelen
2 Replies

3. UNIX for Dummies Questions & Answers

home directory

Hi what is the difference between the directory named /home and the user's home directory? can anyone plz reply? really confuse about it!!!!!!!! thank you (1 Reply)
Discussion started by: nokia3100
1 Replies

4. Slackware

mounting new directory

hi I installed slackware. How can I mount new partition I edit etc/fstab and add new mount point("back") What should I do next? When I perfom: mount /back it doesnt work. (16 Replies)
Discussion started by: tjay83
16 Replies

5. SuSE

home directory is not mounting

Our home directory is not mounting in SUSE 10, can you please help me in this regard. Thanks (1 Reply)
Discussion started by: durgaprasadr13
1 Replies

6. Solaris

Restricting SFTP user to a defined directory and home directory

Hi, I've created solaris user which has both FTP and SFTP Access. Using the "ftpaccess" configuration file options "guest-root" and "restricted-uid", i can restrict the user to a specific directory. But I'm unable to restrict the user when the user is logged in using SFTP. The aim is to... (1 Reply)
Discussion started by: sftpuser
1 Replies

7. UNIX for Advanced & Expert Users

Mounting a directory using nfs version4

Hi, I would like to know how can we mount a directory using nfs v4 ? When I use the below command, I am not sure what nfs version am using to mount the directory. mount -t <server_name>:<shared_directory> <shared_directory>. eg: mount -t 10.50.0.8:/home/arun/mount/share_dir... (7 Replies)
Discussion started by: arunsriniv
7 Replies

8. AIX

Mounting a directory in a filesystem

Hi All, Recently I came to know my / root file system is getting full because of application directory /siebel/ I have one option. 1) Down the application , take full backup 2)change the filesystem ownership 2)copy the contents into that filesystem cp -pr /siebel/* /siebelfs/* 3)Inform... (9 Replies)
Discussion started by: Thala
9 Replies

9. Solaris

SunOS confusing root directory and user home directory

Hello, I've just started using a Solaris machine with SunOS 5.10. After the machine is turned on, I open a Console window and at the prompt, if I execute a pwd command, it tells me I'm at my home directory (someone configured "myuser" as default user after init). ... (2 Replies)
Discussion started by: egyassun
2 Replies
AMZFS-SNAPSHOT(8)					  System Administration Commands					 AMZFS-SNAPSHOT(8)

NAME
amzfs-snapshot - Amanda script to create zfs snapshot DESCRIPTION
amzfs-snapshot is an Amanda script implementing the Script API. It should not be run by users directly. It create a zfs snapshot of the filesystem where the path specified is mounted. PRE-DLE-* create a snapshot and the POST-DLE-* destroy the snapshot, *-DLE-AMCHECK, *-DLE-ESTIMATE and *-DLE-BACKUP must be set to be executed on the client: execute-on pre-dle-amcheck, post-dle-amcheck, pre-dle-estimate, post-dle-estimate, pre-dle-backup, post-dle-backup execute-where client The PRE_DLE_* script output a DIRECTORY property telling where the directory is located in the snapshot. The application must be able to use the DIRECTORY property, amgtar can do it. The script is run as the amanda user, it must have the priviledge to create and destroy snapshot: zfs allow -ldu AMANDA_USER mount,snapshot,destroy FILESYSTEM Some system doesn't have "zfs allow", but you can give the Amanda backup user the rights to manipulate ZFS filesystems by using the following command: usermod -P "ZFS File System Management,ZFS Storage Management" AMANDA_USER This will require that your run zfs under pfexec, set the PFEXEC property to YES. The format of the DLE must be one of: Desciption Example ---------- ------- Mountpoint /data Arbitrary mounted dir /data/interesting_dir ZFS pool name datapool ZFS filesystem datapool/database ZFS logical volume datapool/dbvol The filesystem must be mounted. PROPERTIES
This section lists the properties that control amzfs-snapshot's functionality. See amanda-scripts(7) for information on the Script API, script configuration. DF-PATH Path to the 'df' binary, search in $PATH by default. ZFS-PATH Path to the 'zfs' binary, search in $PATH by default. PFEXEC-PATH Path to the 'pfexec' binary, search in $PATH by default. PFEXEC If "NO" (the default), pfexec is not used, if set to "YES" then pfexec is used. EXAMPLE
In this example, a dumptype is defined to use amzfs-snapshot script to create a snapshot and use amgtar to backup the snapshot. define script-tool amzfs_snapshot { comment "backup of zfs snapshot" plugin "amzfs-snapshot" execute-on pre-dle-amcheck, post-dle-amcheck, pre-dle-estimate, post-dle-estimate, pre-dle-backup, post-dle-backup execute-where client #property "DF-PATH" "/usr/sbin/df" #property "ZFS-PATH" "/usr/sbin/zfs" #property "PFEXEC-PATH" "/usr/sbin/pfexec" #property "PFEXEC" "NO" } define dumptype user-zfs-amgtar { dt_amgtar script "amzfs_snapshot" } SEE ALSO
amanda(8), amanda.conf(5), amanda-client.conf(5), amanda-scripts(7) The Amanda Wiki: : http://wiki.zmanda.com/ AUTHORS
Jean-Louis Martineau <martineau@zmanda.com> Zmanda, Inc. (http://www.zmanda.com) Dustin J. Mitchell <dustin@zmanda.com> Zmanda, Inc. (http://www.zmanda.com) Amanda 3.3.1 02/21/2012 AMZFS-SNAPSHOT(8)
All times are GMT -4. The time now is 06:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy