How to edit /etc/vfstab

I created a file system earth in /earthpool (zpool). I mounted the file system on a directory /earth. But, when I reboot my machine it doesn't load the file systems and the zpool and zfs shows no pools available and no datasets respectively. I am using Solaris 10 running on X4500. Could you please give me the syntax of how to change the /etc/vfstab file.
device to mount device to fsck mount point FS type fsck pass mount at boot mount options
earthpool/earth /earth zfs yes
Is the above syntax correct ? Do I have to separate it using a hyphen or a space is enough ?
Thank you

I assume you created the filesystem like:
# zfs create earthpool/earth And you want to mount it as /earth ??
Then you would use:
# zfs set mountpoint=/earth earthpool/earth

Similar Messages

  • Edited /etc/vfstab for mirroring, rebooted and system won't boot!

    Hello,
    I was trying to setup a RAID-1 (mirroring) on a sunfire V210. I did create the replicas in /dev/dsk/c0t0d0s3 (which I labeled /mirror, can replicas be in filesysems?), initialized the mirrors, edited the /etc/vfstab and rebooted! Now, the system can't find /usr.
    My /etc/vfstab before editing for RAID-1
    #device device mount FS fsck mount mount
    #to mount to fsck point type pass at boot options
    fd - /dev/fd fd - no -
    /proc - /proc proc - no -
    /dev/dsk/c0t0d0s1 - - swap - no -
    /dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 / ufs 1 no -
    /dev/dsk/c0t0d0s4 /dev/rdsk/c0t0d0s4 /usr ufs 1 no -
    /dev/dsk/c0t0d0s5 /dev/rdsk/c0t0d0s5 /var ufs 1 no -
    /dev/dsk/c0t0d0s7 /dev/rdsk/c0t0d0s7 /export/home ufs 2 yes -
    /dev/dsk/c0t0d0s3 /dev/rdsk/c0t0d0s3 /mirror ufs 2 yes -
    /dev/dsk/c0t0d0s6 /dev/rdsk/c0t0d0s6 /opt ufs 2 yes -
    swap - /tmp tmpfs - yes -
    My edited /etc/vfstab for RAID-1
    #device device mount FS fsck mount mount
    #to mount to fsck point type pass at boot options
    fd - /dev/fd fd - no -
    /proc - /proc proc - no -
    /dev/md/dsk/d1 - - swap - no -
    /dev/md/dsk/d0     /dev/md/rdsk/d0 / ufs 1 no -
    /dev/md/dsk/d4     /dev/md/rdsk/d4 /usr ufs 1 no -
    /dev/md/dsk/d5     /dev/md/rdsk/d5 /var ufs 1 no -
    /dev/md/dsk/d7     /dev/md/rdsk/d7 /export/home ufs 2 yes -
    /dev/md/dsk/d6     /dev/md/rdsk/d6 /opt ufs 2 yes -
    swap - /tmp tmpfs - yes -
    Here the log of my booting screen follows:
    Rebooting with command: boot
    Boot device: disk File and args:
    SunOS Release 5.9 Version Generic_112233-07 64-bit
    Copyright 1983-2003 Sun Microsystems, Inc. All rights reserved.
    Use is subject to license terms.
    WARNING: forceload of misc/md_trans failed
    WARNING: forceload of misc/md_raid failed
    WARNING: forceload of misc/md_hotspares failed
    WARNING: forceload of misc/md_sp failed
    Hardware watchdog enabled
    configuring IPv4 interfaces: bge0.
    Hostname: test.testserv.org
    mount: /dev/md/dsk/d4 no such device
    /sbin/rcS: /usr/sbin/devfsadm: not found
    /sbin/rcS: /usr/bin/loadkeys: not found
    /etc/rcS.d/S35svm.init: rm: not found
    /etc/rcS.d/S35svm.init: grep: not found
    WARNING: /proc could not be mounted
    /sbin/swapadd: expr: not found
    /sbin/swapadd: swap: not found
    <snip>
    syncing file systems... done
    Program terminated
    {0} ok
    I understand that there must have something in /etc/vfstab is missing. Where have I gone wrong? How can I edit back that /etc/vfstab file?
    TIA
    Raqueeb Hassan
    Bangladesh

    boot off cdrom or a netboot server and mount the / partition as /mnt.
    Then edit /mnt/etc/vfstab.
    Restore it to the state it was in before you tried to mirror.
    It seems most likely you screwed up the creation of meta devices.
    Once you get the system rebooted, post the output of
    metastat -p
    You want to initially convert all your volumes to unmirrored metadevices.
    Then edit your vfstab to use them.
    Then reboot. Then you can add the mirrors.
    You probably want to convert / first and use the metaroot command to edit the vfstab for you.
    Then reboot using the "reboot" command, not a shutdown command.

  • How to edit etc/apache2/httpd.conf? Pico won't take my password. :(

    How to edit etc/apache2/httpd.conf? Pica won't take my password.
    I can navigate to the pico prompt in terminal ... but when it asks for pw, I try to type, the cursor just blinks, doesn't move, nothing.
    But if there's another way to edit this file, I'll try.
    Just want to uncomment the line about php5 module.
    Thanks!!! xoxo

    magaroni wrote:
    I like the tutorial, but yeah you are right, it's sudo, not pico that's not taking my pw. I can sudo pico or sudo vi, either way it asks me for my password but then the cursor doesn't respond to my typing.
    I'm used to vi. You use control keys to navigate and make changes. It has two modes, command and insert. In command mode, to delete the '#' character, for example, move the cursor to '#' and type 'x' to delete it. Type 'i' to enter insert mode and add new text. Press 'esc' to go back to command mode.
    There are numerous ways to save and quit. Usually you type 'ZZ' to save and quit. On some of these system files, their permissions are too restrictive for that. You have to do it the hard way. Type ':w!' to save. The 'w' is for "write" and the '!' is to force a write on a read-only. Then you can quit with "q!'.
    I've never edited an administrative file with pico.
    I can't even chmod to give myself rights to write to httpd.conf . "Operation not permitted."
    Don't try that. Many tools will rightfully refuse to even launch if they detect that their administrative config files have been incorrectly modified.
    internet chatter seems to suggest this 10.7.x is, like, super duper secure.  And I'm new to macs.  I'm logged in as admin, I have all the permissions I can find myself via finder ... but maybe there's a double-secret admin ...
    There is, it is "sudo". Only an admin user has the ability to use sudo to gain root permissions.

  • How to edit /etc/hosts?

    I need to add a hostname and IP address to /etc/hosts, so that I can access server at a hosting site, after I connect via VPN. The hostname that I need to use is not in the DNS, so I need to add it manually to /etc/hosts. I can't seem to find my root pwd, but I have an account with Admin access. Isn't there some tool for editing this file? Otherwise, I'll need to enable the root account somehow.

    Use a tool such as TextWrangler which allows administrators to authenticate to root, or sudo with a command line text editor.
    (45358)

  • How can I edit /etc/mnttab file of a running Solaris 10 Machine?

    Hi All,
    How can I edit /etc/mnttab file of a running Solaris 10 Machine?
    Any ideas, solution, suggestions.
    Regards,
    Rahul.

    Hello Roach,
    First, thanks for your quick response.
    I am using a Solaris 10 (Sparc ) machine , I want to make sure that no set uid programs get executed in /tmp partition.
    Currently I am modifying the value in /etc/vfstab to and adding the value in Mount Options as nosetuid, and restarting the system as a result when the system is rebooted the /etc/mnttab entry is populated accordingly and setuid programs are not executed in /tmp partition.
    But I want to avoid the reboot.
    I am planning to update the /etc/vfstab as well as /etc/mnttab file directly so that the reboot can be avoided.
    I found some function related to /etc/mnttab i.e
    (i)getmntent
    (ii)resetmnttab
    I will go into more details about it now
    Regards,
    Rahul.

  • HT2478 how to edit the picture you put on the desktop, center it etc.

    how to edit the picture you put on the desktop, center it etc.

    On what Mac running what version of OS X?

  • I have lost the toolbar that reads "File" "Edit" etc. How do I get it back?

    I have lost the toolbar that reads "File" "Edit" etc. How do I get it back?

    Firefox 3.6+ versions have a feature to allow the user to hide the Menu bar.
    Hit the '''Alt''' key to temporarily show the Menu bar, then open View > Toolbars and select Menu bar, so it has a check-mark. <br />
    The F10 can also be used on most PC's to temporarily reveal the Menu bar.
    https://support.mozilla.com/en-US/kb/Menu+bar+is+missing

  • I just replaced my desktop but now i cant edit etc. I signed in but no good. Do I need to enter my License key again and how ?

    i just replaced my desktop but now i cant edit etc. I signed in but no good. Do I need to enter my License key again and how ?

    What product are you trying to use to edit etc.: Acrobat ?  Have you installed it?  Have you activated it?

  • File, edit, etc options no longer at the top of the screen since upgrade. My right-click doesn't work so I need the File, Edit options. How can I bring them back?

    I only have Firefox tabs now and have not memorized all the Command keys to use when right clicking doesn't work. How can I access "File", "edit", etc....they used to be at the top of the screen before upgrade. I need to be able to copy/paste easily. Thank you.

    The menu toolbar is hidden at default in Vista. You can use F11 to show it temporarily. Please also read this article:
    http://support.mozilla.com/en-US/kb/Menu%20bar%20is%20missing

  • How do I display on the opening screen on Adobe Acrobat (Windows) version 9, the task bar that has "File," "Edit," etc--it's vanished

    How do I display on the opening screen on Adobe Acrobat (Windows) version 9, the task bar that has "File," "Edit," etc--it's vanished. Slobberdog

    Hi slobberdog,
    Please check out this post regarding the same issue in Acrobat 8. The solution applies to Acrobat 9 as well: How do I restore the PDF menu bar (File-Edit-View)?
    Best,
    Sara

  • My navigation bar disappeared so now I cannot print, edit, etc. How can I get it back. The info on your page does not help.

    I may have accidentally hidden the navigation bar i.e. the one that gives you options like File, Edit, etc. the info you provide for getting it back does not help because it asks me to use those tabs, which are not there anymore. This prevents me from printing, etc.

    Use either the Alt or F10 keys to temporarily display the menu. Then in the View menu select Toolbars, then "Menu Bar" to make it permanently display the menu.

  • When I tried to set up bookmarks the lines of firefox wher it has file, edit, etc dissappeared, how do I get tghem back?

    My firefox browser opening page does not have the top lines where "file, edit, etc nor does it show bookmarks. This disappared when I was trying to set up bookmarks for easy access to the websites I use. All I have as a top line is "Inbox. at the very top is firefox ask a question but I cannot seem to sue it.
    Any help would be appreciated.

    I'm having a similar problem, but I do have the key and is not working anyway.
    My old pc was running on windows 7 and my new one is an apple running on Lion.
    My phone is an Iphone IV and I can see all the bookmarks there.
    In order to sync, what I did was click on the "I don't have the device with me", I entered the key that was provided and the process finish ok. It says congratulations, etc, etc.
    But the bookmarks are not there, I tried merging data and replacing data on this computer options but is the same.
    Any suggestions?

  • How to edit a file

    Ok I probably realise that I've missed something in the literature on installing arch somewhere along the way, but I've spent the last 3 hours trying to find how get past this stage to no avail.
    I've managed to realise I have a dhcp connection.
    For DHCP IP
    For this option, you need the dhcpcd package (already available on most installations). To make use of it, edit /etc/rc.conf like this:
    eth0="dhcp"
    INTERFACES=(eth0)
    ROUTES=(!gateway)
    but when i type "edit /etc/rc.conf" I get a colon
    I presume I'm in some kind of editor, but I can't see what I'm supposed to change and what commands to use inside the editor.
    Any help gratefully received

    bzzzz Arch is for competent Linux users - not knowing how to edit a file suggests that you do not fall into this category. If you wish to persevere and use Arch as a learning tool, then you need to be aware that you will be required to do most of the work yourself.
    See the wiki: https://wiki.archlinux.org/index.php/FA … se_Arch.3F

  • How to: Edit an INDT InDesign Template file?

    Hi,
    I am currently working on a packaging redesign project.
    I have received an InDesign template from a client that was previously created by another design house. They have added their logo and company details to the template, which I would like to remove in order to add my own.
    I have no idea how to edit the material in the template.
    Can anyone please advise me?
    Thanks in advance.

    Its not working Im afraid...
    The previous template has guides and crop marks etc, along with the contact details from the previous firm that I would like to shift or move.
    Following the steps you've described opens the template, but the content is still not able to be edited.
    Ive checked the layers palette to see if the layer is locked etc, but they are not. I simply cant edit the content.

  • How to edit linked text in an Indesign long document without it effecting the whole document

    I want to work out how to edit text in indesign without the rest scrolling
    I have a large 200 page book.  The text was supplied in Word and I have placed the whole document automatically and now I am going through each page doing my magic with pics, stylesheets etc.
    When the client comes back with edits, I am concerned that deleted or adding in text will scroll the text to the next chapter, etc etc.  This will be a nightmare.  Not sure how to unlink say 5 pages or so that are in each chapter so I can edit easily without the whole document being effected.
    Apologies I am probably not explaining myself all that well.

    lisalip wrote:
    john the link is broken
    I can see there are scripts but I don't want each page separate rather each chapter (each chapter can go for 2 or 7 pages)
    I am only 35 pages or so into the book and if I have to I can re place the text with some work, ie start again with the text pages.
    seems sily though that I cannot split the threaded stories a few pages at a time.
    The link is now fixed.
    You can split the threaded story into separate stories anywhere in the thread. At the chapter breaks seems logical. There are many users who'll assert all sorts of right/wrong at you when it comes to threading text. For my purposes, I set up long documents much the way you propose; threading articles, stories, or chapters discreetly; rarely would I ever thread an entire long document as one. It's a preference, not a rule. Each way has benefits and pitfalls.

Maybe you are looking for