I have a zfs OST that I need to drain and re-create. This is lustre 2.7.x. In the past, with ldiskfs OST, I did this a number of times following critical failures, and came up with the following items to be replaced on the file system once the mkfs.lustre had been run, where the new OST was mounted ldiskfs at /mnt/ost and the previous files had been saved off in a backup_directory. This is also mostly documented in the Lustre user manual.

cd backup_directory
cp -fv mountdata /mnt/ost/CONFIGS
cp last_rcvd /mnt/ost
mkdir -p /mnt/ost/O/0
chmod 700 /mnt/ost/O
chmod 700 /mnt/ost/O/0
cp -fv LAST_ID /mnt/ost/O/0

Now, with the zfs OST, mounted as type zfs, I see this file structure
drwxr-xr-x 2 root root    2 Dec 31  1969 CONFIGS
-rw-rw-rw- 1 root root    2 Dec 31  1969 fld
-rw-r--r-- 1 root root    0 Dec 31  1969 health_check
-rw-r--r-- 1 root root 8576 Dec 31  1969 last_rcvd
drw-r--r-- 2 root root    2 Dec 31  1969 LFSCK
-rw-r--r-- 1 root root   64 Dec 31  1969 lfsck_bookmark
-rw-r--r-- 1 root root  256 Dec 31  1969 lfsck_layout
drwxr-xr-x 1 root root    2 Dec 31  1969 O
drwxr-xr-x 1 root root    2 Dec 31  1969 oi.0
... with lots more oi.N

[root@umdist10 ~]# ll /mnt/temp/CONFIGS
total 258
-rw-r--r-- 1 root root     0 Dec 31  1969 params
-rw-r--r-- 1 root root 12104 Dec 31  1969 T3test-client
-rw-r--r-- 1 root root  8880 Dec 31  1969 T3test-OST0000
[root@umdist10 ~]# ll /mnt/temp/O
total 17
drwxr-xr-x 1 root root 2 Dec 31  1969 0
[root@umdist10 ~]# ll /mnt/temp/O/0
total 98784
drwxr-xr-x 1 root root 2 Dec 31  1969 d0
... 31 more dN directories

So, specifically, there is no LAST_ID file, and the CONFIGS directory does not contain a "mountdata" file.

My questions is, do I just not worry about those 2 files, copy back the last_rcvd file, remount the re-created OST, and continue on with life? Or, are there other files from this zfs directory structure that should also be saved and put back once the zpool is re-created?

Thanks all for any help on this.

bob

_______________________________________________
lustre-discuss mailing list
[email protected]
http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org

Reply via email to