feedburner

Lorem ipsum dolor sit amet,
consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore
et dolore magna aliqua.

Mount windows share folder into AIX..

Mount windows share folder into AIX..

mount -v cifs -n winserver/myuser/mypassword /home /mnt
and it works fine

And that's right, it worked perfectly on my AIX server.
Of course, you had to work a little bit before that :
On your PC, you have to create a user, for simplicity let's name this user "myuser", his password is "mypassword". You also have to create a shared resource named "home" (on my PC it's named CX500).
On the AIX server, verify that you have the cxfs lpp :
CONSOLE# lslpp -l *cifs*

you should see something like " bos.cifs_fs.rte 5.3.0.50 COMMITTED Runtime for SMBFS".
If cifs is not installed, you will have to use smit install (with the AIX CD inserted) in order to install it.
And I don't use the /mnt mountpoint, I use /remote, don't forget "mkdir /remote" first.
Then, just typing the "mount" command mounts the PC/NTFS file on your AIX mountpoint.
So, everybody can "cd /mnt ; vi myfile.txt", you will see that the user has read and write permission. Which is normal, the mount command give a regular Windows username and password.
By the way, if you don't type the /mypassword part in the commandline, you are prompted for the Windows myser passwod, and you type it blindly, which is better from a security point of view.
Isn't this nice ? AIX users can startup the install of Oracle patches downloaded on the PC, and the user on the PC can read the comments from files written by the AIX/Unix users.
A nice collaboration between Unix and Windows worlds

PROCEDURE FOR REPLACING MIRRORED DISKS

1. Run cfgadm to view the status of the SCSI devices

a) cfgadm -al
2. Remove the failed disk.hard drive from the device tree.
a) cfgadm –f -c unconfigure c0::dsk/c0t0d0
b) cfgadm –f -x remove_device c0::dsk/c0t0d0
3. Verify the status of SCSI devices. The required of the defective disk must not appear
a) cfgadm –al

4. Verify the existing metadevices left on the disk by running

a) metastat -p | grep c0t0d0

5. If there are any replicas on this disk, remove them using
a) metadb -d c0t0d0s7 (with –f )
6. To configure the new hard drive, type the following command

a) cfgadm -c configure c0::dsk/c0t0d0
b) cfgadm -x install_device c0::dsk/c0t0d0

7. Create device special files in /devices and logical links in /dev folders

a) devfsadm (no need)

8. Verify the availability of the newly reinstalled disk, type the following command

a) cfgadm –al or with format

9. Copy the disk slice information to new disk run 'prtvtoc' to put the desired partition table on the new disk
a) prtvtoc /dev/rdsk/c0t8d0s2 > c0t8d0_prtvtoc_info (copying from working Mirrored disk)
b) fmthard -s > c0t8d0_prtvtoc_info /dev/rdsk/c0t0d0s2
c) format ; p ; p (to verify slice info)
10) Recreate any replicas on the new disk.
a) metadb -a c0t0d0s7 (-f)
11). Replace and sync the data by running metareplace.
a) metareplace -e d10 c0t0d0s3
b) metareplace -e d100 c0t0d0s0
c) metareplace -e d110 c0t0d0s1
12) Verify the data syncing process
a) metastat |grep sync
b) metastat –p
c) metasync