Chown -R user hung on nfs4 mounted partition

Hi,
Using Solaris 10 on sparc. NFS v4 as server with default configuration on
Global zone and nfs4 client on 2 zones.
share -F nfs -o rw=server-t /nfs/shareddir
ls -ald /nfs/shareddir
drwxr-xr-x 2 104 staff 512 Jul 29 16:34 /nfs/shareddir and server-t is a zone .
on server-t (nfs client)
mount -F nfs <nfsserver>:/nfs/shareddir /usr/local/shareddir
ls -ald /usr/local/shareddir
drwxr-xr-x 2 user staff 512 Jul 29 16:34 /usr/local/shareddir
<user> is not created on nfs server so /nfs/shareddir is created such that
owned by UID 104 which is UID of user on client.
now problem is when a lot of directories were successfully created in
/usr/local/shareddir and following command is given on only 1 client, the
process was hung..
chown -R user /usr/local/shareddir/<somedir>
above command was hung for hours finally was killed. ( this directory
is actually shared between 2 NFS4 client on solaris 10 zones)
what could be reason and is there anything missing in the configuration
recommended for NFS4, on server and client /etc/default/nfs is untouched.
there are hugh number of directories and files of large size created on client side..where chown command was run(for same user which already owns that mounted partition)
Please let me know,
Thanks,

jonnybarnes wrote:So this is partition sdb2, I have partition sdb1 mounted as /var, which is also weird because my system doesn't seem slow or sluggish, but I don't really know how often /var is read or written to. If I get a new SATA cable and attach the drive to a different port, it won't become like /dev/sdc will it and thus make my system complain about having no /var folder?
It might, but that's why you should always use persistent block device naming. With udev the device nodes for your partitions might also change after a reboot so you really shouldn't rely on them.

