7 replies
by cpfeiffe
Can you tell me exactly what you are typing and the exact error?
The mount command in Solaris should be typed mount /dev/dsk/c#t#d#s# /mount_point
The # symbol represents a number helps relate to the slice you are trying to mount. c# (controller number) t# (target number) d# (lun number or 0 if not using luns) s# (slice number).
The slice must already be a file system. Through the format command you can view all of your disk drives and how they are set up. If no space has been allocated to this slice you won't be able to mount it. If it does have space and it is a newly created file system you should have ran newfs on it (newfs /dev/rdsk/c#t#d#s#). This creates the slice as a file system. Be careful though, if there is already data on the slice don't run newfs because it will remove your data.
/mount_point can have any name and can be as deep in the directory structure as you want but it must be a directory and must already exist. It should have permissions set to allow read, write and execute for at least the person that is mounting the file system.
If you have any further questions or need help with any of the parts I've advised on feel free to send me an email at charles.j.pfeiffer@power.alstom.com. This is a task we can handle very quickly and I don't check this Q&A every day.
by dave.angradi
First you need to partition your disk, use format to do soo ( if not already done..). Use format utility to verify if you are targetting to good disk
The file system format is: /dev/dsk/c#t#d#s#
where c# : controller number
t# : scsiid on the controller
d# : LUN number
s# : Slice number
On Sun server, here is the definition: of the slices: 0 - Normally use for root
1 - Swap
2 - 100 % of the disk
3-7 other slice/partition
If you want to use the disk has 1 partition,
you should used c#t#d#s2, this way when you
do a 'df', you know that this partition is the full disk. But youcould used any slices...
Once your slice is done, do a 'newfs' on each slices that you have created...
exemple: You have an 18 Gb disk, on which
you have created 2 partitions of 9 gb each.
Let's pretend it's slice 0 and 3 on controller 0, scsi id 2. Once you have partition you disk using format, you MUST do a newfs on the new define partition by doing newfs /dev/dsk/c0t2d0s0 and newfs /dev/dsk/c0t2d0s3. create a mount point for each, mkdir /mount1, mkdir /mount2. Now you are ready to mount both, mount /dev/dsk/c0t2d0s0 /mount1, mount /dev/dsk/c0t2d0s3 /mount2... if you want todo it permanently, modify /etc/vfstab.
If it's not clear enough... send me an e-mail
good luck
by dave.angradi
by dattatray_b
Dear Friend..
U should follow the following steps:-
1) use the format command to do the partation on the disk.The partation od the disk is known as slice. so according to your disk I.D. and controller ID and the Lun I.D. the disk address willbe /dev/rdsk/c#t#d#s#
c# = Controller number
t# = Target I.D. ( Disk scsi I.D.)
d# = Lun Device Number ( In SCSI if there is no external storage it is 0)
s# = slice number ( Partation number)
2) On the root File system make the proper directory to moutn the file system .
( Note : if u r using the perticular Filesystem for application home directory then u have to change the owner of the mount point directory. i.e in my case if I will use the sybase drectory as mount point and as home directory od Sybase Database server then I am giving the owner od the Sybase directory as syabse login.)
Make proper changes in /etc/vfstab
then on "#" prompt give the command
moutn /dev/dsk/c0t0d0s6 /mountpoint
here the c,t,d,s numbers and name on the moutn point directory will change according to your partation and mount point.
Pl. do and send me a mail..
regards
D.V.Bhagwat
by dave.angradi
by dave.angradi
This discussion is closed to new replies.
Trending Linux posts
Sort by Trending