LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (http://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   How to manage newly added 2nd HDD ? (http://www.linuxquestions.org/questions/solaris-opensolaris-20/how-to-manage-newly-added-2nd-hdd-581976/)

kcarun 09-03-2007 08:58 PM

How to manage newly added 2nd HDD ?
 
Friends,

I Attached a scond HDD ( 80 GB) to my system
Code:

# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
      0. c0d0 <DEFAULT cyl 9726 alt 2 hd 255 sec 63>
          /pci@0,0/pci-ide@1f,1/ide@0/cmdk@0,0
      1. c1d1 <drive type unknown>
          /pci@0,0/pci-ide@1f,1/ide@1/cmdk@1,0
Specify disk (enter its number):

My Doubt is How can I make sure that this is a Faulty Or a Good One?

reg
Arun

lostnhell 09-03-2007 09:11 PM

Have you tried using the HD manufacturer's installation disk to run a disk check? Most manufacturers like Maxtor, Seagate and Western Disigtal have free ISOs of the disk check utilities that you can download from their websites.

jlliagre 09-04-2007 01:42 AM

The format utility has an analyse functionality (read/write/compare tests) that will help detecting faulty disks.

kcarun 09-04-2007 11:15 AM

Hi thaks for your response,

I tried that read write and compare test , result is show below

Code:

format> analyze


ANALYZE MENU:
        read    - read only test  (doesn't harm SunOS)
        refresh  - read then write  (doesn't harm data)
        test    - pattern testing  (doesn't harm data)
        write    - write then read      (corrupts data)
        compare  - write, read, compare (corrupts data)
        purge    - write, read, write  (corrupts data)
        verify  - write entire disk, then verify (corrupts data)
        print    - display data buffer
        setup    - set analysis parameters
        config  - show analysis parameters
        !<cmd>  - execute <cmd> , then return
        quit
analyze> compare
Ready to analyze (will corrupt data). This takes a long time,
but is interruptable with CTRL-C. Continue? y
Current Defect List must be initialized to do automatic repair.
analyze>

How can I initialize Defect List??

..arun

jlliagre 09-05-2007 01:42 AM

I never saw that message. It seems to imply your disk isn't low level formatted but as far as I know, all IDE disks are. Perhaps this disk is just dead. You may want to try the "format" subcommand but the documentation tell it won't work with IDE ...

You can also try using it with Linux or Windows to see what these O/Ses think about the disk.

kcarun 09-05-2007 09:43 PM

Hi

My HDD is Maxtor, and I downloaded (Programe) Iso image from there site and , done the "Zero Filling".

After that ,with fdisk i created a single partition,


Code:

Searching for disks...done

            Total disk size is 9730 cylinders
            Cylinder size is 16065 (512 byte) blocks

                                              Cylinders
      Partition  Status    Type          Start  End  Length    %
      =========  ======    ============  =====  ===  ======  ===
          1                Solaris2          1  9729    9729    100

as next step I tried to mount the device but the result is

Code:

bash-3.00# mount /dev/rdsk/c0d1s0 /mnt/2dHDD/
mount: /dev/rdsk/c0d1s0 not a block device
bash-3.00#


Or shall I use the "newfs" command before mount?

..Arun

lostnhell 09-05-2007 11:29 PM

Quote:

Originally Posted by kcarun (Post 2882657)
Or shall I use the "newfs" command before mount?

..Arun

Did you mean to setup the disk type as a Solaris, rather than a Linux disk type?

You need to have a filesystem installed on the partition before you can mount it. You can use mkfs to add a filesystem to the partition.

kcarun 09-06-2007 12:02 AM

Hi,

My aim is to install this second Disk as a Backup Storage Area for my Documents and Photos,

for that purpose which file type will be better ? and Nowadays I am using Solaris Only! and Linux File type will be recognize by solaris ?

Kindly Advice!

reg
Arun

lostnhell 09-06-2007 12:36 AM

I was assuming that you were asking questions about a Debian distribution, not Solaris, so I apologize for the confusion.

Unfortunately I have not worked with Solaris enough to have opinions or know which file system types are possible. In reading Solaris documentation I found that UFS is the default filesystem, and in efforts to be safe I would recommend using the Solaris Partition type and the UFS filesystem.

But, the good news is that I will now get and install OpenSolaris in efforts to better assist with Solaris questions in the future.

jlliagre 09-06-2007 02:32 AM

I would recommend you to use ZFS for your second disk.

Just run the following commands:
Code:

zpool create disk1 c0d1
zfs create disk1/backup

You disk is then available under the /disk1/backup directory.

You should also take some time googling ZFS documentation and blogs to learn about very cool ZFS features, like snapshots, redundancy, compression and the likes.

kcarun 09-06-2007 09:42 PM

jlliagre ,

Yes it worked, Thanks a lot.


..Arun

jlliagre 09-07-2007 01:54 AM

You are welcome !

Here's an interesting reading about ZFS: http://blogs.sun.com/constantin/entr...y_tips_for_zfs


All times are GMT -5. The time now is 11:26 PM.