Similar Messages

  • Mounting partitions

    hi there
    i have several partitions, windows, backups,etc...
    i want to mount them! :-)
    once i had one of my partitions to be mounted on startup by editing the fstab
    then i added some other partition the same way , which worked fine, but then i get messages like "permission denied" as a normal user even if i want to browse the first partition i added which worked befor!
    ok after trying and trying and geting more and more different error messages i  added my partitions in fstab like the preconfigured floppy is in ;-)
    (but with correct filesystems, not all vfat)
    then i tryed following code with that customized fstab and with original fstab (addedlines=comments)
    [matto@hansa matto]$ mount -t vfat /dev/discs/disc0/part8 /mnt/mukku
    mount: only root can do that
    [matto@hansa matto]$
    now i think i have to give my user "matto" rights to mount partition
    i also just used the option "user" in fstab and i get permission denied errors....
    with option "defaults" its not getting better... but why? i can browse "/" to as user, ok not all subdirectories :-) but i am "on" "/"
    i am really confused and frustrated now , because now i can't even reach my recordings partition which i could reach befor :-/
    btw is there any good and easy to use multitrack recording software for linux?
    greetings matto

    Alternative is to use other tools for ntfs. Take a look at these threads:
    http://bbs.archlinux.org/viewtopic.php? … light=ntfs
    http://bbs.archlinux.org/viewtopic.php? … light=ntfs
    http://bbs.archlinux.org/viewtopic.php? … light=ntfs
    but I have no idea if this works and if it's safe. It's much better option to use fat32 partition for windows-linux data exchange.
    BTW if you use windows to create fat32 partitions it can create maximum 32gb fat32 partitions. You will have to create additional fat32 partitions if you have more space to share with linux (the funny thing is that windows says it can read/write to/from bigger fat32 partitions without a problem but it's just a limit on creation of such partitions :-)).

  • Single-user mode: How to mount and access an external USB drive?

    My MacBook Pro HD is acting up. Cannot boot normally or into "safe mode". Cannot reinstall OS without wiping out the HD. Need to recover some critical files but DiskUtil First Aid and Restore options cannot successfully complete. Problem traced down to "invalid node structure" which means I either have a hardware problem or my filesystem partition directory structure is corrupted. I need to recover some files that are not backed up (timin issue with my regular backup process).
    I can boot into single-user mode, mount the root file system (/sbin/mount -uw /) and can see/navigate the rot filesystem structure via good UNIX command line. Here's what I would like to do (in single-user mode):
    1. Mount an external USB drive (250 GB already formatted as Mac OS X Extended)
    2. Copy various files and/or directories from my HD to the external USB drive (UNIX cp command)
    I realize I could go spend $$ for the Disk Warrior or Data Rescue products (or something similar) that SHOULD help me recover my HD or files, but it seems silly to do this when I can see, touch and taste them from within single-user mode....
    Comments? Suggestions?
    TIA --
    Trent
    P.S. Once I've recovered my files, I'll try to reformat the HD and then reinstall the OS. And THEN go have Apple look at my machine (thank goodness for AppleCare coverage)!

    Resolution:
    1) Boot system in single-user mode (SUM) with external HD attached.
    2) Execute the following UNIX CLI commands once SUM boot process is completed:
    # fsck -fy
    # mount -uw /
    # mkdir /Volumes/target_directory
    # mount -t hfs -w /dev/diskXXX /Volumes/target_directory
    # cp -RXv /source_directory /Volumes/target_directory
    Where XXX is the device-level name for your external HD's data partition. In my case this was /dev/disk1s2. It may take some experimentation to identify this device name if your system has multiple HD's.
    3) Verify contents were successfully copied onto the /Volumes/target_directory.
    Comments and observations:
    - Do NOT use "/" as your source directory - cp will make a second (redundant) copy of /volumes/target_directory
    - I was able to successfully copy ALL files off my HD despite the fsck command's "invalid node structure" error message with this simple procedure. YMMV, depending on the state of your HD.
    - The repeated disk0s2: I/O error warnings displayed during the SUM boot process did not seem to have a negative effect on this procedure. I also received this same error warning intermittently as I navigated the mounted filesystem did not seem to be a problem, either. Again, YMMV.
    Commercial software:
    I downloaded ProSoft Engineering's Data Rescue 3 product (trial version) before spending $99 to attempt to recover my "bad" HD's data via mounting to a good system with FW target mode. It could not successfully complete its "QuickScan" process and immediately hung on block 0 of 390M during its "Deep Scan" process. The product did seem to function properly on an operational system. ProSoft's technical support was responsive and helpful but had no answer for my "Deep Scan" error.
    I did not attempt to use Alsoft's Disk Warrior 4 product. I could not find any trial software available and was reluctant to spend $100 based upon the mixed reviews and comments on this discussion forum as well as other reviews. Alsoft does claim to address the "invalid node structure" error in their marketing materials. Hindsight being 20/20 - I saved $100 by using this simple procedure.
    Final note:
    Neither Leopard nor Snow Leopard's installation DVD could recognize the bad internal HD when trying to do a reinstall. While DiskUtil was able to "see" the bad internal drive it immediately failed when I tried to do an "erase and format". Took the system to my local Apple store and the Genius ran a tool called "SMART Utility" from Volitans Software (www.volitans-software.com). SMART utility confirmed that my HD was bad so it was replaced. AppleCare pays for itself (once again!).

  • Mount partition, but can't write

    i mount partition
    mount /dev/sda10 /media/partition
    but no writing permission on it. i think the partition is using ext4.
    if i need to write in /etc/fstab, how?

    Dogs1985 wrote:
    Mr.Elendig wrote:
    Dogs1985 wrote:
    i mount partition
    mount /dev/sda10 /media/partition
    but no writing permission on it. i think the partition is using ext4.
    if i need to write in /etc/fstab, how?
    1. check that it is ext4
    2. if it is, man chmod and man chown
    yes. i use chown xxx:xxx to solved problem.
    NOOO! Never chown entire partitions!
    If you would have read the mount man page you would have seen how you can mount partitions as rw for users
    Here's what I use for vfat (usb stick)
    /dev/sdb1 /mnt/usb vfat users,exec,dev,suid 0 1
    I'm guessing you just need to add ext4 instead of vfat and it should work. You can mount without sudo and it'll be rw
    Last edited by Lich (2009-09-16 18:14:54)

  • Format - analyze - purge a disk with mounted partitions

    I'm trying to format a machine with multiple disks. To do this, I've been instructed to run format, then analyze, then purge on each of the disks. Unfortunately, each disk has at least one mounted partition and when I try to run purge, I get the following message:
    "Cannot do analysis on a mounted partition."
    I've been able to get around this problem on all but one of the disks by using umount and making appropriate edits to /etc/cfstab. That said, I'm stuck on the first disk where mounts like / and /var exist. It's my understanding that you can't unmount / - if this is the case, how do I purge the disk where / is mounted?
    Thanks,
    David

    You do realize the end result is that you will have no usable OS, right? If you do that's fine but I wanted to put that out there.
    Reboot from install media and run the commands from there. They will be in the single user environment.
    Cheers,
    Edited by: John.Kotches on Apr 22, 2008 9:53 AM
    Cleaned up spacing... Nothing to really see here.

  • User permission on SMB mounted network disk

    I have a Buffalo TeraStation automounted via "NetInfo Manager" in my G5. But only the user that I used to mount the disk, and the root user can access the mounted disk. Other users in the same machine can't get permission to the network disk.
    Does anyone know how do I add the permission for other users? Thanks!
    G5   Mac OS X (10.4.4)  

    Ok found a sollution, i tried a couple of things, it boils down to this.
    login as admin user
    1. demote the network user to a local user,
         use workgroup manager for it use export in menu to export user from LDAP
         import to Local directory, reset the password and delete the LDAP user.
    2. you chould now be able to localy login to the account, do that.
    3. open the terminal and run the following commands (probably need sudo for it and you need to change <username> to the user you want to change)
         chmod -R -N /Users/<username>/
         chown -R <username>:staff /Users/<username>
         chmod -R 700 /Users/<username>
    4. check that every thing in you're account is working again as should.
    5. promote local user to network user.
    use workgroup manager for it use export in menu to export user from Local
         import to LDAP directory, reset the password and delete the Local user.
    this did the trick for me, hope it helps.
    Ben

  • How to recover from a stupid chown command "chown -hR userA /." ??

    greetings
    i am a terrible newbie of linux.
    and when i am trying to chown one directory /home/someone/dX to be owned by account , say userA, i stupidly cd to /home/someone/dX and using the below command as a root:
    chown -hR userA /.
    I cant exlain why i did this, but the result is that nearly all the directory/files of the computer become owned by userA.
    My question is , is there any way to restore all my changes caused by this command...
    Last edited by samp (2008-02-28 17:42:43)

    It should be possible to recover to get a working system. My son did an identical thing trying to set the mount point for his external caddy to be owned by his user. This was on SimplyMEPIS 64.
    He had everything owned by jon:users, so here are excerpts from my emails (using guest user on my Mepis 32 system):
    DON'T DO THIS:
    I mucked up my 32 bit Mepis "su" (roughly in the same way as you?) I su'd and cd'd to / then
    chown -R guest *
    chown -R root *
    chown -R guest /home/guest
    Logging into guest I had the same problems i.e. got invalid password when su
    from in a terminal or when running mepis system stuff from kmenu (uses kdesu)
    DO THIS:
    This should solve it:
    Login in as root
    run konqueror and navigate to /bin
    right click on su
    click the permissions tab
    check the box "user: Set UID"
    click on OK to close etc
    You should know be able to log in as jon and use su and kdesu
    his response was:
    Since reseting the profile using the User Manager when I start up I get an error saying I;m not permitted to connect to the powersave daemon via DBUS, however I haven't noticed any ill-effects.
    Well mostly fixed anyway.  I can still enter the password on synaptic etc. but for some reason if I am changing between sessions it wouldn't accept the password for 'jon'.  Not that this is a huge problem.
    My response was
    Me too. Tick the "Set UID" box for /usr/bin/kcheckpass
    On my Arch linux, the following programs are UID or GID:
    $ ls -l /opt/kde/bin/ | grep "sr-"
    -rwsr-xr-x 1 root root      2852 2007-11-10 20:54 fileshareset
    -rwsr-xr-x 1 root root     15194 2008-01-26 17:45 kcheckpass
    -rwxr-sr-x 1 root nobody   56265 2008-01-26 17:46 kdesud
    -rwsr-xr-x 1 root root      5876 2007-11-10 20:54 kgrantpty
    -rwsr-xr-x 1 root root    567112 2007-10-14 22:28 kppp
    -rwsr-xr-x 1 root root      5500 2007-11-10 20:54 start_kdeinit
    Mepis has those programs in /usr/bin. "s" in the first block means "Set
    UID", "s" in the second block (kdesud) means "Set GID".
    The powersave problem may be due to start_kdeinit not being able to run as
    root so let me know if that is fixed by the above mod.
    Of course some ownerships are still wrong (nobody etc) so I guess security isn't quite up to scratch.
    That was on 4th Feb and it is his main system - no problems reported back so far.
    Basically, chown everything (/, recursively) to root, chown each users home recursively to that user, then deal with a few set UID & GID problems.

  • Disk repair using the format - repair command with a mounted partition

    I was going to repair some bad blocks on a disk by using the format command with the repair option. When I entered the block number to be fixed it came back withthe question of:
    "Repair is in a mounted partition, continue?"
    Will I hurt anything on my system if I answer yes to continue or should the partition be unmounted before I do this?
    Thanks

    Did you have any answer?

  • Re: (forte-users) No response from Router partition

    Sounds like what we have been experiencing here, on Unix.
    According to Fort&eacute;, upgrading to 3M should resolve it. Unfortunately, we
    can't
    confirm it yet, as we are in the process of upgrading and testing.
    I believe this is documented as an "internal" Fort&eacute; bug report.
    Hope this hels.
    Daniel D&eacute;sy
    BORN
    ----- Original Message -----
    From: "Pabbaraju, Ramarao (EXP N-IONIDEA)" <ramarao.pabbarajulmco.com>
    To: "Forte-Users (E-mail)" <forte-userslists.xpedior.com>
    Sent: Tuesday, November 14, 2000 10:46 AM
    Subject: (forte-users) No response from Router partition
    Hi All,
    One of the router partitions on NT server stops responding once in awhile. We can not get to it through escript or econsole and the only
    solution we have is to shutdown the ftexec using task manager and start
    the partition again. We don't see any error messages in the log except
    this line "LbRouter::AttachToRouter - Ignoring DOM version: -1 obj
    version: 0". Does anyone have any idea what this means? Is there any way
    to figure out the problem? We are using Forte 3L3. Thanks in advance.
    Thanks
    Ramarao--
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a
    new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com

    My guess is, your third service object is not referenced.
    -----Original Message-----
    From: Forte App [mailto:forteapphotmail.com]
    Sent: Wednesday, May 17, 2000 3:08 PM
    To: kamranaminyahoo.com
    Subject: (forte-users) Partition problem
    Hello Everyone,
    I have three (3) service objects in my project and when i went into
    partition workshop i can only see two service objects instead of three and
    all the three service objects properties settings are same
    iam using Forte 3.0L2.
    Thanks in Advance
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com

  • Sharing user folders between two OSX partitions

    I have two partitions on my drive running OSX, one running 10.9.4 (we'll call this Partition 1), the other running another recent version of OSX that I apparently can't name here because someone out there doesn't know how to read or is being a troll (you know who you are), and keeps getting my thread deleted for no valid reason. We'll call the second partition, you guessed it, Partition 2.
    What I'd like to be able to do is have my computer booted to Partition 2 and access my user folders (movies, photos, etc) that exist on Partition 1, as it's a drag to have to reboot to Partition 1 every time I want to work, watch a movie, listen to music, etc, etc. etc.
    I've had no luck. No matter what I try, when I'm booted to Partition 2 and try to access the user folders in Partition 1, they all have the red circle on the icon, and I get a "you don't have permission..." error when I try to open them.Helpful facts:
    The username is the same for my user account on both Partition 1 and Partition 2.
    I've tried allowing permissions to everyone, and in Get Info I've tried applying the permission settings to enclosed items (the only suggestion I got on the discussion I started about a month ago on this issue.
    No, I don't have the HD space in my MBPr to have a duplication of the entire user account on the other partition, nor would I want to - if something is modified in Partition 1, I want to have fluid access in Partition 2.
    When in Partition 1, I can move files into the public folder for my Partition 2 user (which I've done a couple times when I know in advance that I might want a file to play with in Partition 2 - though this is nowhere near a practical solution to my issue).
    Thanks for any help.

    You have two different account usernames and passwords, so you cannot access the information in a user account unless you are logged into that account. If you want to access data across the partitions, then both user accounts must have the same username and password. You may then access the information directly or using aliases.
    The alternative to this is to use the entire home folder on one partition as the default home folder on the other partition. You can do this using Users & Groups preferences.
    Open Users & Groups preferences. Click on the lock icon and authenticate. CTRL- or RIGHT-click on your user account listing in the sidebar and select Advanced Options from the context menu. You will see a field labeled "Home dir:" At the right end you will see a Change button. Click on it. In the file dialog locate the Home folder now located on the other partition (HDD/Users/account_name/.) Select the folder, click on Open button. Restart the computer as directed.
    When the computer boots up it will now be using the Home folder located on the other partition.
    I am the person who reported your posts because of the discussion related to beta software. Apparently, you did not like what you were told by the moderators and decided to try again. By insisting on not following the forum rules you were the troll, not I. All you had to do was simply refer to two partitions without regard to what operating systems were involved, etc.
    You have an answer to your question despite your rudeness.

  • Attempting to use Migration Assistant to restore a Time Capsule backup to a mounted partitioned drive?

    Had a power surge and my Mac Pro did not fare well. Was able to boot from one of the drives in read only mode, so I did a Time Capsule backup of everything on the drive. Reinstalled Mountain Lion. Booted the computer up and am trying to use Migration Assistant to take the Time Capsule backup and restore it to the 1TB drive. When I use Migration Assistant, it says that there is not enough space on the drive to do the restore. I looked in Disk Utility and saw that the start up disk is another one of the 1TB drives with about 600GB used, therefore not enough space to do the restore. I want to restore to the original drive, but it says it is a "Mounted Partitioned Drive". Can I use Migration Assistant to restore a Time Capsule backup to this mounted partitioned drive?
    Thanks in advance for any help - greatly appreciated.

    I am not sure, never had to go there, I have multiple bootable clones of the system online and off, and a couple 1500VA/900W UPS units powering everything.
    http://support.apple.com/kb/HT1427
    http://www.recovermymac.co.uk/data-recovery/time-capsule-data-recovery/
    This is a great article:
    http://pondini.org/OSX/SetupLion.html
    Most questions about TimeCapsule and TimeMachine are under Mac OS X forum as in -
    https://discussions.apple.com/community/mac_os/os_x_mountain_lion#/?tagSet=1468

  • In iMS5.1 on Solaris 8, how do I define imsbackup groups by giving a list of users or by Message Store Partition?  TIA

     

    Have you looked at http://docs.iplanet.com/docs/manuals/messaging/ims51/ag/store.htm#25747?
    List of users I believe, not per partition.

  • How to disable password for mount partitions

    Hi.
    I want disable password Aunthenticate for mounting partitions.
    I searched in wiki and google. But nothing found.
    Thanks.

    And/or https://wiki.archlinux.org/index.php/Udisks
    What exactly did you search for?  How did you not find these (and other) results?  Or have you ruled these out?

  • Program to easily mount partitions

    I am using Xfce, I am searching for an application that would let me mount partition easily without typing.
    Something like when you start knoppix and you have all the icons of every partition on desktop. You only have to click to mount.
    I don't want to edit fstab. Also I have many drives and change them frequently so using fstab file is a no way.
    TIA

    Rox desktop will do this for you. That is one of the key things I use it for. I keep icons on  my desktop for all my major disks and removable drives and so on. A single click on the drive icon will run the standard mount command, leveraging the information you must have previously entered into fstab. I have never found a way to make it execute customized mount commands, although there may be a way to do this - if anyone reading this knows, please add to this thread.
    To try out rox, just download package "rox" from the Arch archives (pacman --sync rox) and try it out per:
    rox --pinboard=default
    This will give you an initially pretty bleak looking grey desktop with one folder on it called "home". If you right click that icon and select the Backdrop item, you can post a picture or pattern of your choosing to the desktop background. Looking better already, no?
    Now for those disk icons you were looking for... Using that one single folder called Home, navigate over to your /mount directory. Drag and drop icons from there onto your desktop. Now you have icons for your drives of interest on the desktop. You can change the actual icon image easily via the "set icon" selection after you right click the icon. Here you will also see a mount command, although you won't need it.
    Now, simply single click the desktop drive icon and voila! your drive is mounted. Unmounting takes two clicks - right click the icon and select the "unmount" option.
    Rox remembers everything you have done (background image, icons, etc.) and will redraw your desktop just as you left it next time you start Rox. You can easily embed it into a startup mechanism to have it start automatically. If you are using XFCE4, the easiest way is to create a directory called ~/Desktop/Autostart, and in there, put a one line shell script that does the "rox --pinboard=default" command. By the way, you don't have to use the name "default". You can call your default desktop anything. Rox allows you to have multiple different desktops if you want. Being AR, I have named mine "xfce4-rox-desktop". Call yours whatever name appeals to you. I used "default" as a simple example.
    Rox is enormously capable while being light and fast. You will be amazed if you spend some time with it, read the documentation on their web site and play around. Rox is great. I use the combo of XFCE4+Rox as a fully functional replacement for heavier window-manager/desktop combos like KDE or Gnome. No flames against either of those - I just wanted "faster and lighter".
    Good look, and if you have further questions, don't hesitate to post.

  • Using the format - repair command on a mounted partition

    I was going to repair some bad blocks on a disk by using the format command with the repair option. When I entered the block number to be fixed it came back withthe question of:
    "Repair is in a mounted partition, continue?"
    Will I hurt anything on my system if I answer yes to continue or should the partition be unmounted before I do this?
    Thanks

    Did you have any answer?

Maybe you are looking for

  • HOW TO UNLOCK MY ITOUCH IF I FORGOT MY PASSCODE

    i just found my itouch after having it been lost for about 3 years and i do not remeber my password so i hooked it up to itunes and they say they cant open it because there is a password on it. how can i get it unlocked????

  • Anyone help with uploading photos

    I went to copy photos from an SD card inserted directly into the front of my PC and the pictures copied over to the ipod but I cannot see them under my photo list. They show up on my computer inside the ipod icon but not on the ipod itself can anyone

  • HU/SU seperate number ranges?

    Is it a good practice to have seperate number ranges between Storage Units and Handling Units? As we consider HU however as a heavy application-module, whereby sometimes simple internal SU in a WM can be sufficient.. Like wise we sometimes make use o

  • OIM 11g - Default role does not exists

    Hey, the default role IDENTITY ORGANIZATION ADMINISTRATORS does not exists in my OIM (11.1.1.5.4) I need this role to assign an user privileges to create and manage organization. Any idea?

  • Iphoto - thumbnails wrong

    Hello, I recently reinstalled my system fresh and ending up exctracting master copies of my old iphoto library (show package contents > masters). I imported all of those pictures into the new iphoto via file import. This was just fine (it took awhile