Forums.ATC.no

Teknisk => Generelt teknisk => Emne startet av: ATC på 05. Juni 2010, 10:12 am

Tittel: Nexenta: Adding a second hard disk
Skrevet av: ATC05. Juni 2010, 10:12 am
After installing Nexenta Core Platform on harddisk number one, how do I add and share my second hard disk via NFS?
Tittel: [Solved] Nexenta: Adding a second hard disk
Skrevet av: ATC05. Juni 2010, 10:12 am
The second hard disk will usually appear as a raw character device under /dev/rdsk. p0 is the entire drive, p1 is the first partition, p2 is the second etc.:
# fdisk /dev/rdsk/c0d1p0

Now that the second hard drive has been partitioned for use, create a second storage pool to keep separate from the syspool:
# zpool create datapool c0d1p0

Enable deduplication. This is why you installed Nexenta Core in the first place, yes?
# zfs set dedup=on datapool

Share the new storage pool. You may replace "*" with one or more hosts if you want to limit the access:
# share -F nfs -o rw=*,anon=0 /datapool